@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Hind:wght@400;500;600;700&display=swap');

:root {
    --blue: #0072bc;
    --blue-dark: #0D3E70;
    --sky: #007bb6;
    --black: #161616;
    --green: #3E9E4E;
    --red: #C0392B;
    --paper: #FFFFFF;
    --paper-2: #F4F8FB;
    --disabled: #E9EDF1;
    --ink: #1B1D1F;
    --ink-soft: #4F5A63;
    --line: #D0D8E0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Hind', 'Poppins', system-ui, sans-serif;
    background: var(--paper-2);
    color: var(--ink);
    overflow-x: hidden !important;
    width: 100%;
    transition: transform 0.2s ease, zoom 0.2s ease;
    transform-origin: top center;
}

a {
    color: inherit;
    text-decoration: none;
}

/* WRAPPER MATCHING NAVBAR AND MAIN CONTENT WIDTH EXACTLY */
.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* HEADER */
header.site {
    background: linear-gradient(to bottom, #ffffff 0%, #e0f2f1 50%, #b2dfdb 100%);
    border-bottom: 2px solid #333333;
    padding: 8px 0 5px 0;
    max-width: 1180px;
    border-radius: 6px 6px 0 0;
    margin: 0 auto;
}

/* TOP RIGHT ACCESSIBILITY CONTROLS BAR */
.top-right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(0, 114, 188, 0.25);
}

.skip-to-content-btn,
.screen-reader-btn,
.feedback-top-btn {
    font-size: 0.75rem;
    color: #0072bc;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #0072bc;
    padding: 2px 8px;
    border-radius: 3px;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .skip-to-content-btn:hover,
    .screen-reader-btn:hover,
    .feedback-top-btn:hover,
    .skip-to-content-btn:focus,
    .screen-reader-btn:focus,
    .feedback-top-btn:focus {
        background: #0072bc;
        color: #ffffff;
        outline: none;
    }

.zoom-box {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .zoom-box button {
        background: #ffffff;
        border: 1px solid #0072bc;
        color: #0072bc;
        font-weight: 700;
        cursor: pointer;
        padding: 2px 6px;
        font-size: 0.75rem;
        border-radius: 3px;
        line-height: 1.2;
    }

        .zoom-box button:hover {
            background: #0072bc;
            color: #ffffff;
        }

/* MAIN CONTENT FOCUS ACCESSIBILITY */
#main-content-wrap:focus {
    outline: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.emblem {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.8rem;
    background: #fff;
}

.brand-logo h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--blue);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand-sub {
    color: #0b51a0;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
    flex: 1;
}

.admin-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bb6;
    font-weight: 700;
    font-size: 0.88rem;
}

.admin-box .a-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #007bb6;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 2px; /* Inner padding added so edges don't cut */
}
.admin-box .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 'cover' ki jagah 'contain' karne se image nahi kategi */
    border-radius: 50%;
}

.lang-toggle {
    display: flex;
    gap: 4px;
}

    .lang-toggle button {
        background: transparent;
        border: 1px solid #0072bc;
        color: #0072bc;
        font-weight: 600;
        cursor: pointer;
        padding: 2px 6px;
        font-size: 0.8rem;
        border-radius: 3px;
        margin: 0 1px;
    }

        .lang-toggle button.active {
            background: #0072bc;
            color: #ffffff;
        }

        .lang-toggle button:hover {
            background: #0072bc;
            color: #ffffff;
        }
/* ================= POPUP MODAL STYLES ================= */
.jk-modal-overlay {
    display: none; /* Initially Hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.jk-modal-container {
    position: relative;
    background: #e3f2fd linear-gradient(180deg, #d4f0f7 0%, #ffffff 70%) !important;
    width: 100%;
    max-width: 960px;
    max-height: 90vh; /* Screen me fit hone ke liye */
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid #0072bc;
    overflow: hidden;
    animation: fadeInModal 0.25s ease-in-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close button (top right red X box) */
.jk-modal-close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #e53935;
    color: #ffffff;
    border: 1px solid #c62828;
    border-radius: 3px;
    width: 26px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    z-index: 10;
}

    .jk-modal-close:hover {
        background: #b71c1c;
    }

/* Header Banner */
.jk-modal-header {
    background-color: #0072bc;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 10px 15px;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Red Notice Line */
.jk-modal-note {
    color: #d32f2f;
    font-weight: bold;
    font-size: 0.82rem;
    padding: 8px 15px 4px 15px;
}

/* Modal Content Padding */
.jk-modal-body {
    padding: 10px 20px 20px 20px;
    overflow-y: auto; /* Content scroll hone lagega */
    -webkit-overflow-scrolling: touch;
}

/* 3-Column Grid Layout */
.jk-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
}

.jk-field-group {
    display: flex;
    flex-direction: column;
}

    .jk-field-group label {
        font-size: 0.88rem;
        font-weight: 700;
        color: #222222;
        margin-bottom: 3px;
    }

/* Input Box & Icon Addon */
.jk-input-box {
    display: flex;
    align-items: center;
    border: 1px solid #b0bec5;
    border-radius: 3px;
    background: #ffffff;
    overflow: hidden;
    height: 32px;
}

.jk-addon {
    background-color: #e9ecef;
    border-right: 1px solid #b0bec5;
    color: #0072bc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 100%;
    font-size: 13px;
}

.jk-input-box input,
.jk-input-box select {
    border: none;
    outline: none;
    padding: 0 8px;
    width: 100%;
    height: 100%;
    font-size: 0.88rem;
    color: #333333;
    background: transparent;
}

/* Captcha Section */
.jk-captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.jk-captcha-label {
    font-weight: bold;
    font-size: 0.95rem;
    color: #222222;
}

.jk-captcha-badge {
    background-color: #0072bc;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05rem;
    padding: 3px 14px;
    border-radius: 3px;
    letter-spacing: 2px;
}

.jk-captcha-input {
    width: 220px;
}

/* Buttons Row */
.jk-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.jk-sep {
    color: #0072bc;
    font-weight: bold;
}

.jk-btn {
    padding: 6px 20px;
    font-size: 0.88rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.jk-btn-primary {
    background-color: #337ab7;
    color: #ffffff;
    border: 1px solid #2e6da4;
}

    .jk-btn-primary:hover {
        background-color: #286090;
    }

/* Responsive Grid for Mobile */
@media (max-width: 768px) {
    .jk-modal-overlay {
        padding: 8px;
        align-items: flex-start; /* Top se proper spacing */
        padding-top: 20px;
    }
    .jk-grid-3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .jk-modal-container {
        max-height: 88vh; /* Mobile screen height adjustment */
    }

    .jk-modal-body {
        padding: 10px 12px 15px 12px;
    }

    .
    .jk-captcha-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .jk-captcha-input {
        width: 100%;
    }

    .jk-btn-row {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
        .jk-btn-row .jk-btn {
            width: 100%; /* Full width buttons for mobile */
        }

    .jk-sep {
        display: none;
    }
}

/* NAVBAR DESIGN */
/*.navbar {
    background: var(--black);
    max-width: 1181px;
    position: relative;
    z-index: 1000;
    margin-bottom: 0 !important;
    margin: 0 auto;
    border-radius: 4px;
}

nav.main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.navbar .nav-item {
    position: relative;
    display: inline-block;
}

    .navbar .nav-item a {
        display: block;
        padding: 6px 14px;
        color: #ffffff;
        font-size: 0.88rem;
        font-weight: 600;
        white-space: nowrap;
        transition: background 0.2s ease;
    }

        .navbar .nav-item a:hover,
        .navbar .nav-item a.current {
            background: var(--blue);
        }

.nav-item.has-dd .dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--blue-dark);
    padding: 0;
    margin: 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: none;
}

.nav-item.has-dd:hover .dropdown {
    display: block !important;
}

.nav-item.has-dd .dropdown li a {
    padding: 10px 16px !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    background: transparent;
}

.nav-item.has-dd .dropdown li:last-child a {
    border-bottom: none;
}

.nav-item.has-dd .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.menu-toggle {
    display: none;
    background: var(--black);
    border: 0;
    cursor: pointer;
    padding: 10px 16px;
    width: 100%;
    color: #fff;
    font-weight: 600;
    text-align: left;
}*/
/* =========================================================
   NAVBAR DESIGN (Desktop Single-Line + Mobile Left Align Fix)
   ========================================================= */
.navbar {
    background: var(--black);
    max-width: 1181px;
    margin: 0 auto;
    border-radius: 4px;
    position: relative;
    z-index: 1000;
    min-height: 44px;
}

/* Desktop Navigation Layout */
nav.main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar .nav-item {
    position: relative;
    display: inline-block;
    flex: 1 1 auto;
    text-align: center;
}

    .navbar .nav-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 8px;
        color: #ffffff;
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
        transition: background 0.2s ease;
        text-align: center;
    }

        .navbar .nav-item > a:hover,
        .navbar .nav-item.open > a,
        .navbar .nav-item a.current {
            background: var(--blue);
        }

/* Single Dropdown Arrow Icon (Double Arrow Prevention) */
.has-dd > a::after {
    content: "" !important; /* Removes CSS generated duplicate arrow */
}

/* Submenu Dropdown Box (Desktop) */
.nav-item.has-dd .dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--blue-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(13, 62, 112, 0.25);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    padding: 0;
    margin: 0;
}

@media (min-width: 769px) {
    .nav-item.has-dd:hover .dropdown,
    .nav-item.has-dd.open .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block !important;
    }
}

.nav-item.has-dd .dropdown li a {
    padding: 10px 14px !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    text-align: left !important;
    justify-content: flex-start !important;
}

.nav-item.has-dd .dropdown li:last-child a {
    border-bottom: none;
}

.nav-item.has-dd .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Responsive Toggle & Left Alignment (Exact like index.html) */
.menu-toggle {
    display: none;
    background: var(--black);
    border: 0;
    cursor: pointer;
    padding: 12px 16px;
    width: 100%;
    color: #fff;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav.main {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--black);
    }

        nav.main.open {
            display: flex;
        }

    .navbar .nav-item {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

        .navbar .nav-item a {
            justify-content: flex-start !important; /* Forces left alignment in mobile menu */
            padding: 12px 16px;
            text-align: left !important;
            font-size: 0.88rem;
        }

    /* Mobile Dropdown initial hidden */
    .nav-item.has-dd .dropdown {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important; /* By default hidden rahega */
        background: #092a4c !important; /* Nested sub-menu ke liye thoda dark blue background */
        border-radius: 0 !important;
        border: none !important;
    }

    /* Jab click karne par open class add hogi tab dikhega */
    .nav-item.has-dd.open .dropdown {
        display: block !important;
    }

    .nav-item.has-dd .dropdown li a {
        padding-left: 30px !important; /* Sub-menu items ke liye left indent */
    }
}


/* MAIN PANEL CONTAINER */
.panel {
    background: linear-gradient(135deg, #EAF6FB 0%, #F7FCFE 45%, #FFFFFF 100%);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    margin-top: 10px !important;
}

    .panel .wrap {
        max-width: 1140px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

.main-content-box {
    background: #ffffff;
    border: 1px solid #c3d5e5;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.title-bar {
    background: var(--blue);
    color: #fff;
    text-align: center;
    padding: 12px 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    text-transform: uppercase;
    border-bottom: 2px solid #005a96;
}

.box-body {
    padding: 12px 20px;
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 8px 15px;
    align-items: center;
    margin-top: 5px;
}

.form-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
}

.input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 240px;
}

.cap-input-grp {
    max-width: 200px;
    min-width: 160px;
}

.input-icon {
    width: 38px;
    height: 38px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 5px 0 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.input-group input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 0 5px 5px 0;
    font: inherit;
    font-size: 0.88rem;
    outline: none;
    background: var(--paper);
    height: 38px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    height: 38px;
}

.btn-blue {
    background: var(--blue);
    color: #fff;
}

.btn-green {
    background: var(--green);
    color: #fff;
}

.captcha-box {
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 1rem;
    height: 38px;
    display: flex;
    align-items: center;
    cursor: pointer;
    letter-spacing: 2px;
}

.notice-item.warning {
    color: #b33939;
    background-color: #fff5f5;
    padding: 12px 16px;
    border-radius: 5px;
    border-left: 4px solid var(--red);
    font-size: 0.92rem;
    font-weight: 600;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 25px;
}

.form-msg {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: 0.9rem;
}

    .form-msg.err {
        color: var(--red);
    }

    .form-msg.ok {
        color: var(--green);
    }

footer {
    background: var(--black);
    color: #C9CFD4;
    padding: 15px 0;
    max-width: 1180px;
    margin: 0 auto;
    margin-top: 20px;
    border-radius: 0 0 6px 6px;
    box-sizing: border-box;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    padding: 0 20px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .top-right-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .box-body {
        padding: 15px;
    }

    nav.main {
        display: none;
        flex-direction: column;
    }

        nav.main.open {
            display: flex;
        }

    .menu-toggle {
        display: block;
    }

    .nav-item.has-dd .dropdown {
        position: static;
        width: 100%;
    }

    .header-inner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px 15px !important;
        gap: 10px !important;
        text-align: center !important;
    }
}
