/* ==========================================================================
   Evac Education — public booking UI
   Visual language lifted from the Certificate of Competence:
   white paper, black / red / silver swooshes, hex texture, Didone display
   type, heavy italic titles, red circle badges and letter-spaced red rules.
   ========================================================================== */

:root {
    --red: #e10600;
    --red-bright: #ff2414;
    --red-deep: #a80000;
    --red-wash: #fff1f0;
    --ink: #0b0b0c;
    --ink-2: #1c1c1e;
    --steel: #5f5f66;
    --mute: #8a8a90;
    --line: #e7e7ea;
    --mist: #f5f5f6;
    --paper: #ffffff;
    --silver: linear-gradient(135deg, #ffffff 0%, #cfcfd2 35%, #f8f8f8 55%, #9a9a9e 80%, #e8e8ea 100%);

    --font-display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
    --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(11, 11, 12, .06), 0 4px 14px rgba(11, 11, 12, .05);
    --shadow: 0 2px 4px rgba(11, 11, 12, .04), 0 18px 40px -12px rgba(11, 11, 12, .18);
    --shadow-red: 0 14px 30px -10px rgba(225, 6, 0, .55);
    --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48.5'%3E%3Cpath d='M14 0 28 8.08v16.17L14 32.33 0 24.25V8.08zM14 32.33v16.17M0 48.5 14 40.42 28 48.5' fill='none' stroke='%23e10600' stroke-opacity='.32' stroke-width='1'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.evac {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--mist);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--red); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Lockup -------------------------------------------------------- */
.evac-lockup {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: var(--ink);
}
.evac-lockup-mark { width: 52px; height: auto; }
.evac-lockup-text { display: flex; flex-direction: column; line-height: 1; }
.evac-lockup-ta {
    font-family: var(--font-display);
    font-size: .78rem;
    margin-bottom: .3rem;
}
.evac-lockup-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.32rem;
    line-height: .9;
    letter-spacing: -.01em;
}
.evac-lockup-reg {
    margin-top: .45rem;
    font-size: .62rem;
    line-height: 1.35;
    letter-spacing: .02em;
    color: var(--steel);
}
.evac-lockup.on-dark { color: #fff; }
.evac-lockup.on-dark .evac-lockup-reg { color: rgba(255, 255, 255, .55); }

/* ---------- Masthead ------------------------------------------------------ */
.masthead {
    position: relative;
    z-index: 5;
    background: var(--ink);
    background-image: linear-gradient(90deg, rgba(11, 11, 12, 1) 30%, rgba(11, 11, 12, .82)), var(--hex);
    border-bottom: 3px solid var(--red);
}
.masthead::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -7px;
    height: 4px;
    background: var(--silver);
    opacity: .9;
}
.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}
.masthead-brand { text-decoration: none; display: inline-flex; }
.masthead-brand .evac-lockup-mark { width: 46px; }
.masthead-brand .evac-lockup-name { font-size: 1.12rem; }
.masthead-meta { display: flex; align-items: center; gap: 1.25rem; }
.masthead-reg {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.masthead-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.masthead-pill .ico { color: var(--red-bright); }

/* ---------- Shared type --------------------------------------------------- */
.cert-word,
.display {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0;
}
.cert-word {
    font-size: clamp(3rem, 5.6vw, 5.4rem);
    line-height: .86;
    text-transform: uppercase;
}
.display {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    line-height: 1.02;
}

.rule-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--red);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .42em;
    text-transform: uppercase;
}
.rule-label::before,
.rule-label::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--red);
}
.rule-label-left::before { flex: 0 0 34px; }
.rule-label-sm { font-size: .64rem; letter-spacing: .3em; gap: .65rem; }
.rule-label-sm::before { flex-basis: 20px; }

/* Red circle badges — the Unit / NQF / Credits row on every certificate */
.badge-dot {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, var(--red-bright), var(--red) 55%, var(--red-deep));
    box-shadow: 0 6px 14px -6px rgba(225, 6, 0, .8), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.badge-dot .ico { width: 1.3rem; height: 1.3rem; }
.badge-dot-lg { width: 3.6rem; height: 3.6rem; }
.badge-dot-lg .ico { width: 1.75rem; height: 1.75rem; }

.cert-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 0;
}
.cert-meta li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 0 1.4rem;
    border-left: 2px solid var(--ink);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.15;
}
.cert-meta li:first-child { padding-left: 0; border-left: 0; }
.cert-meta small {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    color: var(--steel);
}
.cert-meta-sm li { padding: 0 .75rem; gap: .5rem; font-size: .88rem; border-left-width: 1px; }
.cert-meta-sm .badge-dot { width: 2rem; height: 2rem; }
.cert-meta-sm .badge-dot .ico { width: 1rem; height: 1rem; }
.cert-meta-sm small { font-size: .66rem; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:focus-visible { outline: 3px solid rgba(225, 6, 0, .35); outline-offset: 2px; }
.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, var(--red-bright), var(--red) 60%, #c40500);
    box-shadow: var(--shadow-red), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--red-deep); }
.btn-primary:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-ghost {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 1rem 1.7rem; font-size: .95rem; }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.hero::before {
    /* thin red inset frame, as on the certificate */
    content: "";
    position: absolute;
    inset: 14px;
    border: 1.5px solid var(--red);
    pointer-events: none;
    z-index: 2;
}
.swoosh { position: absolute; pointer-events: none; user-select: none; }
.swoosh-tl { top: -10px; left: -10px; width: min(46vw, 560px); }
.swoosh-br { right: -10px; bottom: -10px; width: min(40vw, 480px); transform: rotate(180deg); }
.hero-watermark {
    position: absolute;
    right: 3%;
    top: 50%;
    width: 46%;
    color: #ececee;
    transform: translateY(-50%);
    pointer-events: none;
}
.hero-watermark .ico { width: 100%; height: auto; }

.hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 2rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}
.hero-copy { padding-left: clamp(0px, 5vw, 64px); }
.hero-lockup { margin-bottom: 1.6rem; }
.hero-lockup .evac-lockup-mark { width: 84px; }
.hero-lockup .evac-lockup-name { font-size: 2.15rem; }
.hero .rule-label { margin: .6rem 0 1.4rem; max-width: 34rem; }
.hero-lede {
    max-width: 32rem;
    margin: 0 0 1.75rem;
    font-size: 1.22rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.hero-meta { margin-bottom: 2rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.hero-note {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--steel);
}
.hero-note .ico { color: var(--red); }

.hero-visual { position: relative; min-height: 440px; }
.cert-fan { position: relative; height: 440px; }
.cert-fan img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 268px;
    border-radius: 4px;
    box-shadow: 0 30px 60px -20px rgba(11, 11, 12, .45), 0 2px 6px rgba(11, 11, 12, .12);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.cert-fan-1 { transform: translate(-50%, -50%) rotate(-2deg); z-index: 3; }
.cert-fan-2 { transform: translate(-108%, -46%) rotate(-11deg) scale(.88); z-index: 2; }
.cert-fan-3 { transform: translate(8%, -44%) rotate(9deg) scale(.88); z-index: 1; }
.hero-visual:hover .cert-fan-2 { transform: translate(-118%, -46%) rotate(-14deg) scale(.88); }
.hero-visual:hover .cert-fan-3 { transform: translate(18%, -44%) rotate(12deg) scale(.88); }
.hero-stamp {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.1rem .7rem .7rem;
    white-space: nowrap;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow);
    font-size: .76rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, .7);
}
.hero-stamp strong { display: block; color: #fff; font-size: .84rem; }

/* ---------- Workspace & wizard ------------------------------------------- */
.workspace {
    flex: 1;
    padding-top: 2.75rem;
    padding-bottom: 4.5rem;
    scroll-margin-top: 1rem;
}

.alert {
    margin-bottom: 1.25rem;
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--red);
    background: var(--red-wash);
    color: var(--red-deep);
    font-weight: 600;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: 1.75rem;
    counter-reset: step;
}
.step {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
    color: var(--mute);
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.15;
}
.step small {
    display: block;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.step-dot {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    flex: none;
}
.step-dot .ico { width: 1.05rem; height: 1.05rem; }
.step.is-active {
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.step.is-active::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--red);
}
.step.is-active small { color: var(--red); }
.step.is-active .step-dot {
    border: 0;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, var(--red-bright), var(--red) 60%, var(--red-deep));
    box-shadow: 0 6px 14px -6px rgba(225, 6, 0, .8);
}
.step.is-done { color: var(--ink); }
.step.is-done .step-dot { border: 0; background: var(--ink); color: #fff; }

.wizard-grid { display: grid; gap: 1.5rem; align-items: start; }
.wizard-grid.has-ticket { grid-template-columns: minmax(0, 1fr) 340px; }

/* The "sheet" is a sheet of certificate paper: white, red inset frame line */
.sheet {
    position: relative;
    padding: 2.25rem 2.25rem 2rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    animation: rise .35s ease both;
}
.sheet::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(225, 6, 0, .28);
    border-radius: calc(var(--radius) - 6px);
    pointer-events: none;
}
.sheet::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: url("../images/brand/swoosh.svg") no-repeat top right / 220px;
    transform: scaleX(-1);
    border-top-left-radius: var(--radius);
    opacity: .95;
    pointer-events: none;
    clip-path: inset(0 0 0 0 round var(--radius) 0 0 0);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sheet-head { position: relative; margin-bottom: 1.75rem; padding-right: 90px; }
.sheet-head .rule-label { margin-bottom: .85rem; }
.sheet-head .rule-label::after { display: none; }
.lede {
    margin: .6rem 0 0;
    font-size: 1.02rem;
    font-weight: 700;
    font-style: italic;
    color: var(--steel);
}

/* ---------- Course cards -------------------------------------------------- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1rem;
}
.course-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 210px;
    padding: 0;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.course-card:hover,
.course-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--ink);
    box-shadow: var(--shadow);
    outline: none;
}
.course-art { position: relative; overflow: hidden; background: var(--ink); }
.course-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left bottom;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.course-card:hover .course-art img { transform: scale(1.06); }
.course-body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1.1rem 1.2rem 1rem;
}
.course-unit {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--red);
}
.course-unit i { font-style: normal; color: var(--line); margin: 0 .2rem; }
.course-title {
    font-size: 1.12rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -.015em;
}
.course-desc {
    font-size: .8rem;
    color: var(--steel);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-facts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .78rem; font-weight: 600; color: var(--steel); }
.course-facts > span { display: inline-flex; align-items: center; gap: .3rem; }
.course-facts .ico { color: var(--red); }
.course-foot {
    margin-top: auto;
    padding-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed var(--line);
}
.price {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -.01em;
}
.go {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--red);
}
.go .ico { transition: transform .2s ease; }
.course-card:hover .go .ico,
.mode-card:hover .go .ico { transform: translateX(3px); }

/* ---------- Mode cards ---------------------------------------------------- */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.mode-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    padding: 1.75rem 1.6rem 1.5rem;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.mode-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.mode-card .badge-dot { margin-bottom: .6rem; }
.mode-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--red); }
.mode-title { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1.05; }
.mode-copy { font-size: .9rem; color: var(--steel); max-width: 24rem; }
.mode-card .go { margin-top: .75rem; }
.mode-card-dark {
    color: #fff;
    border-color: var(--ink);
    background: var(--hex), linear-gradient(160deg, #19191b, var(--ink));
}
.mode-card-dark .mode-copy { color: rgba(255, 255, 255, .7); }
.mode-card-dark .go { color: var(--red-bright); }
.mode-card-dark:hover { border-color: var(--red); }

/* ---------- Session slots ------------------------------------------------- */
.slot-list { display: grid; gap: .75rem; }
.slot {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 1.25rem;
    padding: .75rem 1.25rem .75rem .75rem;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.slot:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow); }
.slot-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem 0 .45rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    line-height: 1;
    border-top: 4px solid var(--red);
}
.slot-date small { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.slot-date strong { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; margin: .15rem 0 .2rem; }
.slot-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.slot-time { font-weight: 800; font-style: italic; font-size: 1.08rem; }
.slot-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--steel); font-weight: 500; }
.slot-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.slot-meta .ico { color: var(--red); }
.slot-seats { display: flex; flex-direction: column; gap: .4rem; font-size: .78rem; color: var(--steel); font-weight: 600; text-align: right; }
.slot-seats strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.seat-bar { height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.seat-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3a3a3d, var(--ink)); }
.slot-seats.is-low strong { color: var(--red); }
.slot-seats.is-low .seat-bar span { background: linear-gradient(90deg, var(--red-bright), var(--red)); }

/* ---------- Offsite day picker ------------------------------------------- */
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .65rem; }
.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .85rem .5rem .75rem;
    line-height: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--ink);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.day small { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.day strong { font-family: var(--font-display); font-weight: 900; font-size: 2rem; margin: .3rem 0 .35rem; }
.day:hover { transform: translateY(-2px); border-color: var(--ink); border-top-color: var(--red); box-shadow: var(--shadow-sm); }

/* ---------- Form ---------------------------------------------------------- */
.form fieldset { margin: 0 0 1.5rem; padding: 0; border: 0; }
.form legend {
    width: 100%;
    margin-bottom: 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { margin-bottom: 1rem; }
.field-label { display: block; margin-bottom: .4rem; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.field-label .opt { font-weight: 500; color: var(--mute); }
.field-label .req { color: var(--red); }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .8rem .95rem;
    border: 1px solid #d9d9dd;
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(225, 6, 0, .12);
}
.field .is-invalid { border-color: var(--red); background: var(--red-wash); }
.field-error { margin-top: .35rem; font-size: .78rem; font-weight: 600; color: var(--red-deep); }
.check-row { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 600; cursor: pointer; }
.check-row input { width: 1.1rem; height: 1.1rem; accent-color: var(--red); }

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.empty {
    grid-column: 1 / -1;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1.5px dashed #d6d6da;
    border-radius: var(--radius);
    color: var(--steel);
    font-weight: 600;
}

/* ---------- Ticket (summary aside) ---------------------------------------- */
.ticket {
    position: sticky;
    top: 1.25rem;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    animation: rise .35s ease both;
}
.ticket-cert {
    position: relative;
    padding: 1.4rem 1.4rem 0;
    background: var(--hex), linear-gradient(160deg, #1b1b1d, var(--ink));
    border-bottom: 3px solid var(--red);
}
.ticket-cert img {
    width: 72%;
    margin: 0 auto;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, .5);
}
.ticket-tag {
    position: absolute;
    top: .8rem;
    left: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ticket-body { padding: 1.25rem 1.35rem 1.35rem; }
.ticket-title { margin: .6rem 0 1rem; font-size: 1.12rem; font-weight: 800; font-style: italic; line-height: 1.2; }
.ticket .cert-meta { margin-bottom: 1rem; }
.ticket-lines { margin: 0; padding: .9rem 0 0; border-top: 1px dashed var(--line); }
.ticket-lines div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .84rem; }
.ticket-lines dt { color: var(--steel); font-weight: 500; }
.ticket-lines dd { margin: 0; font-weight: 700; text-align: right; }
.ticket-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 2px solid var(--ink);
}
.ticket-total span { font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.ticket-total strong { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--red); }

/* ---------- Confirmation (styled as a certificate) ------------------------ */
.confirm {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 3rem 3rem;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow);
    animation: rise .4s ease both;
}
.confirm::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1.5px solid var(--red);
    pointer-events: none;
    z-index: 2;
}
.confirm .swoosh-tl { width: 260px; top: -6px; left: -6px; }
.confirm .swoosh-br { width: 260px; right: -6px; bottom: -6px; }
.confirm-inner { position: relative; z-index: 3; }
.confirm .evac-lockup { margin-bottom: 1.6rem; text-align: left; }
.confirm .evac-lockup-mark { width: 70px; }
.confirm .evac-lockup-name { font-size: 1.75rem; }
.confirm .cert-word { font-size: clamp(2.8rem, 8vw, 4.6rem); }
.confirm .rule-label { margin: .5rem auto 1.6rem; max-width: 30rem; }
.confirm-course {
    margin: 0 auto 1.5rem;
    max-width: 30rem;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -.015em;
}
.confirm .cert-meta { justify-content: center; margin-bottom: 1.75rem; }
.confirm .cert-meta li { text-align: left; }
.confirm-certify { font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.confirm-name {
    margin: .7rem auto 1.1rem;
    max-width: 28rem;
    padding-bottom: .5rem;
    border-bottom: 1.5px solid var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9rem;
}
.confirm-status { font-size: 1.15rem; font-weight: 800; font-style: italic; margin: 0 0 2rem; }
.confirm-lines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 36rem;
    margin: 0 auto 1.25rem;
}
.confirm-lines div { border-top: 1.5px solid var(--ink); padding-top: .45rem; }
.confirm-lines strong { display: block; font-size: .95rem; }
.confirm-lines span { font-size: .74rem; font-style: italic; color: var(--steel); }
.confirm-note { margin: 0 auto 1.75rem; max-width: 30rem; font-size: .9rem; color: var(--steel); }

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
    position: relative;
    color: rgba(255, 255, 255, .7);
    background: var(--hex), linear-gradient(180deg, #151517, var(--ink));
    border-top: 4px solid var(--red);
    font-size: .86rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -8px;
    height: 4px;
    background: var(--silver);
}
.site-footer-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem 4rem;
    padding-top: 3rem;
    padding-bottom: 2.25rem;
}
.site-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.site-footer-label {
    margin-bottom: .55rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--red-bright);
}
.site-footer p { margin: 0; line-height: 1.6; }
.site-footer-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .74rem;
    color: rgba(255, 255, 255, .45);
}
.site-footer-pulse { color: var(--red); }
.site-footer-pulse .ico { width: 64px; height: 22px; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1080px) {
    .wizard-grid.has-ticket { grid-template-columns: minmax(0, 1fr); }
    .ticket { position: relative; top: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); }
    .ticket-cert { display: flex; align-items: flex-end; border-bottom: 0; border-right: 3px solid var(--red); }
    .ticket-cert img { width: 100%; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; padding-bottom: 3rem; }
    .hero-copy { padding-left: 0; }
    .hero-visual { min-height: 360px; }
    .cert-fan { height: 360px; }
    .cert-fan img { width: 210px; }
    .swoosh-tl { width: 300px; opacity: .9; }
    .swoosh-br { width: 260px; }
    .hero-lockup { margin-left: 70px; }
    .masthead-reg { display: none; }
    .site-footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    body.evac { font-size: 14px; }
    .container { padding: 0 16px; }
    .masthead-inner { min-height: 62px; }
    .masthead-pill { padding: .4rem .65rem; font-size: .64rem; }
    .hero::before { inset: 8px; }
    .hero-inner { padding-top: 7.5rem; }
    .swoosh-tl { width: 210px; }
    .swoosh-br { width: 190px; }
    .hero-lockup { display: none; }
    .hero-lede { font-size: 1.05rem; }
    .cert-meta li { padding: 0 .8rem; font-size: .92rem; }
    .cert-meta .badge-dot { width: 2.1rem; height: 2.1rem; }
    .hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-meta li { flex-direction: column; align-items: flex-start; gap: .45rem; padding: 0 .7rem; font-size: .88rem; }
    .course-foot .go { font-size: 0; }
    .course-foot .go .ico { width: 20px; height: 20px; }
    .price { font-size: 1.2rem; }
    .hero-visual { min-height: 300px; }
    .cert-fan { height: 300px; }
    .cert-fan img { width: 170px; }
    .workspace { padding-top: 1.5rem; }
    .steps { gap: .35rem; }
    .step { flex-direction: column; justify-content: center; text-align: center; gap: .35rem; padding: .65rem .3rem; font-size: .72rem; }
    .step small { display: none; }
    .sheet { padding: 1.5rem 1.15rem 1.25rem; }
    .sheet::after { width: 80px; height: 80px; background-size: 150px; }
    .sheet-head { padding-right: 50px; }
    .course-grid { grid-template-columns: minmax(0, 1fr); }
    .course-card { grid-template-columns: 96px minmax(0, 1fr); min-height: 190px; }
    .slot { grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; }
    .slot-seats { grid-column: 1 / -1; text-align: left; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .actions .btn-lg { width: 100%; }
    .ticket { grid-template-columns: minmax(0, 1fr); }
    .ticket-cert { border-right: 0; border-bottom: 3px solid var(--red); }
    .ticket-cert img { width: 60%; }
    .confirm { padding: 2.75rem 1.4rem 2rem; }
    .confirm .swoosh-tl, .confirm .swoosh-br { width: 150px; }
    .confirm-lines { grid-template-columns: minmax(0, 1fr); }
    .site-footer-cols { grid-template-columns: minmax(0, 1fr); }
}

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

/* Playfair defaults to old-style figures; prices and dates need lining ones */
.cert-word, .display, .price, .mode-title, .slot-date strong, .slot-seats strong,
.day strong, .ticket-total strong, .confirm-name { font-variant-numeric: lining-nums; }
