.checkout-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 60px;
  padding-bottom: 80px;
  align-items: start;
}
.back-link {
  font-size: 13px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 38px;
}
.checkout-intro .eyebrow {
  color: var(--accent);
  font-size: 13px;
}
.checkout-intro h1 {
  font-size: clamp(42px, 4.3vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.05em;
  font-weight: 850;
}
.checkout-intro h1 > span {
  color: #e4550b;
}
.checkout-description {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 24px;
}
.checkout-photo {
  margin-top: 36px;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 28px;
}
.booking-notes {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
}
.booking-notes h2 {
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 750;
}
.booking-notes p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 12px;
}
.booking-notes a {
  color: var(--accent);
  white-space: nowrap;
}
.payment-card {
  margin-top: 4px;
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 32px;
  background: var(--bg);
}
.preview-notice {
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 26px;
}
.checkout-summary {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.summary-label {
  font-size: 12px;
  color: var(--muted);
}
.checkout-summary h2 {
  font-weight: 800;
  font-size: 22px;
  margin-top: 10px;
  letter-spacing: -0.025em;
}
.summary-note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.payment-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 44px;
  letter-spacing: -0.04em;
  margin-top: 24px;
  font-weight: 600;
}
.payment-amount small {
  font-size: 23px;
  font-weight: 400;
}
.payment-amount b {
  font-weight: 750;
}
.form-field {
  margin-top: 24px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}
.form-field label > span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  padding: 13px 14px;
  min-height: 48px;
  font-size: 14px;
  line-height: 1.5;
}
.form-field textarea {
  resize: vertical;
  min-height: 85px;
}
.form-field .field-hint {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
/* The native select stores the form value; the combobox owns the visible menu. */
.course-picker {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgb(0 0 0 / .025);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.course-picker-display {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 18px 20px;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.course-picker-display:focus-visible { outline: none; }
.course-picker-display:disabled { opacity: 1; cursor: wait; }
.course-picker-copy { flex: 1; min-width: 0; }
.course-picker-copy > strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.course-picker-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
#course-picker-price { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
#course-picker-price:empty { display: none; }
.course-picker-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
}
.course-picker-arrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.course-picker:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.course-picker:has(select:disabled) { opacity: .65; box-shadow: none; }
.course-picker-display[aria-expanded="true"] .course-picker-arrow::before {
  transform: translateY(1px) rotate(225deg);
}
.course-picker-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 18px 52px rgb(0 0 0 / .14), 0 2px 8px rgb(0 0 0 / .04);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  scroll-padding: 8px;
}
.course-option-group + .course-option-group { margin-top: 7px; }
.course-option-group-label {
  margin: 0;
  padding: 10px 12px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .025em;
}
.course-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  column-gap: 12px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
}
.course-option-copy { min-width: 0; }
.course-option-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.55; }
.course-option-format { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 3px; }
.course-option-price { white-space: nowrap; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.course-option-check { font-size: 15px; color: var(--accent); opacity: 0; }
.course-option[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.course-option[aria-selected="true"] .course-option-check { opacity: 1; }
.course-option[aria-selected="true"] .course-option-price { color: var(--accent); }
.course-option.is-active { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
@media (hover: hover) {
  .course-picker:has(select:enabled):hover:not(:focus-within) { border-color: var(--muted); }
  .course-option:hover { background: var(--surface); }
  .course-option[aria-selected="true"]:hover { background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
}
@media (max-width: 767px) {
  .course-picker-display { padding: 16px; gap: 12px; }
  .course-picker-menu { padding: 6px; border-radius: 18px; }
  .course-option { padding: 11px 10px; column-gap: 8px; }
  .course-option-name, .course-option-price { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .course-picker { transition: none; } }
@media (forced-colors: active) {
  .course-option[aria-selected="true"], .course-option.is-active { outline: 1px solid Highlight; }
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  font-size: 13px;
}
.confirmation-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  cursor: pointer;
}
.confirmation-row input {
  margin: 3px 0 0;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.confirmation-row span {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
}
.confirmation-row a {
  color: var(--accent);
  text-decoration: underline;
}
.payment-message {
  font-size: 13px;
  color: #a83014;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.payment-message:not(:empty) {
  margin-top: 20px;
}
.payment-message[data-type="info"] {
  color: var(--muted);
}
.payment-submit {
  width: 100%;
  margin-top: 26px;
}
.payment-fine-print {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  margin-top: 18px;
}
.retry-button {
  display: block;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  margin: 16px auto 0;
  padding: 8px;
}
.result-main {
  min-height: 70dvh;
  padding: 72px 20px;
}
.result-card {
  max-width: 660px;
  margin: auto;
  text-align: center;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 32px;
}
.result-icon {
  font-size: 32px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 26px;
  background: var(--surface);
  color: var(--accent);
}
.result-card h1 {
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.result-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-top: 18px;
}
.result-details {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
  text-align: left;
}
.result-details > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.result-details dt {
  color: var(--muted);
}
.result-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px;
}
.legal-main h1 {
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.legal-main h2 {
  font-weight: 750;
  font-size: 21px;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}
.legal-main p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}
.legal-main a {
  color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .payment-message {
    color: #ffab91;
  }
}
@media (max-width: 1024px) {
  .checkout-main {
    gap: 44px;
  }
  .payment-card {
    padding: 28px;
  }
}
@media (max-width: 767px) {
  .checkout-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 44px;
  }
  .back-link {
    margin-bottom: 28px;
  }
  .checkout-intro h1 {
    font-size: 42px;
  }
  .checkout-description {
    font-size: 16px;
  }
  .checkout-photo {
    margin-top: 28px;
    border-radius: 24px;
  }
  .booking-notes p {
    font-size: 12px;
  }
  .payment-card {
    padding: 26px 22px;
  }
  .checkout-summary h2 {
    font-size: 22px;
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: 16px;
  }
  .payment-amount {
    font-size: 40px;
  }
  .result-main {
    padding: 40px 20px;
  }
  .result-card {
    padding: 32px 24px;
  }
  .result-card h1 {
    font-size: 26px;
  }
  .result-card > p:not(.eyebrow) {
    font-size: 14px;
  }
  .result-details > div {
    font-size: 12px;
    grid-template-columns: 60px 1fr;
  }
  .legal-main {
    padding-top: 48px;
  }
  .legal-main h1 {
    font-size: 34px;
  }
}

.payment-receipt { margin-top: 30px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; text-align: left; background: var(--surface); }
.receipt-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 750; }
.receipt-status { padding: 5px 12px; border-radius: 999px; color: #197044; background: #daf3e5; font-size: 12px; }
.payment-receipt h2 { margin-top: 26px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.receipt-amount { font-size: 48px; font-weight: 800; letter-spacing: -.04em; margin: 10px 0 22px; }
.receipt-fields { display: grid; gap: 16px; }
.receipt-fields div { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 14px; font-size: 12px; line-height: 1.7; }
.receipt-fields dt { color: var(--muted); }
.receipt-fields dd { margin: 0; overflow-wrap: anywhere; font-weight: 550; }
.receipt-verification { margin-top: 24px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.receipt-verify-link { display: block; margin-top: 7px; font-size: 10px; line-height: 1.6; color: var(--accent); overflow-wrap: anywhere; }
.receipt-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.receipt-tools .button { font-size: 12px; padding: 10px 16px; }
#receipt-feedback { font-size: 12px; margin-top: 12px; color: var(--muted); }
.booking-next { margin-top: 28px; padding: 26px; border-radius: 24px; background: var(--surface); text-align: left; }
.booking-next .eyebrow { color: var(--accent); font-size: 11px; }
.booking-next h2 { font-size: 23px; font-weight: 800; margin: 12px 0; letter-spacing: -.025em; }
.booking-next p:not(.eyebrow) { font-size: 13px; line-height: 1.85; color: var(--muted); }
.booking-next a { display: block; color: var(--accent); margin-top: 15px; font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.booking-next > span { display: block; margin-top: 16px; font-size: 11px; line-height: 1.6; color: var(--muted); }
@media (max-width: 767px) {
 .payment-receipt, .booking-next { padding: 20px; }
 .receipt-fields div { grid-template-columns: 62px minmax(0,1fr); gap: 8px; }
 .receipt-amount { font-size: 42px; }
 .booking-next a { font-size: 15px; }
}
@media print {
 .site-header, .site-footer, .result-actions, .receipt-tools, #receipt-feedback, #result-icon, #result-preview { display: none !important; }
 .result-main { padding: 0; min-height: 0; }
 .result-card { max-width: 100%; border: 0; padding: 12mm; }
 .payment-receipt, .booking-next { break-inside: avoid; background: white; color: black; }
 .receipt-verify-link { color: black; }
}

.checkout-course-details { margin-top: 28px; padding: 24px; border-radius: 24px; background: var(--surface); }
.checkout-course-details h2 { font-size: 15px; font-weight: 750; }
.checkout-course-details ul { display: grid; gap: 9px; list-style: none; margin: 16px 0 0; padding: 0; }
.checkout-course-details li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.checkout-course-details li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
@media (min-width: 1025px) { .payment-card { position: sticky; top: 96px; } }
