@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ============ Tokens ============ */
:root {
    --reg-ink: #14110d;
    --reg-ink-soft: #2b2620;
    --reg-muted: #615a50;
    --reg-subtle: #8b8478;
    --reg-bg: #f5f2ec;
    --reg-card: #ffffff;
    --reg-line: #e6e0d4;
    --reg-line-strong: #d4cbbb;
    --reg-gold: #c79a45;
    --reg-gold-deep: #8a6417;
    --reg-gold-soft: #fbf4e4;
    --reg-error: #c42121;
    --reg-error-soft: #fdf1f1;
    --reg-error-line: #f3c4c4;
    --reg-success: #17803d;
    --reg-success-soft: #ecf8f0;
    --reg-radius: 18px;
    --reg-radius-sm: 12px;
    --reg-shadow: 0 1px 2px rgba(20, 17, 13, .04), 0 12px 32px -18px rgba(20, 17, 13, .18);
    --reg-focus: 0 0 0 4px rgba(199, 154, 69, .22);
    --reg-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body.registration-page {
    min-height: 100vh;
    margin: 0;
    color: var(--reg-ink);
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: var(--reg-bg);
    -webkit-font-smoothing: antialiased;
}

.registration-page svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Header ============ */
.public-head {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 clamp(16px, 4vw, 40px);
    color: #fff;
    background: rgba(14, 12, 9, .94);
    backdrop-filter: blur(12px);
}
.public-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.public-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.public-brand span { display: flex; flex-direction: column; font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.public-brand small { color: var(--reg-gold); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    padding: 0 16px 0 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #f3efe7;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s var(--reg-ease), background .2s var(--reg-ease);
}
.back svg { width: 18px; height: 18px; }
.back:hover { border-color: var(--reg-gold); background: rgba(199, 154, 69, .12); }
.back:focus-visible { outline: 0; box-shadow: var(--reg-focus); }

/* ============ Layout ============ */
.public-main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 28px; }

.registration-intro { margin: 0 0 28px; text-align: center; }
.registration-intro > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid #ecdcb6;
    border-radius: 999px;
    color: var(--reg-gold-deep);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    background: var(--reg-gold-soft);
}
.registration-intro > span::before { width: 7px; height: 7px; border-radius: 50%; background: var(--reg-success); content: ""; }
.registration-intro h1 { margin: 14px 0 8px; font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.registration-intro p { max-width: 560px; margin: 0 auto; color: var(--reg-muted); font-size: 1rem; }

/* ============ Progress ============ */
.registration-progress {
    position: sticky;
    top: 64px;
    z-index: 30;
    margin: 0 -8px 22px;
    padding: 10px 8px;
    background: linear-gradient(var(--reg-bg) 80%, rgba(245, 242, 236, 0));
}
.registration-progress ol {
    display: flex;
    margin: 0;
    padding: 6px;
    gap: 4px;
    list-style: none;
    border: 1px solid var(--reg-line);
    border-radius: 999px;
    background: var(--reg-card);
    box-shadow: var(--reg-shadow);
}
.registration-progress li { flex: 1 1 0; min-width: 0; }
.registration-progress a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--reg-muted);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s var(--reg-ease), color .2s var(--reg-ease);
}
.registration-progress a:hover { background: #f6f2ea; color: var(--reg-ink); }
.registration-progress a:focus-visible { outline: 0; box-shadow: var(--reg-focus); }
.registration-progress b {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1.5px solid var(--reg-line-strong);
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 800;
    transition: background .2s var(--reg-ease), border-color .2s var(--reg-ease), color .2s var(--reg-ease);
}
.registration-progress span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.registration-progress .is-complete a { color: var(--reg-ink); }
.registration-progress .is-complete b { border-color: var(--reg-success); color: #fff; font-size: 0; background: var(--reg-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7 9 18l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }
.registration-progress .has-error a { color: var(--reg-error); background: var(--reg-error-soft); }
.registration-progress .has-error b { border-color: var(--reg-error); color: #fff; background: var(--reg-error); }
.registration-progress .is-locked a { opacity: .55; }

/* ============ Form sections ============ */
.public-form { display: grid; gap: 18px; }
.public-form .trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.public-form > section {
    scroll-margin-top: 156px;
    padding: clamp(20px, 3.5vw, 30px);
    border: 1px solid var(--reg-line);
    border-radius: var(--reg-radius);
    background: var(--reg-card);
    box-shadow: var(--reg-shadow);
    animation: reg-rise .35s var(--reg-ease) both;
}
.public-form > section[hidden] { display: none; }
.public-form > section > header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.public-form > section > header > b {
    display: inline-grid;
    flex: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: var(--reg-gold);
    font-size: .9rem;
    font-weight: 800;
    background: var(--reg-ink);
}
.public-form > section > header h2 { margin: 0; font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.public-form > section > header p { margin: 3px 0 0; color: var(--reg-muted); font-size: .92rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.public-identity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.public-form label,
.cascade-picker-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.public-form label > span,
.cascade-picker-field > span,
.tuition-months-field > span { color: var(--reg-ink-soft); font-size: .86rem; font-weight: 700; }

.public-form input:not([type=radio]):not([type=checkbox]):not([type=file]),
.public-form select,
.public-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid var(--reg-line);
    border-radius: var(--reg-radius-sm);
    color: var(--reg-ink);
    font: inherit;
    font-size: 1rem;
    background: #fdfcfa;
    transition: border-color .18s var(--reg-ease), box-shadow .18s var(--reg-ease), background .18s var(--reg-ease);
    -webkit-appearance: none;
    appearance: none;
}
.public-form textarea { min-height: 96px; resize: vertical; }
.public-form select {
    padding-right: 40px;
    cursor: pointer;
    background: #fdfcfa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23615a50' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center/12px 8px;
}
.public-form select:disabled { color: var(--reg-subtle); cursor: not-allowed; background-color: #f4f1eb; }
.public-form input::placeholder, .public-form textarea::placeholder { color: #a39b8e; opacity: 1; }
.public-form input:hover:not(:disabled), .public-form select:hover:not(:disabled), .public-form textarea:hover { border-color: var(--reg-line-strong); }
.public-form input:focus, .public-form select:focus, .public-form textarea:focus { outline: 0; border-color: var(--reg-gold); background: #fff; box-shadow: var(--reg-focus); }

.field-hint { color: var(--reg-subtle); font-size: .8rem; }

/* ============ Cascade picker ============ */
.cascade-picker {
    position: relative;
    display: flex;
    min-height: 50px;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1.5px solid var(--reg-line);
    border-radius: var(--reg-radius-sm);
    background: #fdfcfa;
    transition: border-color .18s var(--reg-ease), box-shadow .18s var(--reg-ease);
}
.cascade-picker:focus-within { border-color: var(--reg-gold); box-shadow: var(--reg-focus); }
.cascade-picker.complete { border-color: #cfe6d6; background: var(--reg-success-soft); }
.public-form .cascade-picker select { flex: 1 1 160px; min-height: 38px; padding: 6px 34px 6px 9px; border: 0; background-color: transparent; box-shadow: none; }
.public-form .cascade-picker select[hidden] { display: none; }
.cascade-tags { display: flex; max-width: 100%; flex-wrap: wrap; gap: 6px; }
.cascade-tags:empty { display: none; }
.cascade-tag {
    display: inline-flex;
    max-width: 100%;
    min-height: 36px;
    align-items: center;
    gap: 4px;
    padding: 0 4px 0 12px;
    border-radius: 999px;
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    background: var(--reg-ink);
    animation: reg-pop .2s var(--reg-ease) both;
}
.cascade-tag button {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--reg-gold);
    font-size: 1.1rem;
    line-height: 1;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}
.cascade-tag button:hover { background: rgba(255, 255, 255, .18); }
.cascade-tag button:focus-visible { outline: 2px solid var(--reg-gold); outline-offset: 1px; }

.cascade-touch-choices { display: none; }
.cascade-picker.is-touch-cascade { flex-direction: column; align-items: stretch; }
.public-form .cascade-picker.is-touch-cascade select { flex: none; }
.cascade-picker.is-touch-cascade .cascade-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cascade-picker.is-touch-cascade .cascade-tags:empty { display: none; }
.public-form .cascade-picker.is-touch-cascade select:not([disabled]) { position: absolute; width: 1px; min-width: 1px; height: 1px; min-height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.cascade-picker.is-touch-cascade .cascade-touch-choices { display: grid; grid-template-columns: 1fr; gap: 7px; padding: 4px 2px 2px; }
.cascade-picker.is-touch-cascade .cascade-touch-choices[hidden] { display: none; }
.cascade-touch-prompt { margin: 0; padding: 2px; color: var(--reg-muted); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.public-form .cascade-touch-choice {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    padding: 10px 42px 10px 14px;
    border: 1.5px solid var(--reg-line);
    border-radius: var(--reg-radius-sm);
    color: var(--reg-ink);
    font: inherit;
    font-weight: 600;
    text-align: left;
    background: #fff;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .15s, background .15s, transform .1s;
}
.public-form .cascade-touch-choice::after { position: absolute; right: 16px; color: var(--reg-gold-deep); font-size: 1.2rem; content: '›'; }
.public-form .cascade-touch-choice:active { border-color: var(--reg-gold); background: var(--reg-gold-soft); transform: scale(.99); }
.cascade-picker.needs-choice { border-color: var(--reg-error); box-shadow: 0 0 0 4px rgba(196, 33, 33, .1); }
.cascade-picker.needs-choice .cascade-touch-prompt { color: var(--reg-error); }

/* ============ Photo ============ */
.photo-upload { position: relative; }
.photo-picker {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1.5px dashed var(--reg-line-strong);
    border-radius: var(--reg-radius);
    background: #fdfcfa;
    cursor: pointer;
    transition: border-color .2s var(--reg-ease), background .2s var(--reg-ease);
}
.photo-upload:hover .photo-picker { border-color: var(--reg-gold); background: var(--reg-gold-soft); }
.photo-upload:focus-within .photo-picker { border-color: var(--reg-gold); box-shadow: var(--reg-focus); }
.photo-preview {
    display: grid;
    width: 92px;
    height: 92px;
    flex: none;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    color: var(--reg-gold-deep);
    background: #f1ebde;
}
.photo-preview > span svg { width: 34px; height: 34px; stroke-width: 1.6; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview.has-image { box-shadow: 0 0 0 3px var(--reg-success-soft), 0 0 0 4px #cfe6d6; }
.photo-picker-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.photo-picker-copy strong { font-size: 1rem; }
.photo-picker-copy small { color: var(--reg-muted); font-size: .84rem; }
.photo-picker-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    margin-top: 8px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    font-size: .84rem;
    font-style: normal;
    font-weight: 700;
    background: var(--reg-ink);
}
.photo-upload input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }

/* ============ Contacts ============ */
.audience-placeholder { padding: 0 !important; border-style: dashed !important; box-shadow: none !important; background: transparent !important; }
.waiting { display: flex; align-items: center; gap: 12px; padding: 22px; color: var(--reg-muted); font-size: .95rem; }
.waiting svg { width: 22px; height: 22px; color: var(--reg-gold-deep); }
.section-tip { margin: -8px 0 18px; padding: 11px 14px; border-left: 3px solid var(--reg-gold); border-radius: 0 10px 10px 0; color: var(--reg-ink-soft); font-size: .9rem; background: var(--reg-gold-soft); }
.parents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.parents fieldset { display: grid; min-width: 0; align-content: start; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--reg-line); border-radius: var(--reg-radius-sm); background: #fbfaf7; }
.parents legend { padding: 0 8px; color: var(--reg-gold-deep); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.form-required-note { margin: 16px 0 0; color: var(--reg-subtle); font-size: .82rem; }

/* ============ Payment ============ */
.payment-block + .payment-block { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--reg-line); }
.payment-block-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1rem; font-weight: 800; }
.payment-block-title i { display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--reg-ink); font-size: .8rem; font-style: normal; background: var(--reg-gold-soft); box-shadow: inset 0 0 0 1.5px #ecdcb6; }
.payment-proof-title { margin-top: 22px; }

.payment-choice { display: grid; gap: 14px; }
.payment-choice[hidden] { display: none; }
.payment-unit-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-unit-prices article { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--reg-line); border-radius: var(--reg-radius-sm); background: #fbfaf7; }
.payment-unit-prices span { color: var(--reg-muted); font-size: .84rem; font-weight: 600; }
.payment-unit-prices strong { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.payment-unit-prices small { color: var(--reg-subtle); font-size: .76rem; }

.public-form .tuition-toggle {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid var(--reg-gold);
    border-radius: var(--reg-radius);
    background: var(--reg-gold-soft);
    cursor: pointer;
    transition: border-color .2s var(--reg-ease), background .2s var(--reg-ease);
}
.tuition-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tuition-toggle-box {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: none;
    place-items: center;
    margin-top: 1px;
    border: 2px solid var(--reg-line-strong);
    border-radius: 8px;
    color: #fff;
    background: #fff;
    transition: background .15s var(--reg-ease), border-color .15s var(--reg-ease);
}
.tuition-toggle-box svg { width: 18px; height: 18px; stroke-width: 3; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s var(--reg-ease); }
.tuition-toggle input:checked + .tuition-toggle-box { border-color: var(--reg-ink); background: var(--reg-ink); }
.tuition-toggle input:checked + .tuition-toggle-box svg { opacity: 1; transform: scale(1); color: var(--reg-gold); }
.tuition-toggle input:focus-visible + .tuition-toggle-box { box-shadow: var(--reg-focus); }
.tuition-toggle input:disabled + .tuition-toggle-box { opacity: .5; }
.public-form .tuition-toggle:has(input:not(:checked)) { border-color: var(--reg-line-strong); background: #fff; }
.tuition-toggle-copy { display: grid; gap: 3px; }
.tuition-toggle-copy strong { font-size: 1.02rem; }
.tuition-toggle-copy small { color: var(--reg-muted); font-size: .88rem; line-height: 1.45; }
.tuition-toggle-copy b { color: var(--reg-ink); }

.tuition-months-field { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border: 1px solid var(--reg-line); border-radius: var(--reg-radius-sm); background: #fff; }
.tuition-months-field[hidden] { display: none; }
.tuition-months-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #f3efe7; }
.tuition-months-stepper button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--reg-ink);
    cursor: pointer;
    touch-action: manipulation;
    transition: opacity .15s, transform .1s;
}
.tuition-months-stepper button:active { transform: scale(.94); }
.tuition-months-stepper button:disabled { opacity: .3; cursor: not-allowed; }
.tuition-months-stepper button:focus-visible { outline: 0; box-shadow: var(--reg-focus); }
.tuition-months-stepper output { min-width: 56px; font-size: 1.15rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.tuition-months-stepper output::after { content: " mois"; color: var(--reg-muted); font-size: .8rem; font-weight: 600; }

.payment-summary { margin-top: 14px; overflow: hidden; border-radius: var(--reg-radius); color: #f3efe7; background: var(--reg-ink); }
.payment-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: .94rem; }
.payment-summary > div[hidden] { display: none; }
.payment-summary > div + div { border-top: 1px solid rgba(255, 255, 255, .08); }
.payment-summary strong { font-variant-numeric: tabular-nums; }
.payment-summary .payment-total { padding: 16px 18px; background: rgba(199, 154, 69, .14); }
.payment-summary .payment-total span { color: var(--reg-gold); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.payment-summary .payment-total strong { color: #fff; font-size: clamp(1.35rem, 4vw, 1.7rem); font-weight: 800; }

.public-payment-method > strong { display: block; margin-bottom: 10px; color: var(--reg-ink-soft); font-size: .86rem; }
.public-payment-method > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.public-payment-method label { position: relative; }
.public-payment-method input { position: absolute; opacity: 0; pointer-events: none; }
.public-payment-method label span {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1.5px solid var(--reg-line);
    border-radius: var(--reg-radius-sm);
    color: var(--reg-ink);
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s var(--reg-ease), background .15s var(--reg-ease), box-shadow .15s var(--reg-ease);
}
.public-payment-method label span::before { width: 18px; height: 18px; flex: none; border: 2px solid var(--reg-line-strong); border-radius: 50%; background: #fff; content: ""; transition: border .15s; }
.public-payment-method label:hover span { border-color: var(--reg-line-strong); }
.public-payment-method input:checked + span { border-color: var(--reg-ink); background: var(--reg-gold-soft); box-shadow: inset 0 0 0 1px var(--reg-ink); }
.public-payment-method input:checked + span::before { border: 5px solid var(--reg-ink); }
.public-payment-method input:focus-visible + span { box-shadow: var(--reg-focus); }
.public-payment-method input:disabled + span { opacity: .55; cursor: not-allowed; }

.withdrawal-notice { margin: 16px 0 12px; padding: 11px 14px; border-radius: 10px; color: #7a4f05; font-size: .88rem; font-weight: 600; background: #fff6df; }
.transfer-destinations { display: grid; gap: 10px; }
.transfer-destinations article { display: grid; gap: 2px; padding: 16px 18px; border: 1.5px solid #ecdcb6; border-radius: var(--reg-radius-sm); background: var(--reg-gold-soft); }
.transfer-destinations article[hidden] { display: none; }
.transfer-destinations span { color: var(--reg-gold-deep); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.transfer-destinations strong { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.transfer-destinations small { color: var(--reg-muted); font-size: .84rem; }
.payment-proof-fields .payment-notes { grid-column: 1 / -1; }
.payment-notes-all-methods { margin-top: 16px; }
.cash-payment-notice { display: grid; gap: 3px; margin-top: 16px; padding: 16px 18px; border: 1.5px solid #cfe6d6; border-radius: var(--reg-radius-sm); background: var(--reg-success-soft); }
.cash-payment-notice[hidden] { display: none; }
.cash-payment-notice span { color: var(--reg-muted); font-size: .9rem; }

/* ============ Errors ============ */
.field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 2px 0 0;
    color: var(--reg-error);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.35;
    animation: reg-pop .18s var(--reg-ease) both;
}
.field-error::before {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 1px;
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c42121' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}
.public-form [aria-invalid="true"]:not([type=radio]):not([type=file]) { border-color: var(--reg-error) !important; background: #fff !important; }
.public-form [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(196, 33, 33, .12) !important; }
.public-form .has-error > span:first-child { color: var(--reg-error); }
.registration-photo-section.has-error .photo-picker { border-color: var(--reg-error); background: var(--reg-error-soft); }
.registration-photo-section.has-error .field-error { margin-top: 10px; }
.public-payment-method.has-error label span { border-color: var(--reg-error-line); }
.public-payment-method.has-error .field-error { margin-top: 10px; }

.form-error-summary {
    padding: 18px 20px;
    border: 1.5px solid var(--reg-error-line);
    border-left: 5px solid var(--reg-error);
    border-radius: var(--reg-radius);
    background: var(--reg-error-soft);
    animation: reg-rise .25s var(--reg-ease) both;
}
.form-error-summary[hidden] { display: none; }
.form-error-summary:focus { outline: 0; box-shadow: 0 0 0 4px rgba(196, 33, 33, .12); }
.form-error-summary h2 { margin: 0 0 2px; color: var(--reg-error); font-size: 1.02rem; font-weight: 800; }
.form-error-summary p { margin: 0 0 8px; color: var(--reg-ink-soft); font-size: .9rem; }
.form-error-summary ul { display: grid; gap: 4px; margin: 0; padding-left: 20px; }
.form-error-summary a { color: var(--reg-error); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-error-summary a:hover { text-decoration-thickness: 2px; }

/* ============ Footer / submit ============ */
.public-form-footer {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 14px 14px 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    color: #f3efe7;
    background: rgba(20, 17, 13, .96);
    box-shadow: 0 18px 40px -16px rgba(20, 17, 13, .55);
    backdrop-filter: blur(10px);
}
.guide-coach { display: flex; min-width: 0; align-items: center; gap: 14px; }
.guide-ring { position: relative; display: grid; width: 48px; height: 48px; flex: none; place-items: center; }
.guide-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.guide-ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 3.5; }
.guide-ring .guide-ring-fill { stroke: var(--reg-gold); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--guide-progress, 0) * 100); transition: stroke-dashoffset .7s var(--reg-ease), stroke .3s var(--reg-ease); }
.guide-ring b { color: #fff; font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.guide-coach-copy { display: grid; min-width: 0; line-height: 1.3; }
.guide-coach-copy small { color: var(--reg-gold); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-coach-copy strong { overflow: hidden; color: #fff; font-size: .95rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.guide-coach.is-changing .guide-coach-copy,
.guide-coach.is-changing .guide-ring b { animation: reg-swap .45s var(--reg-ease) both; }
.guide-coach.is-ready .guide-ring .guide-ring-fill { stroke: #4cc27a; }
.guide-coach.is-ready .guide-ring b { color: #4cc27a; font-size: 1.1rem; }
.guide-coach.is-ready .guide-coach-copy small { color: #4cc27a; }
.public-form-footer button {
    display: inline-flex;
    min-height: 52px;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    color: var(--reg-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    background: var(--reg-gold);
    cursor: pointer;
    touch-action: manipulation;
    transition: background .18s var(--reg-ease), transform .1s;
}
.public-form-footer button span { transition: transform .2s var(--reg-ease); }
.public-form-footer button:hover { background: #d8ad5c; }
.public-form-footer button:hover span { transform: translateX(3px); }
.public-form-footer button:active { transform: scale(.98); }
.public-form-footer button:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(199, 154, 69, .45); }
.public-form-footer button:disabled { cursor: progress; opacity: .8; }
.public-submit-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(20, 17, 13, .25); border-top-color: var(--reg-ink); border-radius: 50%; animation: reg-spin .7s linear infinite; }

/* ============ SweetAlert ============ */
.public-registration-alert { padding: 28px !important; border-radius: 22px !important; font-family: inherit !important; }
.public-registration-alert .swal2-title { color: var(--reg-ink) !important; font-size: 1.4rem !important; }
.public-registration-alert .swal2-html-container { color: var(--reg-muted) !important; font-size: .98rem !important; line-height: 1.5 !important; }
.public-registration-alert-button { min-height: 48px; padding: 0 26px; border: 0; border-radius: 14px; color: #fff; font: inherit; font-weight: 800; background: var(--reg-ink); cursor: pointer; }

/* ============ Motion ============ */
@keyframes reg-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes reg-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes reg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============ Guided motion ============ */
.registration-intro { position: relative; isolation: isolate; }
.registration-intro::before {
    position: absolute;
    z-index: -1;
    top: -40px;
    left: 50%;
    width: min(560px, 90vw);
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(199, 154, 69, .2), transparent);
    filter: blur(8px);
    transform: translateX(-50%);
    content: "";
    animation: reg-glow 6s ease-in-out infinite alternate;
}
.registration-intro > * { animation: reg-rise .6s var(--reg-ease) both; }
.registration-intro > h1 { animation-delay: .08s; }
.registration-intro > p { animation-delay: .16s; }
.registration-intro > span::before { animation: reg-live 1.8s ease-out infinite; }
.registration-intro h1 em {
    position: relative;
    font-style: normal;
    background: linear-gradient(100deg, var(--reg-gold-deep), var(--reg-gold) 40%, #e6c27a 55%, var(--reg-gold-deep));
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: reg-sheen 5s linear infinite;
}
.registration-intro h1 em::after {
    position: absolute;
    right: 0;
    bottom: -.08em;
    left: 0;
    height: .12em;
    border-radius: 999px;
    background: var(--reg-gold);
    transform: scaleX(0);
    transform-origin: left;
    content: "";
    animation: reg-draw .8s .45s var(--reg-ease) forwards;
}
.registration-progress { animation: reg-rise .6s .22s var(--reg-ease) both; }

.registration-progress li { position: relative; }
.registration-progress .is-current a { color: var(--reg-ink); background: var(--reg-gold-soft); box-shadow: inset 0 0 0 1px #ecdcb6; }
.registration-progress .is-current b { border-color: var(--reg-ink); color: var(--reg-gold); background: var(--reg-ink); animation: reg-ring 1.8s ease-out infinite; }
.registration-progress .is-celebrating b { animation: reg-bounce .6s var(--reg-ease); }
.registration-progress .is-celebrating::after {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 2px var(--reg-success);
    pointer-events: none;
    content: "";
    animation: reg-burst .8s ease-out forwards;
}

.guide-track { position: relative; height: 4px; margin: 10px 22px 0; overflow: hidden; border-radius: 999px; background: var(--reg-line); }
.guide-track i {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--reg-gold-deep), var(--reg-gold), #e6c27a, var(--reg-gold));
    background-size: 200% 100%;
    transform: scaleX(var(--guide-progress, 0));
    transform-origin: left;
    transition: transform .7s var(--reg-ease);
    animation: reg-sheen 2.6s linear infinite;
}

.public-form > section { position: relative; transition: border-color .4s var(--reg-ease), box-shadow .4s var(--reg-ease), opacity .6s var(--reg-ease), transform .6s var(--reg-ease); }
.public-form > section.guide-reveal { animation: none; }
.public-form > section.guide-reveal:not(.is-revealed) { opacity: 0; transform: translateY(22px); }
.public-form > section.is-guide-current { border-color: #e4cf9f; box-shadow: 0 0 0 4px rgba(199, 154, 69, .1), 0 22px 44px -26px rgba(138, 100, 23, .45); }
.public-form > section::before {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: -1px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(var(--reg-gold), var(--reg-gold-deep));
    transform: scaleY(0);
    transition: transform .5s var(--reg-ease);
    content: "";
}
.public-form > section.is-guide-current::before { transform: scaleY(1); }
.public-form > section.audience-placeholder::before { display: none; }
.public-form > section > header > b { transition: background .3s var(--reg-ease), color .3s var(--reg-ease); }
.public-form > section.is-guide-current > header > b { color: var(--reg-ink); background: var(--reg-gold); animation: reg-ring 1.8s ease-out infinite; }
.public-form > section.is-guide-done > header > b { color: transparent; background: var(--reg-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7 9 18l-5-5'/%3E%3C/svg%3E") center/18px no-repeat; }
.public-form > section > header > b.is-celebrating { animation: reg-bounce .6s var(--reg-ease); }
.audience-placeholder .waiting svg { animation: reg-nudge 1.6s ease-in-out infinite; }

.public-form label.is-next-field:not(.photo-upload) > span:first-child { display: flex; align-items: center; gap: 8px; }
.public-form label.is-next-field:not(.photo-upload) > span:first-child::after {
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--reg-gold-deep);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--reg-gold-soft);
    box-shadow: inset 0 0 0 1px #ecdcb6;
    content: "À compléter";
    animation: reg-pop .35s var(--reg-ease) both;
}
.public-form:not(:focus-within) .is-next-field > input,
.public-form:not(:focus-within) .is-next-field > select,
.public-form:not(:focus-within) .photo-upload.is-next-field .photo-picker {
    border-color: var(--reg-gold);
    animation: reg-field-pulse 1.8s ease-out infinite;
}
.photo-upload.is-next-field .photo-picker-button { animation: reg-nudge-x 1.6s ease-in-out infinite; }
.photo-preview img:not([hidden]) { animation: reg-pop .45s var(--reg-ease) both; }

.public-form-footer button { position: relative; overflow: hidden; isolation: isolate; }
.public-form-footer.is-ready button { animation: reg-cta 2s ease-out infinite; }
.public-form-footer.is-ready button::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-100%);
    content: "";
    animation: reg-shine 2.4s ease-in-out infinite;
}
.public-form-footer.is-ready .guide-ring { animation: reg-bounce .6s var(--reg-ease); }
@keyframes reg-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@keyframes reg-glow { from { opacity: .6; transform: translateX(-50%) scale(.95); } to { opacity: 1; transform: translateX(-50%) scale(1.05); } }
@keyframes reg-sheen { to { background-position: -200% 0; } }
@keyframes reg-draw { to { transform: scaleX(1); } }
@keyframes reg-live { 0% { box-shadow: 0 0 0 0 rgba(23, 128, 61, .45); } 100% { box-shadow: 0 0 0 8px rgba(23, 128, 61, 0); } }
@keyframes reg-ring { 0% { box-shadow: 0 0 0 0 rgba(199, 154, 69, .55); } 100% { box-shadow: 0 0 0 9px rgba(199, 154, 69, 0); } }
@keyframes reg-field-pulse { 0% { box-shadow: 0 0 0 0 rgba(199, 154, 69, .4); } 100% { box-shadow: 0 0 0 7px rgba(199, 154, 69, 0); } }
@keyframes reg-cta { 0% { box-shadow: 0 0 0 0 rgba(199, 154, 69, .6); } 100% { box-shadow: 0 0 0 12px rgba(199, 154, 69, 0); } }
@keyframes reg-shine { 0%, 40% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes reg-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes reg-burst { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
@keyframes reg-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes reg-nudge-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ============ Responsive ============ */
@media (max-width: 820px) {
    .parents { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .public-head { height: 58px; }
    .public-brand img { width: 36px; height: 36px; }
    .back span { display: none; }
    .back { width: 44px; justify-content: center; padding: 0; }
    .public-main { width: calc(100% - 24px); padding-top: 22px; }
    .registration-progress { top: 58px; margin: 0 -4px 16px; padding: 8px 4px; }
    .registration-progress ol { padding: 4px; }
    .registration-progress a { flex-direction: column; gap: 2px; min-height: 50px; padding: 4px 2px; font-size: .68rem; border-radius: 14px; }
    .registration-progress ol { border-radius: 18px; }
    .registration-progress b { width: 24px; height: 24px; font-size: .72rem; }
    .public-form > section { scroll-margin-top: 142px; border-radius: 16px; }
    .guide-track { margin: 8px 14px 0; }
    .public-form > section::before { top: 16px; bottom: 16px; }
    .public-form > section > header > b { width: 34px; height: 34px; border-radius: 10px; font-size: .8rem; }
    .form-grid, .public-identity-grid, .payment-unit-prices { grid-template-columns: 1fr; }
    .public-payment-method > div { grid-template-columns: 1fr; }
    .public-payment-method label span { justify-content: flex-start; padding: 10px 16px; }
    .photo-picker { flex-direction: column; text-align: center; }
    .photo-picker-copy { align-items: center; }
    .photo-preview { width: 112px; height: 112px; }
    .public-form-footer { bottom: 8px; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; border-radius: 18px; }
    .guide-ring { width: 42px; height: 42px; }
    .guide-coach-copy strong { font-size: .88rem; }
    .public-form-footer button { width: 100%; }
}

/* ============ Confirmation dialog ============ */
.confirm-dialog {
    width: min(520px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 26px;
    color: var(--reg-ink);
    background: var(--reg-card);
    box-shadow: 0 30px 80px -20px rgba(20, 17, 13, .55);
}
.confirm-dialog::backdrop { background: rgba(14, 12, 9, .62); backdrop-filter: blur(4px); }
.confirm-dialog[open] { animation: reg-dialog-in .28s var(--reg-ease) both; }
.confirm-dialog[open]::backdrop { animation: reg-fade .28s ease both; }
.confirm-dialog-panel { display: grid; gap: 16px; padding: 0 0 22px; }
.confirm-dialog-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 24px 22px; color: #f3efe7; background: var(--reg-ink); background-image: radial-gradient(circle at 100% 0, rgba(199, 154, 69, .28), transparent 55%); }
.confirm-dialog-icon { display: inline-grid; width: 46px; height: 46px; flex: none; place-items: center; border-radius: 14px; color: var(--reg-ink); background: var(--reg-gold); }
.confirm-dialog-icon svg { width: 22px; height: 22px; }
.confirm-dialog-head h2 { margin: 0; color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.confirm-dialog-head p { margin: 4px 0 0; color: #c9c1b3; font-size: .92rem; }
.confirm-dialog-student { display: flex; align-items: center; gap: 14px; margin: 0 22px; padding: 14px; border: 1px solid var(--reg-line); border-radius: 18px; background: #fbfaf7; }
.confirm-dialog-photo { display: grid; width: 58px; height: 58px; flex: none; place-items: center; overflow: hidden; border-radius: 14px; background: #f1ebde; }
.confirm-dialog-photo img { width: 100%; height: 100%; object-fit: cover; }
.confirm-dialog-student > div { display: grid; min-width: 0; gap: 1px; }
.confirm-dialog-student small { color: var(--reg-gold-deep); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.confirm-dialog-student strong { overflow: hidden; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; }
.confirm-dialog-student span { color: var(--reg-muted); font-size: .86rem; }
.confirm-dialog-details { display: grid; grid-template-columns: auto 1fr; margin: 0 22px; }
.confirm-dialog-details:empty { display: none; }
.confirm-dialog-details dt, .confirm-dialog-details dd { margin: 0; padding: 9px 0; border-bottom: 1px dashed var(--reg-line); font-size: .9rem; }
.confirm-dialog-details dt { padding-right: 16px; color: var(--reg-muted); }
.confirm-dialog-details dd { overflow-wrap: anywhere; font-weight: 700; text-align: right; }
.confirm-dialog-details dt:last-of-type, .confirm-dialog-details dd:last-of-type { border-bottom: 0; }
.confirm-dialog-total { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin: 0 22px; padding: 14px 18px; border-radius: 16px; color: #f3efe7; background: var(--reg-ink); }
.confirm-dialog-total span { color: var(--reg-gold); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.confirm-dialog-total strong { grid-area: 1 / 2 / 3 / 3; color: #fff; font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.confirm-dialog-total small { color: #b9b1a3; font-size: .8rem; }
.confirm-dialog-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 22px; color: var(--reg-muted); font-size: .84rem; }
.confirm-dialog-note svg { width: 18px; height: 18px; margin-top: 1px; color: var(--reg-gold-deep); }
.confirm-dialog-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin: 4px 22px 0; }
.confirm-dialog-actions button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
    transition: background .18s var(--reg-ease), border-color .18s var(--reg-ease), transform .1s;
}
.confirm-dialog-actions button:active { transform: scale(.98); }
.confirm-dialog-actions button:focus-visible { outline: 0; box-shadow: var(--reg-focus); }
.confirm-dialog-actions .is-secondary { border: 1.5px solid var(--reg-line-strong); color: var(--reg-ink); background: #fff; }
.confirm-dialog-actions .is-secondary:hover { border-color: var(--reg-ink); }
.confirm-dialog-actions .is-primary { border: 0; color: var(--reg-ink); background: var(--reg-gold); }
.confirm-dialog-actions .is-primary:hover { background: #d8ad5c; }

/* ============ Success page ============ */
.registration-success { width: min(640px, calc(100% - 24px)); margin: 0 auto; padding: 40px 0 24px; }
.registration-success-card { overflow: hidden; border: 1px solid var(--reg-line); border-radius: 26px; background: var(--reg-card); box-shadow: var(--reg-shadow); animation: reg-rise .4s var(--reg-ease) both; }
.registration-success-hero { display: grid; justify-items: center; padding: 36px 24px 30px; color: #f3efe7; text-align: center; background: var(--reg-ink); background-image: radial-gradient(circle at 50% 0, rgba(199, 154, 69, .3), transparent 60%); }
.registration-success-icon { display: inline-grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; color: var(--reg-ink); background: var(--reg-gold); box-shadow: 0 0 0 8px rgba(199, 154, 69, .18); animation: reg-pop .45s .1s var(--reg-ease) both; }
.registration-success-icon svg { width: 34px; height: 34px; stroke-width: 3; }
.registration-success-kicker { margin-top: 18px; color: var(--reg-gold); font-size: .74rem; font-weight: 800; letter-spacing: .14em; }
.registration-success-hero h1 { margin: 6px 0; color: #fff; font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.registration-success-hero p { max-width: 420px; margin: 0; color: #c9c1b3; }
.registration-success-body { display: grid; gap: 20px; padding: 26px clamp(18px, 4vw, 30px) 28px; }
.registration-success-notice { display: grid; gap: 4px; padding: 18px; border: 1.5px solid #ecdcb6; border-radius: 18px; background: var(--reg-gold-soft); }
.registration-success-notice > strong { font-size: 1rem; }
.registration-success-notice > span { color: var(--reg-ink-soft); font-size: .9rem; }
.registration-success-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.registration-success-contacts a { display: flex; min-height: 54px; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #ecdcb6; border-radius: 14px; color: var(--reg-ink); font-size: .9rem; font-weight: 800; text-decoration: none; background: #fff; transition: border-color .18s var(--reg-ease); }
.registration-success-contacts a:hover { border-color: var(--reg-gold); }
.registration-success-contacts a:focus-visible { outline: 0; box-shadow: var(--reg-focus); }
.registration-success-contacts svg { width: 18px; height: 18px; color: var(--reg-gold-deep); }
.registration-success-contacts span { display: grid; font-variant-numeric: tabular-nums; white-space: nowrap; }
.registration-success-contacts small { color: var(--reg-muted); font-size: .7rem; font-weight: 600; }
.registration-success-tip { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--reg-muted); font-size: .88rem; }
.registration-success-tip svg { width: 18px; height: 18px; margin-top: 2px; color: var(--reg-gold-deep); }
.registration-success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.registration-success-actions a { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 16px; border: 1.5px solid var(--reg-line-strong); border-radius: 16px; color: var(--reg-ink); font-weight: 800; text-align: center; text-decoration: none; background: #fff; transition: border-color .18s var(--reg-ease), background .18s var(--reg-ease); }
.registration-success-actions a:hover { border-color: var(--reg-ink); }
.registration-success-actions a.is-primary { border-color: var(--reg-ink); color: #fff; background: var(--reg-ink); }
.registration-success-actions a.is-primary:hover { background: var(--reg-ink-soft); }
.registration-success-actions a:focus-visible { outline: 0; box-shadow: var(--reg-focus); }

/* ============ Credit ============ */
.registration-credit { margin: 0; padding: 4px 16px 22px; color: #a39b8e; font-size: .7rem; letter-spacing: .04em; text-align: center; }
.registration-credit a { color: var(--reg-muted); font-weight: 700; letter-spacing: .08em; text-decoration: none; transition: color .18s var(--reg-ease); }
.registration-credit a:hover { color: var(--reg-gold-deep); }
.registration-credit a:focus-visible { outline: 0; border-radius: 4px; box-shadow: var(--reg-focus); }

@keyframes reg-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes reg-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes reg-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
    .confirm-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; }
    .confirm-dialog[open] { animation-name: reg-sheet-in; }
    .confirm-dialog-head { padding: 22px 18px 18px; }
    .confirm-dialog-student, .confirm-dialog-details, .confirm-dialog-total, .confirm-dialog-note, .confirm-dialog-actions { margin-left: 16px; margin-right: 16px; }
    .confirm-dialog-actions { grid-template-columns: 1fr; }
    .confirm-dialog-actions .is-primary { order: -1; }
    .registration-success { padding-top: 20px; }
    .registration-success-contacts, .registration-success-actions { grid-template-columns: 1fr; }
}
