:root {
  --ink: #173044;
  --muted: #5f7280;
  --bg: #eff8f5;
  --panel: #ffffff;
  --line: #d8e8e3;
  --primary: #1da5d8;
  --primary-dark: #1384b1;
  --green: #97ca72;
  --green-dark: #6eaa49;
  --accent: #f5b85f;
  --danger: #ba3131;
  --shadow: 0 22px 60px rgba(23, 48, 68, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 184, 95, 0.24), transparent 34rem),
    linear-gradient(135deg, #f7fcfb 0%, var(--bg) 58%, #e6f1f8 100%);
  min-height: 100vh;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
  padding: 34px 0;
}

.hero {
  padding: 10px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 54px;
}

.brand-logo {
  width: min(360px, 82vw);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.brand-name,
.brand-subtitle,
.eyebrow,
.intro {
  margin: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.application-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 232, 227, 0.95);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.progress-area {
  margin-bottom: 26px;
}

.progress-text {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #dcece8;
  overflow: hidden;
}

.progress-fill {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--primary));
  transition: width 180ms ease;
}

.step {
  display: none;
}

.trap-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.step.is-active {
  display: block;
}

h2 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.2;
}

.choice-group {
  display: grid;
  gap: 12px;
}

.choice {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice:hover {
  border-color: #8bc8bd;
  box-shadow: 0 10px 20px rgba(23, 48, 68, 0.08);
  transform: translateY(-1px);
}

.choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.choice:has(input:checked) {
  border-color: var(--primary);
  background: #edf8f5;
}

.choice span {
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  color: var(--ink);
  font-weight: 700;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfefd;
  outline: none;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 123, 114, 0.12);
}

.wide {
  grid-column: 1 / -1;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.support-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(151, 202, 114, 0.55);
  border-radius: 8px;
  background: #f4fbef;
  animation: note-pop 260ms ease-out;
}

.support-note-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.support-note strong {
  display: block;
  color: var(--green-dark);
  margin-bottom: 3px;
}

.support-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@keyframes note-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

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

.privacy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  font-size: 14px;
  line-height: 1.45;
}

.privacy input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.privacy a,
.legal-links a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.legal-links-card {
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.status-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
  margin-top: 18px;
}

.button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 800;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 22px rgba(20, 123, 114, 0.2);
}

.button-primary:hover {
  background: var(--primary-dark);
}

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

.button-secondary {
  background: #e8f3f0;
  color: var(--primary-dark);
}

.button-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.is-hidden {
  display: none !important;
}

.success-view {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(239, 248, 245, 0.96);
}

.success-box {
  width: min(500px, 100%);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
}

.success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.success-box h2 {
  margin-bottom: 10px;
}

.success-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
    padding: 22px 0;
  }

  .brand-row {
    margin-bottom: 30px;
  }

  h1 {
    font-size: 38px;
  }

  .intro {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 22px, 1120px);
  }

  .application-card {
    padding: 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  .form-grid,
  .button-row {
    grid-template-columns: 1fr;
  }

  .button-row {
    gap: 10px;
  }
}
