:root {
  --navy: #001333;
  --blue: #146b9d;
  --sky: #d8edfa;
  --ink: #202a35;
  --muted: #647180;
  --paper: #fbfaf6;
  --line: #d7dde2;
  --rust: #b94f32;
  --required: #c62828;
  --success: #1d6a46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(20, 107, 157, 0.09), transparent 42%),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0, 19, 51, 0.025) 80px),
    var(--paper);
  font-family: "Open Sans", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--blue);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 18px clamp(22px, 5vw, 72px);
  color: #fff;
  background: var(--navy);
  border-bottom: 5px solid var(--blue);
}

.brand {
  color: #fff;
  font-family: "Anton", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand span {
  color: #7dc5e8;
}

.event-name {
  max-width: 420px;
  color: #b8c7d9;
  text-align: right;
}

.page-shell {
  width: min(940px, calc(100% - 36px));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: 64px 0 84px;
}

.registration-intro {
  max-width: 700px;
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
legend {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  letter-spacing: 0.015em;
}

h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  line-height: 1;
}

h2 {
  color: var(--navy);
}

.registration-form,
.summary-card,
.payment-card,
.notice {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 19, 51, 0.08);
}

.registration-form {
  padding: clamp(22px, 5vw, 48px);
}

fieldset {
  margin: 0 0 42px;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 22px;
  padding-bottom: 10px;
  color: var(--navy);
  font-size: 1.55rem;
  border-bottom: 2px solid var(--sky);
}

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

.full-width {
  grid-column: 1 / -1;
}

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

.required-marker,
.required-label {
  color: var(--required);
  font-weight: 700;
}

.required-note {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aab5c0;
  border-radius: 3px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(20, 107, 157, 0.2);
  border-color: var(--blue);
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  background: var(--sky);
  border-color: var(--blue);
}

.choice-card input {
  width: 19px;
  height: 19px;
  margin: 0;
}

.choice-card span {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.choice-card small {
  color: var(--muted);
  font-weight: 600;
}

.choice-card .course-option {
  display: grid;
  justify-content: stretch;
  gap: 7px;
}

.course-option .course-meta,
.course-option .course-fees {
  display: block;
  line-height: 1.45;
}

.course-option .course-fees {
  color: var(--blue);
  font-weight: 700;
}

.choice-card.standalone {
  max-width: 440px;
  margin-top: 24px;
}

.availability-note {
  max-width: 880px;
  margin: 24px 0 0;
  padding: 12px 16px;
  color: #713f12;
  background: #fff7d6;
  border: 1px solid #f2ca52;
  border-left: 5px solid #e29a00;
  border-radius: 6px;
}

.partner-eligibility {
  max-width: 980px;
  padding: 14px 18px;
  color: #0b3b5c;
  background: #eaf7ff;
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  font-weight: 600;
}

.primary-button,
.secondary-button,
.paypal-button {
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 3px;
  font: 700 1rem "Open Sans", sans-serif;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--blue);
}

.secondary-button {
  color: var(--navy);
  background: var(--sky);
}

.paypal-button {
  color: var(--navy);
  background: #ffc439;
}

.notice,
.summary-card,
.payment-card {
  margin-bottom: 26px;
  padding: clamp(22px, 4vw, 36px);
}

.notice {
  border-left: 7px solid var(--blue);
}

.notice h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.notice-error {
  border-left-color: var(--rust);
}

.notice-success {
  border-left-color: var(--success);
}

.summary-card dl {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(200px, 2fr);
  margin: 0;
}

.summary-card dt,
.summary-card dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-card dt {
  font-weight: 700;
}

.summary-card .total {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 0;
}

.review-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-footer {
  padding: 28px;
  color: #aebdd0;
  background: var(--navy);
  text-align: center;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .event-name {
    text-align: left;
  }

  .page-shell {
    padding-top: 38px;
  }

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

  .full-width {
    grid-column: auto;
  }

  .summary-card dl {
    grid-template-columns: 1fr;
  }

  .summary-card dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .review-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
