/* ============================================================
   ManifiPay — homepage styles
   Developer handoff reference. Values are authored as-is (no
   CSS-variable abstraction, matching the original design).

   Brand palette
   -------------------------------------------------------------
   Ink (near-black)        #1A1714
   Ink panel (calc card)   #241E18
   Ink hairline            #34291F   / footer #2C231B
   Canvas (warm cream)     #F5F1EA
   Card surface (cream)    #FCFAF6
   Collateral band         #EFE8DC
   Accent (terracotta)     #c1554a
   Text-on-accent (cream)  #f0ece4
   Positive (forest green) #2F6B4F
   Body text muted         #6B6155
   Muted on dark           #C9C0B4 / #9A9082 / #7E7567
   Card border             #E8DFD2 / header border #E5DCD0

   Typography (Google Fonts)
   -------------------------------------------------------------
   Display / headings   'Bricolage Grotesque'  (500–800)
   Body / UI            'Hanken Grotesk'        (400–700)
   Figures / labels     'Space Mono'            (400/700)
   ============================================================ */

/* ---- Self-hosted fonts (Bricolage Grotesque, Hanken Grotesk,
   Space Mono) — latin-subset woff2 files pulled from Google's
   own CDN (fonts.gstatic.com), served locally from assets/fonts/
   instead of via the Google Fonts CSS API. Removes a third-party
   render-blocking request. See UI_SPEC.md Section 3. ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/hanken-grotesk-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: #1A1714;
  background: #F5F1EA;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: #c1554a; color: #f0ece4; }

a { color: inherit; }

/* ---- Shared layout ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 40px);
  padding-right: clamp(20px, 5vw, 40px);
}

.mono { font-family: 'Space Mono', monospace; }

/* Small accent dot used in eyebrows, pills, badges */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c1554a;
  flex: none;
}

/* ---- Eyebrows / kickers ---- */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow-accent {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #c1554a;
  margin-bottom: 26px;
}
.eyebrow-accent .dot { width: 7px; height: 7px; }
.eyebrow-rust { color: #c1554a; }
.eyebrow-accent-plain { color: #c1554a; }
.eyebrow-on-accent { color: rgba(26, 23, 20, 0.6); margin-bottom: 18px; }

/* ---- Section heading ---- */
.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

.accent { color: #c1554a; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
}
.btn[hidden] { display: none; }
.btn-ink {
  background: #1A1714;
  color: #F5F1EA;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
}
.btn-accent {
  background: #c1554a;
  color: #f0ece4;
  font-size: 16.5px;
  padding: 16px 28px;
  box-shadow: 0 10px 26px rgba(193, 85, 74, 0.4);
}
.btn-ghost {
  background: transparent;
  color: #F5F1EA;
  font-size: 16.5px;
  padding: 16px 26px;
  border: 1px solid rgba(245, 241, 234, 0.28);
}
.btn-cream {
  background: #F5F1EA;
  color: #1A1714;
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
}
.btn-block { display: flex; width: 100%; }
.btn-lg {
  font-weight: 700;
  font-size: 17px;
  padding: 17px 32px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid #E5DCD0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #1A1714;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: #1A1714;
  color: #F5F1EA;
}
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-copy { flex: 1 1 420px; min-width: 300px; }
.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.hero-lede {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: #C9C0B4;
  max-width: 520px;
  margin: 0 0 34px;
}
.hero-lede strong { color: #F5F1EA; font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

/* Pills */
.pill-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #E8E0D5;
  border: 1px solid rgba(245, 241, 234, 0.16);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---- Hero loan ticket card ---- */
.hero-ticket {
  flex: 1 1 340px;
  min-width: 288px;
  display: flex;
  justify-content: center;
}
.loan-ticket {
  background: #FCFAF6;
  color: #1A1714;
  border-radius: 22px;
  padding: 26px;
  width: 100%;
  max-width: 392px;
  box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.ticket-label {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9A9082;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2F6B4F;
  background: rgba(47, 107, 79, 0.1);
  padding: 5px 11px;
  border-radius: 999px;
}
.status-badge .dot { background: #2F6B4F; }

.ticket-asset { margin-bottom: 24px; }
.ticket-asset-name {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  margin: 0;
}
.ticket-asset-value {
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  color: #9A9082;
  margin: 4px 0 0;
}

.ticket-cash {
  background: #1A1714;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.ticket-cash-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c1554a;
  margin: 0 0 6px;
}
.ticket-cash-figure {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  color: #F5F1EA;
  letter-spacing: -0.02em;
  margin: 0;
}

.ticket-terms {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
}
.ticket-row dt { color: #6B6155; }
.ticket-row dt.strong { font-weight: 600; }
.ticket-row dd { margin: 0; font-weight: 700; }
.ticket-divider { height: 1px; background: #EAE2D6; }
.ticket-repay { color: #c1554a; font-size: 16px; }

/* ============================================================
   How it works
   ============================================================ */
.how { background: #F5F1EA; }
.how .container {
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(56px, 9vw, 110px);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.step-card {
  background: #FCFAF6;
  border: 1px solid #E8DFD2;
  border-radius: 18px;
  padding: 30px 28px;
}
.step-card-ink {
  background: #1A1714;
  border-color: #1A1714;
  color: #F5F1EA;
}
.step-number {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  color: #c1554a;
  margin: 0 0 60px;
}
.step-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.step-text {
  font-size: 16px;
  line-height: 1.55;
  color: #6B6155;
  margin: 0;
}
.step-card-ink .step-text { color: #C9C0B4; }

/* ============================================================
   Collateral
   ============================================================ */
.collateral {
  background: #EFE8DC;
  border-top: 1px solid #E5DCD0;
}
.collateral .container {
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(56px, 9vw, 110px);
}
.collateral-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.collateral-head-copy { max-width: 560px; }
.collateral-head-note {
  font-size: 15.5px;
  color: #6B6155;
  max-width: 300px;
  margin: 0;
  line-height: 1.5;
}
.collateral-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.collateral-card {
  background: #FCFAF6;
  border: 1px solid #E8DFD2;
  border-radius: 16px;
  padding: 24px;
  border-top: 3px solid #c1554a;
}
.collateral-index {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #B0A695;
  letter-spacing: 0.08em;
  margin: 0 0 38px;
}
.collateral-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 6px;
}
.collateral-text {
  font-size: 13.5px;
  color: #6B6155;
  line-height: 1.45;
  margin: 0;
}

/* ============================================================
   Loan calculator
   ============================================================ */
.calculator {
  background: #1A1714;
  color: #F5F1EA;
}
.calculator-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(56px, 9vw, 110px);
}
.calculator-copy { flex: 1 1 320px; min-width: 280px; }
.calculator-copy .section-title { margin-bottom: 18px; }
.calculator-lede {
  font-size: 17px;
  line-height: 1.55;
  color: #C9C0B4;
  max-width: 440px;
  margin: 0;
}
.calculator-panel-wrap { flex: 1 1 380px; min-width: 300px; }
.calculator-panel {
  background: #241E18;
  border: 1px solid #34291F;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 34px);
}

.calc-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.calc-amount-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9A9082;
}
.calc-amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 40px);
  color: #F5F1EA;
  letter-spacing: -0.02em;
}

.calc-range {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  margin: 14px 0 8px;
  cursor: pointer;
  background: #3A2E22;
  accent-color: #c1554a;
}
.calc-range-scale {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  color: #7E7567;
  margin-bottom: 26px;
}

.calc-total {
  background: #c1554a;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 14px;
}
.calc-total-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 23, 20, 0.6);
  margin: 0 0 4px;
}
.calc-total-figure {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1;
  color: #1A1714;
  letter-spacing: -0.02em;
  margin: 0;
}

.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-stat {
  background: #1A1714;
  border: 1px solid #34291F;
  border-radius: 14px;
  padding: 16px;
}
.calc-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9A9082;
  margin: 0 0 6px;
}
.calc-stat-value {
  font-weight: 700;
  font-size: 20px;
  color: #F5F1EA;
  margin: 0;
}

#calc-apply { margin-top: 16px; }
.calc-disclaimer {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #7E7567;
  text-align: center;
  line-height: 1.5;
  margin: 14px 0 0;
}

/* ============================================================
   Apply CTA
   ============================================================ */
.apply {
  background: #c1554a;
  color: #1A1714;
}
.apply .container {
  padding-top: clamp(56px, 9vw, 108px);
  padding-bottom: clamp(56px, 9vw, 108px);
}
.apply-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 38px;
  max-width: 760px;
}
.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.apply-step {
  background: rgba(26, 23, 20, 0.07);
  border: 1px solid rgba(26, 23, 20, 0.12);
  border-radius: 16px;
  padding: 24px;
}
.apply-step-number {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 14px;
}
.apply-step-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 6px;
}
.apply-step-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(26, 23, 20, 0.72);
  margin: 0;
}
.apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.apply-call {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: rgba(26, 23, 20, 0.7);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #1A1714;
  color: #C9C0B4;
}
.site-footer .container {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 48px;
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 16px; }
.brand-mark { /* footer reuses header mark; slightly smaller via override below */ }
.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.brand-name-light { color: #F5F1EA; font-size: 20px; }
.footer-blurb {
  font-size: 14.5px;
  line-height: 1.6;
  color: #9A9082;
  margin: 0;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 72px);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
}
.footer-col-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c1554a;
  margin: 0 0 5px;
}
.footer-col a { color: #C9C0B4; text-decoration: none; }
.footer-col span { color: #9A9082; }

.footer-bottom {
  border-top: 1px solid #2C231B;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright,
.footer-legal {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  color: #7E7567;
}
.footer-legal { max-width: 560px; line-height: 1.5; }

/* ============================================================
   Application form — modal, form fields, confirmation panel
   New section, added for the loan application form (CLAUDE.md
   build order step 2). Establishes the first input/select/radio
   styling in the codebase; follows the existing card/button
   language (cream surfaces, ink text, accent focus states)
   rather than introducing a new visual language.
   ============================================================ */

/* A light-surface ghost button — .btn-ghost is dark-surface only,
   so this fills the gap for the modal's secondary "Back" action. */
.btn-ghost-ink {
  background: transparent;
  color: #1A1714;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid #E8DFD2;
}

/* ---- Confirmation panel ---- */
.confirmation {
  background: #EFE8DC;
  border-top: 1px solid #E5DCD0;
  scroll-margin-top: 24px;
}
.confirmation .container {
  padding-top: clamp(56px, 9vw, 100px);
  padding-bottom: clamp(56px, 9vw, 100px);
}
.confirmation-card {
  background: #FCFAF6;
  border: 1px solid #E8DFD2;
  border-radius: 22px;
  padding: clamp(28px, 5vw, 44px);
  max-width: 640px;
}
.confirmation-text {
  font-size: 16px;
  line-height: 1.55;
  color: #6B6155;
  max-width: 480px;
  margin: 14px 0 26px;
}
.confirmation-ref {
  background: #1A1714;
  border-radius: 16px;
  padding: 20px 22px;
  display: inline-block;
}
.confirmation-ref-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c1554a;
  margin: 0 0 6px;
}
.confirmation-ref-value {
  font-size: 22px;
  font-weight: 700;
  color: #F5F1EA;
  margin: 0;
}

/* ---- Modal overlay & shell ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 23, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #FCFAF6;
  color: #1A1714;
  border-radius: 22px;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 36px);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-head .eyebrow { margin-bottom: 10px; }
.modal-close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #6B6155;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  flex: none;
}
.modal-close:hover { background: #EFE8DC; }

/* Step indicator — reuses the mono step-number language from .step-card */
.modal-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.modal-progress-step {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B0A695;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.modal-progress-step.is-active {
  color: #c1554a;
  border-bottom-color: #c1554a;
}
.modal-progress-step.is-complete { color: #1A1714; }

/* ---- Exit-progress warning banner ---- */
.modal-exit-warning {
  background: #EFE8DC;
  border: 1px solid #E8DFD2;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}
.modal-exit-warning p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: #1A1714;
}
.modal-exit-warning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Submit error banner (Submit Sentinel request failed) ---- */
.modal-submit-error {
  background: rgba(193, 85, 74, 0.08);
  border: 1px solid rgba(193, 85, 74, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}
.modal-submit-error p {
  margin: 0;
  font-size: 14.5px;
  color: #1A1714;
}

/* ---- Form fields ---- */
.form-step { border: none; padding: 0; margin: 0; }
.form-step-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  padding: 0;
  margin: 0 0 18px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B6155;
  margin-bottom: 7px;
}
.form-field input,
.form-field select {
  width: 100%;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  color: #1A1714;
  background: #FFFFFF;
  border: 1px solid #E8DFD2;
  border-radius: 12px;
  padding: 13px 14px;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #c1554a;
  box-shadow: 0 0 0 3px rgba(193, 85, 74, 0.16);
}
.form-field input:disabled {
  background: #EFE8DC;
  color: #6B6155;
}
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: #c1554a;
}

/* ---- Live repayment preview (step 3) — reuses the system's
   label-above-figure money pattern, same as the homepage calculator ---- */
.repayment-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
.repayment-preview[hidden] { display: none; }
.repayment-preview-stat {
  background: #1A1714;
  border: 1px solid #34291F;
}
.repayment-preview-stat .calc-stat-label { color: #9A9082; }
.repayment-preview-stat .calc-stat-value { color: #F5F1EA; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
