:root { font-family: "Segoe UI", Arial, sans-serif; color: #18253a; background: #f4f7fb; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top left, #e4efff 0, transparent 36rem), #f4f7fb; }
a { color: inherit; }
h1 { margin: .3rem 0 .65rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; }
h1:focus { outline: none; }
h2 { margin-top: 0; font-size: 1.15rem; }
p { line-height: 1.55; }
.eyebrow { color: #1769c2; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.checkout-shell { width: min(940px, calc(100% - 2rem)); margin: 0 auto; padding: 7rem 0; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; }
.page-heading p { margin: 0; color: #657187; }
.university-brand { display: flex; align-items: center; gap: 1.25rem; }
.university-logo { width: 100px; height: 100px; flex: 0 0 auto; object-fit: contain; }
.warning-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow-y: auto; padding: 1.25rem; background: rgba(18,37,63,.8); backdrop-filter: blur(4px); }
.warning-dialog { position: relative; width: min(780px,100%); overflow: hidden; border: 1px solid #cbd5e1; border-radius: .7rem; background: #fff; box-shadow: 0 24px 70px rgba(9,30,57,.28); }
.warning-heading { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .9rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e7ecf3; }
.warning-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 2px solid #1769c2; border-radius: 50%; color: #1769c2; font-size: 1.45rem; font-weight: 900; line-height: 1; }
.warning-dialog h2 { margin: 0; color: #18253a; font-size: clamp(1rem,2.4vw,1.25rem); line-height: 1.4; letter-spacing: -.01em; }
.warning-copy { padding: .35rem 1.5rem .6rem; }
.warning-copy p { margin: 0; border-bottom: 1px solid #e7ecf3; padding: .9rem 0; color: #46546a; font-size: .95rem; line-height: 1.5; }
.warning-copy p:last-child { border-bottom: 0; }
.warning-accept { display: block; min-width: 15rem; margin: .35rem 1.5rem 1.5rem auto; background: #0759a8; color: white; box-shadow: 0 6px 18px rgba(7,89,168,.2); }
.warning-accept:hover { background: #064a8c; }
.warning-accept:focus-visible { outline: 3px solid rgba(24,116,205,.3); outline-offset: 3px; }
.language-picker { display: flex; gap: .25rem; border: 1px solid #ccd5e2; border-radius: .7rem; background: #e7edf5; padding: .25rem; }
.language-option { display: flex; align-items: center; gap: .45rem; border-radius: .5rem; background: transparent; padding: .45rem .55rem; color: #46546a; box-shadow: none; font-size: .8rem; font-weight: 700; }
.language-option img { width: 25px; height: 17px; border: 1px solid rgba(24,37,58,.16); border-radius: .15rem; object-fit: cover; box-shadow: 0 1px 2px rgba(24,37,58,.12); }
.language-option:hover { background: rgba(255,255,255,.65); }
.language-option.active { background: white; color: #0759a8; box-shadow: 0 2px 7px rgba(33,61,97,.14); }
.language-option:focus-visible { outline: 3px solid rgba(24,116,205,.25); outline-offset: 2px; }
.payment-form { display: grid; gap: 1rem; }
.card, .result-card, .redirect-card { position: relative; overflow: hidden; border: 1px solid rgba(23, 64, 115, .12); border-radius: .7rem; background: rgba(255,255,255,.92); box-shadow: 0 14px 40px rgba(33,61,97,.08); padding: 1.5rem; }
.card::before, .result-card::before, .redirect-card::before, .warning-dialog::before { position: absolute; inset: 0 0 auto; height: 8px; background: #1769c2; content: ""; }
.card.no-accent::before { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.form-grid > label { align-self: start; align-content: start; }
.section-help { margin: -.3rem 0 1.2rem; color: #657187; }
.student-groups { display: grid; gap: 1.35rem; }
.form-group { min-width: 0; margin: 0; border: 0; border-top: 1px solid #e7ecf3; padding: 1.15rem 0 0; }
.form-group legend { padding: 0 .65rem 0 0; color: #1769c2; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field-help { margin: 0; color: #778398; font-size: .78rem; font-weight: 450; }
.receipt-help { grid-column: 2; margin-top: -.55rem; }
label { display: grid; gap: .4rem; color: #46546a; font-size: .9rem; font-weight: 650; }
.field-label { display: inline-flex; align-items: baseline; gap: .2rem; }
.required-mark { color: #c62828; font-weight: 850; }
input, select { width: 100%; border: 1px solid #cbd5e1; border-radius: .65rem; padding: .72rem .8rem; background: white; color: #18253a; font: inherit; }
input:focus, select:focus { outline: 3px solid rgba(24,116,205,.18); border-color: #1874cd; }
.wide { grid-column: 1 / -1; }
.audience-selector { min-width: 0; margin: 0 0 1rem; border: 0; border-top: 1px solid #e7ecf3; padding: 1rem 0 0; }
.audience-selector legend { padding: 0 .65rem 0 0; color: #1769c2; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.audience-options { display: flex; flex-wrap: wrap; gap: .65rem; }
.audience-option { display: flex; align-items: center; gap: .55rem; border: 0; padding: .25rem 0; background: transparent; cursor: pointer; }
.audience-option:has(input:checked) { color: #0759a8; }
.audience-option input { width: 1.1rem; height: 1.1rem; margin: 0; padding: 0; accent-color: #0759a8; }
.audience-inline { align-self: start; margin: 0; border-top: 0; padding: 0; }
.audience-inline legend { padding-bottom: .4rem; color: #46546a; font-size: .9rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
.audience-inline .audience-options { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); align-items: center; align-content: center; min-height: calc(1lh + 1.44rem + 2px); gap: .15rem 1rem; font-size: .9rem; }
.audience-inline .audience-option { min-width: 0; justify-content: flex-start; gap: .35rem; padding: 0; font-size: .78rem; line-height: 1.15; text-align: left; }
.audience-inline .audience-option input { flex-shrink: 0; }
.payment-group-heading { border-top: 1px solid #d8e1ed; padding: .45rem 0; }
.payment-group-toggle { display: flex; width: 100%; align-items: center; gap: .65rem; border-radius: .45rem; background: transparent; padding: .65rem .25rem; color: #1769c2; font-size: .86rem; font-weight: 800; text-align: left; }
.payment-group-toggle:hover { background: #f3f7fc; }
.payment-group-toggle:focus-visible { outline: 3px solid rgba(24,116,205,.2); outline-offset: 2px; }
.payment-group-chevron { width: .55rem; height: .55rem; flex: 0 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.payment-group-toggle[aria-expanded="false"] .payment-group-chevron { transform: rotate(-45deg); }
.payment-group-count { min-width: 1.65rem; margin-left: auto; border-radius: 999px; background: #e3f0fc; padding: .2rem .45rem; color: #0759a8; font-size: .75rem; line-height: 1.1; text-align: center; }
.payment-group-heading + .option-row { border-top: 0; }
.option-row { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 1rem; border-top: 1px solid #e7ecf3; padding: 1rem 0; }
.option-row.has-controls { grid-template-columns: minmax(0,1fr) minmax(16rem,31rem); }
.option-label { display: flex; min-width: 0; align-items: center; gap: .7rem; }
.option-label input { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: #0759a8; }
.option-controls { display: grid; grid-column: 2; grid-template-columns: repeat(2, minmax(8rem, 1fr)); justify-self: end; gap: .75rem; width: 100%; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.payment-summary { display: grid; gap: .7rem; border-color: rgba(7,89,168,.28); background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(235,244,253,.92)); box-shadow: 0 18px 46px rgba(7,89,168,.13); }
.payment-summary h2 { margin-bottom: .2rem; color: #0759a8; }
.summary-line { display: flex; justify-content: space-between; gap: 1.5rem; color: #46546a; }
.summary-line.subtotal { border-top: 1px solid rgba(7,89,168,.18); padding-top: .9rem; margin-top: .2rem; }
.summary-line.grand-total { margin: .35rem -.55rem 0; border: 0; border-radius: .72rem; background: #0759a8; padding: 1rem .9rem; color: white; box-shadow: 0 8px 20px rgba(7,89,168,.2); font-size: 1.12rem; }
.summary-note { justify-self: end; margin: .15rem 0 0; border-radius: 2rem; background: #e3f0fc; padding: .35rem .65rem; color: #0759a8; font-size: .8rem; font-weight: 700; text-align: right; }
button { border: 0; border-radius: .7rem; padding: .82rem 1.15rem; font: inherit; font-weight: 750; cursor: pointer; }
.primary { background: #0759a8; color: white; box-shadow: 0 6px 18px rgba(7,89,168,.22); }
.primary:hover { background: #064a8c; }
.secondary { background: #e7edf5; color: #25364f; margin-left: .5rem; }
.checkout-actions { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }
.captcha-row { display: flex; min-height: 78px; justify-content: flex-end; align-items: center; overflow: hidden; }
.checkout-actions .secondary { margin-left: 0; }
.preview-button { border: 1px solid #cbd5e1; background: #fff; }
.preview-button:hover { border-color: #8eb5df; color: #0759a8; }
.submit { justify-self: end; min-width: 190px; }
.error-box, .validation-errors { color: #8f1d2c; background: #fff0f2; border: 1px solid #ffc8cf; padding: .85rem 1rem; border-radius: .7rem; }
.validation-message { display: block; margin: 0; color: #a21d31; font-size: .82rem; font-weight: 600; }
.service-validation-message { margin: -.35rem 0 .65rem; }
.result-card, .redirect-card { width: min(620px, calc(100% - 2rem)); margin: 12vh auto 0; text-align: center; }
.result-card h1 { font-size: clamp(1.6rem,4vw,2.4rem); }
.processing-card { display: grid; justify-items: center; gap: .65rem; }
.processing-card h1 { margin: .35rem 0; font-size: clamp(1.5rem,4vw,2rem); letter-spacing: -.025em; }
.processing-spinner { width: 54px; height: 54px; margin: .6rem 0 .35rem; border: 5px solid #dbe8f6; border-top-color: #0759a8; border-radius: 50%; animation: processing-spin .85s linear infinite; }
@keyframes processing-spin { to { transform: rotate(360deg); } }
.result-page { display: grid; min-height: 100vh; place-items: center; padding: 1rem; }
.result-page .result-card { width: min(650px,100%); margin: 0; padding: 0; text-align: left; }
.result-card.result-succeeded::before { background: #168653; }
.result-card.result-failed::before { background: #b73545; }
.result-card.result-unpaid::before { background: #d48a12; }
.result-brand { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid #e7ecf3; padding: 1.1rem 1.5rem; color: #33445c; font-size: .88rem; font-weight: 800; }
.result-brand img { width: 42px; height: 42px; object-fit: contain; }
.result-content { padding: 2.5rem 2rem 2rem; text-align: center; }
.result-content h1 { margin: .25rem 0 .8rem; }
.result-guidance { max-width: 34rem; margin: 0 auto; color: #536176; }
.result-succeeded .result-guidance { max-width: 36rem; font-size: .94rem; line-height: 1.45; }
.status-icon { display: grid; width: 68px; height: 68px; place-items: center; margin: 0 auto 1.4rem; border-radius: 50%; background: #fff4d8; color: #a56500; box-shadow: 0 0 0 10px rgba(242,184,75,.18); }
.status-icon::before { content: "…"; margin-top: -.35rem; font-size: 2.1rem; font-weight: 900; line-height: 1; }
.status-icon.succeeded { background: #d9f5e7; color: #116d43; box-shadow: 0 0 0 10px rgba(22,134,83,.12); }
.status-icon.succeeded::before { content: "✓"; margin-top: 0; font-size: 2rem; }
.status-icon.failed, .status-icon.verificationexpired { background: #ffe4e8; color: #a52939; box-shadow: 0 0 0 10px rgba(183,53,69,.12); }
.status-icon.failed::before, .status-icon.verificationexpired::before { content: "×"; margin-top: -.15rem; font-size: 2.5rem; }
.result-actions { margin-top: 1.6rem; }
.result-succeeded .result-actions { margin-top: 1rem; }
.receipt-download-status { min-height: 1.35rem; margin: .65rem 0 0; color: #657187; font-size: .82rem; }
.result-back-link { display: inline-block; margin-top: 1.25rem; color: #0759a8; font-size: .9rem; font-weight: 750; text-underline-offset: .2rem; }
.result-footer { border-top: 1px solid #e7ecf3; background: #f8fafc; padding: 1rem 1.5rem; text-align: center; }
.result-footer .support-contact { margin: 0; }
.muted { color: #778398; }
.support-contact { color: #657187; font-size: .9rem; }
.invoice-download { display: inline-block; padding: .82rem 1.15rem; border-radius: .7rem; text-decoration: none; }
.invoice-download:disabled { cursor: wait; opacity: .68; }
.sample-banner { display: inline-block; color: #9c2435; background: #ffe9ed; border-radius: 2rem; padding: .35rem .7rem; font-weight: 800; font-size: .75rem; letter-spacing: .08em; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; background: #fff3cd; padding: 1rem; }
@media (max-width: 820px) { .option-row, .option-row.has-controls { grid-template-columns: minmax(0,1fr); align-items: stretch; } .option-controls { grid-column: 1; justify-self: stretch; } }
@media (max-width: 650px) { .checkout-shell { padding: 3rem 0; } .page-heading { flex-direction: column; } .university-brand { align-items: flex-start; gap: .85rem; } .university-logo { width: 72px; height: 72px; } .language-picker { width: 100%; } .language-option { flex: 1; justify-content: center; } .language-option span { display: none; } .warning-overlay { align-items: center; padding: .75rem; } .warning-heading { grid-template-columns: 2.4rem 1fr; gap: .75rem; padding: 1rem; } .warning-mark { width: 2.4rem; height: 2.4rem; font-size: 1.3rem; } .warning-copy { padding: .25rem 1rem .6rem; } .warning-copy p { font-size: .9rem; } .warning-accept { width: calc(100% - 2rem); min-width: 0; margin: .35rem 1rem 1.2rem; } .form-grid { grid-template-columns: 1fr; } .wide, .receipt-help { grid-column: auto; } .option-row { grid-template-columns: minmax(0,1fr); align-items: stretch; } .option-controls { grid-column: 1; grid-template-columns: 1fr; justify-self: stretch; } .summary-line { align-items: flex-start; } .captcha-row { justify-content: center; } .checkout-actions { align-items: stretch; flex-direction: column; } .checkout-actions button, .submit { width: 100%; min-width: 0; } }
@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    input, select, textarea { font-size: 16px; }
  }
}
