/* ============ Design tokens ============ */
:root {
  --ink: #14201B;
  --paper: #FAFAF6;
  --white: #FFFFFF;
  --green: #1E7A46;
  --green-tint: #E8F3EC;
  --green-border: #BFDCCB;
  --muted: #5E665F;
  --line: #E3E2DA;
  --radius: 14px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(20, 32, 27, 0.05), 0 8px 24px rgba(20, 32, 27, 0.07);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow { max-width: 720px; }

.section { padding: 64px 0; }

.section-tint {
  background: var(--green-tint);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}

.hint { font-weight: 400; font-size: 0.875rem; color: var(--muted); }

/* Visible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 32, 27, 0.22);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn-lg {
  padding: 17px 30px;
  font-size: 1.08rem;
}

/* ============ Hero ============ */
.hero {
  padding: 72px 0 76px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--green-tint) 0%, rgba(232, 243, 236, 0) 100%),
    var(--paper);
}

.hero-inner { max-width: 760px; }

.badge {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green);
  border: 1px solid var(--green-border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  margin-bottom: 22px;
}

.subhead {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
}

/* ============ How it works ============ */
.steps-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 14px;
}

.step-card p { margin: 0; color: var(--muted); }

/* ============ Why a form ============ */
.section-tint .lead { font-size: 1.08rem; }

.supporting {
  font-weight: 600;
  color: var(--green);
  margin: 0;
}

/* ============ Wizard ============ */
.wizard-heading { margin-bottom: 6px; }

.wizard-subheading { color: var(--muted); margin-bottom: 28px; }

.wizard-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 28px;
}

.wizard-chrome[hidden] { display: none; }

.wizard-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.back-btn {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.back-btn:hover { color: var(--ink); background: var(--paper); }

.progress-track {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 7.7%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.step-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Steps */
.step {
  border: none;
  margin: 0;
  padding: 0;
  display: none;
}

.step.is-active {
  display: block;
  animation: step-in 0.28s ease both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding: 0;
  margin-bottom: 18px;
}

.step legend label { cursor: text; }

/* Text inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

input::placeholder, textarea::placeholder { color: #9AA09B; }

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--green);
}

textarea { resize: vertical; }

/* Option lists (radio / checkbox) */
.options {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover { border-color: var(--green-border); }

.option input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  flex-shrink: 0;
  margin: 0;
}

.option:has(input:checked) {
  background: var(--green-tint);
  border-color: var(--green);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* Style cards */
.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}

.style-card {
  display: block;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.style-card:hover { border-color: var(--green-border); }

.style-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-card:has(input:checked) {
  border-color: var(--green);
  background: var(--green-tint);
}

.style-card:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.style-name {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 8px;
}

/* CSS-drawn thumbnails */
.thumb {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  padding: 10px 12px 12px;
  height: 96px;
  overflow: hidden;
}

.thumb span { display: block; border-radius: 3px; }

.t-bar   { height: 5px; width: 40%; }
.t-hero  { height: 22px; width: 100%; border-radius: 5px; }
.t-line  { height: 5px; width: 85%; }
.t-line.short { width: 55%; }
.t-btn   { height: 12px; width: 38%; border-radius: 999px; margin-top: 2px; }

.thumb-modern { background: #FFFFFF; border: 1px solid #E5E7EB; }
.thumb-modern .t-bar  { background: #D7DBE0; }
.thumb-modern .t-hero { background: #EEF1F4; }
.thumb-modern .t-line { background: #E3E7EB; }
.thumb-modern .t-btn  { background: #2563EB; }

.thumb-bold { background: #191919; }
.thumb-bold .t-bar  { background: #3A3A3A; }
.thumb-bold .t-hero { background: #2B2B2B; }
.thumb-bold .t-line { background: #444; }
.thumb-bold .t-btn  { background: #FFC93C; }

.thumb-warm { background: #FBF3E7; border: 1px solid #F0E3CE; }
.thumb-warm .t-bar  { background: #E8D6BC; }
.thumb-warm .t-hero { background: #F3E5CF; border-radius: 12px; }
.thumb-warm .t-line { background: #EADCC4; }
.thumb-warm .t-btn  { background: #D97B4F; }

.thumb-elegant { background: #F7F6F2; border: 1px solid #E9E6DD; align-items: center; }
.thumb-elegant .t-bar  { background: #D9D4C7; width: 26%; }
.thumb-elegant .t-hero { background: #ECE9E0; width: 88%; }
.thumb-elegant .t-line { background: #E0DCD0; width: 64%; }
.thumb-elegant .t-line.short { width: 42%; }
.thumb-elegant .t-btn  { background: #B69B58; }

/* Reveal blocks */
.reveal {
  margin-top: 14px;
  padding-top: 4px;
}

.reveal label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

/* File dropzones */
.step-note {
  color: var(--muted);
  margin: -6px 0 16px;
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px;
  background: var(--paper);
  border: 2px dashed var(--green-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 12px;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--green);
  background: var(--green-tint);
}

.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.dropzone-text {
  font-weight: 600;
  color: var(--green);
}

.file-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.file-list img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.file-list .file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.file-remove:hover {
  color: #B4232A;
  background: var(--paper);
}

/* Contact fields */
.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input { margin-bottom: 0; }

.field .hint { margin: 6px 0 0; }

/* Errors */
.step-error {
  color: #B4232A;
  font-weight: 500;
  font-size: 0.92rem;
  margin: 2px 0 12px;
}

/* Next buttons */
.next-btn, #submit-btn {
  width: 100%;
  margin-top: 8px;
}

/* Success state */
.success {
  text-align: center;
  padding: 28px 6px 12px;
  animation: step-in 0.28s ease both;
}

.success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-tint);
  border: 1.5px solid var(--green-border);
  color: var(--green);
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.success p { color: var(--muted); margin-bottom: 6px; }

/* ============ FAQ ============ */
.faq {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
}

.faq summary {
  font-weight: 600;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
}

/* ============ Final CTA ============ */
.final-cta {
  text-align: center;
  background: var(--ink);
  color: var(--white);
}

.final-cta h2 {
  color: var(--white);
  max-width: 560px;
  margin: 0 auto 26px;
}

.final-cta .btn-primary {
  background: var(--white);
  color: var(--ink);
}

.final-cta .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ============ Footer ============ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.footer a { color: var(--muted); }

/* ============ Desktop ============ */
@media (min-width: 720px) {
  .section { padding: 88px 0; }

  .hero { padding: 100px 0 104px; }

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

  .wizard-card { padding: 30px 36px 38px; }

  .style-grid { grid-template-columns: repeat(4, 1fr); }

  .next-btn, #submit-btn { width: auto; min-width: 200px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
