:root {
  color-scheme: light;
  --ink: #132b35;
  --muted: #5c6c72;
  --line: #dce4e6;
  --surface: #ffffff;
  --canvas: #f4f7f6;
  --teal: #087d77;
  --teal-dark: #05635f;
  --teal-soft: #e7f5f2;
  --orange: #e66d36;
  --danger: #a33434;
  --shadow: 0 22px 55px rgba(27, 55, 62, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(8, 125, 119, 0.11), transparent 27rem),
    radial-gradient(circle at 95% 85%, rgba(230, 109, 54, 0.08), transparent 24rem),
    var(--canvas);
}

a { color: var(--teal-dark); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px;
}

.brand {
  display: block;
  flex: 0 1 460px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.language-switcher a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.language-switcher a[aria-current="true"] {
  color: white;
  background: var(--teal);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(560px, 1.35fr);
  gap: 48px;
  max-width: 1180px;
  margin: 28px auto 48px;
  padding: 0 28px;
  align-items: start;
}

.intro-panel {
  position: sticky;
  top: 28px;
  padding: 42px 10px 24px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(34px, 5vw, 55px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.description {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.privacy-note {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.privacy-note span { color: var(--orange); font-size: 18px; }
.privacy-note p { margin: 0; }

.form-panel {
  min-height: 610px;
  padding: 34px 40px 40px;
  border: 1px solid rgba(217, 226, 228, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.stepper li {
  position: relative;
  display: grid;
  gap: 7px;
  justify-items: center;
  color: #8a989d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stepper button {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  gap: 7px;
  justify-items: center;
}

.stepper button:hover { color: var(--teal-dark); }
.stepper button:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(8, 125, 119, 0.24);
  outline-offset: 5px;
}

.stepper li::before {
  position: absolute;
  z-index: 0;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  content: "";
}

.stepper li:first-child::before { display: none; }

.stepper span {
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.stepper li.is-active,
.stepper li.is-complete { color: var(--teal-dark); }
.stepper li.is-active span { color: white; border-color: var(--teal); background: var(--teal); }
.stepper li.is-complete span { border-color: var(--teal); background: var(--teal-soft); }
.stepper li.is-complete::before { background: var(--teal); }

.section-heading { margin: 0 0 28px; font-size: 24px; letter-spacing: -0.025em; }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 20px; }
.field { min-width: 0; }
.field.is-wide, .choice-field, .quantity-field { grid-column: 1 / -1; }

.field-label,
.choice-legend {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.required-mark { margin-left: 3px; color: var(--orange); }
.field-help { margin: -3px 0 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cbd7da;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
}

textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 125, 119, 0.12); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field.has-error fieldset { border-radius: 10px; outline: 2px solid var(--danger); outline-offset: 4px; }
.consent.has-error { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.inline-error { margin: 6px 0 0; color: var(--danger); font-size: 12px; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
}
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { margin-top: 2px; accent-color: var(--teal); }
.choice span { font-size: 13px; line-height: 1.45; }
.other-input { margin-top: 9px; }

.quantity-list { display: grid; gap: 12px; }
.quantity-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 100px 130px; gap: 10px; align-items: center; }
.quantity-row strong { font-size: 13px; }
.quantity-other { grid-column: 2 / -1; }

.review-list { display: grid; gap: 20px; }
.review-section { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review-section h3 { margin: 0 0 13px; color: var(--teal-dark); font-size: 15px; }
.review-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; padding: 6px 0; font-size: 13px; line-height: 1.45; }
.review-row dt { color: var(--muted); }
.review-row dd { margin: 0; overflow-wrap: anywhere; }
.consent-list { display: grid; gap: 14px; margin-top: 28px; }
.consent { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfc; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 700; line-height: 1.5; }
.consent input { margin-top: 2px; accent-color: var(--teal); }
.consent-details { margin: 9px 0 0 25px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 34px; padding-top: 23px; border-top: 1px solid var(--line); }
.button { min-height: 45px; padding: 0 21px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.button:disabled { cursor: wait; opacity: 0.65; }
.button-primary { color: white; background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { color: var(--ink); border: 1px solid var(--line); background: white; }

.alert { margin-bottom: 22px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.alert-error { color: #7d2424; border: 1px solid #efc8c8; background: #fff2f2; }

.success-panel { padding: 70px 20px; text-align: center; }
.success-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 20px; place-items: center; color: white; border-radius: 50%; background: var(--teal); font-size: 27px; }
.success-panel h2 { margin: 0 0 12px; font-size: 28px; }
.success-panel p { color: var(--muted); line-height: 1.6; }
.reference { display: inline-flex; gap: 8px; margin-top: 16px; padding: 9px 13px; border-radius: 8px; background: var(--canvas); font-size: 12px; }
.reference strong { color: var(--ink); }

footer { display: flex; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 8px 28px 30px; color: var(--muted); font-size: 12px; }

[hidden] { display: none !important; }
.honeypot-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 880px) {
  .page-shell { grid-template-columns: 1fr; gap: 20px; margin-top: 0; }
  .intro-panel { position: static; padding: 25px 0 10px; }
  h1 { font-size: 39px; }
  .privacy-note { display: none; }
}

@media (max-width: 620px) {
  .site-header { gap: 10px; padding: 17px 18px; }
  .brand { flex-basis: 180px; }
  .brand-logo { width: min(46vw, 180px); }
  .language-switcher a { padding: 6px 8px; font-size: 11px; }
  .page-shell { padding: 0 14px; }
  .form-panel { min-height: 0; padding: 24px 18px 26px; border-radius: 17px; }
  .stepper { margin-bottom: 30px; }
  .stepper b { display: none; }
  .fields-grid, .choice-list { grid-template-columns: 1fr; }
  .quantity-row { grid-template-columns: 1fr 90px; }
  .quantity-row strong { grid-column: 1 / -1; }
  .quantity-other { grid-column: 1 / -1; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .form-actions { position: sticky; bottom: 0; margin-inline: -18px; padding: 16px 18px; background: rgba(255, 255, 255, 0.96); }
  footer { padding-inline: 18px; }
}
