* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 12px;
  -webkit-text-size-adjust: 100%;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Whole-funnel progress bar (Register -> Take Survey -> View Offers -> Earn Your Reward) —
   shared by register.ejs/survey.ejs/linkout.ejs/fulfillment.ejs via views/_reward-steps.ejs.
   The final step's icon is the campaign's own prize image, not a generic icon — it's meant to
   read as "this is what you're working toward," not just a step counter. */
.reward-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
}

.reward-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 62px;
}

.reward-step__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0f3;
  color: #9ca3af;
  flex-shrink: 0;
  overflow: hidden;
}

.reward-step__icon svg {
  width: 18px;
  height: 18px;
}

.reward-step__label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-align: center;
  line-height: 1.25;
}

.reward-step.is-done .reward-step__icon,
.reward-step.is-current .reward-step__icon {
  background: var(--cta-color, #2563eb);
  color: #fff;
}

.reward-step.is-current .reward-step__icon {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta-color, #2563eb) 22%, transparent);
}

.reward-step.is-done .reward-step__label,
.reward-step.is-current .reward-step__label {
  color: #1f2937;
}

.reward-step--reward .reward-step__icon {
  padding: 3px;
}

.reward-step--reward .reward-step__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.reward-step__connector {
  flex: 1 1 auto;
  height: 3px;
  min-width: 10px;
  margin-top: 19px;
  background-image: repeating-linear-gradient(
    -45deg, #d1d5db, #d1d5db 3px, transparent 3px, transparent 6px
  );
}

.reward-step__connector.is-done {
  background-image: repeating-linear-gradient(
    -45deg, var(--cta-color, #2563eb), var(--cta-color, #2563eb) 3px, transparent 3px, transparent 6px
  );
}

.card__badge {
  text-align: center;
  padding: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #b91c1c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card__body {
  padding: 20px 24px 28px;
}

.card__headline {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
}

.card__checks {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}

.card__checks li::before {
  content: "\2713 ";
  color: #16a34a;
  font-weight: 800;
}

.card__subhead {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.prize-img {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 4px;
}

.prize-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 16px;
}

.timer {
  text-align: center;
  font-size: 14px;
  margin-bottom: 16px;
}

.timer__value {
  font-weight: 800;
  color: #1c2e4e;
  font-variant-numeric: tabular-nums;
}

.form__title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.form__input {
  width: 100%;
  padding: 14px 12px;
  /* 16px+ — iOS Safari auto-zooms the page on focus for any input under 16px. */
  font-size: 16px;
  border: 2px solid #767676;
  border-radius: 4px;
  margin-bottom: 12px;
}

.form__input.is-invalid {
  border-color: #dc2626;
  background: #fee2e2;
}

select.form__input {
  background: #fff;
}

.form__row {
  display: flex;
  gap: 8px;
}

/* The flex items are these wrapper divs (label + input), not the .form__input
   itself — it was targeting the wrong element, which left row children sized
   by browser auto-guesswork instead of an intentional split (visible on
   narrow screens as a near-zero-width City field next to an oversized ZIP). */
.form__row > div {
  flex: 1;
  min-width: 0;
}

.form__label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
  display: block;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #374151;
  margin: 12px 0;
  line-height: 1.5;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.field-error {
  color: #dc2626;
  font-size: 12px;
  margin: -8px 0 12px;
  min-height: 14px;
}

.cta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: var(--cta-color, #28b015);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.cta-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.disclaimer {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.disclaimer a {
  color: #374151;
}

.household-note {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

.footer {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  padding: 16px;
}

.footer a {
  color: #9ca3af;
}

.fulfillment {
  text-align: center;
  padding: 40px 24px;
}

.fulfillment h1 {
  font-size: 24px;
}

@media (max-width: 480px) {
  .card__checks {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .card__headline {
    font-size: 24px;
  }
}
