/**
 * Woo Quote Request Styles
 */

/* Quote Request Button */
.request-quote-btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.request-quote-btn:hover {
    background-color: #1976D2;
    color: white;
}

/* Modal Styles */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    animation: fadeIn 0.3s ease-out;
}

.quote-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-logo {
    max-height: 40px;
    width: auto;
}

.close-modal {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 1;
}

.close-modal svg {
    fill: currentColor;
}

/* Modal Body */
.modal-body {
    padding: 20px;
}

.modal-body h3 {
    margin: 0 0 20px;
    font-size: 1.5em;
    color: #333;
}

.modal-message {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Form Styles */
.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.submit-quote-request {
    width: 100%;
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.2s;
}

.submit-quote-request:hover {
    background-color: #1976D2;
}

.submit-quote-request:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading State */
.submit-quote-request.loading {
    position: relative;
    color: transparent;
}

.submit-quote-request.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
    .quote-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-logo {
        max-height: 30px;
    }
}

/* Error States */
.form-row input.error,
.form-row textarea.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Success Message */
.quote-success {
    text-align: center;
    padding: 30px 20px;
}

.quote-success h4 {
    color: #28a745;
    margin-bottom: 15px;
}
