/* =====================================================================
   LFHS Admission Portal - Design System (2027-2028)
   Glassmorphism cards, soft gradient backdrop, accessible form controls
   ===================================================================== */

:root {
    --lf-primary: #3b4fd8;
    --lf-primary-600: #2f3fc0;
    --lf-primary-700: #2633a0;
    --lf-primary-50: #eef1ff;
    --lf-primary-100: #dfe4ff;
    --lf-accent: #e0457b;
    --lf-accent-50: #fdeef4;
    --lf-success: #0f9f6e;
    --lf-success-50: #e7f8f1;
    --lf-warn: #d97706;
    --lf-warn-50: #fff6e5;
    --lf-danger: #dc2f45;
    --lf-danger-50: #fdecee;
    --lf-ink: #0f172a;
    --lf-ink-2: #334155;
    --lf-muted: #64748b;
    --lf-line: #e2e8f0;
    --lf-line-2: #cbd5e1;
    --lf-bg: #f4f6fb;
    --lf-glass: rgba(255, 255, 255, 0.74);
    --lf-glass-border: rgba(255, 255, 255, 0.85);
    --lf-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
    --lf-shadow: 0 10px 30px -12px rgba(30, 41, 99, 0.18), 0 4px 10px -6px rgba(30, 41, 99, 0.08);
    --lf-shadow-lg: 0 24px 50px -20px rgba(30, 41, 99, 0.30);
    --lf-ring: 0 0 0 4px rgba(59, 79, 216, 0.14);
    --lf-radius: 18px;
    --lf-radius-sm: 12px;
    --lf-radius-xs: 10px;
    --lf-grad: linear-gradient(135deg, #4f5ff0 0%, #3b4fd8 45%, #2a2f9e 100%);
    --lf-ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.lf-body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--lf-ink);
    background: var(--lf-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lf-body h1, .lf-body h2, .lf-body h3, .lf-body h4, .lf-body h5 {
    margin: 0;
    color: var(--lf-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.lf-body p { margin: 0; }
.lf-body a { color: var(--lf-primary); text-decoration: none; }
.lf-body a:hover { color: var(--lf-primary-700); }
.lf-body img { max-width: 100%; }

/* Soft animated backdrop */
.lf-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(99, 112, 241, 0.16), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(224, 69, 123, 0.10), transparent 60%),
        radial-gradient(900px 700px at 50% 110%, rgba(56, 189, 248, 0.12), transparent 60%),
        var(--lf-bg);
}

.lf-backdrop span {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .45;
    animation: lfFloat 18s ease-in-out infinite;
}

.lf-backdrop span:nth-child(1) { width: 380px; height: 380px; background: #c7cdfd; top: 8%; left: -80px; }
.lf-backdrop span:nth-child(2) { width: 300px; height: 300px; background: #fbcfe0; top: 40%; right: -60px; animation-delay: -6s; }
.lf-backdrop span:nth-child(3) { width: 260px; height: 260px; background: #bae6fd; bottom: -60px; left: 30%; animation-delay: -12s; }

@keyframes lfFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -24px) scale(1.06); }
}

/* ---------- Header ---------- */
.lf-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: box-shadow .25s var(--lf-ease);
}

.lf-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.35); }

.lf-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.lf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--lf-ink) !important;
    min-width: 0;
}

.lf-brand img { height: 42px; width: auto; display: block; }

.lf-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lf-brand-title { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.lf-brand-sub { font-size: 12px; color: var(--lf-muted); font-weight: 500; white-space: nowrap; }

.lf-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.lf-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--lf-ink-2);
    font-weight: 600;
    font-size: 14px;
    transition: background .2s, color .2s;
}

.lf-nav a:hover { background: var(--lf-primary-50); color: var(--lf-primary); }
.lf-nav a.is-active { background: var(--lf-primary-50); color: var(--lf-primary); }

.lf-year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--lf-grad);
    box-shadow: 0 6px 16px -8px rgba(59, 79, 216, .7);
    white-space: nowrap;
}

.lf-burger {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--lf-line);
    background: #fff;
    color: var(--lf-ink);
    font-size: 18px;
    cursor: pointer;
}

/* Mobile drawer */
.lf-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 90;
}

.lf-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: -20px 0 40px -20px rgba(15, 23, 42, .35);
    transform: translateX(100%);
    transition: transform .32s var(--lf-ease);
    z-index: 100;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lf-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lf-drawer-head strong { font-size: 16px; }

.lf-drawer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--lf-ink-2);
    font-weight: 600;
}

.lf-drawer a i { width: 20px; text-align: center; color: var(--lf-primary); }
.lf-drawer a:hover, .lf-drawer a.is-active { background: var(--lf-primary-50); color: var(--lf-primary); }

body.lf-drawer-open .lf-drawer { transform: translateX(0); }
body.lf-drawer-open .lf-drawer-backdrop { opacity: 1; visibility: visible; }
body.lf-drawer-open { overflow: hidden; }

/* ---------- Stepper ---------- */
.lf-stepper-wrap { max-width: 1180px; margin: 0 auto; padding: 22px 20px 0; }

.lf-stepper {
    list-style: none;
    margin: 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--lf-glass);
    border: 1px solid var(--lf-glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 999px;
    box-shadow: var(--lf-shadow-sm);
}

.lf-stepper li { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.lf-stepper li:not(:last-child)::after {
    content: "";
    flex: 1;
    height: 2px;
    margin: 0 10px;
    border-radius: 2px;
    background: var(--lf-line);
}
.lf-stepper li.is-done:not(:last-child)::after { background: linear-gradient(90deg, var(--lf-success), #34d399); }

.lf-step-dot {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--lf-muted);
    background: #fff;
    border: 2px solid var(--lf-line);
    transition: all .3s var(--lf-ease);
}

.lf-step-label { font-size: 13px; font-weight: 600; color: var(--lf-muted); white-space: nowrap; }

.lf-stepper li.is-done .lf-step-dot { background: var(--lf-success); border-color: var(--lf-success); color: #fff; }
.lf-stepper li.is-done .lf-step-label { color: var(--lf-ink-2); }
.lf-stepper li.is-active .lf-step-dot {
    background: var(--lf-grad);
    border-color: transparent;
    color: #fff;
    animation: lfPulse 2s infinite;
}
.lf-stepper li.is-active .lf-step-label { color: var(--lf-primary); font-weight: 700; }

@keyframes lfPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 79, 216, .45); }
    70% { box-shadow: 0 0 0 10px rgba(59, 79, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 79, 216, 0); }
}

/* ---------- Layout ---------- */
.lf-main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px; }
.lf-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.lf-stack > * + * { margin-top: 20px; }

/* ---------- Cards ---------- */
.lf-card {
    position: relative;
    background: var(--lf-glass);
    border: 1px solid var(--lf-glass-border);
    border-radius: var(--lf-radius);
    box-shadow: var(--lf-shadow);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    padding: 28px;
}

.lf-card-sm { padding: 20px; }
.lf-card-hover { transition: transform .3s var(--lf-ease), box-shadow .3s var(--lf-ease); }
.lf-card-hover:hover { transform: translateY(-4px); box-shadow: var(--lf-shadow-lg); }

.lf-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.lf-card-head h2, .lf-card-head h3 { font-size: 18px; }
.lf-card-head p { color: var(--lf-muted); font-size: 13.5px; margin-top: 2px; }

.lf-ico {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: var(--lf-primary);
    background: var(--lf-primary-50);
}

.lf-ico.is-grad { color: #fff; background: var(--lf-grad); box-shadow: 0 8px 18px -10px rgba(59, 79, 216, .8); }
.lf-ico.is-rose { color: var(--lf-accent); background: var(--lf-accent-50); }
.lf-ico.is-green { color: var(--lf-success); background: var(--lf-success-50); }
.lf-ico.is-amber { color: var(--lf-warn); background: var(--lf-warn-50); }

.lf-divider { height: 1px; background: var(--lf-line); margin: 22px 0; border: 0; }

/* ---------- Page hero ---------- */
.lf-page-head { margin-bottom: 22px; }
.lf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lf-primary);
    background: var(--lf-primary-50);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.lf-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.lf-lead { color: var(--lf-muted); font-size: 15.5px; margin-top: 8px; max-width: 680px; }
.lf-muted { color: var(--lf-muted); }
.lf-small { font-size: 13px; }
.lf-grad-text { background: var(--lf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.lf-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform .2s var(--lf-ease), box-shadow .2s var(--lf-ease), background .2s, color .2s, border-color .2s;
    position: relative;
    white-space: normal;
    text-align: center;
}

.lf-btn:active { transform: translateY(1px) scale(.99); }
.lf-btn:focus-visible { outline: none; box-shadow: var(--lf-ring); }

.lf-btn-primary { color: #fff !important; background: var(--lf-grad); box-shadow: 0 12px 24px -12px rgba(59, 79, 216, .75); }
.lf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(59, 79, 216, .85); }

.lf-btn-success { color: #fff !important; background: linear-gradient(135deg, #16b981, #0f9f6e); box-shadow: 0 12px 24px -12px rgba(15, 159, 110, .7); }
.lf-btn-success:hover { transform: translateY(-2px); }

.lf-btn-outline { color: var(--lf-primary) !important; background: #fff; border-color: var(--lf-primary-100); }
.lf-btn-outline:hover { border-color: var(--lf-primary); background: var(--lf-primary-50); }

.lf-btn-ghost { color: var(--lf-ink-2) !important; background: transparent; border-color: var(--lf-line); }
.lf-btn-ghost:hover { background: #fff; }

.lf-btn-lg { min-height: 56px; padding: 14px 32px; font-size: 16px; border-radius: 16px; }
.lf-btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.lf-btn-block { width: 100%; }

.lf-btn.is-loading { color: transparent !important; pointer-events: none; }
.lf-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: lfSpin .7s linear infinite;
}
.lf-btn-outline.is-loading::after, .lf-btn-ghost.is-loading::after { border-color: var(--lf-primary-100); border-top-color: var(--lf-primary); }

@keyframes lfSpin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.lf-grid { display: grid; gap: 18px; }

.lf-field { display: flex; flex-direction: column; min-width: 0; }

.lf-label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lf-ink-2);
    margin-bottom: 7px;
}

.lf-label small { font-weight: 500; color: var(--lf-muted); font-size: 12px; }
.lf-req { color: var(--lf-danger); }

.lf-control { position: relative; }

.lf-control > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color .2s;
}

.lf-control.is-textarea > i { top: 18px; transform: none; }

.lf-input,
.lf-body select.lf-input,
.lf-body textarea.lf-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--lf-ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--lf-line);
    border-radius: var(--lf-radius-sm);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}

.lf-control > i ~ .lf-input, .lf-control > i + input, .lf-control > i + select, .lf-control > i + textarea { padding-left: 42px; }

textarea.lf-input { min-height: 96px; resize: vertical; line-height: 1.5; }

select.lf-input {
    cursor: pointer;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.lf-input::placeholder { color: #a0aec0; font-weight: 400; }
.lf-input:hover { border-color: var(--lf-line-2); }
.lf-input:focus { border-color: var(--lf-primary); box-shadow: var(--lf-ring); background: #fff; }
.lf-control:focus-within > i { color: var(--lf-primary); }

.lf-field.is-invalid .lf-input { border-color: var(--lf-danger); background: #fffafa; }
.lf-field.is-invalid .lf-input:focus { box-shadow: 0 0 0 4px rgba(220, 47, 69, .12); }
.lf-field.is-valid .lf-input { border-color: #86d9b6; }

.lf-hint { font-size: 12.5px; color: var(--lf-muted); margin-top: 6px; }

.lf-err, .lf-body span.lf-err {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lf-danger);
    margin-top: 6px;
}

.lf-err:empty { display: none; }
.lf-js-err { display: none; }
.lf-field.is-invalid .lf-js-err { display: flex; align-items: center; gap: 6px; }

.lf-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lf-muted);
    margin: 4px 0 14px;
}

.lf-section-title::after { content: ""; flex: 1; height: 1px; background: var(--lf-line); }

/* Custom checkbox */
.lf-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--lf-radius-sm);
    background: rgba(238, 241, 255, 0.6);
    border: 1.5px solid var(--lf-primary-100);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.lf-check:hover { border-color: var(--lf-primary); }
.lf-check input {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 2px solid var(--lf-line-2);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s;
}
.lf-check input:checked { background: var(--lf-primary); border-color: var(--lf-primary); }
.lf-check input:checked::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.lf-check span { font-size: 14px; color: var(--lf-ink-2); line-height: 1.55; }
.lf-check.is-invalid { border-color: var(--lf-danger); background: var(--lf-danger-50); animation: lfShake .35s; }

@keyframes lfShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Toggle switch */
.lf-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.lf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lf-switch-track {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: var(--lf-line-2);
    transition: background .25s;
}
.lf-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .25);
    transition: transform .25s var(--lf-ease);
}
.lf-switch input:checked + .lf-switch-track { background: var(--lf-primary); }
.lf-switch input:checked + .lf-switch-track::after { transform: translateX(20px); }
.lf-switch input:focus-visible + .lf-switch-track { box-shadow: var(--lf-ring); }

/* Segmented radio (pill choice) */
.lf-seg { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- WhatsApp OTP ---------- */
.lf-otp-row { display: flex; gap: 10px; align-items: stretch; }
.lf-otp-row > .lf-btn { flex: 0 0 auto; white-space: nowrap; }
.lf-otp-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--lf-success);
    background: var(--lf-success-50);
    border: 1px solid #bdeedb;
}
.is-otp-verified .lf-otp-badge { display: inline-flex; animation: lfPop .4s var(--lf-ease) both; }
.is-otp-verified .lf-input { border-color: #86d9b6; background: #f6fdf9; }
.is-otp-verified .lf-input[readonly] { cursor: default; }
.lf-otp-panel {
    margin-top: 14px;
    padding: 18px;
    border-radius: var(--lf-radius-sm);
    background: rgba(238, 241, 255, .55);
    border: 1.5px solid var(--lf-primary-100);
    animation: lfIn .35s var(--lf-ease);
}
.lf-otp-boxes { display: flex; gap: 10px; }
.lf-otp-boxes input {
    width: 52px;
    height: 58px;
    text-align: center;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    color: var(--lf-ink);
    border: 1.5px solid var(--lf-line-2);
    border-radius: 14px;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.lf-otp-boxes input:focus { border-color: var(--lf-primary); box-shadow: var(--lf-ring); transform: translateY(-1px); }
.lf-otp-boxes input.filled { border-color: var(--lf-primary); background: var(--lf-primary-50); }
.lf-dev-otp { margin-top: 12px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #8a4b05; background: var(--lf-warn-50); border: 1px dashed #f5b74e; }
@media (max-width: 520px) {
    .lf-otp-row { flex-wrap: wrap; }
    .lf-otp-row > .lf-btn { flex: 1 1 100%; }
    .lf-otp-boxes { gap: 6px; }
    .lf-otp-boxes input { width: calc((100% - 30px) / 6); height: 52px; font-size: 21px; }
}

/* ---------- Alerts ---------- */
.lf-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--lf-radius-sm);
    font-size: 14px;
    line-height: 1.55;
    border: 1px solid transparent;
}
.lf-alert > i { font-size: 17px; margin-top: 2px; }
.lf-alert strong { color: inherit; }
.lf-alert-info { background: var(--lf-primary-50); color: #2633a0; border-color: var(--lf-primary-100); }
.lf-alert-success { background: var(--lf-success-50); color: #0b6b4b; border-color: #bdeedb; }
.lf-alert-warn { background: var(--lf-warn-50); color: #8a4b05; border-color: #fde3b0; }
.lf-alert-danger { background: var(--lf-danger-50); color: #a1182b; border-color: #f8c9d0; }

/* ---------- Chips / badges ---------- */
.lf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--lf-line);
    color: var(--lf-ink-2);
}
.lf-chip.is-green { background: var(--lf-success-50); color: var(--lf-success); border-color: #bdeedb; }
.lf-chip.is-amber { background: var(--lf-warn-50); color: var(--lf-warn); border-color: #fde3b0; }
.lf-chip.is-red { background: var(--lf-danger-50); color: var(--lf-danger); border-color: #f8c9d0; }
.lf-chip.is-blue { background: var(--lf-primary-50); color: var(--lf-primary); border-color: var(--lf-primary-100); }

.lf-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.lf-dot.is-live { animation: lfPulseDot 1.6s infinite; }
@keyframes lfPulseDot {
    0% { box-shadow: 0 0 0 0 currentColor; }
    70% { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* ---------- Key-value list ---------- */
.lf-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lf-kv-item {
    padding: 14px 16px;
    border-radius: var(--lf-radius-sm);
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid var(--lf-line);
    min-width: 0;
}
.lf-kv-item dt, .lf-kv-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lf-muted); margin-bottom: 4px; }
.lf-kv-item dd, .lf-kv-value { margin: 0; font-size: 15px; font-weight: 700; color: var(--lf-ink); word-break: break-word; }

/* ---------- Result state ---------- */
.lf-result { text-align: center; padding: 12px 4px; }
.lf-result-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 36px;
    color: #fff;
    background: linear-gradient(135deg, #22c58b, #0f9f6e);
    box-shadow: 0 0 0 10px rgba(15, 159, 110, .12), 0 18px 34px -14px rgba(15, 159, 110, .8);
    animation: lfPop .5s var(--lf-ease) both;
}
.lf-result.is-error .lf-result-icon {
    background: linear-gradient(135deg, #f0576c, #dc2f45);
    box-shadow: 0 0 0 10px rgba(220, 47, 69, .12), 0 18px 34px -14px rgba(220, 47, 69, .8);
}
.lf-result.is-info .lf-result-icon {
    background: var(--lf-grad);
    box-shadow: 0 0 0 10px rgba(59, 79, 216, .12), 0 18px 34px -14px rgba(59, 79, 216, .8);
}
.lf-result .lf-bad { display: none; }
.lf-result.is-error .lf-ok { display: none; }
.lf-result.is-error .lf-bad { display: inline-block; }
.lf-result-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.lf-result-text { color: var(--lf-muted); font-size: 15px; max-width: 560px; margin: 0 auto; }
.lf-result-note { display: block; font-size: 14px; font-weight: 600; color: var(--lf-muted); margin-top: 6px; letter-spacing: 0; }
.lf-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.lf-result-actions a:not(.lf-btn) { font-weight: 700; }

@keyframes lfPop {
    0% { transform: scale(.4); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

/* Server generated links (from code-behind) rendered as buttons */
.lf-result-text a.btn, .lf-result-actions a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 26px;
    margin-top: 12px;
    border-radius: 14px;
    font-weight: 700;
    color: #fff !important;
    background: var(--lf-grad);
    box-shadow: 0 12px 24px -12px rgba(59, 79, 216, .75);
}

/* ---------- Timeline / steps ---------- */
.lf-steps { list-style: none; margin: 0; padding: 0; counter-reset: lfstep; }
.lf-steps li { position: relative; padding: 0 0 22px 52px; counter-increment: lfstep; }
.lf-steps li:last-child { padding-bottom: 0; }
.lf-steps li::before {
    content: counter(lfstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--lf-primary);
    background: var(--lf-primary-50);
    border: 1px solid var(--lf-primary-100);
}
.lf-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 42px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--lf-primary-100), transparent);
}
.lf-steps h4 { font-size: 15px; margin-bottom: 3px; }
.lf-steps p { color: var(--lf-muted); font-size: 13.5px; }

/* Check list */
.lf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lf-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--lf-ink-2); }
.lf-list li > i { color: var(--lf-success); margin-top: 4px; font-size: 14px; }

/* ---------- Upload ---------- */
.lf-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 220px;
    padding: 18px;
    border-radius: var(--lf-radius);
    border: 2px dashed var(--lf-line-2);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s, transform .2s;
}
.lf-upload:hover, .lf-upload.is-drag { border-color: var(--lf-primary); background: var(--lf-primary-50); }
.lf-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2; }
.lf-upload-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: var(--lf-primary); background: var(--lf-primary-50); }
.lf-upload h4 { font-size: 15px; }
.lf-upload p { font-size: 12.5px; color: var(--lf-muted); }
.lf-upload img.lf-preview { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f1f5f9; z-index: 1; }
.lf-upload.has-file { border-style: solid; border-color: var(--lf-success); }
.lf-upload.has-file img.lf-preview { display: block; }
.lf-upload.has-file .lf-upload-ico, .lf-upload.has-file h4, .lf-upload.has-file p { visibility: hidden; }
.lf-upload-tag {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.lf-upload.has-file .lf-upload-tag { display: flex; }
.lf-upload-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-upload.is-invalid { border-color: var(--lf-danger); background: var(--lf-danger-50); }

/* ---------- Wizard ---------- */
.lf-wizard-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.lf-wizard-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid var(--lf-line);
    background: rgba(255, 255, 255, .7);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--lf-muted);
    cursor: pointer;
    text-align: left;
    transition: all .25s var(--lf-ease);
    min-width: 0;
}
.lf-wizard-tab .n {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    background: #f1f5f9;
    color: var(--lf-muted);
}
.lf-wizard-tab .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-wizard-tab.is-active { border-color: var(--lf-primary); color: var(--lf-primary); background: #fff; box-shadow: var(--lf-ring); }
.lf-wizard-tab.is-active .n { background: var(--lf-grad); color: #fff; }
.lf-wizard-tab.is-done { color: var(--lf-ink-2); }
.lf-wizard-tab.is-done .n { background: var(--lf-success); color: #fff; }
.lf-wizard-tab.has-error { border-color: var(--lf-danger); }
.lf-wizard-tab.has-error .n { background: var(--lf-danger); color: #fff; }

.lf-pane { display: none; }
.lf-pane.is-active { display: block; animation: lfIn .35s var(--lf-ease); }

.lf-wizard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--lf-line);
}

.lf-progress { height: 6px; border-radius: 6px; background: var(--lf-line); overflow: hidden; margin-bottom: 18px; }
.lf-progress > span { display: block; height: 100%; width: 0; background: var(--lf-grad); border-radius: 6px; transition: width .4s var(--lf-ease); }

/* Review summary */
.lf-review { display: grid; gap: 14px; }
.lf-review-block { border: 1px solid var(--lf-line); border-radius: var(--lf-radius-sm); background: rgba(255, 255, 255, .7); overflow: hidden; }
.lf-review-block header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(248, 250, 252, .9); border-bottom: 1px solid var(--lf-line); font-weight: 700; font-size: 14px; }
.lf-review-block header button { border: 0; background: none; color: var(--lf-primary); font-weight: 700; font-family: inherit; font-size: 13px; cursor: pointer; }
.lf-review-block dl { margin: 0; padding: 12px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.lf-review-block dt { font-size: 12px; color: var(--lf-muted); font-weight: 600; }
.lf-review-block dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--lf-ink); word-break: break-word; }

/* ---------- Hero (landing) ---------- */
.lf-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 48px 44px;
    color: #fff;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(224, 69, 123, .45), transparent 60%),
        radial-gradient(500px 300px at 0% 100%, rgba(56, 189, 248, .35), transparent 60%),
        linear-gradient(135deg, #2a2f9e 0%, #3b4fd8 55%, #5b5ff2 100%);
    box-shadow: var(--lf-shadow-lg);
}
.lf-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
    -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
    pointer-events: none;
}
.lf-hero > * { position: relative; z-index: 1; }
.lf-hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.lf-hero p.lead { color: rgba(255, 255, 255, .85); font-size: 16.5px; margin-top: 14px; max-width: 560px; }
.lf-hero .lf-eyebrow { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.lf-hero .lf-btn-primary { background: #fff; color: var(--lf-primary-700) !important; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.lf-hero .lf-btn-outline { background: rgba(255, 255, 255, .1); color: #fff !important; border-color: rgba(255, 255, 255, .4); }
.lf-hero .lf-btn-outline:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

.lf-hero-panel {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.lf-hero-panel .row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.lf-hero-panel .row:last-child { border-bottom: 0; }
.lf-hero-panel .ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); color: #fff; }
.lf-hero-panel small { display: block; color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lf-hero-panel strong { color: #fff; font-size: 16px; }

/* FAQ */
.lf-faq details {
    border: 1px solid var(--lf-line);
    border-radius: var(--lf-radius-sm);
    background: rgba(255, 255, 255, .75);
    padding: 0 18px;
    transition: box-shadow .2s;
}
.lf-faq details + details { margin-top: 10px; }
.lf-faq details[open] { box-shadow: var(--lf-shadow-sm); background: #fff; }
.lf-faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq summary i { color: var(--lf-muted); transition: transform .25s; }
.lf-faq details[open] summary i { transform: rotate(180deg); color: var(--lf-primary); }
.lf-faq details p { padding: 0 0 16px; color: var(--lf-muted); font-size: 14px; }

/* Prose (rules / terms) */
.lf-prose h2 { font-size: 19px; margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }
.lf-prose h2:first-child { margin-top: 0; }
.lf-prose p, .lf-prose li { color: var(--lf-ink-2); font-size: 15px; line-height: 1.75; }
.lf-prose ul, .lf-prose ol { padding-left: 0; list-style: none; margin: 0; display: grid; gap: 10px; }
.lf-prose li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(248, 250, 252, .85); border: 1px solid var(--lf-line); }
.lf-prose li > i { margin-top: 6px; color: var(--lf-primary); width: 16px; text-align: center; flex: 0 0 16px; }
.lf-prose li > i.fa-circle { font-size: 7px; margin-top: 11px; }
.lf-prose h2 .lf-ico { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; border-radius: 11px; }

/* Razorpay injected button */
.lf-pay-btn-host { display: flex; justify-content: center; }
.lf-pay-btn-host form { margin: 0; width: 100%; }
.lf-pay-btn-host .razorpay-payment-button {
    width: 100%;
    min-height: 58px;
    padding: 14px 28px;
    border: 0;
    border-radius: 16px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #16b981, #0f9f6e);
    box-shadow: 0 16px 30px -14px rgba(15, 159, 110, .85);
    transition: transform .2s var(--lf-ease), box-shadow .2s;
    animation: lfPulseGreen 2.4s infinite;
}
.lf-pay-btn-host .razorpay-payment-button:hover { transform: translateY(-2px); }
@keyframes lfPulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(15, 159, 110, .45), 0 16px 30px -14px rgba(15, 159, 110, .85); }
    70% { box-shadow: 0 0 0 12px rgba(15, 159, 110, 0), 0 16px 30px -14px rgba(15, 159, 110, .85); }
    100% { box-shadow: 0 0 0 0 rgba(15, 159, 110, 0), 0 16px 30px -14px rgba(15, 159, 110, .85); }
}

.lf-amount { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.lf-amount small { font-size: 18px; font-weight: 700; color: var(--lf-muted); margin-left: 4px; }

/* ---------- Skeleton ---------- */
.lf-skel {
    position: relative;
    overflow: hidden;
    background: #e9edf5;
    border-radius: 10px;
}
.lf-skel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    animation: lfShimmer 1.3s infinite;
}
@keyframes lfShimmer { to { transform: translateX(100%); } }
.lf-skel-line { height: 14px; margin-bottom: 10px; }
.lf-skel-block { height: 70px; }
.lf-skeleton-host { display: none; }
.lf-is-busy .lf-skeleton-host { display: block; }
.lf-is-busy .lf-hide-busy { display: none !important; }

/* ---------- Overlay & toast ---------- */
.lf-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: rgba(244, 246, 251, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.lf-overlay.is-on { opacity: 1; visibility: visible; }
.lf-overlay-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 34px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--lf-shadow-lg);
    font-weight: 700;
    color: var(--lf-ink-2);
}
.lf-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--lf-primary-100); border-top-color: var(--lf-primary); animation: lfSpin .8s linear infinite; }

.lf-toasts { position: fixed; z-index: 300; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.lf-toast {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--lf-shadow-lg);
    animation: lfToastIn .35s var(--lf-ease);
}
.lf-toast i { margin-top: 3px; }
.lf-toast.is-error i { color: #fb7185; }
.lf-toast.is-success i { color: #34d399; }
.lf-toast.is-info i { color: #93c5fd; }
.lf-toast.is-out { animation: lfToastOut .3s forwards; }
@keyframes lfToastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lfToastOut { to { opacity: 0; transform: translateY(12px); } }

/* ---------- Reveal animations ---------- */
@keyframes lfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lf-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--lf-ease), transform .6s var(--lf-ease); }
.lf-reveal.is-in { opacity: 1; transform: none; }
.lf-anim-in { animation: lfIn .5s var(--lf-ease) both; }

/* ---------- Footer ---------- */
.lf-footer { border-top: 1px solid rgba(226, 232, 240, .9); background: rgba(255, 255, 255, .6); backdrop-filter: blur(10px); }
.lf-footer-inner { max-width: 1180px; margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--lf-muted); }
.lf-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.lf-footer-links a { color: var(--lf-ink-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.lf-footer-links a:hover { color: var(--lf-primary); }

/* ---------- ASP.NET helpers ---------- */
.lf-body .lf-hidden { display: none !important; }

/* ---------- Responsive ---------- */
.lf-nav a { white-space: nowrap; }

@media (max-width: 1100px) {
    .lf-brand-sub { display: none; }
}

@media (max-width: 960px) {
    .lf-nav, .lf-header .lf-year { display: none; }
    .lf-burger { display: inline-grid; place-items: center; }
    .lf-wizard-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lf-wizard-tab { justify-content: center; padding: 10px 6px; }
    .lf-wizard-tab .t { display: none; }
}

@media (max-width: 720px) {
    body.lf-body { font-size: 14.5px; }
    .lf-header-inner { padding: 10px 16px; }
    .lf-brand img { height: 36px; }
    .lf-brand-sub { display: none; }
    .lf-brand-title { font-size: 14px; white-space: normal; }
    .lf-stepper-wrap { padding: 14px 16px 0; }
    .lf-stepper { padding: 10px 12px; border-radius: 18px; }
    .lf-stepper li:not(:last-child)::after { margin: 0 6px; }
    .lf-step-label { display: none; }
    .lf-main { padding: 18px 16px 40px; }
    .lf-card { padding: 20px; border-radius: 16px; }
    .lf-hero { padding: 30px 22px; border-radius: 22px; }
    .lf-wizard-foot { flex-direction: column-reverse; align-items: stretch; }
    .lf-wizard-foot .lf-btn { width: 100%; }
    .lf-toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .lf-amount { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .lf-reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
    .lf-header, .lf-footer, .lf-stepper-wrap, .lf-backdrop, .lf-no-print, .lf-toasts, .lf-overlay { display: none !important; }
    body.lf-body { background: #fff; }
    .lf-card { box-shadow: none; border: 1px solid #ddd; backdrop-filter: none; background: #fff; break-inside: avoid; }
    .lf-main { padding: 0; }
}
