/* ==========================================================================
   Easyrupeeloan — Customer portal · Stage 1 (apply.html) — page styles
   5 Oct 2026 (the owner): a clean screen with only the form: a short title, one white card holding the
   form in a grid of grey-filled fields, and one line under it (never pay in cash, the rates and charges
   on the home page). The feature cards, side panel, photo and the site's bands are gone. The form is cut
   into sections, one on screen at a time (25 Sep 2026), with no step bar, step numbers or step count
   (26 Sep 2026, the owner's request): each section's badge is an icon, and Back and Continue move on.
   Builds on assets/brand.css (--er-* palette, the shared header and footer, the preview ribbon) and
   assets/platform.css (tokens, buttons, inputs, cards, chips, modals).
   --er-ribbon-h is the preview ribbon's height (0 in live mode), set by apply.js.
   No style attribute anywhere (CSP): per-element numbers are set from script through the CSSOM
   (the code boxes' distances in the "Mobile verified" moment).
   ========================================================================== */

/* ---------- small helpers ---------- */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 1100; display: inline-flex; align-items: center; min-height: 44px; background: var(--er-dark, #1A1A2E); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
/* just below the preview ribbon when there is one, at the top of the page when there isn't */
.skip-link:focus { top: calc(var(--er-ribbon-h, 0px) + 8px); text-decoration: none; }
.tap { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
body.is-processing { overflow: hidden; }
.btn .ic { flex: 0 0 auto; }
.btn[disabled].is-loading { opacity: .82; }
.btn-link:focus-visible { box-shadow: var(--focus); border-radius: 6px; }
#main:focus { outline: none; box-shadow: none; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
fieldset.lockable { border: 0; margin: 0; padding: 0; min-width: 0; }
/* the gender question on the Credit score step (30 Sep 2026: only where the credit bureau is live): a plain group */
fieldset.gender-field { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
fieldset.gender-field > legend { padding: 0; margin-bottom: 6px; }

/* the result is the page's heading once the check is done */
body.view-outcome .ea-h1 { display: none; }

/* ---------- apply-now.html, the application's own page (5 Oct 2026, the owner). 8 Oct 2026 (the owner): one plain
   screen: a slim header (logo, Sign out once signed in) and a one-line footer, no menu or link lists, filling the screen
   with the card in the middle between them (a step taller than the screen scrolls as usual; on a phone the card starts
   at the top); a soft background, 760 px, two fields a row; the short notes under the steps centred (not on a phone).
   Everything here is under body.ea-app or its own classes, so apply.html keeps its look ---------- */
body.ea-app { background: var(--er-surface, #F5F5F2); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.ea-head { background: #fff; box-shadow: 0 1px 0 var(--er-line, #E2E2E2); }
.ea-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; min-height: 64px; margin: 0 auto;
  padding: 8px 16px; box-sizing: border-box; }
.ea-head .er-brand img { display: block; width: auto; height: 40px; }
.ea-head-out { min-height: 44px; border: 0; background: none; padding: 0 12px; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; }
.ea-head-out:hover { color: var(--ink); text-decoration: underline; }
body.ea-app .ea-main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: clamp(16px, 4vh, 40px) 0; }
body.ea-app .ea-main > .container { width: 100%; }
.ea-foot { background: #fff; border-top: 1px solid var(--er-line, #E2E2E2); }
.ea-foot p { max-width: 1200px; margin: 0 auto; padding: 12px 16px; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
body.ea-app #form-view { max-width: 760px; margin-left: auto; margin-right: auto; }
/* 8 Oct 2026 (the owner): on the mobile-number step only, the card on the left and, on the right, which number to use
   (#ea-side); under the card on a narrower screen. Every other step keeps the one centred card */
.ea-side { display: none; }
body.ea-app #form-view:has(#apply-form[data-step="mobile"]) { max-width: 1140px; }
body.ea-app .ea-grid:has(> #apply-form[data-step="mobile"]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 24px; align-items: stretch; }
body.ea-app .ea-grid:has(> #apply-form[data-step="mobile"]) > .ea-side { display: flex; }
.ea-side { flex-direction: column; justify-content: center; gap: 10px; padding: 22px 24px; border: 1px solid #F3D9CF; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--er-primary-soft, #FFF1EC) 0%, #fff 70%); color: var(--ink); }
.ea-side-art { display: block; width: 100%; max-width: 200px; height: auto; max-height: 118px; margin: 0 auto 2px; }
.ea-side-h { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.ea-side-lede { margin: 0; font-size: 14.5px; color: var(--muted); }
.ea-side-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 11px; }
.ea-side-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.ea-side-list b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 1px; }
.ea-side-ic { flex: 0 0 36px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: #fff; border: 1px solid #F3D9CF; color: var(--er-primary-dk, #C7371A); }
.ea-side-note { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: var(--er-primary-dk, #C7371A); }
@media (max-width: 900px) {
  body.ea-app .ea-grid:has(> #apply-form[data-step="mobile"]) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ea-side { padding: 20px 18px; }
  .ea-side-art { max-height: 110px; }
}
@media (min-width: 761px) {
  body.ea-app .fine { justify-content: center; text-align: center; }
  body.ea-app .ea-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ea-app .ea-fields > .span-2 { grid-column: 1 / -1; }
}

/* the progress line (5 Oct 2026, the owner: the customer should see the process moving forward): the card's top edge
   fills to --p (set by apply.js at each step) with a soft ease; a light glides along the filled part when a step opens
   and keeps gliding while anything on the card is loading (a button's or the credit check's spinner). No numbers, and
   aria-hidden. The plain sweep (.ea-card::before) is not drawn where the line is. Reduced motion: the line just sits at
   its place (platform.css) */
.ea-prog { position: absolute; left: 0; right: 0; top: -1px; height: 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: rgba(254, 81, 47, .12); pointer-events: none; z-index: 2; }
.ea-prog > span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, .06)); transition: transform .7s cubic-bezier(.4, 0, .2, 1); background: linear-gradient(90deg, var(--primary), #FF8A6A); }
.ea-prog > span::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent) 0 0 / 40% 100% no-repeat; }
.ea-card:has(> .ea-prog)::before { display: none; }
.ea-card.is-moving > .ea-prog > span::after { animation: epGlide .9s cubic-bezier(.4, 0, .2, 1); }
.ea-card:has(.is-loading, #credit-body .spin, .otp-win) > .ea-prog > span::after { animation: epGlide 1.2s linear infinite; }
#apply-form.is-collapsed > .ea-prog { display: none; }
@keyframes epGlide { 0% { opacity: 1; background-position: -60% 0; } 100% { opacity: 1; background-position: 160% 0; } }

/* ---------- main ---------- */
.ea-main { padding: 36px 0 32px; }
/* one column, centred (5 Oct 2026) */
.ea-h1, #form-view, .ea-safe { max-width: 880px; margin-left: auto; margin-right: auto; }
.ea-h1 { margin-bottom: 18px; font-size: clamp(24px, 2.8vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.ea-safe { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.ea-safe .ic { color: var(--green-500); flex: 0 0 auto; }
.ea-safe a { color: var(--ink); font-weight: 600; }
#apply-form, #sec-basic, #sec-credit, #sec-employment, #sec-loan, #sec-residence, #submit-card, #signin, #panel-selfie, .field { scroll-margin-top: calc(var(--er-ribbon-h, 0px) + 16px); }

/* the one white card that holds the whole form, cut into sections by thin lines */
.ea-card { position: relative; background: #fff; border: 1px solid #E2E2E2; border-radius: var(--radius); box-shadow: var(--shadow-card); min-width: 0; }

/* ---------- moving between screens (5 Oct 2026, the owner): a short loading sweep along the card's top edge, then the
   next screen rises in, its fields a beat apart. Purely visual: the step is already open when it plays. It always fills
   the whole edge, so it is never a step bar. Reduced motion: none of it (platform.css) ---------- */
.ea-card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: var(--radius) var(--radius) 0 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, var(--primary), #FF9A7E 60%, var(--primary)) 0 0 / 0% 100% no-repeat; z-index: 2; }
.ea-card.is-moving::before { animation: eaSweep .7s cubic-bezier(.4, 0, .2, 1); }
@keyframes eaSweep { 0% { opacity: 1; background-size: 0% 100%; } 70% { opacity: 1; background-size: 100% 100%; } 100% { opacity: 0; background-size: 100% 100%; } }
.aw-panel.is-in { animation: awIn .42s cubic-bezier(.2, .8, .2, 1); }
.aw-panel.is-in.is-back { animation-name: awInBack; }
.aw-panel.is-in .ea-fields > *, .aw-panel.is-in .choices > *, .aw-panel.is-in .fc-b > .consents { animation: awItem .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.aw-panel.is-in .ea-fields > :nth-child(2), .aw-panel.is-in .choices > :nth-child(2) { animation-delay: .05s; }
.aw-panel.is-in .ea-fields > :nth-child(3), .aw-panel.is-in .choices > :nth-child(3) { animation-delay: .1s; }
.aw-panel.is-in .ea-fields > :nth-child(4), .aw-panel.is-in .choices > :nth-child(4) { animation-delay: .15s; }
.aw-panel.is-in .ea-fields > :nth-child(n+5), .aw-panel.is-in .choices > :nth-child(n+5) { animation-delay: .2s; }
@keyframes awIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes awInBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes awItem { from { opacity: 0; transform: translateY(10px); } }
.ea-sec { padding: 26px 28px; }
.ea-card .ea-sec, #existing:not([hidden]) { border-top: 1px solid var(--line-2); }
.ea-card > .ea-sec:first-child, .ea-card .aw-panel { border-top: 0; }
.aw-panel[hidden] { display: none; }
.ea-sec .fc-h { display: flex; align-items: flex-start; gap: 12px; }
.ea-sec .fc-h .grow { min-width: 0; }
.ea-sec .fc-h h2 { font-size: 19px; line-height: 1.3; }
.ea-sec .fc-h .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.ea-sec .fc-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; }
.ea-sec .fc-b { display: flex; flex-direction: column; gap: 16px; padding-top: 18px; }
.fc-state { margin-left: auto; align-self: flex-start; padding-top: 3px; }
.fc-state:empty { display: none; }
/* before sign-in the sections show, greyed, so the visitor sees what is coming */
.lock-card.is-locked > .fc-b, .lock-card.is-locked > .fc-h .sub { opacity: .55; }

/* ---------- the steps: one on screen at a time, with Back and Continue under each (no step bar) ---------- */
.aw-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.aw-foot [data-do="step-back"] { margin-right: auto; }
.aw-foot [data-do="step-next"] { min-width: 180px; justify-content: center; }
.aw-err { order: -1; flex-basis: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 600; line-height: 1.45; }
.aw-err:empty { display: none; }
.si-next { margin-top: 18px; }
/* a returning applicant with no new check: the sign-in card and their applications only */
#apply-form.is-collapsed .aw-foot { display: none; }
#apply-form:not(.is-collapsed):not([data-step="mobile"]) #existing { display: none; }
/* Review & Apply: what was given on each step */
.aw-review:empty { display: none; }
.aw-review .cs-head { margin-bottom: 8px; }
.aw-rv { margin: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.aw-rv-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 6px 14px; min-height: 48px; }
.aw-rv-row + .aw-rv-row { border-top: 1px solid var(--line-2); }
.aw-rv-row dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.aw-rv-row dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.aw-rv-row .btn-link { font-size: 13.5px; }
.aw-miss { color: var(--primary-text); }

/* the site's grid: three grey-filled fields a row on a desktop, one on a phone */
.ea-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.ea-fields > .span-2 { grid-column: span 2; }
.ea-fields > .span-all { grid-column: 1 / -1; }
.ea-hint-side { margin: 0; align-self: center; padding-top: 22px; }
#apply-form .field.invalid .hint { display: none; }
.field .hint { display: flex; align-items: center; gap: 5px; }
.field .hint .ic { color: var(--primary-text); }
.pan-input { letter-spacing: .06em; font-weight: 600; }
.pan-input::placeholder { letter-spacing: .06em; }
.input-group.money .input { font-weight: 600; }
.rent-field { animation: fieldIn .18s ease; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(-4px); } }
/* a PAN already on another mobile number (PAN_IN_USE): the way on, right under the message */
.pan-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.pan-switch .btn { gap: 6px; }
.pan-switch-s { font-size: 13px; color: var(--muted); }
.pan-switch-help { font-size: 13.5px; }

/* choice tiles: grey like the inputs, one line each */
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { gap: 12px; padding: 10px 14px; min-height: 56px; }
.choice .ch-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--muted); flex: 0 0 auto; transition: background .15s, color .15s; }
.choice:has(input:checked) .ch-ic { background: var(--primary-soft); color: var(--primary-text); }
.choice .ch-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.choice .ch-t { font-weight: 700; color: var(--ink); line-height: 1.3; font-size: 15px; }
.choice .sub { line-height: 1.35; font-size: 12.5px; }
.choice .mark { margin-left: auto; }
.choice:has(input:disabled) { cursor: not-allowed; }
.field.invalid .choice { border-color: #F3B4B4; }
/* the answer cards: platform.css (8 Oct 2026, shared by every page) */

/* ---------- Preview bar: sample applicants (stub mode with the marks on only; never filled in on its own) ---------- */
.demo-bar { position: relative; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 20px; border: 1.5px dashed #EBC57E; background: #FFFBF1; border-radius: 12px; }
.demo-bar.is-on { border-style: solid; border-color: #F0D598; background: linear-gradient(180deg, #FFFAEB, #FFFDF6); }
.demo-bar:empty { display: none; }
.demo-bar .db-t { display: flex; align-items: center; gap: 12px; flex: 1 1 340px; min-width: 0; }
.demo-bar .db-badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); flex: 0 0 auto; }
.db-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; min-height: 28px; }
.db-line h2 { font-size: 15px; }
.db-sep { color: #C69A45; font-weight: 800; }
.db-clear { font-size: 13.5px; min-height: 28px; }
.db-line .chip { margin-left: 2px; }
.db-sub { margin: 1px 0 0; font-size: 13px; color: #6B5220; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.db-prof { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #7C4A03; background: #FBE7B5; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.db-ctl { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.db-lab { font-size: 12.5px; font-weight: 700; color: #7A5A1E; }
.db-seg { background: #F7EBCF; }
.db-seg button { display: inline-flex; align-items: center; gap: 6px; color: #7A5A1E; }
.db-seg button .ic { color: var(--amber-500); }
.db-seg button[aria-pressed=true] { color: var(--ink); }
.db-more { position: relative; }
.db-more > summary { list-style: none; min-height: 38px; padding: 8px 14px; font-size: 13.5px; border-color: #EAD9B5; user-select: none; }
.db-more > summary::-webkit-details-marker { display: none; }
.db-more > summary .ic { color: var(--amber); }
.db-more[open] > summary, .db-more > summary:hover { border-color: #D9B872; background: #fff; }
.db-more.on > summary { box-shadow: inset 0 0 0 1px #D9B872; }
.db-more-s { display: none; }
.db-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; animation: pop .15s ease; }
.dm-item { display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: 100%; min-height: 48px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; font: inherit; }
.dm-item:hover { background: var(--soft); }
.dm-item:focus-visible { box-shadow: var(--focus); }
.dm-item.on { background: var(--primary-soft); }
.dm-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.dm-t .ic { color: var(--amber-500); }
.dm-t .chip { margin-left: auto; }
.dm-s { display: flex; align-items: center; gap: 7px; padding-left: 23px; font-size: 12.5px; color: var(--muted); }

/* ---------- sign-in ---------- */
.signin { background: linear-gradient(180deg, #FFF8F5, #fff); }
/* the number, then the SMS consent the code needs, then Send code: in the order they are done */
.si-input { max-width: 420px; }
.si-input .addon { font-size: 16px; }
.si-input .input { letter-spacing: .02em; }
/* after a sign-out that came back here (?signedout=1): which number to sign in with */
.si-out { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--primary-soft); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.si-out .ic { margin-top: 2px; flex: 0 0 auto; color: var(--primary-text); }
#fw-sms { display: flex; flex-direction: column; gap: 8px; }
#fw-sms.invalid { border-color: var(--red-500); background: var(--red-soft); }
#fw-sms.invalid .err { display: block; padding-left: 28px; }
.si-send .btn { min-width: 180px; }
.si-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; padding-top: 12px; border-top: 1px dashed var(--line); }
.si-demo .chip { margin-right: 2px; }
.si-demo .btn-link { font-size: 13px; }
.si-demo .sep { color: var(--muted-2); }
.otp { max-width: 360px; }
.otp input { flex: 1 1 0; min-width: 0; max-width: 52px; height: 54px; }
.otp input[readonly] { background: var(--soft); }
.field.invalid .otp input { border-color: var(--red-500); }
.otp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: -4px; }
.otp-timer { font-size: 13.5px; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; }

/* ---------- "Mobile verified" (5 Oct 2026, the owner: "something wow" when the code is accepted). One object turns into
   another: the six code boxes fill orange one by one, close up into one orange disc where they stood, a tick draws inside
   it with a ring and a small burst of dots, then "Mobile verified" rises through a mask, the number a beat later. About
   1.3 s, played once. The end state is the static style, so with reduced motion (platform.css: no animations) the disc and
   the tick are simply there. apply.js (playVerified) sets --dx on each box and --cx/--cy on the overlay (CSSOM) ---------- */
#signin { position: relative; }
/* the code card's own words and buttons fade, then leave the tab order; nothing on it can be pressed meanwhile */
#signin.is-verified .fc-h, #signin.is-verified .label, #signin.is-verified .err, #signin.is-verified .otp-meta, #signin.is-verified .btn-row { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease .25s, visibility 0s linear .5s; }
#signin.is-verified .otp { pointer-events: none; }
#signin.is-verified .otp input { opacity: 0; transform: translateX(var(--dx, 0)) scale(.3); background: var(--primary); color: #fff; border-color: var(--primary);
  animation: owBox .72s cubic-bezier(.5, 0, .2, 1) backwards; }
#signin.is-verified .otp input:nth-child(2) { animation-delay: .04s; }
#signin.is-verified .otp input:nth-child(3) { animation-delay: .08s; }
#signin.is-verified .otp input:nth-child(4) { animation-delay: .12s; }
#signin.is-verified .otp input:nth-child(5) { animation-delay: .16s; }
#signin.is-verified .otp input:nth-child(6) { animation-delay: .2s; }
@keyframes owBox {
  0% { opacity: 1; transform: none; background: var(--input); color: var(--ink); }
  22% { opacity: 1; transform: scale(1.1); background: var(--primary); color: #fff; }
  40% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(var(--dx, 0)) scale(.3); }
}
.otp-win { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ow-mark { position: absolute; left: var(--cx, 50%); top: var(--cy, 40%); width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.ow-mark svg { position: relative; display: block; width: 64px; height: 64px; overflow: visible; animation: owDisc .5s cubic-bezier(.3, 1.6, .5, 1) .5s backwards; }
.ow-disc { fill: var(--primary); }
.ow-tick { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; animation: owTick .34s cubic-bezier(.6, 0, .2, 1) .82s backwards; }
.ow-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; transform: scale(2.1); animation: owRing .7s cubic-bezier(.2, .8, .2, 1) .78s; }
.ow-burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--primary); opacity: 0;
  transform: translate(var(--bx), var(--by)) scale(var(--bs, 1)); animation: owDot .62s cubic-bezier(.15, .7, .3, 1) .8s; }
.ow-burst i:nth-child(3n) { background: #FFB199; }
.ow-burst i:nth-child(4n+1) { background: var(--green-500); }
.ow-burst i:nth-child(1) { --bx: 45.8px; --by: -4.0px; }
.ow-burst i:nth-child(2) { --bx: 30.3px; --by: 22.9px; --bs: .7; }
.ow-burst i:nth-child(3) { --bx: 29.8px; --by: 42.6px; }
.ow-burst i:nth-child(4) { --bx: -5.6px; --by: 45.7px; --bs: .7; }
.ow-burst i:nth-child(5) { --bx: -16.1px; --by: 34.4px; }
.ow-burst i:nth-child(6) { --bx: -47.9px; --by: 20.3px; --bs: .7; }
.ow-burst i:nth-child(7) { --bx: -45.8px; --by: 4.0px; }
.ow-burst i:nth-child(8) { --bx: -30.3px; --by: -22.9px; --bs: .7; }
.ow-burst i:nth-child(9) { --bx: -29.8px; --by: -42.6px; }
.ow-burst i:nth-child(10) { --bx: 5.6px; --by: -45.7px; --bs: .7; }
.ow-burst i:nth-child(11) { --bx: 16.1px; --by: -34.4px; }
.ow-burst i:nth-child(12) { --bx: 47.9px; --by: -20.3px; --bs: .7; }
.ow-t, .ow-s { position: absolute; left: var(--cx, 50%); transform: translateX(-50%); overflow: hidden; white-space: nowrap; text-align: center; }
.ow-t { top: calc(var(--cy, 40%) + 42px); font-size: 19px; font-weight: 700; color: var(--ink); }
.ow-s { top: calc(var(--cy, 40%) + 70px); font-size: 13.5px; color: var(--muted); }
.ow-t > span, .ow-s > span { display: block; animation: owRise .42s cubic-bezier(.2, .8, .2, 1) .92s backwards; }
.ow-s > span { animation-delay: 1.04s; }
@keyframes owDisc { from { transform: scale(.2); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes owTick { from { stroke-dashoffset: 40; } }
@keyframes owRing { from { opacity: .7; transform: scale(.9); } }
@keyframes owDot { from { opacity: 1; transform: translate(0, 0) scale(.4); } 70% { opacity: 1; } }
@keyframes owRise { from { transform: translateY(110%); } }
.signin.is-signed { background: #fff; padding-top: 18px; padding-bottom: 18px; }
.si-done { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.si-done .grow { min-width: 180px; }
.si-t .nowrap { white-space: nowrap; }
.si-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: 0 0 auto; }
.si-t { font-size: 16px; font-weight: 700; }
.si-s { font-size: 13.5px; color: var(--muted); }

/* ---------- returning applicant ---------- */
.ex-card { padding: 26px 28px 22px; }
.ex-card .fc-h { display: flex; align-items: flex-start; gap: 12px; }
.ex-card .fc-h h2 { font-size: 19px; }
.ex-card .fc-h .sub { font-size: 14px; color: var(--muted); }
.ex-card .fc-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--primary-soft); color: var(--primary-text); }
.ex-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ex-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line-2); flex-wrap: wrap; }
.ex-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.ex-main { flex: 1 1 220px; min-width: 0; }
.ex-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-id { font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.ex-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.ex-card .fc-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ex-card .fc-f .muted { display: inline-flex; align-items: center; gap: 6px; }
.ex-gate { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-2); }
.ex-gate .ic { margin-top: 3px; color: var(--primary-text); }
/* ---------- the re-loan (30 Sep 2026) ---------- */
/* the panel at the top of Basic Details: the loan number, the current and the new limit, the one benefit from loan 3 */
.rl-panel { margin: 0 0 20px; padding: 16px 18px; border: 1px solid #BFDBFE; border-radius: 12px; background: #F5F9FF; }
.rl-top, .oc-rl-top { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-top:empty, .oc-rl-top:empty { display: none; }
.rl-panel .rl-sim { margin-top: 10px; }
.rl-h { margin: 10px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.rl-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.rl-kv > div { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.rl-kv dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.rl-kv dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rl-kv .rl-new dd { color: var(--green, #15803D); }
.rl-line { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.rl-line .ic { margin-top: 3px; flex: 0 0 auto; color: var(--primary-text); }
.rl-line.muted { font-size: 13.5px; color: var(--muted); }
fieldset.rl-benefit { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
fieldset.rl-benefit > legend { padding: 0; margin-bottom: 4px; }
.rl-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.rl-choices .choice { background: #fff; border-color: var(--line-2); }
.rl-choices .choice.is-off { cursor: not-allowed; opacity: .62; }
/* the card when a re-loan is not offered: the server's words and the support email, phone and hours */
.rl-contact { display: flex; flex-direction: column; max-width: 420px; margin: 14px 0 0; }
.rl-contact > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.rl-contact > div:last-child { border-bottom: 0; }
.rl-contact dt { font-size: 14px; color: var(--muted); }
.rl-contact dd { margin: 0; font-size: 14.5px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.rl-note { margin: 0 0 14px; }
/* a cleared re-loan: the provisional new limit, above the way back */
.oc-rl { max-width: 560px; margin: 22px auto 0; padding: 14px 16px; border: 1px solid #BFDBFE; border-radius: 12px; background: #F5F9FF; text-align: left; }
.outcome .oc-rl-s { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 420px) { .rl-kv { grid-template-columns: minmax(0, 1fr); } .rl-panel { padding: 14px; } }

/* the earlier-applications list couldn't be read */
.ex-err { flex-wrap: wrap; align-items: center; margin: 16px 28px; width: auto; }
.ex-err .btn-link { font-size: 13.5px; margin-left: auto; }

/* ---------- credit score check ---------- */
.cs-lede { margin: 0; color: var(--ink-2); max-width: 72ch; font-size: 15px; }
/* the check done (5 Oct 2026): "PAN verified", "Credit check done", and where the score will be shown */
.cs-done { display: flex; flex-direction: column; gap: 6px; }
.cs-done .muted { max-width: 66ch; }

/* ---------- selfie with its location ---------- */
.ph-chip { margin-left: auto; align-self: flex-start; padding-top: 3px; }
.sp-body { display: flex; align-items: center; gap: 20px; }
.sp-body .selfie-frame { width: 128px; max-width: 128px; margin: 0; flex: 0 0 auto; box-shadow: 0 0 0 2px var(--line), 0 8px 18px -12px rgba(var(--er-shadow-rgb), .45); }
#panel-selfie.done .selfie-frame { box-shadow: 0 0 0 2px var(--green-500), 0 8px 18px -12px rgba(var(--er-shadow-rgb), .45); }
.selfie-frame .ph { display: grid; place-items: center; gap: 6px; padding: 10px; }
.selfie-frame video { transform: scaleX(-1); background: #121212; }
.selfie-frame .sf-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .55); color: var(--primary-text); }
.selfie-frame .sf-guide { position: absolute; inset: 10%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .7); pointer-events: none; }
/* the location tag stamped on the photo: that it was tagged and when, never coordinates */
.selfie-frame .sf-stamp { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 6px 5px 10px; background: linear-gradient(to top, rgba(18, 18, 18, .86), rgba(18, 18, 18, .45)); color: #fff; font-size: 9px; letter-spacing: -.01em; font-weight: 700; line-height: 1.35; text-align: center; }
.sf-place { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; min-width: 0; }
.sf-place span, .sf-when { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-when { font-weight: 600; opacity: .88; }
.selfie-frame .sf-stamp .ic { flex: 0 0 auto; }
.sp-body.is-live .sf-stamp { font-size: 10.5px; }
.sp-body.is-live { flex-direction: column; align-items: stretch; }
.sp-body.is-live .selfie-frame { width: 240px; max-width: 100%; margin: 0 auto; }
.sp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; flex: 1 1 auto; }
.sp-body.is-live .sp-side { align-items: center; text-align: center; }
.sp-tip { margin: 0; font-size: 14px; color: var(--muted); }
.status-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 14.5px; font-weight: 700; }
.status-line.ok { color: var(--green); }
.status-line.bad { color: var(--red); }   /* 8 Oct 2026: "PAN not verified" */
.status-line.busy { color: var(--primary-text); }
.mini-note { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #78350F; background: var(--er-warn-bg, #FFFBEB); border: 1px solid #FDE68A; border-left: 3px solid var(--er-amber, #FB8D2C); border-radius: 8px; padding: 9px 11px; width: 100%; }
.mini-note .ic { margin-top: 1px; color: var(--amber-500); }
/* the selfie from a file (no camera here), and the "we'll check it ourselves" line (face liveness, 29 Sep 2026) */
.sf-file { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
.sf-file p { margin: 0; }
.sf-file .btn { white-space: normal; max-width: 100%; height: auto; text-align: left; }
.sp-tip.sf-review { color: var(--ink-2); }
.sp-body.is-live .mini-note { text-align: left; }
.demo-link { font-size: 13px; color: #9A5B0B; }
.demo-link .ic { color: var(--amber-500); }
.consent-line { display: flex; gap: 7px; align-items: flex-start; margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.consent-line .ic { margin-top: 2px; color: var(--muted-2); }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: 13px; color: var(--muted); min-height: 20px; }
.meta-row .sep { color: var(--muted-2); }
.meta-row .btn-link { font-size: 13.5px; min-height: 32px; }

/* ---------- consents + Apply Now ---------- */
.consents { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.cs-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2px; }
.cs-t { font-weight: 700; font-size: 15px; color: var(--ink); }
.cs-note { font-size: 13px; color: var(--muted); }
.consents .check { font-size: 14px; }
/* 8 Oct 2026 (the owner: "tick tick and go"; "collect all required consent on the first page"): the consents as rows
   tapped anywhere, a ticked one in the brand colour, "What this means" just under each; the first page's two (#fw-sms)
   turn red when Send code finds one unticked; #pan-status says the PAN check is running or done; the last step's re-loan
   consent group shows only while it holds one */
.consents.si-consents, #consents-credit, #consents-pan { padding: 0; background: none; border: 0; gap: 8px; }
.consents .check.cs-tap { align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #D9DBE0; border-radius: 12px; background: #fff;
  font-size: 14.5px; line-height: 1.45; transition: border-color .15s, background-color .15s; }
.consents .check.cs-tap:hover { border-color: var(--primary, #FE512F); }
.consents .check.cs-tap:has(input:checked) { border-color: var(--primary, #FE512F); background: var(--er-primary-soft, #FFF1EC); }
.consents .check.cs-tap input { width: 20px; height: 20px; margin: 0; }
.consents .check.cs-tap + .consent-notice { margin: -4px 0 4px 48px; }
#fw-sms.invalid { background: none; border: 0; }
#fw-sms.invalid .check.cs-tap:has(input:not(:checked)) { border-color: var(--red-500); background: var(--red-soft); }
#fw-sms.invalid .err { display: block; padding-left: 0; }
#consents:empty { display: none; }
#panel-selfie .gender-field { margin-top: 16px; }
.apply-pan { margin-top: 10px; }
.pan-status:empty { display: none; }
.pan-status { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.consents .check a { font-weight: 600; }
.submit-b { padding-top: 18px; gap: 14px; }
.submit-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px 12px; flex-wrap: wrap; }
.submit-row [data-do="step-back"] { margin-right: auto; }
#btn-check { min-width: 200px; }
.remaining:empty { display: none; }
.rem-t { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.rem-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rem-list button { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 13px var(--font); color: var(--ink); cursor: pointer; }
.rem-list button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 7px; }
.rem-list button:hover { border-color: var(--ink); }
.rem-ok, .rem-lock { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; flex-wrap: wrap; }
.rem-ok { color: var(--green); }
.rem-lock { color: var(--muted); font-weight: 600; }
/* the server's answer when the check could not run: the answers stay, so it can be sent again */
.rem-err { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 600; line-height: 1.45; }
.rem-err .ic { margin-top: 2px; flex: 0 0 auto; }
.submit-foot { display: flex; justify-content: flex-end; margin-top: -6px; }
.fine { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.clear-link { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- processing overlay ---------- */
.proc { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(245, 245, 242, .88); backdrop-filter: blur(6px); animation: fadeIn .15s ease; }
.proc-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line-2); border-top: 4px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px 26px 24px; text-align: center; animation: pop .18s ease; }
.proc-ring { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.proc-card h2 { font-size: 22px; }
.proc-sub { color: var(--muted); margin: 6px 0 0; }
.proc-steps { list-style: none; margin: 20px 0 0; padding: 14px 16px; text-align: left; display: flex; flex-direction: column; gap: 12px; background: var(--soft); border-radius: 10px; }
.proc-steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); transition: color .2s; }
.proc-steps .pdot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: #fff; flex: 0 0 auto; }
.proc-steps li.active { color: var(--ink); }
.proc-steps li.active .pdot { border-color: var(--primary); color: var(--primary-text); }
.proc-steps li.done { color: var(--ink-2); }
.proc-steps li.done .pdot { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- outcome: clean cards in the same style ---------- */
.oc-wrap { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.oc-card { overflow: hidden; border-top: 4px solid var(--line); }
.oc-card.green { border-top-color: var(--green-500); }
.oc-card.amber { border-top-color: var(--er-amber, #FB8D2C); }
.oc-card.red { border-top-color: var(--primary); }
.oc-card .outcome { padding: 40px 28px 32px; }
.outcome.grey .oi { background: var(--grey-soft); color: var(--grey); }
.outcome.red .oi { background: var(--primary-soft); color: var(--primary-text); }
.oc-greet { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); margin-bottom: 6px; }
/* the result's title is the page's heading once the title has gone (the section headings below it are h2) */
.outcome h1 { font-weight: 700; font-size: clamp(26px, 4vw, 32px); color: var(--ink); letter-spacing: -.01em; }
.outcome p { font-size: 16px; }
.oc-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.oc-meta .chip { font-weight: 600; color: var(--muted); padding: 7px 12px; }
.oc-meta .chip b { color: var(--ink); font-weight: 700; }
.oc-actions { justify-content: center; margin-top: 24px; }
.oc-actions:empty { display: none; }
/* a cleared result: the way back to the dashboard, under the button (26 Sep 2026) */
.oc-return { max-width: 560px; margin: 22px auto 0; padding: 16px 18px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--soft); }
.outcome .oc-ret-h { font-size: 16px; font-weight: 700; margin: 0; }
.outcome .oc-ret-url { margin-top: 6px; font-size: 15.5px; }
.oc-ret-url a { font-weight: 700; color: var(--primary-text); overflow-wrap: anywhere; }
.oc-ret-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin-top: 10px; }
.oc-copied { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.outcome .oc-ret-s { margin-top: 10px; font-size: 14.5px; }
/* oc-ret-sent: only the "We've also sent this link" line (linkSent); oc-ret-note: the preview-only note */
.outcome .oc-ret-sent, .outcome .oc-ret-note { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.oc-ret-sent .ic, .oc-ret-note .ic { vertical-align: -2px; margin-right: 6px; }
.oc-next { border-top: 1px solid var(--line-2); background: var(--er-surface, #F5F5F2); }
.oc-col { padding: 24px 28px 26px; min-width: 0; }
.oc-col h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.oc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.oc-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 15px; }
.oc-list li > .ic { margin-top: 3px; color: var(--primary-text); }
.oc-list.soft li > .ic { color: var(--primary-text); }
.oc-list li b { display: block; color: var(--ink); }
.oc-list li b.inline { display: inline; }
.oc-list li span { color: var(--muted); }
.oc-list li > span { color: var(--ink); }
/* PAN name mismatch: correct the name and check again, right in the result card */
.oc-fix { border-top: 1px solid var(--line-2); background: var(--er-surface, #F5F5F2); padding: 24px 28px 26px; }
.oc-retry { max-width: 640px; margin: 0 auto; }
.oc-retry h2 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.oc-retry .field { margin: 0; }
.rt-row { display: flex; gap: 10px; align-items: stretch; }
.rt-row .input { flex: 1 1 auto; min-width: 0; background-color: #fff; }
.rt-row .btn { flex: 0 0 auto; }
.oc-retry .hint { display: block; line-height: 1.5; }
.rt-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.rt-foot .muted { display: inline-flex; align-items: center; gap: 6px; }
.oc-details summary { display: flex; align-items: center; gap: 10px; padding: 16px 22px; cursor: pointer; font-weight: 700; list-style: none; min-height: 56px; border-radius: var(--radius); }
.oc-details summary::-webkit-details-marker { display: none; }
.oc-details summary:focus-visible { box-shadow: var(--focus); }
.oc-sum-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.oc-details .chev { color: var(--muted); transition: transform .15s; }
.oc-details[open] .chev { transform: rotate(180deg); }
.oc-details .kv { padding: 18px 22px 22px; border-top: 1px solid var(--line-2); }
.dd-selfie { display: inline-flex; align-items: center; gap: 10px; }
.dd-selfie .avatar { width: 36px; height: 36px; }
.oc-back { display: flex; justify-content: center; }
.oc-back .btn-link { color: var(--muted); font-weight: 600; }

/* ---------- consent notices and the consent receipt (18 Sep 2026) ---------- */
.consent.one { border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; background: var(--soft); }
.consent-notice { margin: 2px 0 0 28px; }
.consent-notice > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; color: var(--primary-text); min-height: 30px; }
.consent-notice > summary::-webkit-details-marker { display: none; }
.consent-notice > summary:hover { text-decoration: underline; }
.consent-notice > summary .ic { color: var(--muted-2); }
.cn-list { margin: 4px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; display: grid; gap: 7px; }
.cn-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 12px; }
.cn-row dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.cn-row dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cn-foot { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.cn-foot .ic { margin-top: 2px; color: var(--muted-2); flex: 0 0 auto; }
.cr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cr-list li { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; background: #fff; }
.cr-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; }
.cr-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; flex: 0 0 auto; }
.cr-at { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cr-p { margin: 4px 0 0 28px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.cr-p.muted { color: var(--muted); }
.cr-foot { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.cr-foot .ic { margin-top: 2px; flex: 0 0 auto; }
/* inside the "Consents you gave" card: the same inset as "Details you submitted" */
.oc-details .cr-list { padding: 18px 22px 0; border-top: 1px solid var(--line-2); }
.oc-details .cr-foot { padding: 0 22px 20px; }

/* ---------- DigiLocker modal (kept for the shared dialog look) ---------- */
.dl-modal { display: flex; flex-direction: column; gap: 14px; }
.dl-lede { margin: 0; color: var(--ink-2); }
.dl-status:empty { display: none; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1100px) {
  .ea-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ea-fields > .span-2 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ea-main { padding-top: 24px; }
  body.ea-app .ea-main { justify-content: flex-start; padding-top: 16px; }
  .ea-head-in { min-height: 56px; }
  .ea-head .er-brand img { height: 34px; }
  .ea-h1 { margin-bottom: 14px; }
  .ea-sec, .ex-card { padding: 20px 18px; }
  .ea-fields, .ea-fields > .span-2 { grid-template-columns: minmax(0, 1fr); }
  .ea-fields > .span-2 { grid-column: auto; }
  .ea-hint-side { padding-top: 0; }
  .choices.two, .choices.three { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .si-input { max-width: none; }
  .si-send .btn { width: 100%; }
  .sp-body { flex-direction: row; align-items: center; gap: 16px; }
  .sp-body .selfie-frame { width: 104px; max-width: 104px; }
  .sp-body.is-live { flex-direction: column; align-items: stretch; }
  .sp-body.is-live .selfie-frame { width: 240px; max-width: 100%; }
  #btn-check { width: 100%; min-width: 0; }
  .fine { justify-content: flex-start; }
  .aw-foot, .submit-row { flex-direction: column; align-items: stretch; }
  .aw-foot .btn, .submit-row .btn { width: 100%; min-width: 0; justify-content: center; }
  .aw-foot [data-do="step-back"], .submit-row [data-do="step-back"] { margin-right: 0; order: 2; }
  .aw-err { order: 0; }
  .aw-rv-row { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; }
  .aw-rv-row dt, .aw-rv-row dd { grid-column: 1; }
  .aw-rv-row > :last-child { grid-column: 2; grid-row: 1 / span 2; }
  .ex-item .btn { width: 100%; }
  .ex-card .fc-f .btn { width: 100%; }
  .ex-err { margin: 16px 18px; }
  .demo-bar { padding: 12px; gap: 10px; margin-bottom: 16px; }
  .demo-bar .db-badge { display: none; }
  .demo-bar .db-t { flex-basis: 100%; }
  .db-ctl { width: 100%; }
  .db-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .db-seg { flex: 1 1 auto; flex-wrap: nowrap; }
  .db-seg button { flex: 1 1 0; justify-content: center; padding: 7px 8px; }
  .db-more { position: static; }
  .db-more > summary { min-height: 40px; padding: 8px 10px; }
  .db-menu { left: 12px; right: 12px; top: calc(100% - 6px); width: auto; }
  .oc-card .outcome { padding: 30px 18px 26px; }
  .oc-col { padding: 20px 18px 22px; }
  .oc-actions .btn { width: 100%; white-space: normal; }
  .oc-return { padding: 14px 14px 12px; }
  .oc-details summary { padding: 12px 16px; }
  .oc-details .kv { padding: 14px 16px 18px; }
  .oc-details .cr-list { padding: 14px 16px 0; }
  .oc-details .cr-foot { padding: 0 16px 16px; }
  .oc-fix { padding: 20px 18px 22px; }
  .rt-row { flex-direction: column; }
  .rt-row .btn { width: 100%; justify-content: center; }
  .cn-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .consent-notice { margin-left: 0; }
}
@media (max-width: 560px) {
  /* a section's state chip goes under its title, so the title keeps the width */
  .ea-sec .fc-h { flex-wrap: wrap; }
  .ea-sec .fc-h .grow { flex: 1 1 0; }
  .ea-sec .fc-h .fc-state, .ea-sec .fc-h .ph-chip { order: 3; flex-basis: 100%; margin-left: 42px; padding-top: 0; }
  .db-ctl { flex-wrap: nowrap; }
  .db-seg button { gap: 5px; padding: 7px 6px; font-size: 13px; }
  .db-more-l { display: none; }
  .db-more-s { display: inline; }
  .db-more > summary { gap: 5px; padding: 8px 9px; }
}
@media (max-width: 350px) {
  .db-seg button .ic { display: none; }
}

/* ---------- touch-sized targets on tablets and touch screens (kept last so it wins over the compact desktop sizes):
   every button and link on its own at least 44px tall. A link inside a sentence stays part of the sentence. ---------- */
@media (max-width: 980px), (pointer: coarse) {
  .tap, .btn, .btn-sm, .rem-list button, .meta-row .btn-link, .db-clear, .db-seg button, .db-more > summary,
  .consents .check, .consent.one .check, .consent-notice > summary, .oc-back .btn-link, .ex-err .btn-link, .pan-switch-help { min-height: 44px; }
}

/* ---------- 10 Oct 2026 (the owner: three pages; "less the pages and collect as much data"): the PAN page, and the details
   page as one screen: the details, employment and income, the loan and the home on the left, the selfie with Apply Now
   beside them (under them on a narrow screen). apply.js STEPS 'pan' and 'details' ---------- */
.ea-fields.ea-fields-pan { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
body.ea-app #form-view:has(#apply-form[data-step="details"]), #form-view:has(#apply-form[data-step="details"]) { max-width: 1140px; }
#apply-form[data-step="details"] #sec-basic .aw-foot, #apply-form[data-step="details"] #sec-employment .aw-foot,
#apply-form[data-step="details"] #sec-loan .aw-foot { display: none; }
#apply-form[data-step="details"] #sec-employment, #apply-form[data-step="details"] #sec-loan { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
@media (min-width: 1000px) {
  #apply-form[data-step="details"] #form-sections { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); column-gap: 32px; align-items: start; }
  #apply-form[data-step="details"] #form-sections > * { grid-column: 1; }
  #apply-form[data-step="details"] #panel-selfie { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 16px; padding-left: 28px; border-left: 1px solid var(--line-2); }
  /* 11 Oct 2026 (the owner): three gender buttons in this narrow column put the circle on the label; two, then one */
  #apply-form[data-step="details"] #panel-selfie .gender-field .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #apply-form[data-step="details"] #panel-selfie .gender-field .choice:last-child { grid-column: 1 / -1; }
}
@media (max-width: 999px) {
  #apply-form[data-step="details"] #panel-selfie { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
}
/* 11 Oct 2026 (the owner: "the screen please adjust width ... the box table are not proper"): apply-now.html takes the
   customer app's one width (brand.css body.cx-app), the header's logo on the cards' edge; the details page spans it (the
   mobile and PAN pages stay a centred card on it), and on a wide screen its fields sit three a row, none alone on a row */
body.ea-app.cx-app .ea-head-in { max-width: calc(var(--cx-max) + 2 * var(--cx-gut)); padding-left: var(--cx-gut); padding-right: var(--cx-gut); }
body.ea-app.cx-app #form-view:has(#apply-form[data-step="details"]) { max-width: none; }
@media (min-width: 1100px) {
  body.ea-app.cx-app #apply-form[data-step="details"] .ea-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ea-app.cx-app #apply-form[data-step="details"] #fw-mode, body.ea-app.cx-app #apply-form[data-step="details"] #hint-purpose,
  body.ea-app.cx-app #apply-form[data-step="details"] #fw-res:has(~ #fw-rent:not([hidden])),
  body.ea-app.cx-app #apply-form[data-step="details"] #fw-name[hidden] + #fw-city { grid-column: span 2; }
  body.ea-app.cx-app #apply-form[data-step="details"] .pr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the PAN record's details, fixed (apply.js renderPanRecord) */
.pan-record { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #F3D9CF; border-radius: 12px; background: var(--er-primary-soft, #FFF6F2); }
.pr-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; color: var(--er-ink, #121212); }
.pr-h .ic { color: #1F9D55; }
.pr-edit { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.pr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.pr-row { min-width: 0; }
.pr-row dt { font-size: 12px; font-weight: 600; color: var(--er-muted, #6B7280); text-transform: uppercase; letter-spacing: .04em; }
.pr-row dd { display: flex; align-items: center; gap: 6px; margin: 3px 0 0; font-weight: 600; color: var(--er-ink, #121212); overflow-wrap: anywhere; }
.pr-row dd .ic { flex: 0 0 auto; color: #9A9DA3; }
.pr-note { margin: 10px 0 0; font-size: 12.5px; color: var(--er-muted, #6B7280); }
/* 11 Oct 2026: "This is my PAN" under a part-hidden record */
.pr-confirm { margin: 10px 0 0; }
.pr-confirm .check { min-height: 44px; align-items: center; font-weight: 600; }
@media (max-width: 520px) { .pr-list { grid-template-columns: minmax(0, 1fr); } }
