@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --bg: #f5f7ff;
  --bg-top: #fbfcff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #122444;
  --muted: #67728b;
  --line: rgba(18, 36, 68, 0.1);
  --primary: #2458e6;
  --primary-soft: rgba(36, 88, 230, 0.14);
  --amber: #efb234;
  --amber-soft: rgba(239, 178, 52, 0.18);
  --header-bg: rgba(255, 255, 255, 0.84);
  --brand-shell: #ffffff;
  --ghost-bg: rgba(255, 255, 255, 0.88);
  --ghost-line: rgba(18, 36, 68, 0.12);
  --shadow-lg: 0 26px 64px rgba(18, 36, 68, 0.16);
  --shadow-md: 0 16px 34px rgba(18, 36, 68, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1160px, calc(100% - 16px));
}

html[data-theme="dark"] {
  --bg: #08111f;
  --bg-top: #0b1424;
  --surface: rgba(15, 26, 44, 0.94);
  --surface-strong: #111d31;
  --text: #eef4ff;
  --muted: #aab8cc;
  --line: rgba(188, 210, 243, 0.14);
  --primary: #79a8ff;
  --primary-soft: rgba(121, 168, 255, 0.18);
  --amber: #f1be68;
  --amber-soft: rgba(241, 190, 104, 0.18);
  --header-bg: rgba(8, 17, 31, 0.84);
  --brand-shell: rgba(255, 255, 255, 0.06);
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --ghost-line: rgba(188, 210, 243, 0.14);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(36, 88, 230, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(239, 178, 52, 0.2), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 88, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 88, 230, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 92%);
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.enroll-header .container {
  width: min(84%, 1240px);
}

.enroll-shell {
  min-height: 100vh;
  position: relative;
}

.enroll-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(18, 36, 68, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner,
.header-actions,
.intro-pills,
.form-actions {
  display: flex;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--brand-shell);
  box-shadow: 0 14px 28px rgba(18, 36, 68, 0.14);
}

.brand-mark img {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-actions {
  gap: 12px;
}

.solid-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.solid-btn:focus-visible,
.ghost-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(36, 88, 230, 0.28);
  outline-offset: 3px;
}

.solid-btn {
  background: linear-gradient(135deg, var(--primary), #5b86ff);
  color: #fff;
  box-shadow: 0 16px 28px rgba(36, 88, 230, 0.24);
}

.ghost-btn {
  background: var(--ghost-bg);
  color: var(--text);
  border: 1px solid var(--ghost-line);
}

.solid-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.form-panel,
.summary-card,
.intro-aside {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.form-panel:hover,
.summary-card:hover,
.intro-aside:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(18, 36, 68, 0.14);
}

.solid-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.enroll-main {
  padding: 36px 0 64px;
}

.intro-panel,
.enroll-grid {
  position: relative;
  z-index: 1;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.78fr);
  gap: 22px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(239, 178, 52, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(13, 28, 54, 0.98), rgba(24, 50, 98, 0.96));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.eyebrow-dark {
  color: var(--muted);
}

.eyebrow-dark::before {
  background: rgba(18, 36, 68, 0.18);
}

.intro-copy h1,
.summary-card h2,
.panel-head h2 {
  margin: 14px 0 10px;
  line-height: 1.08;
}

.intro-copy h1 {
  max-width: 13ch;
  font-size: clamp(1.95rem, 3vw, 3.05rem);
  font-weight: 700;
}

.intro-copy p,
.intro-aside li,
.summary-card p {
  line-height: 1.7;
}

.intro-copy p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 58ch;
}

.intro-pills {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.intro-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.intro-aside,
.form-panel,
.summary-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.intro-aside {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.intro-aside strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.intro-aside ul,
.summary-points {
  margin: 0;
  padding-left: 18px;
}

.intro-aside li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.enroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.72fr);
  gap: 24px;
  margin-top: 24px;
}

.form-panel,
.summary-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.form-grid,
.summary-grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(18, 36, 68, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(36, 88, 230, 0.4);
  box-shadow: 0 0 0 4px rgba(36, 88, 230, 0.1);
}

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

.wide-field {
  margin-top: 16px;
}

.form-actions {
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.price-box {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0 20px;
}

.price-box span {
  color: var(--muted);
  text-decoration: line-through;
}

.price-box strong {
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
}

.summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 88, 230, 0.05), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(18, 36, 68, 0.08);
}

.summary-grid span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.summary-grid strong {
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}

.summary-points li {
  margin-bottom: 10px;
  color: var(--muted);
}

html[data-theme="dark"] .intro-panel,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .summary-grid div,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

html[data-theme="dark"] .intro-pills span,
html[data-theme="dark"] .price-box,
html[data-theme="dark"] .summary-points {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(13, 28, 54, 0.95);
  color: #fff;
  box-shadow: 0 18px 32px rgba(13, 28, 54, 0.28);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .intro-panel,
  .enroll-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .enroll-header .container {
    width: var(--container);
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .header-actions,
  .form-actions,
  .intro-pills {
    width: 100%;
    justify-content: center;
  }

  .intro-panel,
  .form-panel,
  .summary-card {
    padding: 20px;
  }

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

  .solid-btn,
  .ghost-btn {
    width: 100%;
  }
}
