/* 1. The Header - Floating and Rounded */
.modal-header {
    background-color: var(--brand-navy);
    color: white;

    /* A. Make it Round */
    border-radius: 10px; /* Makes the header capsule-shaped */

    /* B. Create White Space Around It */
    margin: 15px 15px 0 15px; /* Top, Right, Bottom, Left spacing */
    /* Note: Bottom margin is 0 so it sits close to the body, or add more if you want a gap there too */

    /* C. Centering */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-bottom: none;
    position: relative;
}

/* 2. The Content Container - White Background */
.modal-content {
    background-color: #fff; /* Ensures the space behind the header margin is white */
    border: none;
    border-radius: 25px; /* Outer card corners */
    overflow: hidden;
    padding: 0; /* Let the header's margin handle the spacing */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* 3. Title Styling */
.modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    width: 100%;
    text-align: center;
    margin: 0;
}

@media (max-width: 575.98px) {
    .modal-title {
        font-size: 1.3rem; /* reduced for mobile */
        line-height: 1.3;
    }
}
/* 4. Close Button Inside the Blue Header */
.btn-close-white {
    position: absolute;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%);
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}
.modal-dialog.modal-sm {
    max-width: 400px;
}

.modal-body {
    padding: 15px;
    background-color: #fff;
}

/* Style the +91 Box */
.input-group-text-custom {
    background-color: white; /* Light gray background */
    color: var(--brand-navy); /* Navy text */
    font-weight: 700; /* Bold Font */
    border: 2px solid var(--brand-navy); /* Thick Border to match input */
    border-right: none; /* Remove right border so it merges cleanly */

    /* ROUNDED LEFT CORNERS ONLY (10px) */
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;

    padding: 10px 15px; /* Spacing to match input height */
    font-size: 1.1rem; /* Match input font size */
}

/* Fix the Input Field inside the Group */
.input-group .phone-input {
    /* ROUNDED RIGHT CORNERS ONLY (10px) */
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;

    /* Reset left corners to square so they touch the +91 box */
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;

    /* Ensure the border matches */
    border: 2px solid var(--brand-navy);
    border-left: 1px solid var(--brand-navy); /* Thin separator line */
}

/* 1. The Input Field (Left Side) */
.input-group .password-input {
    border: 2px solid var(--brand-navy);
    border-right: none; /* Remove right border to merge with eye icon */

    /* Round Left Corners Only */
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;

    z-index: 0; /* Prevents overlap issues */
}

/* 2. The Eye Button (Right Side) */
.password-toggle {
    background-color: #fff;
    border: 2px solid var(--brand-navy);
    color: var(--brand-navy);

    /* Round Right Corners Only */
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;

    padding: 0 15px; /* Adjust spacing around the icon */
    z-index: 0;
}

/* Hover/Focus State for the Eye Button */
.password-toggle:hover,
.password-toggle:focus {
    background-color: #f8f9fa;
    color: var(--brand-navy);
    border-color: var(--brand-navy); /* Keep border color consistent */
    box-shadow: none; /* Remove default bootstrap shadow */
}

/* Optional: Ensure focus ring on input doesn't look weird */
.password-input:focus {
    box-shadow: none;
    border-color: var(--brand-navy);
}

/* Optional: When clicking the input, highlight the +91 box too */
.phone-input:focus {
    z-index: 3; /* Brings input border on top */
}

/* Buttons */
.btn-compact {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease-in-out;
}

.btn-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--vani-primary);
    border: none;
    color: #fff !important;
}

#registerModal .btn-primary {
    background: var(--vani-primary);
}

.btn-link {
    font-weight: 500;
}

/* ===============================
        OTP INPUTS
       =============================== */

.otp-container {
    gap: 8px;
    justify-content: center;
}

.otp-input {
    width: 45px !important;
    height: 45px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    padding: 0 !important;
}

.otp-input:focus {
    border-color: var(--vani-secondary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    outline: none;
}

.countdown {
    color: var(--vani-primary);
    font-weight: bold;
}

/* ===============================
        BADGE-TYPE RADIO BUTTONS
       =============================== */
.btn-badge-role {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--vani-primary-new);
    color: #6c757d;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
    height: 40px;
}

.btn-badge-role:hover {
    background-color: var(--vani-primary-new);
    border-color: #d1d5db;
}

.btn-check:checked + .btn-badge-role {
    color: #fff;
    background-color: var(--vani-primary-new);
    border-color: var(--vani-primary-new);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

#registerModal .btn-check:checked + .btn-badge-role {
    background-color: var(--vani-primary-new);
    border-color: var(--vani-primary-new);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.btn-check:checked + .btn-badge-role i {
    color: #fff;
}

/* Ensure link text color is correct in modals */
.modal-body a {
    color: #001f3f;
    text-decoration: none;
    font-weight: 600;
}

.modal-body a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .modal-dialog.modal-sm {
        max-width: 100%;
        margin: 0.5rem;
        /* optional: small margin from edges */
    }
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 1rem;
    height: 1rem;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* =========================================
       1. FIXED HEADER SETUP
       ========================================= */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease-in-out;
    background: transparent;
    will-change: transform, background;
}

/* =========================================
       2. HIDDEN STATE (Scrolling Down)
       ========================================= */
.site-nav.nav-hidden {
    transform: translateY(-100%);
}

/* =========================================
       3. SCROLLED STATE (Scrolling Up - White BG)
       ========================================= */
.site-nav.scrolled {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
       4. LOGO SWAPPING
       ========================================= */
.logo-default {
    display: block;
}

.logo-sticky {
    display: none;
}

/* Scrolled: Hide Default, Show Sticky */
.site-nav.scrolled .logo-default {
    display: none;
}

.site-nav.scrolled .logo-sticky {
    display: block;
}

/* =========================================
       5. LINK COLORS
       ========================================= */
.site-navigation {
    display: flex;
    align-items: center;
    /* vertical center */
    justify-content: space-between;
    /* logo left, buttons right */
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: auto;
    height: auto;
    max-width: 300px;
    max-height: 110px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Laptop / Small Desktop */
@media (max-width: 992px) {
    .logo-img {
        max-width: 250px;
        max-height: 90px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .logo-img {
        max-width: 200px;
        max-height: 70px;
    }
}

/* Mobile Landscape */
@media (max-width: 480px) {
    .logo-img {
        max-width: 160px;
        max-height: 60px;
    }
}

/* Mobile Portrait */
@media (max-width: 360px) {
    .logo-img {
        max-width: 130px;
        max-height: 50px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Default (Transparent) -> White Links */
.site-navigation .site-menu > li > a {
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Scrolled (White BG) -> Dark Links */
.site-nav.scrolled .site-navigation .site-menu > li > a {
    color: #00204a;
}

.site-nav.scrolled .site-navigation .site-menu > li > a:hover {
    color: var(--vani-primary);
}

/* =========================================
       6. BURGER MENU (Consolidated)
       ========================================= */
a.burger {
    width: 45px;
    height: 45px;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    background: transparent;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 0;
    transition: all 0.3s ease;

    /* Default: White Border */
    border: 3px solid #fff;
}

/* Burger Hover (Default) */
a.burger:hover {
    /* transform: translateX(-4px) scale(0.9); */
    background: rgba(255, 255, 255, 0.2);
}

/* Burger Lines (Shared Styles) */
a.burger:before,
a.burger span,
a.burger:after {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 2px;
    position: absolute;
    opacity: 1;
    content: "";
    transition: all 0.35s ease;

    /* Default: White Lines */
    background: #fff;
}

/* Line Positions */
a.burger:before {
    top: 13px;
}

a.burger span {
    top: 21px;
}

a.burger:after {
    top: 29px;
}

/* Hover Micro-Motion */
/* a.burger:hover:before {
    top: 15px;
}

a.burger:hover:after {
    top: 27px;
} */

/* --- Scrolled State (White Header) for Burger --- */
.site-nav.scrolled a.burger {
    border-color: var(--vani-primary-new);
}

.site-nav.scrolled a.burger:hover {
    background: var(--vani-primary-new);
}

/* Lines turn Dark Blue when scrolled */
.site-nav.scrolled a.burger:before,
.site-nav.scrolled a.burger span,
.site-nav.scrolled a.burger:after {
    background: var(--vani-primary-new);
}

/* Lines turn White when hovering in scrolled state */
.site-nav.scrolled a.burger:hover:before,
.site-nav.scrolled a.burger:hover span,
.site-nav.scrolled a.burger:hover:after {
    background: #fff;
}

/* =========================================
       7. ENQUIRY BUTTON
       ========================================= */
.enquiry-floating-btn {
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: 3px solid #fff;
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.05rem;
}

.enquiry-floating-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    /* transform: scale(0.95); */
}

/* --- Scrolled State (White Header) for Enquiry --- */
.site-nav.scrolled .enquiry-floating-btn {
    color: var(--vani-primary-new);
    border-color: var(--vani-primary-new);
}

.site-nav.scrolled .enquiry-floating-btn:hover {
    background: var(--vani-primary-new);
    color: #fff;
    /* transform: translateX(-4px) scale(0.95); */
}

/* =========================================
       8. MISC
       ========================================= */
.search-section-wrapper {
    z-index: 10;
}

@media (max-width: 768px) {
    .enquiry-floating-btn {
        display: none !important;
    }
}

/* 2. The Labels - Bold & Dark */
.form-label {
    font-weight: 700;
    /* Bold label */
    color: var(--brand-navy);
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: block;
}

/* 3. The Inputs - Thick Border & Rounded */
.form-control,
.form-select {
    border: 2px solid var(--brand-navy);
    /* THICK BORDER */
    border-radius: 10px;
    /* Rounded corners */
    padding: 10px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    /* Bold text inside input */
    color: #000;
    box-shadow: none;
    height: 50px;
    /* Taller inputs */
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.2);
    background-color: #fff;
}

/* 4. The Button - Dark Blue Block */
.btn-brand {
    background-color: var(--brand-navy);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    width: 100%;
    /* Full width */
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-brand:hover {
    background-color: #003366;
    color: white;
}

/* --- RESULT BOXES --- */
.result-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #e9ecef;
    text-align: center;
    height: 100%;
    /* Ensure equal height in grid */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 1.1rem;
    color: var(--brand-navy);
    font-weight: 800;
    margin-bottom: 0;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .result-value {
        font-size: 1.3rem;
    }

    .result-label {
        font-size: 0.85rem;
    }
}

/* Charts */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    margin-bottom: 20px;
}

.amount-hint {
    font-size: 0.8rem;
    color: var(--brand-navy);
    font-weight: 600;
    margin-top: 4px;
    margin-left: 5px;
}

/* Tabs styling */
.nav-pills .nav-link {
    color: var(--brand-navy);
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: var(--brand-navy);
    color: #fff;
}

.custom-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--brand-navy);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-check input[type="checkbox"]:checked {
    background-color: var(--brand-navy);
}

.custom-check input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: -2px;
    left: 3px;
    font-size: 12px;
    color: #fff;
}

.custom-check label {
    font-size: 13px;
    color: #6c757d;
    cursor: pointer;
    user-select: none;
}

.custom-check input[type="checkbox"]:hover {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.custom-check input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-navy), transparent 70%);
}
