:root {
  --st-blue: #0085CA;
  --st-dark-blue: #00395D;
  --st-green: #78BE20;
  --st-light: #F4F7F9;
  --st-border: #D8DDE1;
  --st-text: #1B1B1B;
  --st-muted: #5A6770;
  --st-error: #C8102E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
  font-family: DinMedium, DinLight, sans-serif;
  color: var(--st-text);
  background: var(--st-light);
  line-height: 1.5;
}

header {
  background: var(--st-dark-blue);
  padding: 14px 0;
  border-bottom: 4px solid var(--st-blue);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.logo-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
}
.logo-tagline {
  font-family: DinMedium, DinLight, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero {
  background: linear-gradient(135deg, var(--st-dark-blue) 0%, #004E85 100%);
  color: white;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(120, 190, 32, 0.2);
  border-radius: 50%;
}
.hero::before {
  content: '';
  position: absolute;
  top: 30px;
  right: 120px;
  width: 80px;
  height: 80px;
  background: rgba(0, 133, 202, 0.2);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: DinMedium, DinLight, sans-serif;
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 640px;
}
.hero p {
  font-size: 18px;
  max-width: 600px;
  opacity: 0.92;
}

main {
  max-width: 1100px;
  margin: -32px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 57, 93, 0.08);
  padding: 40px;
}

.steps {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--st-border);
  padding-bottom: 24px;
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--st-muted);
  font-size: 14px;
  font-weight: 600;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--st-border);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.step.active { color: var(--st-dark-blue); }
.step.active .step-num { background: var(--st-blue); }
.step.done .step-num { background: var(--st-green); }
.step.done { color: var(--st-text); }

h2 {
  font-family: DinMedium, DinLight, sans-serif;
  font-size: 24px;
  color: var(--st-dark-blue);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--st-muted);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
label .hint {
  font-weight: 400;
  color: var(--st-muted);
  font-size: 13px;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--st-border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
  background: white;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(0, 133, 202, 0.15);
}
textarea { resize: vertical; min-height: 80px; }

.selected-address {
  background: var(--st-light);
  border-left: 4px solid var(--st-green);
  padding: 14px 16px;
  border-radius: 4px;
  margin-top: 12px;
  font-size: 14px;
}
.selected-address strong { color: var(--st-dark-blue); }

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

.btn {
  background: var(--st-blue);
  color: white;
  border: none;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn:hover:not(:disabled) { background: #006AA3; }
.btn:disabled { background: var(--st-border); cursor: not-allowed; }
.btn-secondary {
  background: white;
  color: var(--st-dark-blue);
  border: 2px solid var(--st-border);
}
.btn-secondary:hover:not(:disabled) { background: var(--st-light); border-color: var(--st-dark-blue); }
.btn-confirm { background: var(--st-green); }
.btn-confirm:hover:not(:disabled) { background: #6AAB1C; }
.btn-row { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; }

#checkBtn { margin-top: 4px; }

.summary-box {
  background: var(--st-light);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--st-border);
  font-size: 14px;
  gap: 16px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--st-muted); }
.summary-row .value { font-weight: 600; text-align: right; word-break: break-word; }

.confirmation {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 72px;
  height: 72px;
  background: var(--st-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 36px;
}
.ref-number {
  display: inline-block;
  background: var(--st-light);
  padding: 10px 20px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--st-dark-blue);
  margin: 16px 0;
  letter-spacing: 2px;
}
.confirmation-close { margin-top: 20px; }

.checkbox-group { background: var(--st-light); padding: 14px 16px; border-radius: 4px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--st-blue);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-label a { color: var(--st-blue); font-weight: 600; }

.search-error {
  background: #FDEAEC;
  border-left: 4px solid var(--st-error);
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--st-error);
}

.not-eligible-panel {
  margin-top: 16px;
  background: var(--st-light);
  border-left: 4px solid var(--st-dark-blue);
  padding: 20px 24px;
  border-radius: 4px;
}
.not-eligible-panel h3 {
  font-family: DinMedium, DinLight, sans-serif;
  font-size: 19px;
  color: var(--st-dark-blue);
  margin-bottom: 12px;
}
.not-eligible-panel p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--st-text);
}
.not-eligible-panel p:last-child { margin-bottom: 0; }

.thankyou-body {
  max-width: 560px;
  margin: 16px auto 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
}
.thankyou-body p { margin-bottom: 14px; color: var(--st-text); }
.callback-line {
  background: var(--st-light);
  border-left: 4px solid var(--st-blue);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 16px;
}
.prep-box {
  background: #F0F8E8;
  border-left: 4px solid var(--st-green);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 18px 0;
}
.prep-heading {
  font-weight: 700;
  color: var(--st-dark-blue);
  margin-bottom: 8px !important;
}
.prep-box ul {
  margin: 0;
  padding-left: 20px;
}
.prep-box li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.prep-box li:last-child { margin-bottom: 0; }
.thankyou-body a {
  color: var(--st-blue);
  font-weight: 600;
}

.required { color: var(--st-error); font-weight: 700; }

.eligibility-panel {
  margin-top: 20px;
  padding: 32px 28px;
  border-radius: 8px;
  text-align: center;
}
.eligibility-panel.eligible {
  background: #5DC7B0;
  color: #0F2A26;
}
.eligibility-panel.assess {
  background: #FFE9A8;
  color: #4A3A00;
}
.eligibility-panel h3 {
  font-family: DinMedium, DinLight, sans-serif;
  font-size: 26px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.eligibility-panel p {
  font-size: 15px;
  margin-bottom: 8px;
}
.eligibility-panel .pill-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .card { padding: 24px; }
  .step span:not(.step-num) { display: none; }
  .logo-divider, .logo-tagline { display: none; }
  .logo-img { height: 42px; }
}
