/* CTA Section & Connect Modal*/

/* CTA SECTION */
.cta-section {
    background: #485e66 !important;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(72, 94, 102, 0.5);
    /* Same as #485e66 with 50% opacity */
    /* opacity 40 hai toh 0.4, 70% hai toh 0.7 */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.cta-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
    /* Shows video faint when unhovered */
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.cta-section:hover .cta-bg-video,
.cta-section:hover::after {
    opacity: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cta-section h2 {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    margin-bottom: 25px;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    font-family: 'Forum', serif;
    font-weight: 400;
    line-height: 1.2;
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: clamp(1.2rem, 2.5vw, 1rem) !important;
    color: #FFFFFF;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.cta-section .btn-primary {
    background: #FFFFFF;
    color: #496372;
    font-family: 'Outfit', sans-serif;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    border: 1.5px solid #FFFFFF;
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: #FFFFFF;
}

.cta-section .btn-outline {
    background: transparent;
    border: 1.5px solid #FFFFFF;
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.cta-section .btn-outline:hover {
    background: #FFFFFF;
    color: #496372;
}

/* CONNECT MODAL*/
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.connect-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 560px;
    height: auto;
    padding: 50px 40px;
    position: relative;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.modal-overlay.active .connect-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    line-height: 1;
    background: transparent;
    border: none;
    padding: 5px;
}

.close-btn:hover {
    color: #333;
}

.connect-card h2 {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 8px;
}

.connect-card .subtitle {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 30px;
}

.connect-form {
    text-align: left;
}

.connect-form label {
    display: block;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 6px;
    font-weight: 500;
}

.connect-form input,
.connect-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.connect-form input:focus,
.connect-form textarea:focus {
    border-color: #485E68;
}

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

.connect-form button {
    width: 100%;
    padding: 14px 30px;
    background: #485E68;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(72, 94, 104, 0.3);
}

.connect-form button:hover {
    background: #3A4B53;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(72, 94, 104, 0.45);
}

/* =CTA SECTION RESPONSIVE STYLES*/

/* Tablet (769px - 992px) */
@media (max-width: 992px) {
    .cta-section {
        padding: 60px 5%;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 16px;
        max-width: 600px;
    }

    .connect-card {
        max-width: 480px;
        padding: 45px 35px;
    }
}

/* Mobile Navigation (up to 768px) */
@media (max-width: 768px) {
    .cta-section {
        padding: 50px 5%;
    }

    .cta-section h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .cta-section p {
        font-size: 15px;
        margin: 0 auto 25px;
        max-width: 500px;
    }

    .cta-buttons {
        gap: 15px;
    }

    .cta-section .btn-primary,
    .cta-section .btn-outline {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 150px;
    }

    .modal-overlay {
        padding: 15px;
        align-items: center;
    }

    .connect-card {
        padding: 40px 30px;
        max-width: 100%;
        width: 100%;
        background-size: 100% 100%;
    }

    .connect-card h2 {
        font-size: 1.3rem;
    }

    .connect-card .subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .cta-section {
        padding: 40px 4%;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin: 0 auto 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-section .btn-primary,
    .cta-section .btn-outline {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .modal-overlay {
        padding: 10px;
    }

    .connect-card {
        padding: 30px 20px;
        max-width: 100%;
        width: 100%;
    }

    .connect-card h2 {
        font-size: 1.25rem;
    }

    .connect-card .subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .close-btn {
        top: 12px;
        right: 15px;
        font-size: 24px;
    }

    .connect-form label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .connect-form input,
    .connect-form textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .connect-form button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Specific fix for 14-inch screens (Standard 14" laptop resolutions) */
@media screen and (min-width: 1200px) and (max-width: 1550px) {
    .connect-card {
        padding: 30px 40px !important; /* Reduced padding to fit 14" viewports */
        max-width: 520px !important;
    }

    .connect-card h2 {
        font-size: 1.35rem !important;
        margin-bottom: 6px !important;
    }

    .connect-card .subtitle {
        margin-bottom: 15px !important;
        font-size: 0.85rem !important;
    }

    .connect-form label {
        margin-bottom: 4px !important;
        font-size: 0.8rem !important;
    }

    .connect-form input,
    .connect-form textarea {
        margin-bottom: 12px !important; /* Tighter spacing */
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
    }

    .connect-form textarea {
        min-height: 80px !important; /* Shorter textarea */
    }

    .connect-form button {
        padding: 12px 25px !important;
    }
}