:root {
  color-scheme: dark;
  --bg: #080b0a;
  --surface: #101412;
  --surface-2: #171d1a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f1ea;
  --muted: #a9b2ad;
  --soft: #d7ded9;
  --green: #72e3b1;
  --green-strong: #39ff9c;
  --danger: #ff947d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 82% 4%, rgba(57, 255, 156, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(114, 227, 177, 0.07), transparent 22rem),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

.apply-stage {
  width: 100%;
  padding: 12px;
}

.apply-shell {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.035), transparent 22rem),
    var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.apply-shell::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(57, 255, 156, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 227, 177, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0, transparent 430px);
}

.apply-header,
.hero-copy,
.form-intro,
form,
.confirmation {
  position: relative;
  z-index: 1;
}

.apply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(16, 20, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.dial-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(114, 227, 177, 0.3);
  border-radius: 11px;
  background: rgba(114, 227, 177, 0.07);
}

.dial-mark svg {
  width: 29px;
  height: 29px;
}

.dial-mark path {
  fill: none;
  stroke: rgba(244, 241, 234, 0.35);
  stroke-linecap: round;
  stroke-width: 4;
}

.dial-mark line {
  stroke: var(--green-strong);
  stroke-linecap: round;
  stroke-width: 4;
}

.dial-mark circle {
  fill: var(--green-strong);
}

.offer-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: right;
  text-transform: uppercase;
}

.hero-copy {
  padding: 36px 18px 24px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 600px;
  font-size: clamp(29px, 8vw, 44px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.offer-copy {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.42;
}

.guarantee-copy {
  color: var(--green);
  font-weight: 800;
}

.form-intro {
  max-width: 540px;
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 18px;
  padding: 0 18px 28px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  background: #0b0f0d;
  color: var(--text);
  padding: 13px 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #747d78;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(114, 227, 177, 0.78);
  box-shadow: 0 0 0 3px rgba(114, 227, 177, 0.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint,
.submit-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.handle-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #0b0f0d;
}

.handle-input:focus-within {
  border-color: rgba(114, 227, 177, 0.78);
  box-shadow: 0 0 0 3px rgba(114, 227, 177, 0.12);
}

.handle-input > span {
  padding-left: 14px;
  color: var(--green);
  font-weight: 800;
}

.handle-input input {
  border: 0;
  box-shadow: none;
  padding-left: 5px;
}

.handle-input input:focus {
  box-shadow: none;
}

.choice-field {
  gap: 10px;
  padding-top: 3px;
}

.choice-field legend {
  margin-bottom: 4px;
}

.radio-row,
.consent-row {
  display: flex;
  min-height: 54px;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(244, 241, 234, 0.025);
  padding: 13px;
  cursor: pointer;
}

.radio-row:has(input:checked),
.consent-row:has(input:checked) {
  border-color: rgba(114, 227, 177, 0.58);
  background: rgba(114, 227, 177, 0.075);
}

.radio-row input,
.consent-row input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--green-strong);
}

.radio-row span,
.consent-row span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.consent-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.form-error {
  min-height: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

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

button,
.calculator-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: var(--green-strong);
  color: #07100c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(57, 255, 156, 0.17);
}

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

.submit-note {
  text-align: center;
}

.confirmation {
  min-height: min(680px, calc(100vh - 26px));
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 44px 22px;
}

.confirmation[hidden] {
  display: none;
}

.confirmation h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(42px, 13vw, 72px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.confirmation > p:not(.eyebrow) {
  max-width: 480px;
  margin: 0;
  color: var(--soft);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.calculator-link {
  width: 100%;
  margin-top: 12px;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (min-width: 620px) {
  .apply-stage {
    padding: 28px;
  }

  .apply-header {
    padding: 18px 24px;
  }

  .hero-copy {
    padding: 54px 42px 32px;
  }

  .form-intro {
    padding: 0 42px 20px;
  }

  form {
    gap: 21px;
    padding: 0 42px 44px;
  }

  .confirmation {
    padding: 64px 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
