:root {
    --ink: #4c9f95;
    --ink-soft: #52676d;
    --paper: #ffffff;
    --page: #f5f1e8;
    --line: #d9e1df;
    --brand: #e8a91c;
    --brand-dark: #c78600;
    --teal: #4c9f95;
    --teal-dark: #27756d;
    --danger: #b7363e;
    --success: #21865f;
    --shadow: 0 4px 20px rgba(31, 57, 63, 0.52);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    background:
        url("background-1.jpg") repeat;
    background-size: 600px;
    color: var(--ink);
    font-family: 'K2D', sans-serif !important;  
    line-height: 1.55;
    margin: 0;
    min-height: 100vh;
}

a { color: var(--teal-dark); }

.shell {
    margin: 0 auto;
    max-width: 1160px;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.site-header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(23, 59, 69, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 84px;
}

.brand { display: inline-flex; }
.brand img { display: block; height: auto; max-height: 54px; max-width: 230px; }

.secure-label {
    align-items: center;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 9px;
    letter-spacing: 0.02em;
}

.secure-label span { color: var(--success); font-size: 11px; }

.page-layout { padding-bottom: 72px; padding-top: 64px; }

.hero { max-width: 800px; padding-bottom: 38px; }

.eyebrow,
.section-kicker {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
    font-family: 'K2D', sans-serif !important;  
    font-size: clamp(38px, 6vw, 65px);
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin-bottom: 19px;
    color: #fff;
    font-weight: 300;
}

.hero-copy {
    color: #fff;
    font-size: 18px;
    margin-bottom: 0;
    max-width: 680px;
}

.checkout-grid {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.checkout-card,
.summary-card,
.thank-you-card,
.notice {
    background: var(--paper);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.checkout-card { overflow: hidden; }

.school-panel {
    align-items: center;
    background: var(--ink);
    color: #fff;
    display: flex;
    gap: 18px;
    padding: 29px 34px;
}

.school-panel .section-kicker { color: #a8d8d1; margin-bottom: 4px; }
.school-panel h2 { font-size: 23px; line-height: 1.22; margin-bottom: 4px; }
.school-panel p:last-child { color: #c9d7da; margin-bottom: 0; }

.school-icon {
    align-items: center;
    background: var(--brand);
    border-radius: 16px;
    color: var(--ink);
    display: flex;
    flex: 0 0 55px;
    font-family: 'K2D', sans-serif !important;  
    font-size: 29px;
    font-weight: bold;
    height: 55px;
    justify-content: center;
}

#renewal-form { padding: 35px; }

.form-section { margin: 0 0 30px; }

.field-label,
.payment-section legend {
    color: var(--ink);
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 9px;
}

.payment-section { border: 0; padding: 0; }

select,
input[type="text"] {
    appearance: none;
    background: #fff;
    border: 1px solid #bdc9c7;
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    min-height: 52px;
    outline: none;
    padding: 12px 45px 12px 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink) 50%),
        linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 21px) 22px, calc(100% - 15px) 22px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
}

input[type="text"] { padding-right: 15px; }

select:focus,
input[type="text"]:focus,
.card-element:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(76, 159, 149, 0.15);
}

.field-help {
    color: var(--ink-soft);
    font-size: 13px;
    margin: 8px 0 0;
}

.payment-options { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

.payment-option {
    align-items: center;
    border: 1px solid #cbd5d3;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    min-height: 88px;
    padding: 15px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.payment-option:hover { border-color: var(--teal); transform: translateY(-1px); }
.payment-option:has(input:checked) { background: #edf8f6; border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.payment-option.is-disabled { cursor: not-allowed; opacity: .5; }

.payment-option input { accent-color: var(--teal-dark); flex: 0 0 auto; height: 18px; width: 18px; }
.payment-copy { display: flex; flex-direction: column; }
.payment-copy strong { font-size: 14px; }
.payment-copy small { color: var(--ink-soft); font-size: 12px; line-height: 1.35; margin-top: 3px; }

.conditional-panel {
    background: #f7f9f8;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 22px;
    padding: 20px;
}

.conditional-panel[hidden] { display: none; }

.card-element {
    background: #fff;
    border: 1px solid #bdc9c7;
    border-radius: 12px;
    min-height: 52px;
    padding: 16px 14px;
}

.field-error { color: var(--danger); font-size: 13px; margin: 8px 0 0; }

.form-message {
    border-radius: 12px;
    display: none;
    font-size: 14px;
    margin-bottom: 17px;
    padding: 13px 15px;
}

.form-message.is-visible { display: block; }
.form-message.is-error { background: #fff0f0; border: 1px solid #f0b9bc; color: #8e2830; }
.form-message.is-info { background: #edf8f6; border: 1px solid #b9ddd8; color: #246b64; }

.primary-button,
.secondary-button {
    align-items: center;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.primary-button {
    background: var(--brand);
    color: #172f35;
    position: relative;
    width: 100%;
}

.primary-button:hover { background: #f0b62e; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .72; transform: none; }
.secondary-button { background: #edf2f1; color: var(--ink); margin-top: 10px; }

.button-spinner {
    animation: spin .7s linear infinite;
    border: 2px solid rgba(23, 59, 69, .25);
    border-radius: 50%;
    border-top-color: var(--ink);
    display: none;
    height: 19px;
    margin-left: 10px;
    width: 19px;
}

.primary-button.is-busy .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.terms { color: #738287; font-size: 12px; margin: 14px auto 0; max-width: 540px; text-align: center; }

.sandbox-notice {
    background: #fff4d7;
    border: 1px solid #edca69;
    border-radius: 13px;
    color: #6f5208;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 24px;
    padding: 15px 17px;
}

.sandbox-notice strong { display: block; margin-bottom: 2px; }

.summary-card { padding: 29px; position: sticky; top: 28px; }
.summary-card h2 { font-family: 'K2D', sans-serif !important;   font-size: 30px; margin-bottom: 24px; }
.summary-card dl { margin: 0; }
.summary-card dl div { border-bottom: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: 105px 1fr; padding: 13px 0; }
.summary-card dt { color: var(--ink-soft); font-size: 13px; }
.summary-card dd { font-size: 13px; font-weight: 700; margin: 0; text-align: right; }
.summary-card .summary-total { align-items: baseline; border-bottom: 0; padding-top: 20px; }
.summary-total dd { font-size: 27px; }
.summary-total dd span { font-size: 12px; font-weight: 700; }

.summary-note { background: #edf8f6; border-radius: 14px; color: #285f5a; font-size: 13px; margin-top: 20px; padding: 17px; }
.summary-note p { margin: 4px 0 0; }

.notice { margin: 20px 0 80px; max-width: 760px; padding: 30px; }
.notice h1, .notice h2 { font-family: 'K2D', sans-serif !important;   font-size: 30px; margin-bottom: 12px; }
.notice-error { border-left: 5px solid var(--danger); }

.thank-you-layout { min-height: calc(100vh - 160px); padding-bottom: 75px; padding-top: 70px; }
.thank-you-card { margin: 0 auto; max-width: 760px; padding: 48px; text-align: center; }
.success-mark { align-items: center; background: #e5f5ed; border-radius: 50%; color: var(--success); display: flex; font-size: 38px; font-weight: bold; height: 82px; justify-content: center; margin: 0 auto 24px; width: 82px; }
.thank-you-card h1 { font-size: clamp(35px, 6vw, 52px); }
.thank-you-copy { color: var(--ink-soft); font-size: 17px; margin: 0 auto 30px; max-width: 600px; }
.confirmation-list { border: 1px solid var(--line); border-radius: 16px; margin: 0 auto 23px; max-width: 590px; overflow: hidden; text-align: left; }
.confirmation-list div { display: grid; gap: 20px; grid-template-columns: 150px 1fr; padding: 13px 17px; }
.confirmation-list div + div { border-top: 1px solid var(--line); }
.confirmation-list dt { color: var(--ink-soft); font-size: 13px; }
.confirmation-list dd { font-size: 14px; font-weight: 750; margin: 0; text-align: right; }
.status-pill { border-radius: 999px; display: inline-block; font-size: 12px; padding: 4px 10px; }
.status-pill.is-paid { background: #e5f5ed; color: var(--success); }
.status-pill.is-pending { background: #fff4d7; color: #8b6300; }
.email-confirmation { background: #edf8f6; border-radius: 13px; color: #285f5a; margin: 0 auto 25px; max-width: 590px; padding: 15px; }
.email-confirmation.warning { background: #fff4d7; color: #795a0d; }
.inline-button { width: auto; }

.site-footer { color: #708086; font-size: 12px; padding: 22px 0 35px; text-align: center; }

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .summary-card { grid-row: 1; }
}

@media (max-width: 620px) {
    .shell { padding-left: 17px; padding-right: 17px; }
    .header-inner { min-height: 72px; }
    .brand img { max-height: 44px; max-width: 190px; }
    .secure-label { display: none; }
    .page-layout { padding-top: 41px; }
    .hero { padding-bottom: 27px; }
    h1 { font-size: 39px; }
    .hero-copy { font-size: 16px; color: #fff; }
    .school-panel { align-items: flex-start; padding: 24px 21px; }
    #renewal-form { padding: 25px 21px; }
    .payment-options { grid-template-columns: 1fr; }
    .summary-card { padding: 24px 21px; }
    .summary-card dl div { grid-template-columns: 92px 1fr; }
    .thank-you-card { padding: 35px 20px; }
    .confirmation-list div { grid-template-columns: 1fr; gap: 3px; }
    .confirmation-list dd { text-align: left; }
}
