/* ════════════════════════════════════════
   SVIS (Swami Vivekanand International School) — Online Quick Enquiry
   Brand: sky blue + warm gold, light/airy palette (easy on the eyes)
   Component system mirrors ForCNS/cns-enquiry-portal.css (edb-sel-*/edb-enq-*/ebi-grid-*)
   Scope: Quick Enquiry flow only — School/Year/Class selection + Quick Enquiry insert form.
   Loaded only for SVIS via a conditional <link> in Views/Shared/_LayoutPublic1New.cshtml,
   so unscoped resets below only ever affect SVIS's own pages.
   ════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Sora:wght@600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

.editor-error {
    margin: 0 !important;
}

/* ── Reset AdminLTE's default content padding/background, but only on the pages that
   actually render the Quick Enquiry component tree — every other SVIS public page that
   reuses this shared layout (login, other enquiry flows, etc.) is left untouched. ──
   The sky-blue/gold gradient lives on `body` (not the individual .edb-sel-page /
   .edb-enq-page sections) so it reads as ONE continuous backdrop behind both the
   School/Year/Class card and the Quick Enquiry form below it, instead of two separate
   gradient patches with a plain-white gap between/around them. */
body:has(.edb-sel-outer),
body:has(.edb-enq-page) {
    min-height: 100%;
    background: #f4f9fd;
    background-image:
        radial-gradient(ellipse at 10% 10%, rgba(31,111,168,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(245,180,0,0.12) 0%, transparent 50%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.content-wrapper:has(.edb-sel-outer),
.content-wrapper:has(.edb-enq-page) {
    background: transparent !important;
    min-height: 100vh;
}

.wrapper:has(.edb-sel-outer),
.wrapper:has(.edb-enq-page) {
    background: transparent !important;
}

.content:has(.edb-sel-outer),
.content:has(.edb-enq-page) {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    background: transparent !important;
}

/* ════════════════════════════════════════
   SCHOOL / YEAR / CLASS SELECTION PAGE — edb-sel-*
   ════════════════════════════════════════ */
.edb-sel-outer {
    display: flex;
    flex-direction: column;
}

.edb-sel-page {
    padding: 1.5rem 1rem 0;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.edb-sel-shell {
    position: relative;
    z-index: 1;
    width: 80%;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(15,76,117,0.08);
    padding: 1.25rem 1.5rem 1.5rem;
    animation: svis-shell-in .5s cubic-bezier(.16,1,.3,1) both;
}

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

@media (max-width: 520px) {
    .edb-sel-shell { width: 100%; padding: 1.1rem 1.1rem 1.35rem; }
}

.edb-sel-shell-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    animation: svis-fade-in .45s ease both;
}

.edb-sel-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #0f4c75, #1f6fa8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.edb-sel-shell-title {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0d3352;
    line-height: 1.35;
}

.edb-sel-shell-sub {
    font-size: 11px;
    font-weight: 700;
    color: #b98600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Progress stepper (School → Year → Class) ── */
.edb-sel-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    animation: svis-fade-in .45s ease both;
    animation-delay: .08s;
}

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

.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: #e6f0f8;
    color: #7fa3bf;
    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, #0f4c75, #1f6fa8);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(31,111,168,0.14);
}

.edb-sel-progress-step.is-active .edb-sel-progress-label {
    color: #0d3352;
}

.edb-sel-progress-step.is-complete .edb-sel-progress-circle {
    background: #f5b400;
    color: #4a3600;
    animation: svis-step-pop .35s cubic-bezier(.34,1.56,.64,1);
}

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

.edb-sel-progress-step.is-complete .edb-sel-progress-label {
    color: #b98600;
}

.edb-sel-progress-line {
    flex: 1;
    height: 2px;
    background: #e5edf3;
    margin-top: 12px;
    transition: background-color .45s ease;
}

.edb-sel-progress-line.is-complete {
    background: #f5b400;
}

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

/* The Quick Enquiry wizard has 4 steps (vs. the 3-step School/Year/Class stepper this
   component was designed for) — needs a tighter breakpoint so 4 circles + labels fit
   on a narrow phone without wrapping or overflowing. */
@media (max-width: 420px) {
    .edb-enq-wizard-progress .edb-sel-progress-step { width: 58px; }
    .edb-enq-wizard-progress .edb-sel-progress-circle { width: 20px; height: 20px; font-size: 10px; }
    .edb-enq-wizard-progress .edb-sel-progress-label { font-size: 8.5px; letter-spacing: 0; }
    .edb-enq-wizard-progress .edb-sel-progress-line { margin-top: 10px; }
}

@media (max-width: 340px) {
    .edb-enq-wizard-progress .edb-sel-progress-step { width: 48px; }
    .edb-enq-wizard-progress .edb-sel-progress-label { font-size: 7.5px; }
}

/* ── Error banner ── */
.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;
}

/* ── Fields row — School / Year / Class side by side, equal columns.
   Grid (not flex) so no column can grow taller/wider than its neighbours. ── */
.edb-sel-fields-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: start;
    margin-bottom: 4px;
}

.edb-sel-fields-row:has(.edb-sel-field:nth-child(1):last-child) { grid-template-columns: 1fr; }
.edb-sel-fields-row:has(.edb-sel-field:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 520px) {
    .edb-sel-fields-row,
    .edb-sel-fields-row:has(.edb-sel-field:nth-child(1):last-child),
    .edb-sel-fields-row:has(.edb-sel-field:nth-child(2):last-child) {
        grid-template-columns: 1fr;
    }
}

.edb-sel-field {
    min-width: 0;
    margin-bottom: 4px;
    animation: svis-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-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}

.edb-sel-field label i {
    color: #1f6fa8;
    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: #1f6fa8;
    opacity: .7;
    pointer-events: none;
    z-index: 1;
}

/* Selectors below are deliberately over-qualified (repeating .edb-sel-input-wrap /
   adding the `select` type) to out-specificity `.edb-enq-section select.form-control`
   further down this file — Step 1's School/Year/Grade selects now live inside an
   .edb-enq-section card (since the wizard merge), so that generic rule also matches
   here and, with equal-or-lower specificity, was winning the padding tie-break by
   source order and stripping the left padding this icon-prefixed layout needs. */
.edb-sel-input-wrap.edb-sel-input-wrap select.form-control,
.edb-sel-input-wrap.edb-sel-input-wrap .form-control {
    width: 100% !important;
    height: 44px !important;
    padding: 8px 12px 8px 40px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13.5px !important;
    color: #0d3352 !important;
    background-color: rgba(244,249,253,0.95) !important;
    border: 1.5px solid rgba(31,111,168,0.22) !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='%231f6fa8' 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-input-wrap.edb-sel-input-wrap select.form-control:focus,
.edb-sel-input-wrap.edb-sel-input-wrap .form-control:focus {
    border-color: #1f6fa8 !important;
    box-shadow: 0 0 0 3px rgba(31,111,168,0.14) !important;
    background-color: #fff !important;
}

/* Placeholder select shown in Year/Grade before their prerequisite (School/Year) is
   picked — reads as "waiting", not broken/disabled-by-error. */
.edb-sel-input-wrap.edb-sel-input-wrap .form-control:disabled {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    border-color: rgba(31,111,168,0.12) !important;
    cursor: not-allowed;
    opacity: 1;
}

@media (max-width: 640px) {
    .edb-sel-page { padding: 1rem 0.75rem; }
}

/* ════════════════════════════════════════
   QUICK ENQUIRY INSERT FORM — edb-enq-page / ebi-grid-*
   ════════════════════════════════════════ */
.edb-enq-page {
    min-height: 60vh;
    padding: 1.5rem 1rem 3rem;
    font-family: 'DM Sans', sans-serif;
}

/* Keep the Quick Enquiry insert form the same width/centering as the selection shell
   above it, so the two read as one continuous page. */
.edb-enq-page-quick .edb-enq-section,
.edb-enq-page-quick .edb-enq-action-row,
.edb-enq-page-quick .edb-enq-wizard-progress {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 520px) {
    .edb-enq-page-quick .edb-enq-section,
    .edb-enq-page-quick .edb-enq-action-row,
    .edb-enq-page-quick .edb-enq-wizard-progress {
        width: 100%;
    }
}

/* ── Step wizard (Student / Parent / Residential) — mirrors the School/Year/Class
   stepper's visual language so the two read as one continuous flow. ── */
.edb-enq-wizard-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.edb-enq-step.is-hidden {
    display: none;
}

.edb-enq-step-nav {
    margin: 4px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.edb-enq-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1f6fa8;
    background: #eef5fb;
    border: 1.5px solid rgba(31,111,168,0.25);
    border-radius: 12px !important;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.edb-enq-btn-back:hover {
    background: #e2eef8;
    border-color: rgba(31,111,168,0.4);
}

.edb-enq-section {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(15,76,117,0.08);
    overflow: hidden;
    margin-bottom: 16px;
}

.edb-enq-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(31,111,168,0.09), rgba(245,180,0,0.06));
    border-bottom: 1px solid rgba(31,111,168,0.12);
    padding: 8px 16px;
}

.edb-enq-section-num {
    width: 28px;
    height: 28px;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #0f4c75, #1f6fa8);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edb-enq-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #0d3352;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex: 1;
}

.edb-enq-section-icon {
    color: #f5b400;
    font-size: 17px;
    flex-shrink: 0;
}

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

.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; }

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

.edb-enq-inner-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(31,111,168,.18) 0%, rgba(31,111,168,.04) 100%);
    margin: 10px 0 8px;
}

.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: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    color: #0d3352 !important;
    border: 1.5px solid rgba(31,111,168,0.22) !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: 36px !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: 36px !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='%231f6fa8' 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(244,249,253,0.95) !important;
}

.edb-enq-section .form-control:not([type="file"]):focus {
    border-color: #1f6fa8 !important;
    box-shadow: 0 0 0 3px rgba(31,111,168,0.14) !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-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-enq-action-row {
    margin: 4px auto 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.edb-enq-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #0f4c75, #1f6fa8);
    border: none;
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15,76,117,0.30);
    transition: opacity .2s, transform .15s;
    animation: svis-btn-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 svis-btn-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(15,76,117,0.30); }
    50%       { box-shadow: 0 4px 22px rgba(245,180,0,0.38); }
}

/* ── Confirmation modal ── */
.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: 640px;
    max-width: 95vw;
}

.edb-modal .modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(15,76,117,0.20) !important;
    font-family: 'DM Sans', sans-serif !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.edb-modal .modal-header {
    background: linear-gradient(90deg, #0f4c75, #1f6fa8) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 14px 20px !important;
    border-bottom: none !important;
    flex-shrink: 0;
}

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

.edb-modal .modal-title {
    color: #fff !important;
    font-family: 'Sora', sans-serif !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(31,111,168,0.18) !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: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #0f4c75, #1f6fa8);
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15,76,117,0.28);
}

.edb-enq-btn-ok:hover { opacity: .88; color: #fff; text-decoration: none; }

@media (max-width: 900px) {
    .ebi-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .edb-enq-page { padding: 1rem 0.75rem 2rem; }
    .ebi-grid-3,
    .ebi-grid-2 { grid-template-columns: 1fr; }
    .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; }
    .edb-enq-step-nav { flex-direction: column-reverse; align-items: stretch; }
    .edb-enq-step-nav .edb-enq-btn-back { justify-content: center; width: 100%; }
    .edb-sel-fields-row.edb-sel-fields-row { row-gap: 12px; }
}

/* ════════════════════════════════════════
   STEP 5: ADDITIONAL INFO — dynamic per-school questionnaire
   (OnlineStudentEnquiry_AddtionalInfoEdit.cshtml). The Razor markup/DSL logic there is
   untouched — only a `edb-ai-row` class was added alongside each question's existing
   `row` class, same lightweight approach ForCNS uses for its own copy of this view.
   ════════════════════════════════════════ */
.edb-ai-wrap {
    font-family: 'DM Sans', sans-serif;
}

/* Sub-group label (e.g. "Transport Details") between question groups. */
.edb-enq-subhead {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    color: #1f6fa8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 4px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef5fb;
}
.edb-enq-subhead .fa { font-size: 12px; opacity: .8; }

/* Each question's own card. */
.edb-ai-row.row {
    background: #fff;
    border: 1.5px solid rgba(31,111,168,0.12);
    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, #0f4c75, #1f6fa8) !important;
    border: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.edb-ai-row .form-control,
.edb-ai-row label.form-control {
    color: #0d3352;
}

.edb-ai-row .well {
    background: #eef5fb;
    border: 1px solid rgba(31,111,168,0.14);
    border-radius: 8px !important;
    box-shadow: none;
}

/* ── "$$" checkbox-group questions (fieldset.checkboxes) — each option renders as
   a col-md-6 > .well > label > input[checkbox], laid out by the Razor DSL above.
   The markup is untouched; these rules only restyle it into selectable chip cards
   that match the rest of the SVIS form language. ── */
.edb-ai-row .checkboxes {
    border: none;
    padding: 0;
    margin: 0;
}

.edb-ai-row div[style*="width:598px"] {
    width: 100% !important;
}

.edb-ai-row .checkboxes .row {
    margin-left: -5px;
    margin-right: -5px;
}

.edb-ai-row .checkboxes .row > [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

.edb-ai-row .checkboxes .well {
    background: #f8fbfd;
    border: 1.5px solid rgba(31,111,168,0.16);
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin: 0 0 8px !important;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.edb-ai-row .checkboxes .well:hover {
    border-color: rgba(31,111,168,0.4);
    background: #eef5fb;
}

.edb-ai-row .checkboxes .well:has(input[type="checkbox"]:checked) {
    background: #eaf3fb;
    border-color: #1f6fa8;
    box-shadow: 0 0 0 3px rgba(31,111,168,0.12);
}

.edb-ai-row .checkboxes label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-weight: 500;
    font-size: 13px;
    color: #0d3352 !important;
    cursor: pointer;
    margin: 0;
    word-break: break-word;
}

.edb-ai-row .checkboxes input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    border: 1.5px solid rgba(31,111,168,0.4);
    border-radius: 5px !important;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background-color .15s ease, border-color .15s ease;
}

.edb-ai-row .checkboxes input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #0f4c75, #1f6fa8);
    border-color: #1f6fa8;
}

.edb-ai-row .checkboxes input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.edb-ai-row .checkboxes input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31,111,168,0.25);
}

@media (max-width: 560px) {
    .edb-ai-row .checkboxes .row > [class*="col-md-6"] {
        width: 100%;
    }
}

/* Note/remark banners attached to a group or a single question. */
.edb-ai-remark {
    display: inline-block;
    background: rgba(31,111,168,0.07);
    border-left: 3px solid #1f6fa8;
    border-radius: 0 8px 8px 0 !important;
    padding: 6px 10px;
    font-size: 12px;
    color: #0f4c75;
    margin-bottom: 8px;
}

/* "No additional info configured for this grade" empty state. */
.edb-ai-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eef5fb;
    border: 1px dashed rgba(31,111,168,0.25);
    border-radius: 10px !important;
    padding: 14px 16px;
    font-size: 13px;
    color: #374151;
}
.edb-ai-empty .fa { color: #1f6fa8; font-size: 15px; }

/* ════════════════════════════════════════
   STEP 6: DECLARATION
   ════════════════════════════════════════ */
.edb-enq-declaration {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13.5px;
    color: #374151;
    line-height: 1.6;
    background: #eef5fb;
    border: 1.5px solid rgba(31,111,168,0.16);
    border-radius: 12px !important;
    padding: 14px 16px;
}

.edb-enq-declaration input[type="checkbox"] {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: #1f6fa8;
    cursor: pointer;
}
