/* Refined glass form layer — intentionally isolated from the landing-page shell. */
.form-card {
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 28px;
  background: rgb(246 252 251 / 52%);
  box-shadow:
    0 34px 80px rgb(32 82 79 / 16%),
    0 3px 12px rgb(32 82 79 / 7%),
    inset 0 1px 0 rgb(255 255 255 / 90%),
    inset 0 -1px 0 rgb(74 130 126 / 8%);
  backdrop-filter: blur(34px) saturate(138%);
  -webkit-backdrop-filter: blur(34px) saturate(138%);
}

.form-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 1px auto;
  height: 42%;
  border-radius: 27px 27px 48% 48%;
  background: linear-gradient(155deg, rgb(255 255 255 / 47%), rgb(255 255 255 / 5%) 68%);
  pointer-events: none;
}

.form-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -110px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgb(107 168 164 / 10%);
  filter: blur(46px);
  pointer-events: none;
}

.form-heading {
  align-items: center;
  padding-inline: 2px;
}

.form-heading h2 {
  margin-top: 5px;
  font-size: clamp(25px, 2.1vw, 31px);
  line-height: 1.15;
}

.form-kicker {
  color: var(--teal-dark);
  font-size: 12px;
}

.autosave-status {
  min-height: 32px;
  padding-inline: 11px;
  color: #536360;
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: 10px;
  background: rgb(255 255 255 / 28%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 66%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.autosave-status::before {
  content: "✓";
  width: auto;
  height: auto;
  color: var(--teal);
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
}

.progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 27px 0 32px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: 18px;
  background: rgb(224 240 238 / 31%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 72%),
    inset 0 10px 24px rgb(255 255 255 / 13%),
    0 10px 28px rgb(39 94 90 / 7%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.progress-line {
  top: auto;
  right: 6px;
  bottom: 0;
  left: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgb(77 145 141 / 11%);
}

.progress-line span {
  border-radius: inherit;
  background: var(--orange);
  box-shadow: 0 0 12px rgb(239 146 39 / 38%);
}

.progress-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 9px;
  min-height: 52px;
  padding: 8px 13px;
  color: #70807d;
  border: 1px solid transparent;
  border-radius: 13px;
  text-align: right;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.progress-step > span {
  display: block;
  width: auto;
  height: auto;
  padding-inline-end: 9px;
  color: #8b9895;
  border: 0;
  border-inline-end: 1px solid rgb(77 145 141 / 19%);
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1;
  transition: color 180ms ease;
}

.progress-step small {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.progress-step.is-active {
  color: var(--ink);
  border-color: rgb(255 255 255 / 76%);
  background: rgb(255 255 255 / 53%);
  box-shadow:
    0 8px 20px rgb(36 91 87 / 9%),
    inset 0 1px 0 rgb(255 255 255 / 88%);
}

.progress-step.is-active > span {
  color: var(--orange);
  border-color: rgb(239 146 39 / 31%);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.progress-step.is-complete {
  color: var(--teal-dark);
}

.progress-step.is-complete > span {
  color: var(--teal-dark);
  border-color: rgb(77 145 141 / 24%);
  background: transparent;
}

.progress-step:disabled {
  opacity: .62;
}

.step-copy {
  margin-bottom: 25px;
  padding-inline: 2px;
}

.step-copy > span {
  display: none;
}

.step-copy h3 {
  margin: 0 0 5px;
  font-size: clamp(22px, 1.9vw, 26px);
}

.step-copy p {
  max-width: 500px;
  color: #53615f;
  font-size: 13px;
}

.field-grid {
  gap: 18px 15px;
}

.field {
  gap: 8px;
}

.field > span,
.choice-group legend {
  padding-inline: 2px;
  color: #273230;
  font-size: 13px;
  font-weight: 700;
}

.field em,
.choice-group em {
  color: #c96f14;
  font-size: 9px;
}

.field input,
.field select,
.field textarea,
.phone-field {
  min-height: 55px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 13px;
  background: rgb(255 255 255 / 36%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 75%),
    0 5px 16px rgb(36 91 87 / 5%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.field input,
.field select,
.field textarea {
  padding-inline: 16px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #899694;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.phone-field:hover {
  border-color: rgb(255 255 255 / 94%);
  background: rgb(255 255 255 / 46%);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.phone-field:focus-within {
  border-color: rgb(77 145 141 / 48%);
  background: rgb(255 255 255 / 65%);
  box-shadow:
    0 0 0 3px rgb(77 145 141 / 9%),
    inset 0 1px 0 rgb(255 255 255 / 92%),
    0 8px 22px rgb(36 91 87 / 7%);
}

.phone-field b {
  color: var(--teal-dark);
  border-right-color: rgb(77 145 141 / 13%);
  background: rgb(224 240 238 / 28%);
}

.phone-field input {
  min-height: 53px;
}

.field > small:not(.field-error) {
  padding-inline: 2px;
  color: #667572;
}

.choice-group {
  margin-top: 21px;
}

.choice-grid {
  gap: 10px;
}

.choice > span {
  min-height: 51px;
  color: #42504e;
  border: 1px solid rgb(255 255 255 / 67%);
  border-radius: 12px;
  background: rgb(255 255 255 / 29%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 61%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.choice input:checked + span {
  color: #174f4c;
  border-color: rgb(77 145 141 / 36%);
  background: rgb(218 238 235 / 62%);
  box-shadow:
    inset 3px 0 0 var(--teal),
    inset 0 1px 0 rgb(255 255 255 / 75%);
  transform: none;
}

.reward-choice > span {
  min-height: 70px;
}

.consent-box {
  border-color: rgb(255 255 255 / 76%);
  background: rgb(255 255 255 / 38%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 68%);
}

.form-actions {
  margin-top: 29px;
  padding-top: 17px;
  border-top: 1px solid rgb(255 255 255 / 51%);
}

.button-primary {
  background: #215f5b;
  box-shadow:
    0 15px 30px rgb(33 95 91 / 21%),
    inset 0 1px 0 rgb(255 255 255 / 16%);
}

.button-secondary {
  border-color: rgb(255 255 255 / 74%);
  background: rgb(255 255 255 / 34%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 68%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.application-summary {
  gap: 10px;
}

.summary-item {
  border-color: rgb(255 255 255 / 72%);
  border-radius: 12px;
  background: rgb(255 255 255 / 35%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 67%);
}

@media (max-width: 620px) {
  .form-card {
    padding: 21px 15px 18px;
    border-radius: 23px;
    background: rgb(246 252 251 / 57%);
    backdrop-filter: blur(27px) saturate(132%);
    -webkit-backdrop-filter: blur(27px) saturate(132%);
  }

  .form-card::before {
    border-radius: 22px 22px 42% 42%;
  }

  .form-heading h2 {
    font-size: 24px;
  }

  .autosave-status {
    min-height: 29px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .progress {
    gap: 3px;
    margin-block: 22px 27px;
    padding: 4px;
    border-radius: 15px;
  }

  .progress-step {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 3px;
    min-height: 50px;
    padding: 7px 4px;
    border-radius: 11px;
    text-align: center;
  }

  .progress-step > span {
    padding: 0;
    border-inline-end: 0;
    font-size: 9px;
  }

  .progress-step small {
    font-size: 10px;
  }

  .step-copy {
    margin-bottom: 22px;
  }

  .field-grid {
    gap: 15px;
  }

  .field input,
  .field select,
  .field textarea,
  .phone-field {
    min-height: 53px;
  }

  .choice-grid {
    gap: 8px;
  }

  .form-actions {
    position: static;
    bottom: auto;
    padding: 15px 0 0;
    border: 0;
    border-top: 1px solid rgb(255 255 255 / 50%);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 380px) {
  .progress-step small {
    font-size: 9px;
  }

  .autosave-status {
    max-width: 108px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .form-card,
  .progress,
  .field input,
  .field select,
  .field textarea,
  .phone-field,
  .choice > span {
    background: #f5faf9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
