:root {
  --bg-top: #f5efe4;
  --bg-bottom: #fffaf0;
  --surface: rgba(255, 253, 248, 0.92);
  --surface-strong: #ffffff;
  --text: #1c1a17;
  --muted: #6b6257;
  --line: rgba(48, 34, 20, 0.12);
  --brand: #a84b1f;
  --brand-deep: #7c3512;
  --brand-soft: rgba(168, 75, 31, 0.12);
  --success-bg: #ecfdf3;
  --success-text: #166534;
  --shadow: 0 24px 60px rgba(69, 46, 22, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 187, 120, 0.3), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.hero {
  padding: 8px 6px 18px;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(124, 53, 18, 0.16);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.05;
}

.card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.progress-wrap {
  margin-top: 2px;
}

.step-indicator {
  display: grid;
  gap: 10px;
}

.step-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.step-pill--active {
  background: linear-gradient(135deg, rgba(168, 75, 31, 0.14), rgba(255, 255, 255, 0.94));
  border-color: rgba(168, 75, 31, 0.35);
  transform: translateY(-1px);
}

.step-pill--done {
  border-color: rgba(22, 101, 52, 0.18);
  background: rgba(236, 253, 243, 0.88);
}

.step-pill__number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.step-pill--done .step-pill__number {
  background: rgba(22, 101, 52, 0.14);
  color: var(--success-text);
}

.step-pill__title {
  margin: 0;
  font-weight: 800;
}

.step-pill__desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.status-banner {
  min-height: 1.5rem;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.status-banner--success {
  color: var(--success-text);
}

.status-banner--error {
  color: #991b1b;
}

#form-content {
  margin-top: 6px;
}

.step-card {
  padding: 18px 0 4px;
}

.step-card__title {
  margin: 0;
  font-size: 1.35rem;
}

.step-card__lead {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.section-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.section-card__note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.fields-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-weight: 700;
  line-height: 1.4;
}

.field__required {
  color: #b91c1c;
}

.field__input,
.field__textarea {
  width: 100%;
  border: 1px solid rgba(48, 34, 20, 0.16);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field__textarea {
  min-height: 120px;
  resize: vertical;
}

.field__input:focus,
.field__textarea:focus {
  border-color: rgba(168, 75, 31, 0.7);
  box-shadow: 0 0 0 4px rgba(168, 75, 31, 0.12);
  transform: translateY(-1px);
}

.field__help {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.review-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(168, 75, 31, 0.35);
  background: rgba(255, 248, 239, 0.9);
}

.review-card h3 {
  margin: 0 0 10px;
}

.review-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.button:hover:not(:disabled),
.button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
}

.button--secondary {
  background: rgba(124, 53, 18, 0.1);
  color: var(--brand-deep);
}

.button--primary {
  margin-left: auto;
  background: linear-gradient(135deg, var(--brand), #d97039);
  color: #fff7f2;
}

.footer {
  padding: 18px 6px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .page-shell {
    padding: 28px 20px 38px;
  }

  .card {
    padding: 22px;
  }

  .step-indicator {
    grid-template-columns: repeat(3, 1fr);
  }

  .fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }
}
