/* =====================================================================
   DCF V4 - Registration
   Material Design 3 inspired theme on top of Bootstrap 5.
   ===================================================================== */

:root {
    --md-primary: #5547d9;
    --md-on-primary: #ffffff;
    --md-primary-container: #e5e0ff;
    --md-on-primary-container: #170065;
    --md-secondary-container: #e8e5f4;
    --md-tertiary: #00796b;
    --md-tertiary-container: #c6f2e8;
    --md-warn: #8a5100;
    --md-warn-container: #ffe8c2;
    --md-error: #ba1a1a;
    --md-error-container: #ffdad6;
    --md-surface: #fcf8ff;
    --md-surface-1: #f6f2fc;
    --md-surface-2: #f0ecf7;
    --md-surface-3: #ebe7f2;
    --md-on-surface: #1c1b20;
    --md-on-surface-variant: #48454e;
    --md-outline: #79767f;
    --md-outline-variant: #cac4d0;
    --rail-from: #1d1560;
    --rail-to: #4132c4;
    --radius-s: 12px;
    --radius-m: 20px;
    --radius-l: 28px;
    --elev-1: 0 1px 2px rgba(28, 27, 32, .12), 0 1px 3px 1px rgba(28, 27, 32, .08);
    --elev-2: 0 1px 2px rgba(28, 27, 32, .14), 0 2px 6px 2px rgba(28, 27, 32, .08);
    --elev-3: 0 4px 8px 3px rgba(28, 27, 32, .1), 0 1px 3px rgba(28, 27, 32, .14);
    --ease: cubic-bezier(.2, 0, 0, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--md-on-surface);
    background: var(--md-surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand__name, .stepper__text b, .ticket__num {
    font-family: 'Roboto Flex', 'Roboto', system-ui, sans-serif;
}

.material-symbols-rounded {
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

[hidden] { display: none !important; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ layout */
.app {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 100vh;
}

.rail {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.25rem 2rem;
    color: #fff;
    background:
        radial-gradient(900px 500px at -10% -10%, rgba(255, 255, 255, .14), transparent 60%),
        radial-gradient(600px 400px at 110% 100%, rgba(0, 224, 190, .22), transparent 60%),
        linear-gradient(160deg, var(--rail-from), var(--rail-to));
    overflow: hidden;
}

.rail::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 56px solid rgba(255, 255, 255, .05);
    pointer-events: none;
}

.stage {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background:
        radial-gradient(700px 400px at 100% 0, var(--md-primary-container) 0, transparent 70%),
        var(--md-surface);
}

.stage__inner {
    flex: 1;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 2rem 7rem;
}

/* ------------------------------------------------------------ rail */
.brand { display: flex; align-items: center; gap: .85rem; }
.brand__logo {
    width: 52px; height: 52px; flex: none;
    display: grid; place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
}
.brand__logo .material-symbols-rounded { font-size: 30px; font-variation-settings: 'FILL' 1, 'wght' 500; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
.brand__name { font-weight: 700; line-height: 1.15; font-size: 1.05rem; letter-spacing: .2px; }

.rail__intro h1 { font-size: 2rem; line-height: 1.15; font-weight: 700; margin: 0 0 .75rem; }
.rail__intro p { margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.55; }

.stepper { list-style: none; margin: 0; padding: 0; position: relative; }
.stepper__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem 0;
    cursor: default;
    opacity: .6;
    transition: opacity .2s;
}
.stepper__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 21px; top: 3.05rem;
    width: 2px; height: calc(100% - 1.7rem);
    background: rgba(255, 255, 255, .25);
}
.stepper__item.is-done:not(:last-child)::before { background: #5df0d0; }
.stepper__item.is-reachable { cursor: pointer; opacity: 1; }
.stepper__item.is-active { opacity: 1; }

.stepper__dot {
    flex: none;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 2px solid transparent;
    transition: all .25s var(--ease);
}
.stepper__item.is-active .stepper__dot { background: #fff; color: var(--md-primary); box-shadow: 0 0 0 6px rgba(255, 255, 255, .18); }
.stepper__item.is-done .stepper__dot { background: #5df0d0; color: #00382f; }
.stepper__item.is-reachable:not(.is-active):hover .stepper__dot { background: rgba(255, 255, 255, .28); }

.stepper__text b { display: block; font-weight: 600; font-size: 1rem; }
.stepper__text small { display: block; color: rgba(255, 255, 255, .7); font-size: .8rem; margin-top: 1px; }

.rail__trust { list-style: none; margin: auto 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: .6rem; font-size: .88rem; color: rgba(255, 255, 255, .85); }
.rail__trust li { display: flex; align-items: center; gap: .6rem; }
.rail__trust .material-symbols-rounded { font-size: 20px; color: #5df0d0; }

/* ------------------------------------------------------------ mobile app bar */
.appbar, .m-progress { display: none; }

.m-progress { height: 4px; background: var(--md-primary-container); border-radius: 0; }
.m-progress .progress-bar { background: var(--md-primary); transition: width .4s var(--ease); }

/* ------------------------------------------------------------ steps */
.step { animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.step__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.step__icon {
    flex: none;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
}
.step__icon .material-symbols-rounded { font-size: 30px; font-variation-settings: 'FILL' 1, 'wght' 500; }
.step__head h2 { margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.step__head p { margin: .25rem 0 0; color: var(--md-on-surface-variant); }

.step__sub {
    display: flex; align-items: center; gap: .6rem;
    margin: 2.25rem 0 1.1rem;
    font-size: 1.1rem; font-weight: 600;
    color: var(--md-on-surface);
}
.step__sub .material-symbols-rounded { color: var(--md-primary); }

/* ------------------------------------------------------------ outlined text fields */
.m-field { position: relative; margin-bottom: 1.5rem; }

.m-input {
    width: 100%;
    height: 58px;
    padding: 24px 16px 6px 52px;
    border: 1px solid var(--md-outline);
    border-radius: var(--radius-s);
    background: #fff;
    color: var(--md-on-surface);
    font-size: 1rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}
.m-input:hover { border-color: var(--md-on-surface); }
.m-input:focus { border-color: var(--md-primary); box-shadow: 0 0 0 1px var(--md-primary); }
.m-input:disabled { background: var(--md-surface-2); }
.m-input[readonly] { cursor: pointer; }

.m-field > label {
    position: absolute;
    left: 52px; top: 18px;
    max-width: calc(100% - 68px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--md-on-surface-variant);
    font-size: 1rem;
    pointer-events: none;
    z-index: 3;
    transform-origin: left top;
    transition: top .15s var(--ease), font-size .15s var(--ease), color .15s;
}
.m-input:focus + label,
.m-input:not(:placeholder-shown) + label,
.m-field.is-filled > label,
.m-field--ts > label,
.m-field--prefix > label,
.m-field--captcha > label {
    top: 8px;
    font-size: .74rem;
    letter-spacing: .2px;
}
.m-input:focus + label { color: var(--md-primary); }

.m-lead {
    position: absolute;
    left: 14px; top: 17px;
    color: var(--md-on-surface-variant);
    pointer-events: none;
    z-index: 2;
    transition: color .15s;
}
.m-field:focus-within .m-lead { color: var(--md-primary); }

.m-hint { margin: .3rem 0 0 16px; font-size: .78rem; color: var(--md-on-surface-variant); }

.m-err {
    display: none;
    align-items: center; gap: .35rem;
    margin: .3rem 0 0 16px;
    font-size: .8rem; font-weight: 500;
    color: var(--md-error);
}
.m-err:not(:empty) { display: flex; }
.m-err:not(:empty)::before {
    content: 'error';
    font-family: 'Material Symbols Rounded';
    font-size: 16px; line-height: 1;
    font-variation-settings: 'FILL' 1;
}
.is-invalid > .m-hint { display: none; }
.is-invalid > .m-input,
.is-invalid .ts-control { border-color: var(--md-error) !important; box-shadow: 0 0 0 1px var(--md-error) !important; }
.is-invalid > label, .is-invalid > .m-lead { color: var(--md-error) !important; }

/* select (title) */
.m-field--select .m-input { padding-right: 44px; cursor: pointer; }
.m-field--select::after {
    content: 'arrow_drop_down';
    font-family: 'Material Symbols Rounded';
    position: absolute; right: 12px; top: 16px;
    font-size: 26px; color: var(--md-on-surface-variant);
    pointer-events: none;
}
.m-field--select > label { top: 8px; font-size: .74rem; }

/* phone / captcha prefix */
.m-prefix {
    position: absolute; left: 0; top: 0;
    height: 58px; min-width: 52px;
    display: grid; place-items: center;
    padding: 12px 0 0 14px; padding-right: 4px;
    font-weight: 500; color: var(--md-on-surface);
    z-index: 2; pointer-events: none;
}
.m-prefix--wide { padding-right: 6px; white-space: nowrap; font-family: 'Roboto Flex', sans-serif; font-size: 1.15rem; }
.m-field--captcha .m-input { padding-left: 100px; }
.m-field--captcha > label { left: 100px; }

/* Tom Select inside a field */
.m-field--ts .ts-wrapper { width: 100%; }
.m-field--ts .ts-control {
    min-height: 58px;
    padding: 24px 40px 6px 52px;
    border: 1px solid var(--md-outline);
    border-radius: var(--radius-s);
    box-shadow: none;
    font-size: 1rem;
    background: #fff;
    flex-wrap: nowrap;
}
.m-field--ts .ts-control:hover { border-color: var(--md-on-surface); }
.m-field--ts .ts-wrapper.focus .ts-control { border-color: var(--md-primary); box-shadow: 0 0 0 1px var(--md-primary); }
.m-field--ts .ts-control > input { font-size: 1rem; min-width: 40px; }
.m-field--ts .ts-control .item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.m-field--ts .ts-wrapper.single .ts-control::after { right: 18px; border-color: var(--md-on-surface-variant) transparent transparent; }
.m-field--ts .ts-dropdown {
    margin-top: 4px;
    border: 0;
    border-radius: var(--radius-s);
    box-shadow: var(--elev-3);
    background: var(--md-surface-1);
    overflow: hidden;
    z-index: 20;
}
.m-field--ts .ts-dropdown .option { padding: .7rem 1rem; }
.m-field--ts .ts-dropdown .active { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.m-field--ts .ts-dropdown .no-results { padding: .8rem 1rem; color: var(--md-on-surface-variant); }

/* ------------------------------------------------------------ choice cards */
.m-group { margin-bottom: 1.5rem; }
.m-choice__input { position: absolute; opacity: 0; pointer-events: none; }
.m-choice {
    position: relative;
    display: flex; align-items: center; gap: .9rem;
    height: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--radius-m);
    background: #fff;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.m-choice:hover { background: var(--md-surface-1); border-color: var(--md-outline); }
.m-choice__icon {
    flex: none; width: 46px; height: 46px; display: grid; place-items: center;
    border-radius: 14px; background: var(--md-secondary-container); color: var(--md-on-surface-variant);
    transition: all .2s var(--ease);
}
.m-choice__text b { display: block; font-weight: 600; font-size: 1.02rem; }
.m-choice__text small { display: block; margin-top: 2px; color: var(--md-on-surface-variant); line-height: 1.35; }
.m-choice__check {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%) scale(.4);
    opacity: 0;
    color: var(--md-primary);
    font-variation-settings: 'FILL' 1;
    transition: all .2s var(--ease);
}
.m-choice__input:checked + .m-choice {
    background: var(--md-primary-container);
    border-color: var(--md-primary);
    box-shadow: 0 0 0 1px var(--md-primary);
}
.m-choice__input:checked + .m-choice .m-choice__icon { background: var(--md-primary); color: #fff; }
.m-choice__input:checked + .m-choice .m-choice__check { opacity: 1; transform: translateY(-50%) scale(1); }
.m-choice__input:focus-visible + .m-choice { outline: 3px solid rgba(85, 71, 217, .35); outline-offset: 2px; }

.m-choice--warn:hover { border-color: var(--md-warn); }
.m-choice__input:checked + .m-choice--warn { background: var(--md-warn-container); border-color: var(--md-warn); box-shadow: 0 0 0 1px var(--md-warn); }
.m-choice__input:checked + .m-choice--warn .m-choice__icon { background: var(--md-warn); }
.m-choice__input:checked + .m-choice--warn .m-choice__check { color: var(--md-warn); }

/* reveal blocks (booked / not booked) */
.reveal { margin-top: 1.75rem; }
.reveal.is-open { animation: stepIn .3s var(--ease); }

/* ------------------------------------------------------------ switch row */
.m-switch-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; margin-top: .5rem;
    background: #fff;
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--radius-m);
}
.m-switch-row b { display: block; font-weight: 600; }
.m-switch-row small { color: var(--md-on-surface-variant); }
.form-switch .form-check-input {
    width: 3.1rem; height: 1.75rem; margin: 0; cursor: pointer;
    border-color: var(--md-outline);
    background-color: var(--md-surface-3);
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2379767f'/%3e%3c/svg%3e");
    transition: all .2s var(--ease);
}
.form-switch .form-check-input:checked {
    background-color: var(--md-primary);
    border-color: var(--md-primary);
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(85, 71, 217, .25); border-color: var(--md-primary); }

/* ------------------------------------------------------------ DVSA fee card */
.m-fees { padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: var(--md-primary-container); color: var(--md-on-primary-container); border-radius: var(--radius-m); }
.m-fees p { margin: 0 0 .75rem; line-height: 1.45; }
.m-fees dl { display: grid; grid-template-columns: 1fr auto; margin: 0 0 .75rem; background: rgba(255, 255, 255, .65); border-radius: var(--radius-s); padding: .25rem 1rem; }
.m-fees dt, .m-fees dd { padding: .55rem 0; margin: 0; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.m-fees dt { font-weight: 500; }
.m-fees dd { font-weight: 700; padding-left: 1rem; }
.m-fees dt:last-of-type, .m-fees dd:last-of-type { border-bottom: 0; }
.m-fees small { display: flex; gap: .4rem; align-items: flex-start; line-height: 1.4; }
.m-fees small .material-symbols-rounded { font-size: 18px; flex: none; }
.card-block { animation: stepIn .3s var(--ease); }

/* ------------------------------------------------------------ chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.6rem 0 1.5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .15rem;
    height: 34px; padding: 0 .35rem 0 .85rem;
    border-radius: 10px;
    background: var(--md-secondary-container);
    color: var(--md-on-surface);
    font-size: .88rem; font-weight: 500;
    animation: stepIn .2s var(--ease);
}
.chip button {
    display: grid; place-items: center;
    width: 26px; height: 26px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--md-on-surface-variant); cursor: pointer;
}
.chip button:hover { background: rgba(0, 0, 0, .08); }
.chip .material-symbols-rounded { font-size: 18px; }

/* ------------------------------------------------------------ notice stepper */
.m-notice {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    margin-top: 1.25rem; padding: 1rem 1.25rem;
    background: #fff; border: 1px solid var(--md-outline-variant); border-radius: var(--radius-m);
}
.m-notice__label b { display: block; font-weight: 600; }
.m-notice__label small { color: var(--md-on-surface-variant); }
.m-notice .m-err { flex-basis: 100%; margin-left: 0; }
.m-notice.is-invalid { border-color: var(--md-error); }
.m-stepper-num { display: flex; align-items: center; gap: .5rem; }
.m-stepper-num input {
    width: 64px; height: 48px; text-align: center;
    border: 0; border-radius: var(--radius-s);
    background: var(--md-surface-2);
    font: 700 1.35rem 'Roboto Flex', sans-serif; color: var(--md-on-surface);
    outline: none;
}
.m-icon-btn {
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: var(--md-primary-container); color: var(--md-on-primary-container);
    cursor: pointer; transition: all .15s;
}
.m-icon-btn:hover:not(:disabled) { box-shadow: var(--elev-1); filter: brightness(.97); }
.m-icon-btn:active:not(:disabled) { transform: scale(.92); }
.m-icon-btn:disabled { opacity: .4; cursor: default; }

/* ------------------------------------------------------------ banners */
.m-banner {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: 1rem 1.15rem; margin-bottom: 1.5rem;
    border-radius: var(--radius-m);
}
.m-banner p { margin: 0; line-height: 1.45; }
.m-banner--error { background: var(--md-error-container); color: #410002; }
.m-banner--warn { background: var(--md-warn-container); color: #3a2000; margin: 1rem 0 0; display: none; }
.m-banner--warn.is-visible { display: flex; animation: stepIn .25s var(--ease); }

/* ------------------------------------------------------------ review */
.review { display: grid; gap: 1rem; }
.review__card { background: #fff; border: 1px solid var(--md-outline-variant); border-radius: var(--radius-m); overflow: hidden; }
.review__head {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .6rem .55rem 1.1rem;
    background: var(--md-surface-1);
    border-bottom: 1px solid var(--md-outline-variant);
}
.review__head .material-symbols-rounded { color: var(--md-primary); }
.review__head b { flex: 1; font-weight: 600; }
.review dl { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; margin: 0; padding: .5rem 1.1rem .75rem; }
.review dt { padding: .45rem 0; color: var(--md-on-surface-variant); font-size: .88rem; }
.review dd { padding: .45rem 0; margin: 0; font-weight: 500; word-break: break-word; }

.m-check { display: flex; align-items: flex-start; gap: .75rem; padding: 0; margin: 0; }
.m-check .form-check-input { width: 1.4rem; height: 1.4rem; margin: 0; flex: none; border: 2px solid var(--md-outline); border-radius: 6px; cursor: pointer; }
.m-check .form-check-input:checked { background-color: var(--md-primary); border-color: var(--md-primary); }
.m-check label { padding-top: 1px; cursor: pointer; }
.m-check a { color: var(--md-primary); font-weight: 600; }
.m-group[data-field="acceptTerms"] { margin-top: .5rem; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--md-outline-variant); border-radius: var(--radius-m); }
.m-group[data-field="acceptTerms"].is-invalid { border-color: var(--md-error); }

/* ------------------------------------------------------------ buttons */
.btn-m {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 48px; padding: 0 1.5rem;
    border: 0; border-radius: 999px;
    font: 500 .98rem 'Roboto', sans-serif; letter-spacing: .1px;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.btn-m:disabled { opacity: .4; cursor: default; box-shadow: none; }
.btn-m .material-symbols-rounded { font-size: 22px; }
.btn-m--sm { height: 36px; padding: 0 .9rem; font-size: .88rem; }
.btn-m--sm .material-symbols-rounded { font-size: 18px; }
.btn-m--filled { background: var(--md-primary); color: var(--md-on-primary); box-shadow: var(--elev-1); min-width: 140px; }
.btn-m--filled:hover:not(:disabled) { box-shadow: var(--elev-2); filter: brightness(1.08); }
.btn-m--filled:active:not(:disabled) { transform: scale(.97); }
.btn-m--save { background: var(--md-tertiary); }
.btn-m--tonal { background: var(--md-secondary-container); color: var(--md-on-surface); }
.btn-m--tonal:hover { filter: brightness(.96); }
.btn-m--text { background: transparent; color: var(--md-primary); padding: 0 1.1rem; }
.btn-m--text:hover:not(:disabled) { background: rgba(85, 71, 217, .08); }
.btn-m.is-loading .material-symbols-rounded { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.actionbar {
    position: sticky; bottom: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .9rem max(2rem, calc((100% - 780px) / 2 + 2rem));
    background: rgba(252, 248, 255, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--md-outline-variant);
}
.actionbar__count { color: var(--md-on-surface-variant); font-size: .88rem; font-weight: 500; }

/* ------------------------------------------------------------ success */
.success { text-align: center; padding: 2rem 0; animation: stepIn .5s var(--ease); }
.success__badge {
    width: 96px; height: 96px; margin: 0 auto 1.5rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--md-tertiary-container); color: var(--md-tertiary);
    animation: pop .6s var(--ease);
}
.success__badge .material-symbols-rounded { font-size: 56px; font-variation-settings: 'wght' 600; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 2rem; font-weight: 700; margin: 0 0 .5rem; }
.success__lead { color: var(--md-on-surface-variant); font-size: 1.05rem; margin-bottom: 2rem; }
.ticket {
    display: inline-flex; flex-direction: column; align-items: center; gap: .6rem;
    min-width: min(100%, 380px);
    padding: 1.75rem 2.5rem;
    background: #fff;
    border: 2px dashed var(--md-primary);
    border-radius: var(--radius-l);
    box-shadow: var(--elev-1);
}
.ticket small { letter-spacing: 1.4px; font-weight: 700; color: var(--md-on-surface-variant); }
.ticket__num { font-size: 3rem; font-weight: 700; letter-spacing: 3px; color: var(--md-primary); line-height: 1.1; }
.success__note {
    display: flex; justify-content: center; align-items: center; gap: .5rem;
    max-width: 480px; margin: 1.75rem auto 1.25rem;
    color: var(--md-on-surface-variant); text-align: left;
}
.success__note .material-symbols-rounded { color: var(--md-primary); flex: none; }

/* ------------------------------------------------------------ snackbar */
.m-snackbar {
    position: fixed; left: 50%; bottom: 96px; z-index: 1080;
    display: flex; align-items: center; gap: .75rem;
    max-width: min(92vw, 520px);
    padding: .9rem 1.25rem;
    border-radius: 14px;
    background: #322f37; color: #f5eff7;
    box-shadow: var(--elev-3);
    transform: translate(-50%, 24px);
    opacity: 0; pointer-events: none;
    transition: all .3s var(--ease);
}
.m-snackbar.is-show { transform: translate(-50%, 0); opacity: 1; }
.m-snackbar .material-symbols-rounded { color: #cfbcff; flex: none; }

/* flatpickr tweaks */
.flatpickr-calendar { border-radius: var(--radius-m); box-shadow: var(--elev-3); font-family: 'Roboto', sans-serif; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--md-primary); border-color: var(--md-primary); }
.flatpickr-day.today { border-color: var(--md-primary); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 500; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1199.98px) {
    .app { grid-template-columns: 320px 1fr; }
    .rail { padding: 2rem 1.5rem; }
    .rail__intro h1 { font-size: 1.65rem; }
}

@media (max-width: 991.98px) {
    .app { display: block; }
    .rail { display: none; }

    .appbar {
        position: sticky; top: 0; z-index: 30;
        display: flex; align-items: center; gap: .85rem;
        padding: .75rem 1rem;
        color: #fff;
        background: linear-gradient(120deg, var(--rail-from), var(--rail-to));
    }
    .brand__logo--sm { width: 40px; height: 40px; border-radius: 12px; }
    .brand__logo--sm .material-symbols-rounded { font-size: 24px; }
    .appbar__title b { display: block; font: 700 1.05rem 'Roboto Flex', sans-serif; }
    .appbar__title small { color: rgba(255, 255, 255, .75); }
    .m-progress { display: flex; position: sticky; top: 64px; z-index: 30; }

    .stage__inner { padding: 1.75rem 1.1rem 6.5rem; }
    .step__head h2 { font-size: 1.45rem; }
    .actionbar { padding: .75rem 1rem; }
    .m-snackbar { bottom: 88px; }
}

@media (max-width: 575.98px) {
    .step__head { gap: .8rem; margin-bottom: 1.5rem; }
    .step__icon { width: 48px; height: 48px; border-radius: 15px; }
    .actionbar__count { display: none; }
    .actionbar { justify-content: space-between; }
    .btn-m--filled { flex: 1; max-width: 220px; }
    .review dl { grid-template-columns: 1fr; }
    .review dt { padding-bottom: 0; }
    .review dd { padding-top: 0; }
    .ticket { padding: 1.5rem; }
    .ticket__num { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
