/* CRO & Design Improvements */

/* 1. Enhanced Loading State */
.quote-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.quote-loader .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #009951;
    /* Brand Green */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.quote-loader p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.quote-loader .form-help {
    font-size: 0.9rem;
    color: #64748b;
    max-width: 300px;
    margin: 0 auto;
}

/* 2. Interactive Form Options (Material, Size, Condition) */
.material-option,
.size-option,
.condition-option,
.purity-option {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    /* Ensure border is visible */
}

.material-option:hover,
.size-option:hover,
.condition-option:hover,
.purity-option:hover {
    border-color: #009951;
    background-color: #f0fdf4;
    /* Light green tint */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 153, 81, 0.15);
}

/* Active/Checked State styling */
.material-option.selected,
.size-option.selected,
.condition-option.selected,
.purity-option.selected {
    border-color: #009951;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(0, 153, 81, 0.2);
}

/* 3. CTA Enhancements */
/* Pulse animation for the main Hero CTA */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 156, 176, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(6, 156, 176, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(6, 156, 176, 0);
    }
}

.button_pink {
    /* Note: The class is named 'pink' but uses teal color #069CB0. Keeping color but adding glow. */
    animation: pulse-glow 2s infinite;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.button_pink:hover {
    animation: none;
    /* Stop pulse on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(6, 156, 176, 0.4);
}

/* Modal Primary Button */
.btn--primary {
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 153, 81, 0.2);
}

.btn--primary:hover {
    box-shadow: 0 8px 20px rgba(0, 153, 81, 0.3);
}

/* 4. Spacing & Typography Polish */
/* Increase specificity to override existing styles */
.modal__content .form-step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.modal__content .form-step-subtitle {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-label {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Thank You Screen Specifics */
.quote-confidence p,
.thank-you-message {
    font-size: 1.25rem !important;
    line-height: 1.6;
    color: #0f172a;
}

.quote-confidence strong {
    font-weight: 700;
    color: #0f172a;
}

/* Loading State Text */
.loading-text {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: #0f172a;
    margin-top: 1.5rem;
    text-align: center;
}

.loading-subtext {
    font-size: 1rem !important;
    color: #475569;
    margin-top: 0.5rem;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* 5. Trust Signals in Modal */
.valuation-header__stats {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.trust-cell__value {
    color: #009951;
    font-weight: 700;
}

/* 6. File Upload Area Polish */
.upload-area {
    border-width: 2px;
    background-color: #f8fafc;
}

.upload-area:hover {
    background-color: #f0fdfa;
    border-color: #009951;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .button_pink {
        width: 100%;
        /* Full width CTA on mobile */
        justify-content: center;
    }

    .form-step-title {
        font-size: 1.25rem;
    }

    .modal__content {
        padding-bottom: 80px;
        /* Space for fixed bottom buttons if needed */
    }
}