/* easymail website project brief: matches the easymail.co.za brand (dark warm, amber accent, Fraunces + Inter). */
:root {
  --bg: #0a0907; --bg-2: #110f0b; --bg-3: #1a1612; --bg-4: #221d17;
  --line: #2a241c; --line-2: #3a3327; --line-3: #4a4032;
  --ink: #f8f4ec; --ink-2: #d4ccb8; --ink-3: #a39a87; --ink-4: #6b6354;
  --accent: #e89556; --accent-2: #f5b277; --accent-3: #d4884a; --accent-deep: #8b5524;
  --accent-glow: rgba(232, 149, 86, 0.22); --accent-tint: rgba(232, 149, 86, 0.10);
  --green: #7fc594; --rose: #e8a3a3; --max: 760px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif; background: var(--bg); color: var(--ink);
  line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse at 80% 0%, rgba(232,149,86,0.07), transparent 50%), radial-gradient(ellipse at 10% 60%, rgba(232,149,86,0.04), transparent 50%);
  background-attachment: fixed;
}
a { color: var(--accent-2); }
a:hover { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 0; height: 0; overflow: hidden; opacity: 0; }
[hidden] { display: none !important; }

/* nav */
.topnav { border-bottom: 1px solid var(--line); background: rgba(10,9,7,0.85); }
.topnav .row { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-3) 70%, var(--accent-deep)); box-shadow: 0 6px 20px var(--accent-glow); }
.brand-mark::after { content: ''; position: absolute; inset: 7px; border: 1.8px solid var(--bg); border-radius: 3px; border-top: none; border-bottom: none; }
.brand-mark::before { content: ''; position: absolute; top: 10px; left: 7px; right: 7px; height: 1.8px; background: var(--bg); transform: skewY(-15deg); }
.back-link { color: var(--ink-3); font-size: 14px; text-decoration: none; }

/* progress */
.progress { position: sticky; top: 0; z-index: 50; background: rgba(10,9,7,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; }
.menu-btn { background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; display: flex; gap: 8px; align-items: center; padding: 8px 0; min-width: 0; }
.menu-btn #step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--accent); font-size: 12px; }
.save-status { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }
.save-status.ok::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.save-status.warn { color: var(--accent-2); }
.bar { height: 3px; background: var(--line); }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); transition: width .3s ease; }
.menu { border-top: 1px solid var(--line); background: var(--bg-2); max-height: 70vh; overflow-y: auto; }
.menu-list { list-style: none; padding-top: 8px; padding-bottom: 10px; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 15px; padding: 10px 6px; cursor: pointer; text-align: left; border-radius: 8px; }
.menu-item:hover:not(:disabled) { background: var(--bg-3); color: var(--ink); }
.menu-item:disabled { opacity: .45; cursor: not-allowed; }
.menu-item.current { color: var(--ink); background: var(--bg-3); }
.mi-n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.menu-item.current .mi-n { border-color: var(--accent); color: var(--accent); }
.mi-t { flex: 1; }
.mi-c { font-size: 12px; color: var(--ink-4); }
.mi-c.some { color: var(--green); }

/* layout */
.app { padding-top: 28px; padding-bottom: 48px; outline: none; }
.card { background: linear-gradient(180deg, var(--bg-2), rgba(17,15,11,0.85)); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px 28px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
h1, h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; outline: none; }
h1 { font-size: clamp(30px, 6vw, 42px); margin-bottom: 14px; }
h2 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 10px; }
h3 { font-size: 16px; font-weight: 700; }
.lead { color: var(--ink-2); font-size: 17px; margin-bottom: 22px; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.loading { color: var(--ink-3); padding: 40px 0; text-align: center; }

/* intro */
.ticks { list-style: none; margin: 4px 0 26px; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.ticks li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.ref-chip { display: inline-block; font-size: 13px; color: var(--accent-2); background: var(--accent-tint); border: 1px solid rgba(232,149,86,.3); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-overview { columns: 2; column-gap: 28px; padding-left: 22px; color: var(--ink-3); font-size: 14px; margin: 6px 0 24px; }
.sec-overview li { margin-bottom: 4px; break-inside: avoid; }
.recover { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 14px; }
.recover summary { cursor: pointer; color: var(--ink-2); font-size: 14.5px; }
.recover-row { display: flex; gap: 10px; margin: 12px 0 8px; flex-wrap: wrap; }
.recover-row input { flex: 1 1 220px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 0; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; min-height: 46px; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #1a1208; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 4px 14px rgba(232,149,86,.28); }
.btn-primary:hover { color: #1a1208; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 26px rgba(232,149,86,.38); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(20,18,15,.6); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-3); background: var(--bg-3); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 16.5px; }
.linkbtn { background: none; border: 0; color: var(--accent-2); font: inherit; font-size: 14.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; text-align: left; }
.linkbtn:hover { color: var(--accent); }

/* fields */
.field { margin: 0 0 24px; }
.field fieldset { border: 0; min-width: 0; }
.field legend, .lbl { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 8px; color: var(--ink); padding: 0; }
.help { font-size: 13.5px; color: var(--ink-3); margin: -2px 0 10px; }
.req { color: var(--accent); font-weight: 700; }
.input { width: 100%; background: #0d0b08; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); font: inherit; font-size: 16px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
textarea.input { resize: vertical; min-height: 104px; line-height: 1.5; }
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
input[type=date].input { color-scheme: dark; min-height: 48px; }
.field.invalid .input, .field.invalid .opts, .field.invalid .consent { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(232,163,163,.18); border-radius: 10px; }
.opts { display: grid; gap: 8px; grid-template-columns: 1fr; }
.opts.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; background: rgba(13,11,8,.7);
  transition: border-color .15s, background .15s; font-size: 15px; color: var(--ink-2); min-height: 46px; line-height: 1.35; }
.opt:hover { border-color: var(--line-3); color: var(--ink); }
.opt input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.6px solid var(--line-3); flex-shrink: 0; margin-top: 1px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.opt input[type=radio] { border-radius: 50%; }
.opt input[type=checkbox] { border-radius: 5px; }
.opt input:checked { border-color: var(--accent); background: var(--accent); }
.opt input[type=radio]:checked::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1a1208; }
.opt input[type=checkbox]:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #1a1208; border-bottom: 2px solid #1a1208; transform: rotate(-45deg) translate(1px, -1px); }
.opt input:focus-visible { box-shadow: 0 0 0 3px var(--accent-glow); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }
.opt span { min-width: 0; overflow-wrap: anywhere; }
.other-wrap { margin-top: 8px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(13,11,8,.7); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.note { margin: 0 0 22px; padding: 12px 14px; border-radius: 10px; background: var(--bg-3); color: var(--ink-2); font-size: 14.5px; border-left: 3px solid var(--line-3); }
.note.warn { border-left-color: var(--accent); background: var(--accent-tint); color: var(--ink); font-weight: 500; }
.error { margin: 4px 0 18px; padding: 12px 14px; border-radius: 10px; background: rgba(232,163,163,.12); border: 1px solid rgba(232,163,163,.4); color: #f5d0d0; font-size: 14.5px; }

/* "tell us more" */
.more { margin-top: 8px; border: 1px dashed var(--line-3); border-radius: 14px; background: rgba(26,22,18,.45); }
.more > summary { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; color: var(--accent-2); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); }
.more[open] > summary::after { content: '\2212'; }
.more-count { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.more-inner { padding: 4px 18px 6px; }

/* colours */
.colors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 8px; background: #0d0b08; }
.swatch input[type=color] { width: 38px; height: 32px; border: 0; background: none; padding: 0; cursor: pointer; }
.swatch code { font-size: 13px; color: var(--ink-2); }
.x { background: none; border: 0; color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.x:hover { color: var(--ink); background: var(--bg-4); }

/* uploads */
.drop { display: block; border: 1.5px dashed var(--line-3); border-radius: 12px; padding: 22px 16px; text-align: center; cursor: pointer; color: var(--ink-3); background: rgba(13,11,8,.6); transition: border-color .15s, background .15s; }
.drop strong { color: var(--accent-2); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-tint); }
.drop:focus-within { box-shadow: 0 0 0 3px var(--accent-glow); }
.file-list { list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 10px 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-3); font-size: 14px; }
.file .fn { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.file .fs { color: var(--ink-3); font-size: 13px; }
.file.bad .fs { color: var(--rose); }
.fbar { flex-basis: 100%; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.fbar span { display: block; height: 100%; background: var(--accent); }

/* bottom nav */
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(10,9,7,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.navbar-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 70px; }
.navbar-in .linkbtn { margin-left: auto; margin-right: 6px; font-size: 14px; }
.navbar-in .btn-primary { min-width: 120px; }

/* review */
.missing { border: 1px solid rgba(232,149,86,.45); background: var(--accent-tint); border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; }
.missing ul { margin: 8px 0 0 20px; }
.rv-sec { border-top: 1px solid var(--line); padding: 16px 0; }
.rv-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rv-head h3 { flex: 1 1 auto; }
.rv-sec dl { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 16px; font-size: 14px; }
.rv-sec dt { color: var(--ink-3); }
.rv-sec dd { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.send-row { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; display: grid; gap: 10px; justify-items: start; }

/* done */
.done { text-align: center; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; margin: 6px auto 18px; display: grid; place-content: center; font-size: 30px; color: #1a1208; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 30px var(--accent-glow); }
.done .actions { justify-content: center; margin: 22px 0 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60; background: var(--bg-4); border: 1px solid var(--line-3); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); transition: opacity .5s; }
.toast.gone { opacity: 0; }

/* privacy + footer */
.privacy { padding-top: 10px; padding-bottom: 40px; color: var(--ink-3); font-size: 14px; }
.privacy h2 { font-size: 22px; color: var(--ink-2); margin-bottom: 12px; }
.privacy p { margin-bottom: 10px; }
.privacy strong { color: var(--ink-2); }
.foot { border-top: 1px solid var(--line); padding: 22px 0 110px; color: var(--ink-4); font-size: 13px; }
.foot a { color: var(--ink-3); }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .card { padding: 24px 18px; border-radius: 16px; }
  .opts.many { grid-template-columns: 1fr; }
  .sec-overview { columns: 1; }
  .back-link { font-size: 13px; }
  .rv-sec dl { grid-template-columns: 1fr; gap: 2px; }
  .rv-sec dd { margin-bottom: 8px; }
  .navbar-in .btn { padding: 10px 16px; }
  .navbar-in .btn-primary { min-width: 0; }
  .more-inner { padding: 4px 12px 6px; }
  .more > summary { padding: 14px 14px; }
  .app { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
