:root {
    color-scheme: light;
    --ink: #182b40;
    --muted: #66737c;
    --navy: #102445;
    --green: #28645b;
    --gold: #b9822e;
    --paper: #f7f6f1;
    --white: #fff;
    --line: #e3e3dc;
    --error: #a02f2f;
    font-family: "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(185,130,46,.62); outline-offset: 3px; }

.site-header { border-bottom: 1px solid rgba(24,43,64,.08); background: rgba(255,255,255,.92); }
.header-inner { width: min(1160px, calc(100% - 44px)); min-height: 96px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 66px; height: 66px; object-fit: contain; background: #fff; border-radius: 12px; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { color: var(--navy); font-size: 23px; letter-spacing: .12em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.header-contact { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.header-contact:hover, .help-note a:hover, .site-footer a:hover { color: var(--gold); }

.page-shell { width: min(1160px, calc(100% - 44px)); margin: 0 auto; padding: 42px 0 82px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: center; gap: clamp(32px, 6vw, 86px); padding: 18px 0 52px; }
.intro-copy { max-width: 750px; }
.eyebrow { margin: 0 0 16px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .19em; line-height: 1.25; text-transform: uppercase; }
.intro-copy h1 { max-width: 750px; margin: 0; color: var(--navy); font-size: clamp(42px, 5.5vw, 68px); font-weight: 650; letter-spacing: -.055em; line-height: 1.05; }
.intro-copy h1 em { color: var(--green); font-family: Georgia, serif; font-weight: 500; }
.intro-lede { max-width: 630px; margin: 21px 0 29px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 11px; min-width: 0; }
.steps li > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid #d9ded6; border-radius: 50%; color: var(--green); font-size: 14px; font-weight: 800; }
.steps li div { display: grid; line-height: 1.25; }
.steps strong { color: var(--ink); font-size: 14px; }
.steps small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.help-note { margin: 35px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.help-note a { text-underline-offset: 3px; }
.intro-card { position: relative; padding: 27px 26px 24px; border: 1px solid #e5e1d7; border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 18px 42px rgba(31,45,56,.055); }
.intro-card-mark { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; color: #fff; background: var(--green); font-family: Georgia, serif; font-size: 20px; }
.intro-card > strong { display: block; color: var(--navy); font-size: 19px; line-height: 1.3; }
.intro-card p { margin: 11px 0 20px; color: var(--muted); font-size: 14px; }
.intro-card-foot { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.form-section { padding: clamp(24px, 5vw, 54px); border: 1px solid #e6e5df; border-radius: 24px; background: var(--white); box-shadow: 0 24px 60px rgba(25,42,51,.075); }
.form-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.form-heading .eyebrow { margin-bottom: 8px; }
.form-heading h2 { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 42px); letter-spacing: -.04em; line-height: 1.1; }
.secure-note { padding: 8px 12px; border-radius: 999px; color: var(--green); background: #eef4ed; font-size: 12px; font-weight: 700; white-space: nowrap; }
.secure-note span { margin-right: 6px; color: #559267; font-size: 9px; }
.form-alert { margin: 0 0 22px; padding: 13px 16px; border: 1px solid #ebcaca; border-radius: 10px; color: var(--error); background: #fff5f5; }
.form-block { min-width: 0; margin: 0; padding: 27px 0 29px; border: 0; border-top: 1px solid var(--line); }
.form-block legend { width: 100%; display: flex; align-items: center; gap: 11px; padding: 0 0 19px; color: var(--navy); font-size: 19px; font-weight: 750; }
.form-block legend span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #eff3ec; font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px 20px; }
.field { display: grid; align-content: start; gap: 7px; color: #344758; font-size: 14px; font-weight: 700; }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #d9dedf; border-radius: 9px; color: var(--ink); background: #fff; font-size: 15px; font-weight: 450; }
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #98a2a7; }
.field select { cursor: pointer; }
.field-hint { margin: -8px 0 0; color: var(--muted); font-size: 12px; }
.field-error { display: block; color: var(--error); font-size: 12px; font-weight: 600; }
.confirm-address, .consent-choice { display: flex; align-items: flex-start; gap: 10px; color: #52616a; font-size: 13px; line-height: 1.5; }
.confirm-address { margin-top: 18px; }
.confirm-address input, .consent-choice input { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--green); }
#course-search { margin-bottom: 2px; }
.empty-courses { display: grid; gap: 8px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fbfaf6; }
.empty-courses span { color: var(--muted); }
.empty-courses a { width: fit-content; color: var(--green); font-weight: 750; }
.payment-intro strong { color: var(--ink); font-size: 15px; }
.payment-intro p { max-width: 760px; margin: 6px 0 18px; color: var(--muted); font-size: 13px; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.payment-choice { display: flex; align-items: flex-start; gap: 12px; min-height: 84px; padding: 15px; border: 1px solid #dfe2dc; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.payment-choice:has(input:checked) { border-color: var(--green); background: #f4f7f1; }
.payment-choice input { width: 17px; height: 17px; flex: 0 0 17px; margin: 3px 0 0; accent-color: var(--green); }
.payment-choice span { display: grid; gap: 5px; }
.payment-choice strong { color: var(--ink); font-size: 14px; line-height: 1.3; }
.payment-choice small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.submit-area { display: grid; gap: 15px; padding-top: 26px; border-top: 1px solid var(--line); }
.consent-choice a { color: var(--green); text-underline-offset: 3px; }
.submit-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 22px; border: 0; border-radius: 10px; color: #fff; background: var(--navy); font-size: 15px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.submit-button:hover { color: #fff; background: #1d3b62; transform: translateY(-1px); }
.submit-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.submit-area > p { margin: -6px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { width: min(1160px, calc(100% - 44px)); display: flex; justify-content: space-between; gap: 18px; margin: 0 auto; padding: 23px 0 30px; border-top: 1px solid rgba(24,43,64,.1); color: var(--muted); font-size: 12px; }
.site-footer a { text-decoration: none; }
.confirmation-shell { min-height: calc(100vh - 163px); display: grid; place-items: center; padding: 50px 22px; }
.confirmation-card { width: min(100%, 620px); padding: clamp(28px, 6vw, 58px); border: 1px solid #e6e5df; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(25,42,51,.075); text-align: center; }
.confirmation-check { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 23px; border-radius: 50%; color: #fff; background: var(--green); font-size: 29px; font-weight: 750; }
.confirmation-card .eyebrow { margin-bottom: 9px; }
.confirmation-card h1 { margin: 0 0 15px; color: var(--navy); font-size: clamp(32px, 5vw, 45px); letter-spacing: -.045em; line-height: 1.08; }
.confirmation-card p { color: var(--muted); }
.reference-number { padding: 13px; border-radius: 10px; color: var(--ink) !important; background: #f4f5f1; }
.confirmation-card .submit-button { width: 100%; margin-top: 12px; }
.back-link { display: inline-block; margin-top: 19px; color: var(--green); font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 780px) {
    .intro-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 10px; }
    .intro-card { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; align-items: center; padding: 18px; }
    .intro-card-mark { grid-row: span 2; margin: 0; }
    .intro-card > strong { font-size: 16px; }
    .intro-card p { grid-column: 2; margin: 5px 0 12px; font-size: 13px; }
    .intro-card-foot { grid-column: 2; }
}
@media (max-width: 560px) {
    .header-inner, .page-shell, .site-footer { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 76px; gap: 12px; }
    .brand { gap: 8px; }
    .brand img { width: 48px; height: 48px; border-radius: 8px; }
    .brand strong { font-size: 18px; }
    .brand small { max-width: 165px; font-size: 9px; }
    .header-contact { font-size: 12px; white-space: nowrap; }
    .page-shell { padding: 27px 0 50px; }
    .intro-grid { padding-bottom: 30px; }
    .intro-copy h1 { font-size: clamp(39px, 12vw, 53px); }
    .intro-lede { font-size: 16px; }
    .steps { grid-template-columns: 1fr; gap: 12px; }
    .steps li > span { width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
    .steps small { font-size: 12px; }
    .help-note { margin-top: 22px; }
    .form-section { padding: 22px 16px; border-radius: 17px; }
    .form-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
    .form-heading h2 { font-size: 31px; }
    .field-grid, .payment-grid { grid-template-columns: 1fr; gap: 14px; }
    .field--wide { grid-column: auto; }
    .field-hint { margin-top: -5px; }
    .form-block { padding: 22px 0; }
    .form-block legend { font-size: 17px; }
    .payment-choice { min-height: 75px; }
    .site-footer { flex-direction: column; font-size: 11px; }
}
