:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #111111;
  background: #ffffff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #ffffff;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 22px 56px;
}

.screen[hidden] {
  display: none;
}

.intro {
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  max-width: 540px;
  margin: 0 0 22px;
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro p,
.success-screen p {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.field {
  position: relative;
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.98rem;
  font-weight: 700;
}

.optional {
  position: absolute;
  top: 2px;
  right: 0;
  color: #666666;
  font-size: 0.82rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: #111111;
  background: #ffffff;
  border: 1px solid #9a9a9a;
  border-radius: 0;
  outline: none;
  font-size: 16px;
}

select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #111111 50%),
    linear-gradient(135deg, #111111 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 15px) 22px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

input:focus,
select:focus {
  border-color: #111111;
  box-shadow: 0 0 0 2px #111111;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  padding: 14px 18px;
  color: #ffffff;
  background: #111111;
  border: 1px solid #111111;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

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

.primary-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -5px;
}

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

.question {
  min-width: 0;
  margin: 0 0 38px;
  padding: 0;
  border: 0;
}

.question legend {
  width: 100%;
  margin-bottom: 15px;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.question-note {
  font-size: 0.88rem;
  font-weight: 400;
}

.question-help {
  margin: -7px 0 15px;
  color: #555555;
  font-size: 0.92rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}

.choice:first-of-type {
  border-top: 1px solid #e5e5e5;
}

.choice input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #111111;
}

.choice span {
  font-size: 1rem;
  line-height: 1.3;
}

.choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.38;
}

.form-error {
  margin: 0 0 12px;
  padding: 12px;
  color: #8a1515;
  background: #fff2f2;
  border: 1px solid #e0b4b4;
  font-size: 0.92rem;
  line-height: 1.4;
}

.success-screen {
  display: grid;
  min-height: calc(100vh - 96px);
  align-items: center;
}

.success-screen h1 {
  font-size: clamp(2.3rem, 10vw, 4rem);
}

.closing-line {
  margin-top: 34px !important;
  font-weight: 700;
}

@media (min-width: 700px) {
  .page-shell {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .intro {
    margin-bottom: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .screen:not([hidden]) {
    animation: appear 220ms ease-out;
  }

  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

