/* CTA Section */
.cta-section {
    max-width: 1220px;
    /* Matched to Testimonials width */
    margin: 100px auto;
    /* Added spacing between sections */
    padding: 80px 40px;
    /* Increased height */
    text-align: center;
    background: #3675ff;
    border-radius: 32px;
    color: white;
}

.cta-section .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 24px;
    /* Increased tag text size */
    font-weight: 400;
    margin-bottom: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-tag {
    display: inline-block;
    color: white;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-section h2 {
    font-size: 48px;
    /* Reverted to original 48px */
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    color: white;
    max-width: 600px;
    /* Reverted max-width */
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #000000;
    padding: 12px 24px;
    /* Smaller button padding */
    border-radius: 1000px;
    font-size: 14px;
    /* Smaller button text */
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 24px;
    }

    .cta-section {
        margin: 60px 20px;
        /* Add side margins so it doesn't stretch */
        padding: 60px 24px;
        /* Balanced padding */
        border-radius: 24px;
        /* Slightly smaller radius for mobile */
    }

    .cta-btn {
        padding: 10px 20px;
        /* Smaller padding */
        font-size: 13px;
        /* Smaller font */
    }

    .cta-section .section-tag {
        font-size: 14px;
        /* Reduced from 24px/inherited to 14px */
        margin-bottom: 12px;
    }
}

/* Subscribe Form Styles */
.cta-subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 32px auto 0;
    align-items: center;
}

.cta-input {
    flex: 1;
    padding: 14px 24px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.cta-input::placeholder {
    color: #94a3b8;
}

.cta-submit-btn {
    background: white;
    color: #0f172a;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cta-submit-btn:hover {
    background: #f8fafc;
    color: #3675ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .cta-subscribe-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 12px;
    }

    .cta-input,
    .cta-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* FORCE ALL BUTTONS IN BLUE BOXES TO BE WHITE */
.cta-section .btn-black,
.cta-section .btn-hero-primary,
.cta-section .btn-hero-secondary,
.cta-section .cta-btn,
.cta-section a.btn-black,
.cta-section a.btn-hero-primary {
    background-color: white !important;
    color: #0f172a !important;
    border: 1px solid white !important;
}

.cta-section .btn-black:hover,
.cta-section .btn-hero-primary:hover,
.cta-section .btn-hero-secondary:hover,
.cta-section .cta-btn:hover,
.cta-section a.btn-black:hover,
.cta-section a.btn-hero-primary:hover {
    background-color: #f8fafc !important;
    color: #3675ff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* --- NAVY UPGRADE (Standardized Blue Box Style) --- */
/* Reference: .listing-cta-box from agents-page.css */

.cta-section.navy-upgrade {
    background: #172554 !important;
    /* Navy Blue */
    text-align: left;
    /* Left align on desktop */
    padding: 80px 40px;
    /* Match reference */
}

/* Hide the top pill tag in the upgrade */
.cta-section.navy-upgrade .section-tag {
    display: none !important;
}

/* Typography Updates */
.cta-section.navy-upgrade h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 24px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.cta-section.navy-upgrade p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    color: white;
}

/* Button Alignment */
.cta-section.navy-upgrade .cta-btn,
.cta-section.navy-upgrade .btn-black,
.cta-section.navy-upgrade .btn-hero-primary {
    display: inline-block;
    margin: 0;
}

/* Mobile Responsiveness for Upgrade */
@media (max-width: 768px) {
    .cta-section.navy-upgrade {
        padding: 40px 24px !important;
        /* Reduced padding */
        text-align: center;
        /* Center on mobile to make it look better */
    }

    .cta-section.navy-upgrade h2 {
        font-size: 28px;
        margin-bottom: 24px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-section.navy-upgrade p {
        font-size: 16px;
        margin-bottom: 24px;
        margin-left: auto;
        margin-right: auto;
    }
}