:root {
  --navy: #153a5b;
  --navy-dark: #0c2942;
  --navy-soft: #eaf0f5;
  --green: #27754e;
  --green-dark: #185d3b;
  --green-soft: #edf7f1;
  --gold: #c6a15b;
  --paper: #ffffff;
  --canvas: #e8edf1;
  --ink: #172432;
  --muted: #586978;
  --line: #ccd5dc;
  --line-strong: #aebbc5;
  --danger: #a5281e;
  --success: #17683f;
  --shadow: 0 22px 65px rgba(18, 42, 61, .14);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(90deg, var(--navy) 0 50%, var(--green) 50% 100%) top / 100% 6px no-repeat,
    radial-gradient(circle at 12% 12%, rgba(21, 58, 91, .06), transparent 27%),
    radial-gradient(circle at 88% 20%, rgba(39, 117, 78, .06), transparent 24%),
    var(--canvas);
}

.page-shell {
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: 42px 18px 54px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 42px 46px 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: linear-gradient(90deg, var(--navy) 0 72%, var(--gold) 72% 76%, var(--green) 76%);
}

.company-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
}

.company-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.company-brand img {
  display: block;
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  flex: 0 0 46px;
  object-fit: contain;
}

.company-brand span { display: grid; }
.company-brand strong {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}
.company-brand small {
  margin-top: 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.company-quick-contact {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.company-quick-contact a {
  color: var(--navy);
  text-decoration: none;
}

.company-quick-contact a:hover { text-decoration: underline; }

.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 13px 0 29px;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
}

h1 {
  max-width: 700px;
  margin: 0;
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.018em;
}

.lead {
  max-width: 730px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.badge {
  min-width: 190px;
  padding: 17px 18px;
  border: 1px solid #b7c8d4;
  border-radius: 6px;
  background: var(--navy-soft);
  text-align: center;
}

.badge::before {
  content: "✓";
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.badge span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.badge strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.program-highlight {
  position: relative;
  margin: 27px 0 16px;
  padding: 25px 28px 25px 34px;
  border: 1px solid #b8d7c6;
  border-left: 6px solid var(--green);
  border-radius: 6px;
  background: var(--green-soft);
}

.program-highlight .program-kicker {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.program-highlight h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.18;
}

.program-highlight p:last-child {
  max-width: 850px;
  margin: 12px 0 0;
  color: #304d3d;
  font-size: 16px;
}

.notice {
  margin: 0 0 25px;
  padding: 15px 18px;
  border: 1px solid #d5dde4;
  border-radius: 5px;
  background: #f5f7f9;
  color: #465866;
  font-size: 14px;
}

.form {
  counter-reset: form-section;
}

.section {
  position: relative;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(28, 51, 69, .04);
}

.section:not(.consents) {
  counter-increment: form-section;
}

.section:not(.consents) > h2::before {
  content: counter(form-section, decimal-leading-zero);
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-right: 11px;
  place-items: center;
  border-radius: 4px;
  background: var(--navy);
  color: white;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  vertical-align: 3px;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.25;
}

.section-hint {
  margin: -10px 0 17px 49px;
  color: var(--muted);
  font-size: 14px;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.grid.two:last-child { margin-bottom: 0; }

.field span,
.consents span {
  color: #263847;
  font-size: 14px;
  font-weight: 700;
}

em {
  color: var(--danger);
  font-style: normal;
}

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: none;
  background: #fbfcfd;
  color: var(--ink);
  font: 16px/1.35 inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: #84929d; }

input:focus,
textarea:focus {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 58, 91, .12);
}

small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-grid label,
.radio-row label,
.consents label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfd;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.checkbox-grid label:hover,
.radio-row label:hover {
  border-color: #93a8b8;
  background: var(--navy-soft);
}

.checkbox-grid label:has(input:checked),
.radio-row label:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 4px 0 0 var(--green);
}

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

.checkbox-grid input,
.radio-row input,
.consents input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.checkbox-grid span { font-size: 14px; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.radio-row label {
  min-width: 132px;
  font-size: 14px;
}

.consents {
  display: grid;
  gap: 11px;
  border-color: #b9c7d1;
  background: #f7f9fa;
}

.consents label {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.consents label + label { border-top: 1px solid var(--line); }
.consents span { font-size: 13px; font-weight: 400; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: 7px;
  background: var(--navy-dark);
}

button {
  appearance: none;
  min-width: 250px;
  padding: 15px 26px;
  border: 1px solid #6d9b7e;
  border-radius: 5px;
  background: var(--green);
  box-shadow: 0 4px 0 #0f492e;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: transform .12s ease, background .15s ease, box-shadow .12s ease;
}

button:hover { background: var(--green-dark); }
button:active { transform: translateY(2px); box-shadow: 0 2px 0 #0f492e; }
button:focus-visible { outline: 3px solid #f1cf86; outline-offset: 3px; }
button:disabled { opacity: .65; cursor: not-allowed; }

.required-note {
  margin: 0;
  color: #d6e0e7;
  font-size: 13px;
}

.error {
  margin: 11px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.form-message {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 5px;
  font-weight: 700;
}

.form-message.success {
  border: 1px solid #a6d7ba;
  background: #eaf7ef;
  color: var(--success);
}

.form-message.error {
  border: 1px solid #e7b0ab;
  background: #fff0ee;
  color: var(--danger);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.company-footer {
  margin-top: 28px;
  padding: 25px 26px 20px;
  border-top: 5px solid var(--navy);
  border-radius: 6px;
  background: #f0f4f7;
  color: #344958;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.footer-brand img {
  display: block;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  flex: 0 0 38px;
  object-fit: contain;
}

.footer-brand div { display: grid; }
.footer-brand strong {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}
.footer-brand span { color: var(--muted); font-size: 13px; }

.footer-details {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1.2fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-style: normal;
}

.footer-details div { display: grid; gap: 3px; }
.footer-details span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-details strong { color: var(--navy-dark); font-size: 12px; }
.footer-details a { color: inherit; text-decoration: none; }
.footer-details a:hover { text-decoration: underline; }

.company-website {
  display: inline-block;
  margin-top: 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.company-website:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .page-shell { padding: 22px 10px 32px; }
  .card { padding: 26px 16px 22px; border-radius: 5px; }
  .header { grid-template-columns: 1fr; gap: 20px; }
  .company-bar { align-items: flex-start; }
  .company-quick-contact { align-items: flex-end; flex-direction: column; gap: 3px; }
  .badge { min-width: auto; text-align: left; }
  .badge::before { display: inline-grid; margin: 0 10px 0 0; vertical-align: middle; }
  .badge span, .badge strong { display: inline; }
  .program-highlight { padding: 21px 19px 21px 22px; }
  .section { padding: 22px 16px; }
  .grid.two, .checkbox-grid { grid-template-columns: 1fr; }
  .checkbox-grid label.wide { grid-column: auto; }
  .section-hint { margin-left: 0; }
  .checkbox-grid label,
  .radio-row label { min-height: 48px; }
  .radio-row { display: grid; grid-template-columns: 1fr 1fr; }
  .radio-row label { min-width: 0; }
  .actions { align-items: stretch; flex-direction: column; padding: 20px; }
  button { width: 100%; min-width: 0; }
  .footer-details { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  body { line-height: 1.48; }
  .page-shell { padding-inline: 7px; }
  .card { padding-inline: 13px; }
  .company-bar { align-items: stretch; flex-direction: column; gap: 13px; }
  .company-brand img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex-basis: 42px;
  }
  .company-quick-contact { align-items: flex-start; }
  h1 { font-size: 31px; }
  .lead { font-size: 15px; }
  .badge { padding: 14px; }
  .badge span,
  .badge strong { display: block; }
  .badge::before { float: left; margin: 1px 11px 0 0; }
  .program-highlight { margin-top: 20px; padding: 19px 16px 19px 19px; }
  .program-highlight h2 { font-size: 25px; }
  .program-highlight p:last-child { font-size: 14px; }
  .notice { padding: 13px 14px; font-size: 13px; }
  .section { margin-top: 12px; padding: 19px 13px; }
  .section h2 { font-size: 21px; }
  .section:not(.consents) > h2::before {
    width: 30px;
    height: 30px;
    margin-right: 8px;
  }
  .radio-row { grid-template-columns: 1fr; }
  input[type="text"],
  input[type="tel"],
  textarea { min-height: 48px; padding: 13px; font-size: 16px; }
  .consents label { padding-inline: 2px; }
  .actions { padding: 17px 14px; }
  button { min-height: 52px; font-size: 15px; }
  .company-footer { padding: 21px 16px 17px; }
  .footer-details { grid-template-columns: 1fr; gap: 12px; }
}

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