/* ============================================================
   JNS ENQUIRY PORTAL — Design System
   Jamnabai Narsee International School
   Brand palette: Royal Blue #1565c0 / Mid #2679c0 / Sky #60befd
   Mirror of cns-enquiry-portal.css structure — maroon replaced with JNS blue
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Sora:wght@600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
    --jns-primary:       #1565c0;
    --jns-primary-dark:  #0d47a1;
    --jns-primary-mid:   #2679c0;
    --jns-accent:        #4a9fd4;
    --jns-sky:           #60befd;
    --jns-sky-light:     #90d0fe;
    --jns-ultra-light:   #ddeeff;
    --jns-page-bg:       #f0f7fc;
    --jns-dark:          #0f2b50;
    --jns-text:          #1a2f4a;
    --jns-muted:         #4a6080;
    --jns-border:        #c0d8f0;
    --jns-card-left:     linear-gradient(145deg, #0d47a1 0%, #1565c0 45%, #2679c0 75%, #4a9fd4 100%);
    --jns-white:         #ffffff;
    --jns-radius:        14px;
    --jns-radius-sm:     8px;
    --jns-shadow:        0 8px 32px rgba(21,101,192,.15);
    --jns-shadow-card:   0 4px 24px rgba(21,101,192,.12);
    --jns-font-body:     'DM Sans', system-ui, sans-serif;
    --jns-font-head:     'Sora', system-ui, sans-serif;
}

/* ── Page Shell ──────────────────────────────────────────── */
body.hold-transition.skin-blue.layout-top-nav {
    font-family: var(--jns-font-body);
    background: var(--jns-page-bg);
    color: var(--jns-text);
}

.lpsgs-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--jns-page-bg);
}

.lpsgs-content-area {
    flex: 1;
    margin-left: 0 !important;
    padding-top: 0 !important;
}

.lpsgs-content-area section.content {
    padding: 0;
}

.lpsgs-render-body {
    min-height: calc(100vh - 120px);
}

/* ════════════════════════════════════════
   FOOTER — edb-footer (post-login pages)
   ════════════════════════════════════════ */
.edb-footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(21,101,192, 0.14);
    box-shadow: 0 -4px 20px rgba(21,101,192, 0.06);
    font-family: var(--jns-font-body);
}

.edb-footer-inner {
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.edb-footer-copy { font-size: 12px; color: #6b7280; margin: 0; }
.edb-footer-copy strong { font-weight: 600; color: var(--jns-dark); }

.edb-footer-powered { font-size: 12px; color: #6b7280; margin: 0; display: flex; align-items: center; gap: 5px; }

.edb-footer-powered a {
    font-weight: 600;
    background: linear-gradient(90deg, var(--jns-primary-dark), var(--jns-primary-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
    transition: opacity 0.15s;
}
.edb-footer-powered a:hover { opacity: 0.75; }

@media (max-width: 576px) {
    .edb-footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ════════════════════════════════════════
   NAVBAR — edb-navbar (post-login pages)
   ════════════════════════════════════════ */
.edb-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(21,101,192, 0.14);
    box-shadow: 0 4px 20px rgba(21,101,192, 0.08);
    font-family: var(--jns-font-body);
}

.edb-navbar-inner {
    margin: 0 auto;
    padding: 0 20px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.edb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.edb-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(13,71,161,0.28);
    flex-shrink: 0;
    overflow: hidden;
}

.edb-brand-icon img { max-width: 26px; max-height: 26px; object-fit: contain; }
.edb-brand-icon-text { font-family: var(--jns-font-head); font-size: 13px; font-weight: 700; color: #fff; }

.edb-brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.edb-brand-name { font-family: var(--jns-font-head); font-size: 14px; font-weight: 700; color: var(--jns-dark); line-height: 1.2; display: block; }
.edb-brand-sub { font-size: 11px; font-weight: 400; color: #6b7280; display: block; }

.edb-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.edb-nav li { list-style: none; }

.edb-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 9px !important;
    font-size: 13px;
    font-weight: 500;
    color: #374151 !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.edb-nav a:hover { background: rgba(21,101,192,0.08); color: var(--jns-primary-dark) !important; }
.edb-nav a i { font-size: 13px; color: var(--jns-primary); }

.edb-nav .edb-nav-logout:hover { background: #fee2e2; color: #b91c1c !important; }
.edb-nav .edb-nav-logout:hover i { color: #b91c1c; }

.edb-nav .edb-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px !important;
    background: var(--jns-ultra-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--jns-primary-dark) !important;
    cursor: default;
}
.edb-nav .edb-user-pill i { color: var(--jns-primary); font-size: 12px; }
.edb-nav .edb-user-pill:hover { background: var(--jns-ultra-light); color: var(--jns-primary-dark) !important; }

.edb-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary-mid));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edb-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(21,101,192,0.25);
    border-radius: 8px !important;
    padding: 7px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}
.edb-toggle span { display: block; width: 18px; height: 2px; background: var(--jns-primary); border-radius: 2px !important; transition: transform 0.2s, opacity 0.2s; }

.edb-nav-collapse { display: flex; }

@media (max-width: 768px) {
    .edb-toggle { display: flex; }

    .edb-nav-collapse {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(21,101,192,0.12);
        box-shadow: 0 8px 24px rgba(13,71,161,0.10);
        padding: 10px 16px 14px;
    }

    .edb-nav-collapse.open { display: block; }

    .edb-nav { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
    .edb-nav li { width: 100%; }
    .edb-nav a { width: 100%; }
}

/* ════════════════════════════════════════
   LOGIN / SELECTION CARD — mcl-* — glassmorphism
   mirrors cns-enquiry-portal.css §mcl-* exactly, JNS blue in place of maroon
   ════════════════════════════════════════ */
.editor-error { margin: 0 !important; }

.mcl-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: var(--jns-font-body);
    position: relative;
    overflow: hidden;
    background: #fbfdff;
}

.mcl-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 15%, rgba(21,101,192,0.16) 0%, transparent 40%),
        radial-gradient(circle at 90% 88%, rgba(13,71,161,0.14) 0%, transparent 42%);
    z-index: 0;
    pointer-events: none;
}

.mcl-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 82% 12%, rgba(74,159,212,0.12) 0%, transparent 30%),
        radial-gradient(circle at 8% 85%, rgba(21,101,192,0.10) 0%, transparent 32%);
    z-index: 0;
    pointer-events: none;
}

.mcl-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 720px;
    border-radius: 24px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow:
        0 2px 0 rgba(255,255,255,0.15) inset,
        0 24px 70px rgba(5,20,45,0.40),
        0 4px 16px rgba(5,20,45,0.20);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

/* ── Left panel — school branding ── */
.mcl-left {
    width: 38%;
    flex-shrink: 0;
    background: var(--jns-card-left);
    padding: 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.mcl-left::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.08);
}

.mcl-left::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.06);
}

.mcl-logo-ring {
    padding: 10px;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.92);
    border: 2px solid rgba(255,255,255,0.80);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.mcl-logo-ring img { max-height: 160px; max-width: 160px; object-fit: contain; }
.mcl-logo-ring .mcl-logo-fallback { font-size: 38px; color: var(--jns-primary); }

.mcl-school-name {
    font-family: var(--jns-font-head);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.mcl-school-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.mcl-pill-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }

.mcl-pill {
    font-size: 11px;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 20px !important;
    padding: 3px 11px;
}

/* ── Right panel — login/selection form ── */
.mcl-right {
    flex: 1;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mcl-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--jns-primary);
    margin-bottom: 4px;
}

.mcl-title {
    font-family: var(--jns-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--jns-dark);
    margin-bottom: 22px;
}

.mcl-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px !important;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #b91c1c;
    line-height: 1.5;
}
.mcl-error-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.mcl-info {
    background: #fbfdff;
    border: 1px solid var(--jns-border);
    border-radius: 10px !important;
    padding: 9px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--jns-primary);
}

.mcl-field { margin-bottom: 16px; }

.mcl-label { display: block; font-size: 12px; font-weight: 500; color: #6b7280; margin-bottom: 6px; }

.mcl-input-wrap { position: relative; display: flex; align-items: center; }

.mcl-input-wrap .mcl-ico {
    position: absolute;
    left: 12px;
    font-size: 17px;
    color: var(--jns-primary);
    pointer-events: none;
    opacity: 0.65;
}

.mcl-input-wrap input,
.mcl-input-wrap .form-control {
    width: 100%;
    padding: 10px 12px 10px 38px;
    font-size: 14px;
    font-family: var(--jns-font-body);
    border: 1.5px solid var(--jns-border) !important;
    border-radius: 10px !important;
    background: rgba(240,247,252,0.9);
    color: var(--jns-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none !important;
    height: auto !important;
}

.mcl-input-wrap input:focus,
.mcl-input-wrap .form-control:focus {
    border-color: var(--jns-primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.14) !important;
    background: #fff;
}

.mcl-input-wrap .mcl-eye-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 15px;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px !important;
    transition: color 0.15s;
}
.mcl-input-wrap .mcl-eye-btn:hover { color: var(--jns-primary); }

.mcl-input-wrap input.input-validation-error,
.mcl-input-wrap .form-control.input-validation-error {
    border-color: #f87171 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(248,113,113,0.15) !important;
}

.edb-enq-section input.input-validation-error,
.edb-enq-section .form-control.input-validation-error {
    border-color: #f87171 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(248,113,113,0.15) !important;
}
.edb-photo-area:has(.input-validation-error) {
    border: 2px dashed #f87171;
    background: #fff5f5;
    border-radius: 8px !important;
}

.field-validation-valid, span.field-validation-valid { display: none !important; }
.editor-error:empty { display: none; }
.ui-corner-all { border-radius: 6px !important; }

/* ── Captcha ── */
.mcl-captcha-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mcl-captcha-img { flex-shrink: 0; border: 1.5px solid var(--jns-border); border-radius: 8px !important; overflow: hidden; }

.mcl-captcha-refresh {
    background: none;
    border: 1.5px solid var(--jns-border);
    border-radius: 8px !important;
    padding: 6px 9px;
    cursor: pointer;
    color: var(--jns-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}
.mcl-captcha-refresh:hover { background: var(--jns-ultra-light); }

.mcl-captcha-field {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--jns-font-body);
    border: 1.5px solid var(--jns-border);
    border-radius: 10px !important;
    background: rgba(240,247,252,0.9);
    color: var(--jns-dark);
    outline: none;
    height: auto !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none !important;
}
.mcl-captcha-field:focus { border-color: var(--jns-primary); box-shadow: 0 0 0 3px rgba(21,101,192,0.14) !important; background: #fff; }

.mcl-captcha-field-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mcl-captcha-field-wrap .mcl-captcha-field { width: 100%; border: 1.5px solid var(--jns-border) !important; border-radius: 10px !important; }
.mcl-captcha-field.input-validation-error { border-color: #f87171 !important; background: #fff5f5 !important; box-shadow: 0 0 0 3px rgba(248,113,113,0.15) !important; }

/* ── Submit button ── */
.mcl-btn-submit {
    width: 100%;
    padding: 11px;
    font-family: var(--jns-font-body);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--jns-primary-dark) 0%, var(--jns-primary-mid) 100%);
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(13,71,161,0.35);
    animation: mcl-pulse 2.4s ease-in-out infinite;
}
.mcl-btn-submit:hover { opacity: 0.92; box-shadow: 0 6px 22px rgba(13,71,161,0.45); }
.mcl-btn-submit:active { transform: scale(0.985); }

@keyframes mcl-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(13,71,161,0.35); }
    50%       { box-shadow: 0 4px 28px rgba(13,71,161,0.55); }
}

.mcl-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--jns-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--jns-primary-dark);
    background: var(--jns-ultra-light);
    border: 1.5px solid var(--jns-border);
    border-radius: 10px !important;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.mcl-btn-secondary:hover { background: #cfe4f7; border-color: var(--jns-primary-mid); color: var(--jns-dark); text-decoration: none; }

.mcl-btn-row { display: flex; gap: 10px; align-items: stretch; }
.mcl-btn-row .mcl-btn-submit { flex: 1; margin-top: 0; padding: 11px 16px; font-size: 14px; }
.mcl-btn-row .mcl-btn-secondary { flex: 1; padding: 11px 16px; font-size: 14px; }

.mcl-links { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.mcl-link-line { font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mcl-link-line a { color: var(--jns-primary); text-decoration: none; font-weight: 500; }
.mcl-link-line a:hover { text-decoration: underline; }

.mcl-note {
    margin-top: 12px;
    font-size: 12px;
    color: #374151;
    background: #f5f9fd;
    border: 1px solid var(--jns-border);
    border-radius: 8px !important;
    padding: 10px 12px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .mcl-card { flex-direction: column; border-radius: 20px !important; }
    .mcl-left { display: flex; width: 100%; flex-direction: row; align-items: center; justify-content: center; gap: 14px; padding: 1.25rem 1.5rem; }
    .mcl-left::before, .mcl-left::after { display: none; }
    .mcl-logo-ring { padding: 6px; flex-shrink: 0; }
    .mcl-logo-ring img { max-height: 56px; max-width: 56px; }
    .mcl-school-name { font-size: 13px; text-align: left; }
    .mcl-school-sub { text-align: left; }
    .mcl-pill-row { display: none; }
    .mcl-right { padding: 1.5rem 1.25rem; }
    .mcl-btn-row { flex-direction: column; }
}

/* ════════════════════════════════════════
   MAIN TABS — pill-style bar
   ════════════════════════════════════════ */
.edb-main-tabs-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.edb-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0 0 -1px;
    padding: 8px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(21,101,192,0.14);
    border-bottom: none;
    border-radius: var(--jns-radius) var(--jns-radius) 0 0 !important;
}

.edb-tab-bar > li {
    border-radius: 10px !important;
    transition: background .15s;
    pointer-events: none !important;
    cursor: default !important;
}

.edb-tab-bar > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-family: var(--jns-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--jns-muted);
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: background .15s, color .15s;
}

.edb-tab-bar > li:hover > a {
    background: rgba(21,101,192,0.08);
    color: var(--jns-primary-dark);
}

.edb-tab-bar > li.active {
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary-mid));
    box-shadow: 0 3px 10px rgba(21,101,192,0.3);
}

.edb-tab-bar > li.active > a {
    color: #fff !important;
    background: transparent !important;
}

.edb-tab-bar li.active a {
    pointer-events: none !important;
    cursor: default !important;
}

.edb-tab-bar > li > a .fa { opacity: .85; }

.edb-tab-content-wrap {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(21,101,192,0.14);
    border-radius: 0 0 var(--jns-radius) var(--jns-radius) !important;
    box-shadow: var(--jns-shadow-card);
    padding: 20px 22px;
}

.edb-main-tabs-wrap .tab-content > .tab-pane { display: none; }
.edb-main-tabs-wrap .tab-content > .tab-pane.active { display: block; }

@media (max-width: 768px) {
    .edb-tab-bar > li > a { padding: 7px 11px; font-size: 12px; }
}

/* ════════════════════════════════════════
   SELECTION PAGE — edb-sel-*
   ════════════════════════════════════════ */
.edb-sel-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--jns-page-bg);
    background-image: radial-gradient(ellipse at 12% 15%, rgba(21,101,192,0.13) 0%, transparent 50%), radial-gradient(ellipse at 88% 85%, rgba(74,159,212,0.13) 0%, transparent 50%);
    font-family: var(--jns-font-body);
}

.edb-sel-card {
    display: flex;
    width: 100%;
    max-width: 860px;
    background: #fff;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(13,71,161,0.16);
    overflow: hidden;
}

.edb-sel-left {
    flex: 0 0 40%;
    background: var(--jns-card-left);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.edb-sel-right {
    flex: 1;
    background: rgba(255,255,255,0.90);
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edb-sel-form-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 19px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(13,71,161,0.28);
}

.edb-sel-form-title {
    font-family: var(--jns-font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--jns-dark);
    margin-bottom: 4px;
}

.edb-sel-form-sub {
    font-size: 13px;
    color: var(--jns-muted);
    margin-bottom: 20px;
}

/* ── Form controls rendered inside the selection card — dropdowns/inputs have
   no border-radius or JNS styling otherwise, since plain .form-control falls
   back to bare Bootstrap defaults here. ── */
.edb-sel-right .form-control,
.edb-sel-right .form__input,
.edb-sel-shell .form-control,
.edb-sel-shell .form__input {
    width: 100% !important;
    height: 44px !important;
    padding: 8px 12px 8px 40px !important;
    font-family: var(--jns-font-body) !important;
    font-size: 13.5px !important;
    color: var(--jns-dark) !important;
    background-color: rgba(240,247,252,0.9) !important;
    border: 1.5px solid var(--jns-border) !important;
    border-radius: 11px !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s, background-color .2s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    padding-right: 32px !important;
}

.edb-sel-right .form-control:focus,
.edb-sel-right .form__input:focus,
.edb-sel-shell .form-control:focus,
.edb-sel-shell .form__input:focus {
    border-color: var(--jns-primary) !important;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12) !important;
    background-color: #fff !important;
}

.edb-sel-field { margin-bottom: 14px; }
.edb-sel-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--jns-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.edb-sel-field label i { color: var(--jns-primary-mid); font-size: 11px; width: 12px; text-align: center; }

.edb-sel-input-wrap { position: relative; }
.edb-sel-input-wrap .edb-sel-input-ico {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--jns-primary-mid);
    opacity: .7;
    pointer-events: none;
    z-index: 1;
}

.edb-sel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.edb-sel-error {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #b91c1c;
    background: #fee2e2;
    border-left: 3px solid #f87171;
    border-radius: 0 8px 8px 0 !important;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.edb-sel-val {
    font-size: 11px;
    color: #b91c1c;
    margin-top: 3px;
    padding-left: 2px;
}

.edb-sel-btn {
    width: 100%;
    padding: 11px;
    font-family: var(--jns-font-body);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--jns-primary-dark), var(--jns-primary-mid));
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(13,71,161,0.28);
    animation: edb-sel-pulse 2s ease-in-out infinite;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.edb-sel-btn:hover { opacity: .9; }
.edb-sel-btn:active { transform: scale(0.98); }

@keyframes edb-sel-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(13,71,161,0.28); }
    50%       { box-shadow: 0 4px 22px rgba(13,71,161,0.50); }
}

.edb-sel-closed-banner {
    margin-top: 18px;
    padding: 16px 18px;
    background: rgba(21,101,192,0.06);
    border: 1.5px solid rgba(21,101,192,0.2);
    border-radius: 12px !important;
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    text-align: center;
}

.edb-sel-closed-banner strong { color: var(--jns-dark); }
.edb-sel-closed-banner a { color: var(--jns-primary); font-weight: 600; text-decoration: underline; }

@media (max-width: 640px) {
    .edb-sel-page { padding: 1rem 0.75rem; align-items: flex-start; padding-top: 2rem; }
    .edb-sel-left { display: none; }
    .edb-sel-card { border-radius: 16px !important; }
    .edb-sel-right { padding: 2rem 1.5rem; }
    .edb-sel-row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .edb-sel-right { padding: 1.5rem 1.25rem; }
    .edb-sel-form-title { font-size: 18px; }
}

/* Quick Enquiry selection shell */
.edb-sel-shell {
    width: 80%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.80);
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(21,101,192,0.10);
    padding: 1.25rem 1.5rem 1.5rem;
}

.edb-enq-page-quick .edb-enq-section,
.edb-enq-page-quick .edb-enq-action-row {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.edb-sel-shell-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.edb-sel-shell-header .edb-sel-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.edb-sel-shell-header .edb-sel-logo-wrap img { max-width: 28px; max-height: 28px; object-fit: contain; }

.edb-sel-shell-title {
    font-family: var(--jns-font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--jns-dark);
    line-height: 1.35;
}

.edb-sel-shell-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--jns-primary);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Progress stepper */
.edb-sel-progress { display: flex; align-items: flex-start; margin-bottom: 16px; }

.edb-sel-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    width: 78px;
}

.edb-sel-progress-circle {
    width: 24px;
    height: 24px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: var(--jns-ultra-light);
    color: var(--jns-sky-light);
    transition: background .2s, color .2s, box-shadow .2s;
}

.edb-sel-progress-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    letter-spacing: .02em;
}

.edb-sel-progress-step.is-active .edb-sel-progress-circle {
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    color: #fff;
    box-shadow: 0 0 0 4px rgba(21,101,192,0.14);
}

.edb-sel-progress-step.is-active .edb-sel-progress-label { color: var(--jns-dark); }

.edb-sel-progress-step.is-complete .edb-sel-progress-circle { background: var(--jns-primary); color: #fff; }
.edb-sel-progress-step.is-complete .edb-sel-progress-label { color: var(--jns-primary); }

.edb-sel-progress-line { flex: 1; height: 2px; background: var(--jns-ultra-light); margin-top: 12px; transition: background-color .45s ease; }
.edb-sel-progress-line.is-complete { background: var(--jns-primary); }

@media (max-width: 400px) {
    .edb-sel-shell { padding: 1.1rem 1.1rem 1.35rem; }
    .edb-sel-progress-step { width: 64px; }
    .edb-sel-progress-label { font-size: 9.5px; }
}

.edb-sel-shell { position: relative; z-index: 1; animation: edb-sel-shell-in .5s cubic-bezier(.16,1,.3,1) both; }

@keyframes edb-sel-shell-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.edb-sel-shell-header, .edb-sel-progress { animation: edb-sel-fade-in .45s ease both; }
.edb-sel-progress { animation-delay: .08s; }

@keyframes edb-sel-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; }
}

.edb-sel-field { animation: edb-sel-fade-in .4s ease both; }
.edb-sel-field:nth-of-type(1) { animation-delay: .12s; }
.edb-sel-field:nth-of-type(2) { animation-delay: .18s; }
.edb-sel-field:nth-of-type(3) { animation-delay: .24s; }

.edb-sel-progress-step.is-complete .edb-sel-progress-circle {
    animation: edb-sel-step-pop .35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes edb-sel-step-pop {
    0%   { transform: scale(.75); }
    60%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ════════════════════════════════════════
   BASIC INSERT FORM PAGE — edb-enq-page / ebi-grid-*
   ════════════════════════════════════════ */
.edb-enq-page {
    min-height: 100vh;
    padding: 1.5rem 1rem 3rem;
    font-family: var(--jns-font-body);
    background: var(--jns-page-bg);
    background-image: radial-gradient(ellipse at 10% 10%, rgba(21,101,192,0.10) 0%, transparent 50%), radial-gradient(ellipse at 90% 90%, rgba(74,159,212,0.10) 0%, transparent 50%);
}

.edb-enq-page-header { margin: 0 auto 16px; }

.edb-enq-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--jns-primary);
    background: rgba(21,101,192,0.1);
    border: 1px solid rgba(21,101,192,0.2);
    border-radius: 20px !important;
    padding: 4px 12px;
    margin-bottom: 8px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.edb-enq-badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.edb-enq-badge-row .edb-enq-badge { margin-bottom: 0; }

.edb-enq-badge-class {
    color: #fff;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    border-color: transparent;
}

.edb-enq-page-title {
    font-family: var(--jns-font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--jns-dark);
    margin-bottom: 4px;
}

.edb-enq-page-desc { font-size: 13px; color: #6b7280; }
.edb-enq-page-desc .req { color: #ef4444; font-weight: 600; }

.edb-enq-note {
    margin: 0 auto 16px;
    background: rgba(21,101,192,0.05);
    border: 1.5px solid rgba(21,101,192,0.16);
    border-left: 4px solid var(--jns-primary);
    border-radius: 0 12px 12px 0 !important;
    padding: 12px 16px;
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
}

.edb-enq-note strong { color: var(--jns-dark); }

.edb-enq-layout { margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.edb-enq-full-row { margin: 16px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }

.edb-enq-section {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.80);
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(21,101,192,0.07);
    overflow: hidden;
    margin-bottom: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edb-enq-section-body { flex: 1; padding: 14px 16px; }

.edb-enq-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(21,101,192,0.08), rgba(74,159,212,0.04));
    border-bottom: 1px solid rgba(21,101,192,0.1);
    padding: 8px 16px;
}

.edb-enq-section-num {
    width: 28px;
    height: 28px;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    color: #fff;
    font-family: var(--jns-font-head);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edb-enq-section-title {
    font-family: var(--jns-font-head);
    font-size: 12px;
    font-weight: 700;
    color: var(--jns-dark);
    text-transform: uppercase;
    letter-spacing: .05em;
    flex: 1;
}

.edb-enq-section-icon { color: var(--jns-accent); font-size: 17px; flex-shrink: 0; }

.edb-enq-section-full {}

.edb-enq-subhead {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: var(--jns-font-head);
    color: var(--jns-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}
.edb-enq-subhead .fa { font-size: 13px; opacity: .8; }

.edb-enq-inner-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(21,101,192,.15) 0%, rgba(21,101,192,.04) 100%);
    margin: 10px 0 8px;
}

/* ════════════════════════════════════════
   DOCUMENT UPLOAD CARD
   ════════════════════════════════════════ */
.edb-doc-card {
    background: #fff;
    border: 1.5px solid rgba(21,101,192,0.12);
    border-radius: 12px !important;
    padding: 12px 14px;
    margin-bottom: 12px;
    transition: border-color .15s;
}
.edb-doc-card:hover { border-color: rgba(21,101,192,0.3); }
.edb-doc-card .lableremovepad { font-size: 12.5px; font-weight: 700; color: var(--jns-dark); font-family: var(--jns-font-body); }
.edb-doc-card .more-info { color: var(--jns-primary) !important; cursor: help; }

/* ════════════════════════════════════════
   ADDITIONAL INFO QUESTION ROW
   ════════════════════════════════════════ */
.edb-ai-row.row {
    background: #fff;
    border: 1.5px solid rgba(21,101,192,0.1);
    border-radius: 12px !important;
    margin: 0 0 12px !important;
    padding: 12px 8px 12px 0;
}
.edb-ai-row .label-warning {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary)) !important;
    border: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}
.edb-ai-row .form-control,
.edb-ai-row label.form-control { color: var(--jns-dark); }
.edb-ai-row .well {
    background: #eef6fc;
    border: 1px solid rgba(21,101,192,0.12);
    border-radius: 8px !important;
    box-shadow: none;
}
.edb-ai-row .checkboxes label { font-weight: 500; }
.edb-ai-remark {
    display: inline-block;
    background: rgba(21,101,192,0.06);
    border-left: 3px solid var(--jns-primary);
    border-radius: 0 8px 8px 0 !important;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--jns-primary-dark);
    margin-bottom: 8px;
}

.ebi-grid-4 { grid-template-columns: repeat(4, 1fr); }

.edb-enq-field { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.edb-enq-field:last-child { margin-bottom: 0; }

.edb-enq-label { font-size: 10.5px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.edb-enq-label .req { color: #ef4444; margin-left: 2px; }
.edb-enq-label .opt { font-weight: 400; color: #9ca3af; text-transform: none; font-size: 10px; }

.ebi-grid { display: grid; gap: 8px; margin-bottom: 6px; }
.ebi-grid:last-child { margin-bottom: 0; }
.ebi-grid-1 { grid-template-columns: 1fr; }
.ebi-grid-2 { grid-template-columns: 1fr 1fr; }
.ebi-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.edb-enq-section .form-control:not([type="file"]),
.edb-enq-section select.form-control,
.edb-enq-section textarea.form-control {
    width: 100% !important;
    font-family: var(--jns-font-body) !important;
    font-size: 13px !important;
    color: var(--jns-dark) !important;
    border: 1.5px solid rgba(21,101,192,0.2) !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s !important;
}

.edb-enq-section input.form-control:not([type="file"]) { height: 32px !important; padding: 5px 10px !important; }

.edb-enq-section textarea.form-control {
    height: auto !important;
    min-height: 52px !important;
    padding: 6px 10px !important;
    resize: vertical !important;
}

.edb-enq-section select.form-control {
    height: 32px !important;
    padding: 5px 30px 5px 10px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    background-color: rgba(240,247,252,0.9) !important;
}

.edb-enq-section .form-control:not([type="file"]):focus {
    border-color: var(--jns-primary) !important;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12) !important;
    background: #fff !important;
}

.edb-enq-section .form-control::placeholder { color: #9ca3af !important; }

.edb-enq-section .editor-error {
    font-size: 11px !important;
    color: #b91c1c !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 2px !important;
}

.edb-enq-checkbox-sm {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    margin: -2px 0 4px;
}
.edb-enq-checkbox-sm input[type="checkbox"] { accent-color: var(--jns-primary); width: 11px; height: 11px; margin: 0; cursor: pointer; }

.edb-enq-fieldnote { display: block; font-size: 10.5px; color: #9ca3af; margin-top: 2px; line-height: 1.3; }

.edb-enq-hint {
    font-size: 11px;
    color: #b91c1c;
    background: #fff1f1;
    border-left: 3px solid #f87171;
    border-radius: 0 6px 6px 0 !important;
    padding: 5px 10px;
    margin-top: 8px;
    line-height: 1.4;
}

.edb-enq-action-row { margin: 16px auto 0; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.edb-enq-action-note {
    font-size: 12px;
    color: #6b7280;
    background: rgba(21,101,192,0.05);
    border: 1px solid rgba(21,101,192,0.12);
    border-radius: 10px !important;
    padding: 10px 14px;
    line-height: 1.6;
    flex: 1;
    min-width: 200px;
}
.edb-enq-action-note strong { color: var(--jns-dark); }

.edb-enq-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    font-family: var(--jns-font-body);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--jns-primary-dark), var(--jns-primary-mid));
    border: none;
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13,71,161,0.30);
    transition: opacity .2s, transform .15s;
    animation: edb-enq-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.edb-enq-btn-submit:hover { opacity: .9; }
.edb-enq-btn-submit:active { transform: scale(0.97); }

@keyframes edb-enq-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(13,71,161,0.30); }
    50%       { box-shadow: 0 4px 22px rgba(13,71,161,0.52); }
}

.edb-modal { display: none; }
.edb-modal.in { display: flex !important; align-items: center; justify-content: center; }
.edb-modal .modal-dialog { margin: 0 auto; flex-shrink: 0; width: auto; max-width: 90vw; }
.edb-modal.modal-lg .modal-dialog, .edb-modal .modal-lg { width: 860px; max-width: 95vw; }

.edb-modal .modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(13,71,161,0.18) !important;
    font-family: var(--jns-font-body) !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.edb-modal .modal-header {
    background: linear-gradient(90deg, var(--jns-primary-dark), var(--jns-primary-mid)) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 14px 20px !important;
    border-bottom: none !important;
    flex-shrink: 0;
}

.edb-modal .modal-title {
    color: #fff !important;
    font-family: var(--jns-font-head) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edb-modal .modal-body { padding: 20px 24px !important; font-size: 14px; color: #374151; overflow-y: auto; flex: 1; }
.edb-modal .modal-footer { padding: 12px 20px 16px !important; border-top: 1px dashed rgba(21,101,192,0.15) !important; justify-content: flex-end !important; flex-shrink: 0; }

.edb-modal { z-index: 99990 !important; }
.modal-backdrop { z-index: 1030 !important; }

.edb-enq-btn-ok {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 28px;
    font-family: var(--jns-font-body);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, var(--jns-primary-dark), var(--jns-primary-mid));
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(13,71,161,0.28);
}
.edb-enq-btn-ok:hover { opacity: .88; color: #fff; text-decoration: none; }

@media (max-width: 900px) {
    .edb-enq-layout, .edb-enq-full-row { grid-template-columns: 1fr; }
    .ebi-grid-3 { grid-template-columns: 1fr 1fr; }
    .ebi-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .edb-enq-page { padding: 1rem 0.75rem 2rem; }
    .ebi-grid-4, .ebi-grid-3, .ebi-grid-2 { grid-template-columns: 1fr; }
    .edb-enq-page-title { font-size: 20px; }
    .edb-enq-section { border-radius: 12px !important; }
    .edb-enq-section-body { padding: 14px; }
    .edb-enq-action-row { flex-direction: column; }
    .edb-enq-btn-submit { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════
   ENQUIRY PERIOD INFO PAGE — enq-*
   ════════════════════════════════════════ */
.enq-page {
    min-height: 100vh;
    padding: 2rem 1rem 3rem;
    font-family: var(--jns-font-body);
    background: var(--jns-page-bg);
    background-image: radial-gradient(ellipse at 10% 10%, rgba(21,101,192,0.10) 0%, transparent 50%), radial-gradient(ellipse at 90% 90%, rgba(74,159,212,0.10) 0%, transparent 50%);
}

.enq-page-header { margin: 0 auto 24px; max-width: 720px; }

.enq-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--jns-primary);
    background: rgba(21,101,192,0.1);
    border: 1px solid rgba(21,101,192,0.2);
    border-radius: 20px !important;
    padding: 4px 14px;
    margin-bottom: 8px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.enq-page-title {
    font-family: var(--jns-font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--jns-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.enq-form-container { margin: 0 auto; max-width: 90%; }

.enq-section {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(21,101,192,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.enq-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(21,101,192,0.08), rgba(74,159,212,0.04));
    border-bottom: 1px solid rgba(21,101,192,0.1);
    padding: 13px 20px;
}

.enq-section-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.enq-section-title {
    font-family: var(--jns-font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--jns-dark);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.enq-content { padding: 20px 24px; font-size: 14px; color: #374151; line-height: 1.8; }

.enq-note {
    background: rgba(21,101,192,0.05);
    border: 1.5px solid rgba(21,101,192,0.15);
    border-left: 4px solid var(--jns-primary);
    border-radius: 0 10px 10px 0 !important;
    padding: 11px 16px;
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    margin-top: 14px;
}
.enq-note strong { color: var(--jns-dark); }

.enq-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(21,101,192,0.04);
    border: 1.5px solid rgba(21,101,192,0.15);
    border-radius: 12px !important;
    padding: 14px 16px;
    margin: 16px 0;
    cursor: pointer;
}
.enq-checkbox-wrapper input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; accent-color: var(--jns-primary); }
.enq-checkbox-wrapper label { margin: 0; font-size: 13.5px; color: #374151; line-height: 1.7; cursor: pointer; }

.enq-btn-group { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(21,101,192,0.15); }

.enq-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 26px;
    font-family: var(--jns-font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 11px !important;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    text-decoration: none;
}

.enq-btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--jns-primary-dark), var(--jns-primary-mid));
    box-shadow: 0 4px 14px rgba(13,71,161,0.30);
    animation: enq-pulse 2s ease-in-out infinite;
}
.enq-btn-primary:hover, .enq-btn-primary:focus { opacity: .88; color: #fff; text-decoration: none; }
.enq-btn-primary:active { transform: scale(0.97); }
.enq-btn-primary:disabled, .enq-btn-primary[disabled] { opacity: .45; cursor: not-allowed; animation: none; box-shadow: none; }

.enq-btn-secondary { color: var(--jns-primary); background: rgba(21,101,192,0.08); border: 1.5px solid rgba(21,101,192,0.2); }
.enq-btn-secondary:hover { background: rgba(21,101,192,0.14); }

@keyframes enq-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(13,71,161,0.28); }
    50%       { box-shadow: 0 4px 22px rgba(13,71,161,0.50); }
}

.enq-otp-section {
    background: rgba(21,101,192,0.04);
    border: 1px dashed rgba(21,101,192,0.22);
    border-radius: 12px !important;
    padding: 16px 18px;
    margin-top: 14px;
}

.enq-field { margin-bottom: 14px; }
.enq-field:last-child { margin-bottom: 0; }

.enq-label { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 5px; }

@media (max-width: 560px) {
    .enq-page { padding: 1.25rem .75rem 2rem; }
    .enq-page-title { font-size: 18px; }
    .enq-content { padding: 16px; }
    .enq-btn-group { flex-direction: column; }
    .enq-btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════
   DASHBOARD — edb-page, edb-topbar, edb-grid, edb-card
   ════════════════════════════════════════ */
.edb-page {
    font-family: var(--jns-font-body);
    padding: 24px 20px 40px;
    min-height: calc(100vh - 62px - 56px);
    background: #f8fbfd;
    background-image: radial-gradient(ellipse at 10% 10%, rgba(21,101,192, 0.10) 0%, transparent 50%), radial-gradient(ellipse at 90% 90%, rgba(74,159,212, 0.10) 0%, transparent 50%);
}

.edb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--jns-primary-mid);
}

.edb-topbar-title { font-family: var(--jns-font-head); font-size: 20px; font-weight: 700; color: var(--jns-dark); display: flex; align-items: center; gap: 10px; }

.edb-icon-bg {
    width: 38px;
    height: 38px;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(13,71,161,0.22);
}

.edb-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }
.edb-legend-dot { width: 10px; height: 10px; border-radius: 50% !important; background: var(--jns-primary-mid); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--jns-primary-mid); flex-shrink: 0; }

.edb-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    font-family: var(--jns-font-body);
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    border-radius: 10px !important;
    border: none;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(13,71,161,0.25);
    transition: opacity .15s, transform .1s;
}
.edb-btn-new:hover { opacity: .88; transform: translateY(-1px); color: #fff !important; text-decoration: none !important; }

.edb-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }

.edb-empty { width: 100%; text-align: center; padding: 40px 24px 32px; color: #6b7280; }
.edb-empty h3 { font-family: var(--jns-font-head); font-size: 18px; font-weight: 700; color: var(--jns-dark); margin: 0 0 6px; }
.edb-empty p { font-size: 14px; margin: 0 0 20px; line-height: 1.6; }

.edb-empty-tiles { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 4px; }

.edb-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary-mid));
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(13,71,161,0.22);
}

.edb-card {
    width: 340px;
    background: #fff;
    border-radius: 14px !important;
    box-shadow: 0 2px 16px rgba(13,71,161,.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.edb-card:hover { box-shadow: 0 6px 28px rgba(13,71,161,.17); transform: translateY(-2px); }
.edb-card.existing { box-shadow: 0 2px 16px rgba(74,159,212,.18), 0 0 0 2px var(--jns-primary-mid); }

.edb-card-header {
    background: linear-gradient(90deg, rgba(21,101,192,0.08), rgba(74,159,212,0.04));
    border-bottom: 1px solid rgba(21,101,192,0.1);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edb-card-num {
    width: 24px;
    height: 24px;
    border-radius: 6px !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    color: #fff;
    font-family: var(--jns-font-head);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edb-card-refno { margin-left: auto; font-size: 10px; color: #9ca3af; white-space: nowrap; }

.edb-card-body { display: flex; flex: 1; min-height: 0; }

.edb-profile {
    width: 44%;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(21,101,192,0.05) 0%, rgba(74,159,212,0.03) 100%);
    border-right: 1px solid rgba(21,101,192,0.08);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.edb-avatar { width: 54px; height: 54px; border-radius: 50% !important; object-fit: cover; border: 2px solid var(--jns-ultra-light); background: var(--jns-page-bg); flex-shrink: 0; }

.edb-student-name { font-family: var(--jns-font-head); font-size: 12px; font-weight: 700; color: var(--jns-dark); line-height: 1.3; word-break: break-word; }

.edb-meta { display: flex; flex-direction: column; gap: 2px; }
.edb-meta span { font-size: 10px; color: #6b7280; line-height: 1.4; }

.edb-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 20px !important; margin-top: 4px; }
.edb-badge.confirmed { background: #dcfce7; color: #166534; }
.edb-badge.closed    { background: #fee2e2; color: #991b1b; }
.edb-badge.shortlist { background: #fef3c7; color: #92400e; }
.edb-badge.progress  { background: var(--jns-ultra-light); color: var(--jns-primary); }

.edb-actions { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-start; }

.edb-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-family: var(--jns-font-body);
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 8px !important;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    width: 100%;
    text-align: left;
    line-height: 1.3;
}
.edb-action-btn:hover { opacity: .88; transform: translateY(-1px); }
.edb-action-btn i { font-size: 11px; flex-shrink: 0; }

.edb-btn-info    { background: var(--jns-primary); color: #fff; }
.edb-btn-danger  { background: #dc2626; color: #fff; }
.edb-btn-success { background: #059669; color: #fff; }
.edb-btn-warning { background: #d97706; color: #fff; }
.edb-btn-primary { background: var(--jns-primary-dark); color: #fff; }

.edb-hint { font-size: 11px; color: #6b7280; background: rgba(21,101,192,0.05); border-left: 3px solid rgba(21,101,192,0.3); padding: 6px 10px; border-radius: 0 6px 6px 0 !important; line-height: 1.4; }

.edb-remark { font-size: 10.5px; color: #b91c1c; background: #fff1f1; border-left: 2px solid #f87171; padding: 5px 8px; border-radius: 0 5px 5px 0 !important; line-height: 1.4; }

.edb-modal .modal-header .close { color: #fff !important; opacity: .8 !important; }

@media (max-width: 640px) {
    .edb-page { padding: 14px 10px 32px; }
    .edb-card { width: calc(100% - 0px); }
    .edb-card-body { flex-direction: column; }
    .edb-profile { width: 100%; flex-direction: row; text-align: left; border-right: none; border-bottom: 1px solid rgba(21,101,192,0.08); padding: 12px; }
    .edb-profile .edb-meta { align-items: flex-start; }
    .edb-btn-new { font-size: 12px; padding: 8px 14px; }
}

@media (max-width: 400px) { .edb-grid { gap: 12px; } }

.edb-topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.edb-topbar-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--jns-font-head);
    color: #fff !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity .15s, transform .12s;
    line-height: 1.3;
}
.edb-topbar-add-btn:hover, .edb-topbar-add-btn:focus { color: #fff !important; text-decoration: none !important; opacity: .88; transform: translateY(-1px); }
.edb-topbar-add-btn .fa { font-size: 14px; flex-shrink: 0; }

.btn-topbar-external { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); box-shadow: 0 2px 8px rgba(217,119,6,.35); }
.btn-topbar-existing { background: linear-gradient(135deg, var(--jns-primary-mid) 0%, var(--jns-primary-dark) 100%); box-shadow: 0 2px 8px rgba(13,71,161,.35); border: 1px solid rgba(255,255,255,.15); }

@media (max-width: 640px) {
    .edb-topbar-actions { width: 100%; justify-content: flex-start; margin-top: 4px; }
    .edb-topbar-add-btn { font-size: 11px; padding: 7px 11px; flex: 1; justify-content: center; }
}

/* ── Parent tab section ── */
.edb-parent-section { margin-bottom: 8px; }

.edb-parent-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--jns-dark) 0%, var(--jns-primary-dark) 100%);
    color: #fff;
    padding: 13px 20px;
    border-radius: 12px 12px 0 0 !important;
    font-family: var(--jns-font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
}
.edb-parent-header .fa { font-size: 16px; opacity: .85; }
.edb-parent-header-sub { font-size: 11px; font-weight: 400; opacity: .82; margin-left: 4px; }

.edb-parent-tab-bar { border-radius: 0 !important; background: var(--jns-primary); padding: 10px 14px 0; gap: 3px; }
.edb-parent-tab-bar > li > a { font-size: 11.5px !important; padding: 8px 14px !important; }
.edb-parent-tab-bar > li > a .fa { margin-right: 5px; opacity: .8; }

.edb-parent-tab-content { border-radius: 0 0 12px 12px !important; padding: 16px 16px 8px; }

.edb-prev-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--jns-font-head);
    background: transparent;
    border: 2px solid var(--jns-primary-dark);
    color: var(--jns-primary-dark);
    border-radius: 8px !important;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1;
}
.edb-prev-btn:hover, .edb-prev-btn:focus { background: var(--jns-primary-dark); color: #fff; outline: none; }

/* ════════════════════════════════════════
   DASHBOARD CARDS — 3-section layout
   ════════════════════════════════════════ */
.edb-eq-card {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 0;
    max-width: calc(33.333% - 12px);
    background: #fff;
    border-radius: 14px !important;
    box-shadow: 0 2px 16px rgba(13,71,161,.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(21,101,192,.08);
    transition: box-shadow .2s, transform .15s;
    position: relative;
}
.edb-eq-card:hover { box-shadow: 0 6px 28px rgba(13,71,161,.16); transform: translateY(-2px); }
.edb-eq-card.is-existing { border-left: 4px solid var(--jns-primary-mid); }

.edb-eq-head {
    background: linear-gradient(135deg, #eaf3fb 0%, #e8f1fa 100%);
    border-bottom: 1px solid rgba(21,101,192,.15);
    padding: 14px 16px 14px 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    min-height: 70px;
}

.edb-eq-num {
    position: absolute;
    top: 0;
    left: 0;
    width: 42px;
    height: 38px;
    background: linear-gradient(135deg, var(--jns-primary-dark) 0%, var(--jns-primary) 100%);
    border-radius: 0 0 42px 0 !important;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-family: var(--jns-font-head);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px 0 0 8px;
    line-height: 1;
    z-index: 2;
}
.edb-eq-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px !important;
    flex-shrink: 0;
    position: relative;
    background: rgba(13,71,161,.12);
    border: 1.5px solid rgba(13,71,161,.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.edb-eq-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% !important; }
.edb-eq-info { flex: 1; min-width: 0; }
.edb-eq-name { font-family: var(--jns-font-head); font-size: 13.5px; font-weight: 700; color: var(--jns-dark); margin: 0; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edb-eq-status { flex-shrink: 0; }

/* ── Status badges used on the enquiry dashboard cards ── */
.edb-status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px !important; font-size: 10.5px; font-weight: 700; font-family: var(--jns-font-head); letter-spacing: .2px; white-space: nowrap; }
.edb-status-new     { background: #fef3c7; color: #92400e; }
.edb-status-pending { background: var(--jns-ultra-light); color: var(--jns-primary); }
.edb-status-done     { background: #d1fae5; color: #065f46; }
.edb-status-cancel   { background: #fee2e2; color: #991b1b; }

/* legacy aliases kept for older markup */
.edb-eq-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px !important; font-size: 10.5px; font-weight: 700; font-family: var(--jns-font-head); letter-spacing: .2px; white-space: nowrap; }
.edb-eq-badge-progress  { background: #fef3c7; color: #92400e; }
.edb-eq-badge-submitted { background: var(--jns-ultra-light); color: var(--jns-primary); }
.edb-eq-badge-shortlist { background: #ede9fe; color: #5b21b6; }
.edb-eq-badge-confirmed { background: #d1fae5; color: #065f46; }
.edb-eq-badge-closed    { background: #fee2e2; color: #991b1b; }

.edb-eq-body { padding: 14px 16px 8px; flex: 1; }

/* ── Label/value info rows used on the enquiry dashboard cards ── */
.edb-eq-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 6px; line-height: 1.4; }
.edb-eq-lbl { color: #6b7280; font-weight: 600; flex-shrink: 0; }
.edb-eq-lbl .fa { color: var(--jns-primary); font-size: 12px; margin-right: 2px; width: 13px; text-align: center; }
.edb-eq-val { color: #374151; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.edb-eq-info-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #374151; margin-bottom: 6px; line-height: 1.4; }
.edb-eq-info-row .fa { color: var(--jns-primary); font-size: 13px; margin-top: 1px; flex-shrink: 0; width: 14px; text-align: center; }
.edb-eq-ref { display: inline-flex; align-items: center; gap: 5px; background: #eaf3fb; color: var(--jns-primary-dark); border-radius: 6px !important; padding: 3px 9px; font-size: 11px; font-weight: 600; margin: 4px 0 6px; }
.edb-eq-remark { background: #fff7ed; border-left: 3px solid #f59e0b; border-radius: 0 6px 6px 0 !important; padding: 5px 9px; font-size: 11.5px; color: #92400e; display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; }
.edb-eq-remark .fa { color: #f59e0b; flex-shrink: 0; margin-top: 1px; }
.edb-eq-note { font-size: 11.5px; color: #6b7280; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.edb-eq-note .fa { color: #9ca3af; }

/* ── Inline status/error messages shown under the action row ── */
.edb-enq-msg {
    width: 100%;
    font-size: 11.5px;
    color: var(--jns-muted);
    background: rgba(21,101,192,0.05);
    border-left: 3px solid var(--jns-primary-mid);
    border-radius: 0 6px 6px 0 !important;
    padding: 6px 10px;
    margin-top: 6px;
    line-height: 1.5;
}
.edb-enq-msg-error {
    width: 100%;
    font-size: 11.5px;
    color: #b91c1c;
    background: #fff1f1;
    border-left: 3px solid #f87171;
    border-radius: 0 6px 6px 0 !important;
    padding: 6px 10px;
    margin-top: 6px;
    line-height: 1.5;
}

.edb-eq-actions { padding: 10px 12px 12px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid rgba(21,101,192,.08); margin-top: auto; }

.edb-eq-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--jns-font-head);
    border: none;
    border-radius: 7px !important;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, transform .1s;
    line-height: 1;
    text-decoration: none;
}
.edb-eq-btn:hover, .edb-eq-btn:focus { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.edb-eq-btn-fill    { background: var(--jns-ultra-light); color: var(--jns-primary); }
.edb-eq-btn-fees    { background: #ef4444; color: #fff; }
.edb-eq-btn-del     { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.edb-eq-btn-submit  { background: #f59e0b; color: #fff; }
.edb-eq-btn-print   { background: #10b981; color: #fff; }
.edb-eq-btn-payment { background: var(--jns-primary); color: #fff; }
.edb-eq-btn-creds   { background: #f59e0b; color: #fff; }

/* ── Button color variants used on the enquiry dashboard cards ── */
.edb-eq-btn-warn    { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.edb-eq-btn-danger  { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.edb-eq-btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.edb-eq-btn-outline  { background: #fff; color: var(--jns-primary-dark); border: 1.5px solid rgba(21,101,192,0.35); }
.edb-eq-btn-outline:hover { background: rgba(21,101,192,0.06); color: var(--jns-primary-dark); }
.edb-eq-btn-ghost    { background: transparent; color: var(--jns-muted); border: 1px dashed rgba(21,101,192,0.3); }
.edb-eq-btn-ghost:hover { background: rgba(21,101,192,0.05); color: var(--jns-primary-dark); }

.edb-eq-btn-verify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 16px;
    flex-shrink: 0;
    font-family: var(--jns-font-body);
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(13,71,161,0.25);
    transition: opacity .15s, transform .1s;
}
.edb-eq-btn-verify:hover, .edb-eq-btn-verify:focus { opacity: .9; transform: translateY(-1px); color: #fff; }

.edb-eq-btn-lg { height: auto; padding: 12px 26px !important; font-size: 14px !important; border-radius: 10px !important; box-shadow: 0 4px 14px rgba(13,71,161,0.28); }

.edb-eq-card-existing { border-left: 4px solid var(--jns-primary-mid); }

.edb-eq-add-card,
.edb-enq-add-tile {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 0;
    max-width: calc(33.333% - 12px);
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(21,101,192,0.03);
    border: 2px dashed rgba(21,101,192,0.28);
    border-radius: 14px !important;
    color: var(--jns-primary-dark) !important;
    text-decoration: none !important;
    transition: background .18s, border-color .18s, transform .18s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}
.edb-eq-add-card:hover,
.edb-enq-add-tile:hover {
    background: rgba(21,101,192,0.07);
    border-color: var(--jns-primary);
    color: var(--jns-primary-dark) !important;
    text-decoration: none !important;
    transform: translateY(-3px);
}
.edb-eq-collapse-btn { background: transparent; border: none; color: var(--jns-primary); font-size: 13px; cursor: pointer; padding: 4px 9px; border-radius: 6px !important; transition: background .15s; flex-shrink: 0; }
.edb-eq-collapse-btn:hover { background: rgba(21,101,192,0.1); }

.edb-eq-add-card .fa { font-size: 34px; }
.edb-eq-add-card span { font-family: var(--jns-font-head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }

/* ── New Admission / Re-Admission tile — icon badge + label + caption ── */
.edb-enq-add-icon {
    width: 52px;
    height: 52px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary-mid));
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(13,71,161,0.28);
    transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.edb-enq-add-tile:hover .edb-enq-add-icon { transform: scale(1.08) rotate(4deg); }

.edb-enq-add-label {
    font-family: var(--jns-font-head);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--jns-primary-dark);
}

.edb-enq-add-sub {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--jns-muted);
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 640px) {
    .edb-grid { gap: 12px; }
    .edb-eq-card, .edb-eq-add-card, .edb-enq-add-tile { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
}
@media (max-width: 900px) and (min-width: 641px) {
    .edb-enq-add-tile { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
}

/* ── Enquiry count pills in the dashboard topbar ── */
.edb-topbar-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--jns-muted);
    background: rgba(21,101,192,0.06);
    border: 1px solid rgba(21,101,192,0.14);
    border-radius: 20px !important;
    padding: 5px 12px;
}
.edb-topbar-count .fa { color: var(--jns-primary); font-size: 11px; }

/* ════════════════════════════════════════
   FEES COLLECTION PAGE — fcp-*
   ════════════════════════════════════════ */
.fcp-shell { font-family: var(--jns-font-body); padding: 36px 24px 56px; }
.fcp-wrap { width: 80%; margin: 0 auto; }
.fcp-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.fcp-heading i { color: var(--jns-primary-dark); font-size: 18px; }
.fcp-heading h2 { font-size: 17px; font-weight: 700; color: var(--jns-dark); font-family: var(--jns-font-head); margin: 0; }

.fcp-card { background: #fff; border-radius: 16px !important; box-shadow: 0 4px 24px rgba(13,71,161,.10); overflow: hidden; border: 1px solid rgba(21,101,192,.09); margin-bottom: 16px; }
.fcp-card-head { background: linear-gradient(135deg, #eaf3fb 0%, #e8f1fa 100%); border-bottom: 1px solid rgba(21,101,192,.15); padding: 13px 20px; display: flex; align-items: center; gap: 10px; }
.fcp-card-head i { color: var(--jns-primary-dark); font-size: 13px; }
.fcp-card-head span { font-size: 13px; font-weight: 700; color: var(--jns-dark); font-family: var(--jns-font-head); }

.fcp-fee-row { padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fcp-fee-label { font-size: 14px; color: #374151; font-weight: 500; }
.fcp-fee-amount { font-size: 26px; font-weight: 700; color: var(--jns-primary-dark); font-family: var(--jns-font-head); letter-spacing: .3px; white-space: nowrap; }
.fcp-fee-amount .fcp-ast { font-size: 13px; font-weight: 600; color: var(--jns-primary); margin-right: 3px; vertical-align: middle; }

.fcp-btn-block { display: block; width: 100%; margin-bottom: 8px; }
.fcp-pay-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--jns-primary-dark) 0%, var(--jns-primary) 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--jns-font-head);
    border: none;
    border-radius: 12px !important;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 14px rgba(13,71,161,.28);
    transition: opacity .2s, transform .15s;
    text-decoration: none;
    line-height: 1.4;
}
.fcp-pay-btn:hover { opacity: .91; transform: translateY(-1px); color: #fff !important; }
.fcp-pay-btn i { margin-right: 8px; }
.fcp-pay-btn-alt { background: linear-gradient(135deg, var(--jns-primary-mid) 0%, #082e6b 100%); box-shadow: 0 4px 14px rgba(74,159,212,.25); }

.fcp-back-link {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #6b7280 !important;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    text-align: center;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background .2s;
}
.fcp-back-link:hover { background: #fbfbfc; color: #374151 !important; text-decoration: none; }

.fcp-note { background: #fffbeb; border: 1px solid rgba(245,158,11,.30); border-left: 3px solid #f59e0b; border-radius: 12px !important; padding: 15px 18px; margin-top: 4px; }

/* Installment-group selection table (Online Admission Fees) — cosmetic only,
   row/rowspan structure is left untouched since JS traverses it by position. */
.fcp-fee-table { width: 100%; border-collapse: collapse !important; font-size: 13px; }
.fcp-fee-table, .fcp-fee-table th, .fcp-fee-table td { border: 1px solid rgba(21,101,192,0.15) !important; }
.fcp-fee-table thead td, .fcp-fee-table thead th { background: var(--jns-primary,#1565c0); color: #fff; font-size: 11px; text-transform: uppercase; font-weight: 600; padding: 8px 10px; }
.fcp-fee-table tbody td { padding: 10px; vertical-align: top; color: #374151; }
.fcp-fee-table tbody tr:nth-child(even) { background: rgba(21,101,192,0.02); }
.fcp-fee-table input[type="checkbox"] { accent-color: var(--jns-primary,#1565c0); width: 15px; height: 15px; vertical-align: middle; margin-right: 6px; }
.fcp-fee-table label { font-weight: 600; color: var(--jns-primary-dark,#0d47a1); cursor: pointer; }
.fcp-note p { margin: 0; line-height: 1.65; }
.fcp-note p.fcp-note-main { font-size: 13.5px; color: #374151; margin-bottom: 7px; }
.fcp-note p.fcp-note-sub { font-size: 12.5px; color: #92400e; }
.fcp-note strong { color: var(--jns-dark); }

@media (max-width: 480px) {
    .fcp-shell { padding: 16px 12px 40px; }
    .fcp-fee-amount { font-size: 22px; }
    .fcp-pay-btn { font-size: 14px; padding: 13px 16px; }
}

/* ════════════════════════════════════════
   EDIT PAGE — student header + tab footer
   ════════════════════════════════════════ */
.edb-student-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--jns-primary-dark) 0%, var(--jns-primary) 100%);
    border-radius: 12px !important;
    padding: 14px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(13,71,161,0.22);
}

.edb-student-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.28);
}

.edb-student-header-name { font-family: var(--jns-font-head); font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.edb-student-header-class { font-size: 12px; color: rgba(255,255,255,0.70); margin-top: 2px; }

.edb-tab-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(21,101,192,0.12); }

.edb-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-family: var(--jns-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--jns-primary-dark);
    background: transparent;
    border: 1.5px solid rgba(13,71,161,0.30) !important;
    border-radius: 9px !important;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.edb-btn-prev:hover { background: rgba(13,71,161,0.06); color: var(--jns-dark); }

.edb-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-family: var(--jns-font-body);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--jns-primary-dark), var(--jns-primary));
    border: none;
    border-radius: 9px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13,71,161,0.25);
    transition: opacity .15s, transform .1s;
    margin-left: auto;
    animation: edb-edit-pulse 2s ease-in-out infinite;
}
.edb-btn-next:hover { opacity: .9; transform: translateY(-1px); }

.edb-enq-upload-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--jns-font-head);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--jns-dark);
    background: rgba(74,159,212,0.10);
    border-left: 3px solid var(--jns-accent);
    border-radius: 0 8px 8px 0 !important;
    padding: 7px 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.edb-enq-upload-header .fa { color: var(--jns-accent); font-size: 13px; }

.edb-enq-photo-upload .imagefileupload {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px dashed rgba(21,101,192,0.28) !important;
    border-radius: 10px !important;
    padding: 8px 10px;
    background: rgba(21,101,192,0.03);
    transition: border-color .15s, background .15s;
}
.edb-enq-photo-upload .imagefileupload:hover { border-color: rgba(21,101,192,0.5) !important; background: rgba(21,101,192,0.05); }

.edb-enq-photo-upload lable { display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 1; min-width: 0; }
.edb-enq-photo-upload lable > span { font-family: var(--jns-font-body); font-size: 11.5px; font-weight: 700; color: var(--jns-primary-dark); white-space: nowrap; }
.edb-enq-photo-upload input[type="file"] { font-size: 11px; color: #6b7280; min-width: 0; flex: 1; }
.edb-enq-photo-upload #Error { display: block; font-size: 9.5px; font-weight: 400; }

.edb-enq-photo-upload .Mythumbnail { width: 44px !important; height: 44px !important; border-radius: 50% !important; object-fit: cover; border: 2px solid #fff !important; box-shadow: 0 2px 8px rgba(21,101,192,0.25) !important; padding: 0 !important; margin: 0 !important; }

.edb-enq-photo-upload .DeleteBtn {
    background: var(--jns-primary) !important;
    border-color: #fff !important;
    border-radius: 50% !important;
    width: 18px;
    height: 18px;
    padding: 0 !important;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    top: -4px !important;
    left: -4px !important;
}

/* ════════════════════════════════════════
   EDIT PAGE SHELL
   ════════════════════════════════════════ */
.edb-enquiry-wrap {
    font-family: var(--jns-font-body);
    background: #f8fbfd;
    background-image: radial-gradient(ellipse at 10% 0%, rgba(13,71,161,0.10) 0%, transparent 45%), radial-gradient(ellipse at 90% 100%, rgba(74,159,212,0.08) 0%, transparent 45%);
    min-height: 100vh;
    padding: 1.25rem 1rem 2.5rem;
}

#showMessage {
    background: rgba(13,71,161,0.06);
    border-left: 4px solid var(--jns-primary);
    border-radius: 0 10px 10px 0 !important;
    padding: 10px 16px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
}

@keyframes edb-edit-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(13,71,161,0.25); }
    50%       { box-shadow: 0 4px 22px rgba(13,71,161,0.48); }
}

@media (max-width: 520px) {
    .edb-tab-footer { flex-direction: column-reverse; }
    .edb-btn-next, .edb-btn-prev { width: 100%; justify-content: center; }
}

.edb-enq-section-subtitle { font-size: 11px; color: var(--jns-muted); margin-top: 2px; font-family: var(--jns-font-body); font-weight: 400; letter-spacing: 0.01em; }

/* ════════════════════════════════════════
   FORM NOTICE (inline callout, e.g. Aadhaar mandate)
   ════════════════════════════════════════ */
.edb-form-notice {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px !important;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #7d4e00;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.edb-form-notice .fa { color: var(--jns-accent); flex-shrink: 0; margin-top: 2px; }

/* ════════════════════════════════════════
   PHOTO UPLOAD AREA
   ════════════════════════════════════════ */
.edb-photo-area {
    background: #f8fbfd;
    border: 2px dashed rgba(13,71,161,0.28);
    border-radius: 12px !important;
    padding: 14px 10px 12px;
    text-align: center;
    min-height: 130px;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 10px;
}
.edb-photo-area:hover { border-color: var(--jns-primary); background: #e6f0fa; }

.edb-photo-area-label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.edb-photo-area-label .fa { color: var(--jns-accent); margin-right: 4px; }

.edb-photo-area .fileupload-buttonbar { padding: 0 !important; margin-top: 0 !important; width: 100% !important; }

/* ════════════════════════════════════════
   REFERENCE REDESIGN — Additional Info
   ════════════════════════════════════════ */
.edb-ref-sheet { display: flex; gap: 24px; align-items: flex-start; }
.edb-ref-rail { width: 200px; flex-shrink: 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 0; }
.edb-ref-main { flex: 1; min-width: 0; }

.edb-ref-rail-title { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6b7280; margin: 0 0 10px 4px; }
.edb-ref-rail-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; text-decoration: none; color: #4b5563; border-left: 2px solid var(--jns-border); transition: border-color 0.15s, color 0.15s; border-radius: 0 !important; }
.edb-ref-rail-item:hover { border-left-color: var(--jns-primary); color: var(--jns-primary-dark); text-decoration: none; }
.edb-ref-rail-item.active { border-left-color: var(--jns-primary-mid); color: var(--jns-primary-dark); }
.edb-ref-rail-mark { font-size: 10.5px; font-weight: 600; color: var(--jns-primary-mid); width: 24px; flex-shrink: 0; padding-top: 1px; font-family: monospace; }
.edb-ref-rail-label { font-size: 12.5px; font-weight: 500; line-height: 1.4; color: inherit; }

.edb-ref-block { margin-bottom: 36px; scroll-margin-top: 70px; }
.edb-ref-block-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1.5px solid var(--jns-border); }
.edb-ref-num { font-size: 11px; font-weight: 700; color: var(--jns-primary-mid); letter-spacing: 0.06em; font-family: monospace; flex-shrink: 0; }
.edb-ref-h3 { font-size: 15px; font-weight: 700; margin: 0; color: var(--jns-primary-dark); letter-spacing: -0.01em; }

.edb-ref-card { background: #fff; border: 1px solid var(--jns-border); border-radius: 10px !important; overflow: hidden; box-shadow: 0 1px 4px rgba(13,71,161,0.05); }

.edb-ref-field-remark { border-bottom: 1px solid var(--jns-border); padding: 8px 16px; background: #fffbf0; }

.edb-ref-field { display: grid; grid-template-columns: 44px 1fr; border-bottom: 1px solid var(--jns-border); }
.edb-ref-field:last-child { border-bottom: none; }

.edb-ref-field-num { display: flex; align-items: flex-start; justify-content: center; padding-top: 20px; background: #f8fbfd; border-right: 1px solid var(--jns-border); }
.edb-ref-field-num span { width: 22px; height: 22px; border-radius: 5px !important; background: var(--jns-primary-dark); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }

.edb-ref-field-body { padding: 16px 18px 14px; }
.edb-ref-label { display: block; font-size: 13px; font-weight: 500; color: var(--jns-primary-dark); margin-bottom: 10px; text-transform: none; letter-spacing: 0; white-space: normal; line-height: 1.4; }
.edb-ref-label .edb-q-required { color: #c53030; margin-left: 3px; }
.edb-ref-label-sub { display: block; font-weight: 400; font-size: 11px; color: #6b7280; margin-top: 2px; }

.edb-ref-controls { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.edb-ref-ctrl { flex: 1; min-width: 160px; max-width: 320px; margin-bottom: 0 !important; }
.edb-ref-ctrl-doc {}

.edb-ref-field-body .edb-checkbox-wrap { width: 100%; }
.edb-ref-field-body .field-validation-error { font-size: 11.5px; margin-top: 4px; display: block; }

@media (max-width: 767px) {
    .edb-ref-sheet { flex-direction: column; }
    .edb-ref-rail { display: none; }
    .edb-ref-ctrl { max-width: 100%; }
}

/* ── Upload control — native file input, styled to match the MCET
   enquiry portal's file uploader (native "Choose File" browser button +
   "No file chosen" text, instead of a custom hidden-input drop-zone). ── */
.edb-photo-area .fileinput-button {
    display: block;
    width: 100%;
    cursor: pointer;
}

.edb-photo-area .fileinput-button span { display: none !important; }

.edb-photo-area .fileinput-button input[type="file"] {
    width: 100%;
    padding: 7px 6px;
    height: 42px;
    background-color: #f8fbfd;
    border: 1px solid rgba(13,71,161,0.18);
    border-radius: 8px !important;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    box-sizing: border-box;
}

.edb-photo-area .fileinput-button input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(90deg, #0d47a1 0%, #2679c0 100%) !important;
    border: none !important;
    padding: 6px 14px;
    border-radius: 6px !important;
    cursor: pointer;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    height: 28px;
}

.edb-photo-area .fileinput-button input[type="file"]::file-selector-button {
    background: linear-gradient(90deg, #0d47a1 0%, #2679c0 100%) !important;
    border: none !important;
    padding: 6px 14px;
    border-radius: 6px !important;
    cursor: pointer;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    height: 28px;
}

.edb-photo-area .fileupload-content { padding: 0 !important; }

.edb-photo-area .jsUseFilePreview img,
.edb-photo-area .file-name img {
    border-radius: 8px !important;
    border: 2px solid rgba(13,71,161,0.15);
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    display: block;
    margin: 0 auto 6px;
}

/* ════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════ */
#edb-toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 99999; width: 340px; pointer-events: none; }

.edb-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: #fff;
    border-radius: 10px !important;
    padding: 14px 14px 18px;
    box-shadow: 0 6px 28px rgba(13,71,161,0.14), 0 1px 5px rgba(0,0,0,0.07);
    margin-bottom: 10px;
    border-left: 4px solid var(--jns-primary);
    pointer-events: auto;
    overflow: hidden;
    animation: edbToastIn 0.32s cubic-bezier(0.34,1.2,0.64,1);
}
.edb-toast-out { animation: edbToastOut 0.28s ease forwards !important; }

@keyframes edbToastIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes edbToastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(110%); opacity: 0; } }

.edb-toast.edb-toast-success { border-left-color: #16a34a; }
.edb-toast.edb-toast-error   { border-left-color: #dc2626; }
.edb-toast.edb-toast-warning { border-left-color: #d97706; }
.edb-toast.edb-toast-info    { border-left-color: var(--jns-primary); }

.edb-toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.edb-toast.edb-toast-success .edb-toast-icon { color: #16a34a; }
.edb-toast.edb-toast-error   .edb-toast-icon { color: #dc2626; }
.edb-toast.edb-toast-warning .edb-toast-icon { color: #d97706; }
.edb-toast.edb-toast-info    .edb-toast-icon { color: var(--jns-primary); }

.edb-toast-body { flex: 1; min-width: 0; }
.edb-toast-title { font-size: 10.5px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.edb-toast-msg { font-size: 13px; color: #111827; line-height: 1.5; word-break: break-word; }
.edb-toast-close { background: none; border: none; cursor: pointer; font-size: 18px; color: #9ca3af; padding: 0; line-height: 1; flex-shrink: 0; }
.edb-toast-close:hover { color: #374151; }

.edb-toast-bar { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; animation: edbToastBar 6s linear forwards; }
.edb-toast.edb-toast-success .edb-toast-bar { background: #16a34a; }
.edb-toast.edb-toast-error   .edb-toast-bar { background: #dc2626; }
.edb-toast.edb-toast-warning .edb-toast-bar { background: #d97706; }
.edb-toast.edb-toast-info    .edb-toast-bar { background: var(--jns-primary); }
@keyframes edbToastBar { from { width: 100%; } to { width: 0%; } }

.edb-photo-area .file-row {
    background: rgba(15,37,128,0.04);
    border-radius: 8px !important;
    padding: 8px 10px;
    border: 1px solid rgba(15,37,128,0.10);
    text-align: left;
}




.ui-widget {
    font-size: 13px;
    
}

.ui-widget-header {
    border: none !important;
    background: none !important;
    color: #222;
    font-weight: 700;
}

.fileupload-buttonbar {
    padding: 0 !important;
    margin-top: 0px;
    width: 100% !important;
}

.fileinput-button {
    width: 100%;
}

.uploadfile .form-group label {
    padding: 0px !important;
    background: none !important;
    color: black;
}

.ui-widget-content {
    border: none !important;
    background: none !important;
    color: #362b36;
}

.fileinput-button span {
    display: none !important;
}

.fileinput-button input[type=file] {
    /*direction: rtl;*/ /*Move button to right */
    padding: 10px;
    height: 50px;
    background-color: #F5F5F5;
    border: 1px dashed #8f8e8e;
    border-radius: 10px !important;
    width: 100%;
    /*color: transparent;*/ /*Hide "No file chosen" */
}

.fileinput-button input[type="file"]::-webkit-file-upload-button {
    background: #3c8dbc;
    border: 1px solid #3c8dbc;
    padding: 6px 12px;
    border-radius: 20px !important;
    cursor: pointer;
    color: white;
}
/* Firefox */
.fileinput-button input[type="file"]::file-selector-button {
    background: #3c8dbc;
    border: 1px solid #3c8dbc;
    padding: 6px 12px;
    border-radius: 20px !important;
    cursor: pointer;
    color: white;
}

.files {
    margin: 0px !important;
    width: 100%;
}

.fileupload-content {
    padding: 0px !important;
}

.mcampusautocomplete {
    width: 100%;
    /*border: 1px solid #d2d6de;
            float: left;*/
}

.ui-autocomplete-multiselect-item {
    min-height: 32px;
    padding: 5px;
}

.ui-combobox-input.ui-autocomplete-input {
    width: 100%;
    /*border:0px;*/
    /*margin-top: 0.3em;*/
}

.ui-combobox-input {
    background: white;
    color: #555;
}

.jsautocomplete-wrapper-Message input {
    background: white;
    border-color: #D2D6DE;
    border-radius: 0px !important;
    width: 100%;
    color: white;
    margin: 3px 0px 3px 0px;
}

.ui-autocomplete-multiselect {
    background: white;
    color: black;
    min-width: 135px;
}

.ui-dialog {
    z-index: 5001 !important;
}

.ui-state-error {
    background: none;
    color: red;
    border: 0px;
}

.content .content {
    padding: 0px;
}

.ui-autocomplete.ui-widget-content {
    z-index: 9999; /* Autocomplete in model popup will not be visible if we remove this css */
    background: #f2f5f7 !important;
    border: 1px solid #f2f5f7 !important;
}

.ui-datepicker.ui-widget-content {
    border: 1px solid #ddd !important;
    background: #f2f5f7 !important;
    color: #362b36 !important;
}

.ui-timepicker-table.ui-widget-content {
    border: 1px solid #ddd !important;
    background: #f2f5f7 !important;
    color: #362b36 !important;
}

.McampusHelpPopUp.ui-widget-content {
    background: #fff !important;
    border-color: #c2c2c2 !important;
}

/* ════════════════════════════════════════
   RADIO / CHECKLIST UTILITIES
   ════════════════════════════════════════ */
.jns-radio-wrap { display: flex; align-items: center; gap: 16px; padding-top: 4px; }
.jns-radio-wrap label { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--jns-text); cursor: pointer; margin: 0; }
.jns-radio-wrap input[type="radio"] { accent-color: var(--jns-primary); width: 14px; height: 14px; cursor: pointer; margin: 0; }

.jns-checklist-panel {
    height: 220px;
    overflow: auto;
    border: 1px solid rgba(21,101,192,0.15);
    border-radius: 10px !important;
    background: #fff;
    padding: 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--jns-primary-mid) #f1f3f5;
}
.jns-checklist-panel::-webkit-scrollbar { width: 6px; height: 6px; }
.jns-checklist-panel::-webkit-scrollbar-track { background: #f1f3f5; border-radius: 10px !important; }
.jns-checklist-panel::-webkit-scrollbar-thumb { background: var(--jns-primary-mid); border-radius: 10px !important; }
.jns-checklist-panel::-webkit-scrollbar-thumb:hover { background: var(--jns-primary-dark); }
.jns-checklist-ul { list-style-type: none; margin: 0; padding: 0; }
.jns-checklist-item { white-space: nowrap; padding: 2px 0; }
.jns-checklist-label { padding-left: 6px; font-weight: 400; font-size: 12.5px; color: var(--jns-text); }
.jns-checklist-item input[type="checkbox"]:checked + .jns-checklist-label { color: var(--jns-primary); font-weight: 600; }

.req { color: #ef4444; font-weight: 600; }

@media (max-width: 900px) {
    .edb-eq-card, .edb-eq-add-card { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
}
