:root {
  --blue: #465a82;
  --blue-dark: #293a5e;
  --blue-soft: #edf1f8;
  --yellow: #f5d400;
  --ink: #172033;
  --muted: #596579;
  --line: #d9e0ea;
  --danger: #a12626;
  --surface: #ffffff;
  --background: #f5f7fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.55; }
.shell { width: min(980px, calc(100% - 32px)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.brand-logo { width: 116px; height: 61px; object-fit: contain; object-position: left center; }
.brand strong, .brand span { display: block; }
.brand span { color: var(--muted); font-size: .9rem; }
.hero { padding: 52px 0 24px; }
.hero h1, .success-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; margin: 6px 0 18px; color: var(--blue-dark); }
.hero > p:not(.eyebrow) { max-width: 760px; font-size: 1.08rem; }
.eyebrow { margin: 0; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; }
.notice { margin-top: 22px; padding: 16px 18px; background: #fff8cc; border-left: 4px solid var(--yellow); border-radius: 8px; }
.card, .success-card { margin: 24px 0; padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(36, 52, 83, .06); }
.section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.section-heading h2, .card h2 { margin: 0; color: var(--blue-dark); }
.section-heading p { margin: 4px 0 0; color: var(--muted); }
.step { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: white; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; font-weight: 700; color: var(--blue-dark); }
.required { color: var(--danger); margin-left: 2px; }
.required-note { margin: 0 0 -10px; color: var(--muted); font-size: .88rem; text-align: right; }
.field-wide { grid-column: 1 / -1; }
input, select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aeb8c7; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
input:focus, select:focus { outline: 3px solid rgba(70, 90, 130, .2); border-color: var(--blue); }
select:disabled { color: #7b8493; background: #f0f2f6; cursor: not-allowed; }
.student-card { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.student-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.student-title h3 { margin: 0; color: var(--blue-dark); }
.item-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(100px, 1fr) 110px 38px; gap: 12px; align-items: end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.remove-item { width: 38px; height: 48px; border: 0; border-radius: 8px; background: #fbecec; color: var(--danger); font-size: 1.6rem; cursor: pointer; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 19px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { color: white; background: var(--blue-dark); }
.button-secondary, .button-small { color: var(--blue-dark); border-color: var(--blue); background: white; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(41, 58, 94, .14); }
.button:focus-visible, .link-danger:focus-visible, .remove-item:focus-visible { outline: 3px solid rgba(70, 90, 130, .28); outline-offset: 2px; }
.button-small { min-height: 40px; margin-top: 16px; }
.button-submit { width: 100%; min-height: 58px; margin-bottom: 16px; font-size: 1.08rem; }
.link-danger { border: 0; padding: 5px; background: transparent; color: var(--danger); cursor: pointer; }
.quantity-note, .review-note { color: var(--muted); font-size: .92rem; }
.privacy dl { margin: 20px 0; }
.privacy h3 { color: var(--blue-dark); margin: 6px 0 0; }
.privacy dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 8px 0; border-bottom: 1px solid #edf0f4; }
.privacy dt { font-weight: 800; }
.privacy dd { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.check input { width: 20px; min-height: 20px; margin-top: 2px; }
.error-summary { margin: 20px 0; padding: 18px; border: 1px solid #db8888; border-radius: 12px; background: #fff2f2; color: #761c1c; }
.success-card { text-align: center; margin-top: 52px; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e8f6ec; color: #19743a; font-size: 2rem; font-weight: 900; }
.summary-student { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.summary-student h3, .summary-student p { margin: 0; }
.summary-student p { color: var(--muted); }
.summary-student ul { padding: 0; list-style: none; }
.summary-student li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.footer { padding: 36px 0; color: var(--muted); text-align: center; font-size: .86rem; }

@media (max-width: 720px) {
  .shell { width: min(100% - 22px, 980px); }
  .hero { padding-top: 34px; }
  .form-grid, .item-row { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .item-row { position: relative; padding-right: 48px; }
  .remove-item { position: absolute; right: 0; top: 16px; }
  .privacy dl > div { grid-template-columns: 1fr; gap: 2px; }
  .required-note { text-align: left; }
}
