:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1d1c1a;
  --muted: #5f5c57;
  --line: #e2dfd8;
  --accent: #c2410c;
  --accent-text: #ffffff;
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #211f1d;
    --text: #f1efeb;
    --muted: #b1ada6;
    --line: #36332f;
    --accent: #f97316;
    --accent-text: #1a0f06;
    --good: #4ade80;
    --bad: #f87171;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.top .wrap {
  display: flex;
  align-items: center;
  min-height: 56px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.15;
  margin: 32px 0 8px;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 24px;
}

.steps ol {
  margin: 0;
  padding-left: 1.3em;
}

.steps li {
  margin-bottom: 6px;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}

.card h1,
.card h2 {
  margin-top: 0;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.row {
  display: grid;
  gap: 0 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}

.short input {
  max-width: 120px;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

input[type="file"] {
  padding: 8px;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  border: 1px solid transparent;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.error {
  color: var(--bad);
  font-weight: 600;
}

.notice {
  color: var(--muted);
  font-weight: 600;
}

.progress {
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress .bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

#model {
  word-break: break-word;
}

.status {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
}

.status[data-status="quoted"] {
  border-color: var(--accent);
  color: var(--accent);
}

.status[data-status="accepted"] {
  border-color: var(--good);
  color: var(--good);
}

.status[data-status="declined"],
.status[data-status="closed"] {
  color: var(--muted);
}

.answer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.save .whatsapp {
  display: inline-block;
  margin-left: 12px;
}

a {
  color: var(--accent);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 8px;
  padding-bottom: 32px;
}
