﻿/* ===============================
   RESET & BASE
   =============================== *

/* ===============================
   HERO SECTION
   =============================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero image */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* Content container */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

/* ===============================
   HERO TEXT
   =============================== */

.hero-text {
    max-width: 480px;
    color: #fff;
}

    .hero-text h1 {
        font-size: clamp(32px, 4vw, 54px);
        font-weight: 700;
        line-height: 1.2;
    }

/* ================================
   CONTACT CARD (FINAL)
================================ */
.contact-card {
    width: 320px;
    max-width: 100%;
    background: #ffffff;
    padding: 36px 32px;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

    /* Heading */
    .contact-card h3 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 24px;
        text-align: center;
    }

    /* ================================
   FORM ELEMENTS
================================ */
    .contact-card form {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .contact-card input,
    .contact-card select {
        width: 100%;
        height: 45px;
        padding: 0 16px;
        font-size: 15px;
        border-radius: 10px;
        border: 1px solid #ddd;
        background: #fff;
    }

        .contact-card input:focus,
        .contact-card select:focus {
            outline: none;
            border-color: #000;
        }

/* ================================
   PHONE INPUT FIX
================================ */
.phone-wrapper {
    position: relative;
}

    .phone-wrapper input {
        padding-left: 78px !important;
    }

.iti {
    width: 100%;
}

.iti__selected-flag {
    padding: 0 14px;
}

.iti__country-list {
    width: 100% !important;
}

/* ================================
   MOBILE – FULL WIDTH CARD
================================ */
@media (max-width: 768px) {
    .contact-card {
        width: 100%;
        padding: 28px 20px;
        border-radius: 14px;
    }
}


/* ===============================
   PHONE INPUT (intl-tel-input)
   =============================== */

/* Wrapper */
.phone-wrapper {
    width: 100%;
    position: relative;
}

    /* Plugin container */
    .phone-wrapper .iti {
        width: 100%;
    }

        /* Phone input itself */
        .phone-wrapper .iti input {
            width: 100%;
            height: 46px;
            padding-left: 110px !important; /* SAFE spacing for +91 */
        }

/* Country flag + code block */
.iti__selected-flag {
    width: 100px;
    padding: 0 12px;
    border-right: 1px solid #ddd;
    background: #f7f7f7;
}

/* Country dropdown */
.iti__country-list {
    width: 320px !important; /* desktop readable width */
    max-width: calc(100vw - 32px); /* mobile safe */
    left: 0 !important;
    right: auto !important;
    box-sizing: border-box;
    white-space: normal;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 8px;
}
.iti__country-list {
    width: 320px !important; /* desktop readable width */
    max-width: calc(100vw - 32px); /* mobile safe */
    left: 0 !important;
    right: auto !important;
    box-sizing: border-box;
    white-space: normal;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 8px;
}
/* Improve touch accuracy */
.iti__country {
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media (max-width: 576px) {
    .iti__country-list {
        width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: 12px !important;
    }
}


/* Valid tick */
.valid-tick {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #28a745;
    opacity: 0;
}

.phone-wrapper.valid .valid-tick {
    opacity: 1;
}


/* ===============================
   SUBMIT BUTTON
   =============================== */

.contact-card button[type="submit"] {
    height: 48px;
    width: 75%; /* ↓ control width */
    margin: 10px auto 0; /* center horizontally */
    border: none;
    border-radius: 6px;
    background: #202942;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .contact-card button[type="submit"]:hover {
        background: #000435;
    }

/* ===============================
   TERMS TEXT
   =============================== */

.terms {
    font-size: 8px;
    color: #666;
    text-align: center;
    margin-top: 6px;
}

    .terms a {
        color: #202942;
        text-decoration: none;
        font-weight: 500;
    }

/* ===============================
   MOBILE RESPONSIVE FIXES
   =============================== */

@media (max-width: 991px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-text {
        text-align: center;
    }
}

@media (max-width: 576px) {

    /* Make card BIG & readable */
    .contact-card {
        width: 92vw;
        padding: 26px 20px;
        border-radius: 12px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding-top: 110px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    /* Prevent any shrinking */
    .contact-card input,
    .contact-card select,
    .phone-wrapper input {
        height: 48px;
        font-size: 16px;
    }
}

/*Premium error/sucess message*/
.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.overlay-content {
    text-align: center;
    padding: 30px 20px;
}

.overlay-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.overlay-success .overlay-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.overlay-error .overlay-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.overlay-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.overlay-success .overlay-title {
    color: #059669;
}

.overlay-error .overlay-title {
    color: #dc2626;
}

.overlay-text {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.overlay-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

    .overlay-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }

/*Premium Sucess/error message ending*/


/*Support section*/
/*support section*/
/* SECTION */
.support-section {
    background: radial-gradient(circle at top, #0f172a, #020617);
    padding: 110px 7%;
    color: #fff;
}

/* CONTAINER */
.support-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

/* HEADINGS */
.support-title {
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 14px;
}

.support-subtitle {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 70px;
}

/* GRID */
.support-cards {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CARD */
.support-card {
    width: 320px;
    padding: 42px 34px;
    background: linear-gradient( 180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) );
    backdrop-filter: blur(16px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 40px 80px rgba(0,0,0,0.45);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    /* PREMIUM HOVER */
    .support-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .support-card:hover::before {
        opacity: 1;
    }

    .support-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 60px 120px rgba(0,0,0,0.6);
    }

/* ICON */
/* ICON base */
.icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 26px;
    background: rgba(255,255,255,0.14);
}

    /* EMAIL & CALL keep as-is */
    .icon-circle.email {
        color: #e6d7c3;
    }

    .icon-circle.call {
        color: #93c5fd;
    }

    /* WHATSAPP – use only the SVG, no ::before */
    .icon-circle.whatsapp {
        background: none; /* let SVG draw circle */
        box-shadow: 0 0 18px rgba(37, 211, 102, 0.65);
        padding: 0;
    }

        .icon-circle.whatsapp .wa-svg {
            width: 34px;
            height: 34px;
            display: block;
        }


/* IMPORTANT: remove this block entirely from your CSS */
/* .icon-circle.whatsapp::before { ... } */


/* TEXT */
.support-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.support-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 26px;
}

/* ACTION */
.support-action {
    font-size: 15px;
    font-weight: 500;
    color: #e6d7c3;
    text-decoration: none;
    border-bottom: 1px solid rgba(230,215,195,0.5);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

    .support-action:hover {
        color: #fff;
        border-color: #fff;
    }

/* WHATSAPP SPECIAL */
.whatsapp-action {
    color: #25d366;
    border-color: rgba(37,211,102,0.5);
}

    .whatsapp-action:hover {
        color: #fff;
        border-color: #25d366;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .support-title {
        font-size: 32px;
    }

    .support-card {
        width: 100%;
        max-width: 360px;
    }
}

/*responsive on smaller device*/
/* ================================
   MOBILE RESPONSIVE FIX (≤575px)
   ================================ */
@media (max-width: 575px) {

    /* ---------- GLOBAL ---------- */
    body {
        overflow-x: hidden;
    }

    /* ---------- NAVBAR ---------- */
    .navbar-brand img {
        height: 36px;
    }

    /* ---------- HERO ---------- */
    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-img {
        height: 100%;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;
        padding: 120px 16px 40px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

        .hero-text h1 {
            font-size: 28px;
            line-height: 1.3;
        }

    /* ---------- CONTACT CARD ---------- */
    .contact-card {
        width: 100%;
        max-width: 100%;
        padding: 32px 20px 36px;
        transform: none;
        box-shadow: 0 10px 28px rgba(0,0,0,0.25);
    }

        .contact-card h3 {
            font-size: 20px;
        }

        .contact-card input,
        .city-select {
            height: 42px;
            font-size: 14px;
        }

        .contact-card button {
            height: 44px;
            font-size: 14px;
        }

    .terms {
        font-size: 11px !important;
    }

    /* ---------- PHONE INPUT ---------- */
    .iti--separate-dial-code input {
        padding-left: 58px;
    }

    .iti__country-list {
        max-width: 100%;
        min-width: unset;
    }

    /* ---------- SUPPORT SECTION ---------- */
    .support-section {
        padding: 80px 16px;
    }

    .support-title {
        font-size: 28px;
    }

    .support-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .support-cards {
        gap: 24px;
    }

    .support-card {
        width: 100%;
        padding: 32px 24px;
    }

        .support-card h3 {
            font-size: 20px;
        }

        .support-card p {
            font-size: 14px;
        }
    /*support section ending*/

    /*dropdown of country*/
    /* PHONE WRAPPER */
    .phone-wrapper {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }

        /* MAKE INPUT FULL WIDTH */
        .phone-wrapper input {
            width: 100%;
            height: 48px;
            padding: 10px 44px 10px 60px;
            font-size: 15px;
            border: 1px solid #dcdcdc;
            border-radius: 6px;
        }

    /* GREEN TICK */
    .valid-tick {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #2ecc71;
        font-size: 18px;
        display: none;
    }

    /* SHOW TICK */
    .phone-wrapper.valid .valid-tick {
        display: block;
    }

    /* FORCE FULL WIDTH (MOBILE FIX) */
    .iti {
        width: 100% !important;
    }

    /* DROPDOWN SAFETY */
    .iti__country-list {
        max-height: 220px;
        overflow-y: auto;
        z-index: 9999;
    }

    /*email consult button message*/
    /* ===== FORM MESSAGES ===== */
    .form-message {
        text-align: center;
        padding: 24px;
        border-radius: 12px;
        margin: 12px 0;
    }

    .success-msg {
        background: linear-gradient(135deg, #d4edda, #c3e6cb);
        border: 2px solid #28a745;
        color: #155724;
    }

    .error-msg {
        background: linear-gradient(135deg, #f8d7da, #f5c6cb);
        border: 2px solid #dc3545;
        color: #721c24;
    }

    .success-icon, .error-icon {
        font-size: 48px;
        margin-bottom: 12px;
        display: block;
    }

    .form-message h4 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .form-message p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .btn-secondary {
        background: transparent;
        border: 2px solid;
        border-radius: 8px;
        padding: 10px 24px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .success-msg .btn-secondary {
        border-color: #28a745;
        color: #28a745;
    }

    .error-msg .btn-secondary {
        border-color: #dc3545;
        color: #dc3545;
    }

    .btn-secondary:hover {
        background: currentColor;
        color: white !important;
    }

    /* Button loading state */
    .submit-btn {
        position: relative;
        overflow: hidden;
    }

        .submit-btn .btn-loading,
        .submit-btn .spinner {
            display: none;
        }

        .submit-btn.loading .btn-text {
            display: none;
        }

        .submit-btn.loading .btn-loading,
        .submit-btn.loading .spinner {
            display: inline-block;
        }

    .spinner {
        width: 18px;
        height: 18px;
        border: 2px solid transparent;
        border-top: currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Hide form when success */
    #contactFormHero.success + .success-msg,
    #contactFormHero.error + .error-msg {
        display: block !important;
    }
