/* Layout: one 480px column under a full-width Richmond-green band; each step's main action sits in a sticky bar at the bottom. */
:root {
  --green-900: #07211a;
  --green-700: #0f3a2c;
  --gold-500: #c9a45b;
  --gold-300: #e2c98f;
  --gold-600: #8a6a2f;
  --ivory-50: #fbf8f2;
  --ivory-100: #f2ebdc;
  --ink: #1a2230;
  --ink-muted: #5a6371;
  --sage: #b9cdc2;
  --hairline: #d9ccb0;
  --line-strong: #74847c;
  --error: #9b2c1f;
  --shadow: 0 10px 28px rgba(7, 33, 26, 0.18);
  --font-display: "Cormorant Garamond", "Noto Naskh Arabic", Georgia, serif;
  --font-sans: Manrope, "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
[hidden] { display: none !important; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { box-sizing: border-box; height: 100%; background: var(--ivory-50); }
*, *::before, *::after { box-sizing: inherit; }
body { height: 100%; margin: 0; background: var(--ivory-50); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[dir="rtl"] body { font-size: 16px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.band :focus-visible { outline-color: var(--gold-300); }
h2:focus { outline: none; }
.app { min-height: 100%; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 480px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header band */
.band { position: relative; background: var(--green-900); color: var(--ivory-50); }
.hdr-full { overflow: hidden; }
.hdr-inner { position: relative; }
.hdr-full .hdr-inner { padding-top: 4px; }
.rosette { position: absolute; inset-inline-end: -78px; top: -50px; width: 300px; height: 300px; opacity: 0.34; pointer-events: none; }
.seal { position: absolute; inset-inline-end: 35px; top: 52px; width: 74px; height: 96px; display: grid; place-items: center; background: var(--green-900); border-radius: 9999px; }
.seal img { width: 61px; height: 84px; object-fit: contain; }
.langs { position: relative; display: flex; flex-wrap: wrap; column-gap: 16px; }
.langs button { min-height: 44px; padding: 0; background: none; border: 0; color: var(--sage); font-size: 13px; line-height: 20px; }
.langs button[lang="ar"], .langs button[lang="ckb"] { font-size: 14px; }
.langs button[aria-current="true"] { color: var(--gold-300); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 7px; }
.who { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 0 24px; }
.brand { font-family: Manrope, system-ui, sans-serif; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.32em; color: var(--gold-300); }
.name { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 600; font-size: 46px; line-height: 1; color: var(--ivory-50); }
.role { margin: 0; font-size: 13px; line-height: 20px; color: var(--sage); }
html[dir="rtl"] .role { font-size: 14px; line-height: 22px; }
.rule { height: 5px; border-top: 1px solid var(--gold-500); border-bottom: 1px solid var(--gold-500); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini img { width: 26px; height: 36px; object-fit: contain; flex-shrink: 0; }
.mini-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini .brand { font-size: 10px; line-height: 14px; }
.mini .name { font-size: 24px; line-height: 1.1; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--sage); font-size: 13px; line-height: 20px; white-space: nowrap; }
.lang-btn[aria-expanded="true"] { color: var(--gold-300); }
.lang-menu { position: absolute; top: 58px; inset-inline-end: 12px; z-index: 20; min-width: 168px; display: flex; flex-direction: column; padding: 4px 0; background: var(--ivory-50); border: 1px solid var(--line-strong); border-radius: 2px; box-shadow: var(--shadow); }
.lang-menu button { min-height: 44px; padding: 0 16px; background: none; border: 0; color: var(--ink); font-size: 14px; text-align: start; }
.lang-menu button:hover { background: var(--ivory-100); }
.lang-menu button[aria-current="true"] { color: var(--green-900); font-weight: 600; }

/* Steps */
main { flex: 1 0 auto; }
.step { display: flex; flex-direction: column; gap: 20px; padding-block: 16px 28px; }
.step.enter { animation: rise 0.28s ease-out both; }
@keyframes rise { from { opacity: 0.2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; font-size: 12px; line-height: 16px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-block: -8px; padding: 0; background: none; border: 0; color: var(--ink-muted); font-size: 13px; }
.track { height: 2px; background: var(--hairline); }
.track i { display: block; height: 2px; background: var(--gold-600); transition: width 0.3s ease; }
.title { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-600); }
html[dir="rtl"] .eyebrow { font-size: 13px; line-height: 20px; letter-spacing: 0; }
h2 { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 1.1; font-weight: 600; color: var(--green-900); text-wrap: balance; }
html[dir="rtl"] h2 { font-size: 29px; line-height: 1.4; }
.sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
html[dir="rtl"] .sub { font-size: 15px; line-height: 24px; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.group-label, .lbl { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
html[dir="rtl"] .group-label, html[dir="rtl"] .lbl { font-size: 14px; line-height: 22px; }
.hint { font-size: 12px; line-height: 16px; color: var(--ink-muted); text-align: end; }
html[dir="rtl"] .hint { font-size: 13px; line-height: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 6px 10px; background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); font-size: 14px; line-height: 20px; text-align: center; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
html[dir="rtl"] .opt { font-size: 15px; line-height: 22px; }
.opt:hover { border-color: var(--green-900); }
.opt[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: var(--ivory-50); font-weight: 600; }
.opt .check { display: none; flex-shrink: 0; color: var(--gold-300); }
.opt[aria-pressed="true"] .check { display: block; }
.opt.num, .opt.studio { padding: 0; font-variant-numeric: tabular-nums; }
.opt.num { font-size: 15px; }
.opt.studio { font-size: 12px; }
html[dir="rtl"] .opt.studio { font-size: 13px; }
.opt.num .check, .opt.studio .check, .opt.budget .check { display: none !important; }
.chips .opt { padding: 0 14px; }
.opt.wide { width: 100%; border-style: dashed; color: var(--green-900); font-weight: 600; }
.opt.wide[aria-pressed="true"] { border-style: solid; color: var(--ivory-50); }
.opt.budget { flex-direction: column; gap: 2px; min-height: 56px; font-variant-numeric: tabular-nums; }
.opt.budget .aed { font-size: 15px; line-height: 20px; font-weight: 600; }
.opt.budget .usd { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-muted); }
.opt.budget[aria-pressed="true"] .usd { color: var(--sage); }
.field { display: flex; flex-direction: column; gap: 6px; }
.input { width: 100%; height: 48px; padding: 0 14px; background: var(--ivory-50); border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); font-size: 16px; line-height: 22px; }
.input:focus { border-color: var(--green-900); }
.input::placeholder { color: var(--ink-muted); opacity: 1; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.count-line { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.err { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--error); }
.help { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.fallback { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 4px; background: var(--ivory-100); }
.fallback p { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink); }
.fallback strong { font-weight: 600; }
.phone { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; -webkit-user-select: all; user-select: all; }
.linkbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--green-900); font-size: 13px; line-height: 20px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.manual { width: 100%; min-height: 168px; margin-bottom: 12px; padding: 10px 12px; background: var(--ivory-50); border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); font-size: 13px; line-height: 20px; resize: vertical; }
.privacy { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.privacy svg { flex-shrink: 0; margin-top: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html[dir="rtl"] input[type="tel"] { text-align: right; }
html[dir="rtl"] .help, html[dir="rtl"] .fallback p, html[dir="rtl"] .privacy { font-size: 14px; line-height: 22px; }
html[dir="rtl"] .linkbtn, html[dir="rtl"] .back, html[dir="rtl"] .progress-row { font-size: 14px; }

/* Sticky action bar */
.actions { position: sticky; bottom: 0; z-index: 10; background: var(--ivory-50); border-top: 1px solid var(--hairline); }
.actions .wrap { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 16px; background: var(--green-900); border: 0; border-radius: 2px; color: var(--gold-300); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; transition: background-color 0.15s; }
.btn:hover { background: var(--green-700); }
html[dir="rtl"] .btn { letter-spacing: 0; font-size: 16px; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

@media (max-width: 359px) {
  .name { font-size: 38px; }
  .seal { inset-inline-end: 22px; width: 62px; height: 80px; }
  .seal img { width: 51px; height: 70px; }
  .grid6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.receipt { border: 1px solid var(--line-strong); padding: 12px; color: var(--green-900); font-size: 14px; line-height: 1.6; }
.receipt p { margin: 0; }
.receipt-error { color: #8a3024; }
.receipt .linkbtn { margin-top: 8px; }
