@font-face {
  font-family: "Libre Franklin";
  src: url("../assets/fonts/libre-franklin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../assets/fonts/libre-franklin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../assets/fonts/libre-franklin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../assets/fonts/libre-franklin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #143359;
  --navy-900: #0d2747;
  --blue: #246da8;
  --sky: #cfeeff;
  --teal: #16807c;
  --orange: #ef8f2f;
  --ink: #263341;
  --text: #3d4853;
  --muted: #647180;
  --line: rgba(20, 51, 89, 0.18);
  --soft: #f3f7fa;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(15, 38, 67, 0.14);
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--soft);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: -9999px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 10px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 38, 67, 0.07);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 155px;
}

.program-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 6px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.program-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(22, 128, 124, 0.11);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 109, 168, 0.42);
  background: var(--soft);
}

.enrollment-section {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 76px) 0;
}

.enrollment-section::before,
.enrollment-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.enrollment-section::before {
  width: 430px;
  height: 430px;
  top: -240px;
  right: -160px;
  border: 78px solid rgba(207, 238, 255, 0.72);
}

.enrollment-section::after {
  width: 250px;
  height: 250px;
  bottom: -150px;
  left: -90px;
  background: rgba(239, 143, 47, 0.1);
}

.enrollment-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(350px, 0.82fr) minmax(560px, 1.18fr);
  overflow: hidden;
  border: 1px solid rgba(20, 51, 89, 0.12);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.program-panel {
  position: relative;
  display: flex;
  min-height: 750px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(42px, 5vw, 68px) clamp(34px, 4vw, 56px) 40px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 8%, rgba(207, 238, 255, 0.18), transparent 25%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-900) 72%);
}

.program-panel::before {
  content: "";
  position: absolute;
  right: -112px;
  bottom: 90px;
  width: 250px;
  height: 250px;
  border: 52px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.program-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 130px;
  height: 72px;
  border-radius: 72px 0 0 0;
  background: var(--sky);
}

.program-panel-content,
.panel-signature {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--orange);
}

.program-panel .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.program-panel h1 {
  max-width: 470px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(2.7rem, 5vw, 4.35rem);
  line-height: 1.02;
}

.program-panel h1 span {
  display: block;
  color: var(--sky);
}

.program-lede {
  max-width: 520px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.process-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.process-title {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process-list {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.5;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(207, 238, 255, 0.13);
  color: var(--sky);
  font-size: 0.77rem;
  font-weight: 700;
}

.panel-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.signature-mark {
  width: 18px;
  height: 18px;
  border: 5px solid var(--teal);
  border-radius: 50%;
}

.form-panel {
  padding: clamp(42px, 5vw, 68px) clamp(34px, 5vw, 70px);
}

.form-heading {
  max-width: 620px;
  margin-bottom: 38px;
}

.form-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.08;
}

.form-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.form-heading strong,
.field label span {
  color: #b65326;
}

.patient-form {
  display: grid;
  gap: 34px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

legend {
  width: 100%;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.phone-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(250px, 1fr);
  gap: 20px;
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.field label,
.field-label {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(20, 51, 89, 0.24);
  border-radius: 11px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-size: 0.91rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.field input::placeholder {
  color: #8b96a1;
}

.field input:hover,
.field select:hover {
  border-color: rgba(36, 109, 168, 0.52);
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 109, 168, 0.11);
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 51, 89, 0.24);
  border-radius: 11px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.choice:hover {
  border-color: rgba(36, 109, 168, 0.52);
  background: var(--soft);
}

.choice:has(input:checked) {
  border-color: var(--blue);
  background: #eff7fc;
  color: var(--navy);
}

.choice input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}

.form-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.privacy-note {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.submit-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 9px 20px rgba(36, 109, 168, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(20, 51, 89, 0.24);
}

.submit-button span:last-child {
  font-size: 1.2rem;
  line-height: 1;
}

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.76rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 1020px) {
  .enrollment-shell {
    grid-template-columns: 1fr;
  }

  .program-panel {
    min-height: auto;
  }

  .program-panel::after {
    display: none;
  }

  .program-panel h1 span {
    display: inline;
  }

  .program-lede {
    max-width: 700px;
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-list li {
    align-content: start;
    align-items: start;
  }

  .panel-signature {
    margin-top: 32px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 132px;
  }

  .program-name {
    padding-left: 16px;
  }

  .back-link span:first-child {
    display: none;
  }

  .back-link {
    min-width: 42px;
    min-height: 42px;
    padding: 10px;
    justify-content: center;
  }

  .enrollment-section {
    padding: 28px 0 40px;
  }

  .enrollment-shell {
    border-radius: 24px;
  }

  .program-panel,
  .form-panel {
    padding: 38px 26px;
  }

  .program-panel h1 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .phone-grid,
  .form-footer {
    grid-template-columns: 1fr;
  }

  .form-footer {
    gap: 20px;
  }

  .submit-button {
    width: 100%;
  }

  .footer-inner {
    min-height: 98px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .program-name {
    display: none;
  }

  .choice-group {
    grid-template-columns: 1fr;
  }
}

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