* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font:
    18px/1.4 -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #333333;
  background: #faf7f2;
}

main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 42px 24px 24px;
}

.logo {
  display: block;
  width: 260px;
  max-width: 70%;
  margin: 0 auto 40px;
}

h1 {
  margin: 0 0 24px;
  font-size: 28px;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
}

input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  /* 16px or more stops iOS Safari from zooming in on focus. */
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: #fff;
  border: 1px solid #c9c2b8;
  border-radius: 8px;
  -webkit-appearance: none;
}

input:focus {
  outline: 2px solid #ff4438;
  outline-offset: 1px;
}

.consent {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 16px;
}

.consent input {
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: #3d3935;
}

button {
  width: 100%;
  padding: 16px;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: #f0483e;
  border: 0;
  border-radius: 8px;
  -webkit-appearance: none;
}

form button {
  margin-top: 12px;
}

button:disabled {
  opacity: 0.6;
}

input[aria-invalid="true"]:not([type="checkbox"]) {
  border-color: #c62a1f;
  box-shadow: 0 0 0 1px #c62a1f;
}

.consent input[aria-invalid="true"] {
  outline: 2px solid #c62a1f;
  outline-offset: 2px;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 400;
  color: #c62a1f;
}

.field-error:empty {
  display: none;
}

.consent > span {
  flex: 1;
}

.terms {
  font-size: 16px;
}

.terms a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline 1px #f0483e;
  text-underline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
}

.terms a:active {
  color: #c62a1f;
}

.terms a:focus-visible {
  outline: 2px solid #ff4438;
  outline-offset: 2px;
  border-radius: 2px;
}

.consent .field-error {
  flex-basis: 100%;
  margin: 0 0 0 40px;
}

.error {
  margin: 0 0 12px;
  color: #c62a1f;
}

#thanks {
  text-align: center;
}

#done {
  margin-top: 16px;
}

#thanks h1 {
  font-size: 40px;
  color: #f0483e;
}
