/* Earth MotorCars classic appraisal form.
   Same type system as the sell-your-car page: Archivo wide caps for headings and buttons,
   Space Mono for everything else, gold on near-black. One column, nothing but the form. */
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #17171a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ece9e3;
  --muted: #a19d95;
  --dim: #85817a;
  --gold: #c9a96e;
  --gold-hi: #e2c891;
  --gold-ink: #17130c;
  --danger: #e57b6b;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(900px 420px at 50% -10%, rgba(201, 169, 110, .10), transparent 70%);
  color: var(--text);
  font: 400 15px/1.55 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
@media (min-width: 720px) { .wrap { padding: 0 32px 72px; } }

.top { display: flex; justify-content: center; padding: 26px 16px 10px; }
.top__logo img { height: 34px; width: auto; }

/* ─── Intro ───────────────────────────────────────────── */
.intro { text-align: center; padding: 30px 0 26px; }
.eyebrow { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.intro h1 {
  font: 600 clamp(1.7rem, 6.4vw, 2.9rem)/1.02 var(--display); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -0.015em; text-wrap: balance;
}
.lede { margin: 16px auto 0; max-width: 34em; color: #cfcbc4; font-size: 14px; }
.repline { margin-top: 18px; display: inline-flex; gap: 8px; align-items: baseline; padding: 9px 14px; border: 1px solid rgba(201,169,110,.3); border-radius: 999px; background: rgba(201,169,110,.06); font-size: 12.5px; color: var(--muted); }
.repline strong { color: var(--text); font-weight: 700; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--gold); border-radius: 6px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink);
  font: 600 13px/1 var(--display); font-stretch: 125%; letter-spacing: 0.03em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--muted); filter: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ─── Form card ───────────────────────────────────────── */
.formcard {
  background: rgba(14, 14, 16, 0.86);
  border: 1px solid rgba(201,169,110,.28);
  border-radius: 14px;
  padding: 22px 18px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
@media (min-width: 520px) { .formcard { padding: 28px 30px 30px; } }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 6px; }
.steps li {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 2px solid var(--line-2);
  font: 400 11px/1 var(--mono); text-transform: uppercase; color: var(--dim); letter-spacing: .06em;
  transition: color .2s, border-color .2s;
}
.steps li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; flex: none; }
.steps li.is-active, .steps li.is-done { color: var(--text); border-color: var(--gold); }
.steps li.is-done span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
@media (max-width: 400px) { .steps li { font-size: 0; } .steps li span { font-size: 11px; } }

.step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.step.is-active { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.group { font: 600 12.5px/1.2 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }

.row { display: grid; gap: 0 12px; }
@media (min-width: 520px) {
  .row--2 { grid-template-columns: 1fr 1fr; }
  .row--3 { grid-template-columns: 0.7fr 1fr 1fr; }
}
.field { margin-bottom: 16px; min-width: 0; }
.field label, .field .label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 7px; color: #d9d5ce;
}
.field small { font-weight: 400; color: var(--dim); font-size: 11.5px; }
.field .count { color: var(--muted); font-weight: 700; }
.field .count.is-ok { color: var(--gold-hi); }
input, textarea, select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--text);
  font: 400 15px/1.4 var(--mono);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8a867f; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,.16); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select, .field.is-invalid .seg, .field.is-invalid .dropzone { border-color: var(--danger); }
.hint { font-size: 11.5px; color: var(--dim); margin-top: 6px; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.prefix input { padding-left: 28px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a19d95' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 1px solid transparent; border-radius: 8px; }
.seg label { margin: 0; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: grid; place-items: center; text-align: center; min-height: 48px; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg-3);
  font-size: 13px; font-weight: 700; color: var(--muted); transition: all .15s;
}
.seg input:checked + span { border-color: var(--gold); color: var(--text); background: rgba(201,169,110,.12); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(201,169,110,.3); }

/* photos */
.dropzone {
  position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center !important;
  gap: 4px; text-align: center; cursor: pointer;
  border: 1px dashed rgba(201,169,110,.45); border-radius: 9px; background: rgba(201,169,110,.04);
  padding: 26px 14px; font-weight: 400 !important; color: var(--text) !important;
  transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone.is-over { background: rgba(201,169,110,.1); border-color: var(--gold); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { color: var(--gold); margin-bottom: 4px; }
.dropzone .hint { margin: 0; }
.progressline { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progressline div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transition: width .3s ease; }
.progressline.is-ok div { background: var(--gold-hi); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite;
}
.thumb button {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
  display: grid; place-items: center;
}
.shots { margin: 6px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.shots__title { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.shots ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 12.5px; color: #cfcbc4; }
@media (min-width: 520px) { .shots ul { grid-template-columns: 1fr 1fr; gap: 5px 18px; } }
.shots li { display: flex; gap: 10px; align-items: baseline; }
.shots li::before { content: ""; width: 10px; height: 1px; background: var(--gold); flex: none; position: relative; top: -3px; }

.btnrow { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 6px; }
.consent { font-size: 11px; color: var(--dim); margin: 2px 0 14px; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formerror { margin-top: 14px; padding: 12px 14px; border-radius: 7px; background: rgba(229,123,107,.1); border: 1px solid rgba(229,123,107,.35); color: #f2b3a8; font-size: 13.5px; }

.state { text-align: center; padding: 26px 0 10px; }
.state h3 { font: 600 20px/1.15 var(--display); font-stretch: 125%; text-transform: uppercase; margin: 18px 0 10px; }
.state p { color: var(--muted); }
.spinner { width: 42px; height: 42px; margin: 0 auto; border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 18px 0 4px; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transition: width .3s ease; }
.check { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(201,169,110,.14); color: var(--gold-hi); border: 1px solid rgba(201,169,110,.4); }

.foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 0 0; }
.foot img { height: 22px; width: auto; opacity: .6; }
.foot p { font-size: 11.5px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
