:root {
  --cream: #fff0e3;
  --cream-soft: #fff8f1;
  --orange: #f28a22;
  --orange-dark: #c66a16;
  --brown: #6f4932;
  --ink: #44342b;
  --muted: #8b776a;
  --line: #ead6c5;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(91, 55, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 241, 0.94);
}

.topline {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 5px 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 106px;
}

.brand img {
  display: block;
  width: min(150px, 42vw);
  height: auto;
}

main {
  max-width: 980px;
  min-height: calc(100vh - 179px);
  margin: 0 auto;
  padding: 46px 18px 70px;
}

.questionnaire {
  max-width: 820px;
  margin: 0 auto;
}

.form-step {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
}

.form-step[hidden],
.thanks[hidden] {
  display: none;
}

.welcome-step {
  text-align: center;
}

.highlighted {
  background: #fffaf5;
  border-color: rgba(242, 138, 34, 0.45);
}

.intro-copy {
  margin-bottom: 34px;
  color: var(--ink);
  font-size: 18px;
  text-align: center;
}

.intro-copy p {
  margin: 0 0 16px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
}

h1 {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: clamp(30px, 4.6vw, 44px);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 3.2vw, 34px);
  text-align: center;
}

.welcome-step p:last-child {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

label,
fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
}

label > span,
legend {
  color: var(--brown);
  font-weight: 700;
  line-height: 1.4;
}

legend {
  max-width: 720px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.16;
}

small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  border: 1px solid #ddc6b4;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input {
  min-height: 48px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  min-height: 150px;
  padding: 12px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 138, 34, 0.18);
}

a {
  color: var(--orange-dark);
  font-weight: 700;
}

a:hover {
  color: var(--orange);
}

fieldset {
  border: 0;
  padding: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 38px;
  color: var(--ink);
  font-weight: 400;
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  min-height: 19px;
  margin-top: 4px;
  accent-color: var(--orange);
}

.choice-inline {
  flex-wrap: wrap;
  align-items: center;
}

.inline-input {
  flex: 1 1 230px;
  min-width: 180px;
  max-width: 420px;
}

.section-note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.wizard-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px 0 0;
}

.step-counter {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.wizard-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

button {
  min-height: 50px;
  border: 2px solid var(--orange);
  border-radius: 2px;
  padding: 12px 26px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button {
  background: transparent;
  color: var(--orange);
}

.secondary-button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

#form-status {
  min-height: 27px;
  margin: 0;
  color: var(--brown);
  text-align: center;
  font-weight: 700;
}

.thanks {
  max-width: 820px;
  margin: 0 auto;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
  font-size: 18px;
}

.thanks h2 {
  margin-bottom: 24px;
}

footer {
  background: #111111;
  color: #d8d8d8;
  font-size: 12px;
}

footer p {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

@media (max-width: 720px) {
  .topline {
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 12px;
  }

  .brand {
    min-height: 88px;
  }

  main {
    padding-top: 28px;
  }

  .form-step {
    min-height: 420px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
  }
}
