/*
 * Paid Paint & Sip registration — the registration page, the return from
 * checkout, the event gate and the development checkout stand-in.
 *
 * Self-contained on purpose: these pages are public while the demo gate is on,
 * so they may only load assets from /paint-and-sip/ and the public studio art
 * (see _PaintEventLayout.cshtml). Nothing here is shared with site.css.
 * The palette is lifted from the night's painting: espresso shadow, golden
 * sun, burnt-orange sky, savanna green, Pan-African red, and canvas cream.
 */

@font-face {
    font-family: "Baloo 2";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/baloo2-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ev-espresso: #1a120c;
    --ev-espresso-2: #2a1d13;
    --ev-umber: #4a3222;
    --ev-ink: #22170f;
    --ev-muted: #6b5546;
    --ev-cream: #fbf1df;
    --ev-paper: #fffaf1;
    --ev-line: #e8d6b8;
    --ev-gold: #f2b544;
    --ev-gold-deep: #c98a12;
    --ev-gold-soft: #fbe3ad;
    --ev-orange: #d9622b;
    --ev-orange-deep: #a8441a;
    --ev-green: #2f6b3a;
    --ev-green-soft: #e3efe3;
    --ev-red: #b7322b;
    --ev-red-soft: #fbe5e2;
    --ev-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
    --ev-body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ev-radius: 18px;
    --ev-gutter: 16px;
    color-scheme: light;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body.ev-body {
    margin: 0;
    background: var(--ev-cream);
    color: var(--ev-ink);
    font-family: var(--ev-body-font);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ev-orange-deep);
}

:focus-visible {
    outline: 3px solid var(--ev-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--ev-display);
    line-height: 1.1;
    margin: 0;
}

p {
    margin: 0;
}

.ev-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--ev-gutter);
}

.ev-skip {
    position: absolute;
    left: var(--ev-gutter);
    top: -100px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--ev-gold);
    color: var(--ev-espresso);
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

.ev-skip:focus {
    top: 12px;
}

/* ---- Buttons ---------------------------------------------------------- */

.ev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--ev-display);
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ev-btn:hover {
    transform: translateY(-1px);
}

.ev-btn:active {
    transform: translateY(1px);
}

.ev-btn--primary {
    background: var(--ev-gold);
    color: var(--ev-espresso);
    box-shadow: 0 4px 0 var(--ev-gold-deep);
}

.ev-btn--primary:hover {
    box-shadow: 0 6px 0 var(--ev-gold-deep), 0 12px 28px rgba(242, 181, 68, 0.35);
}

.ev-btn--secondary {
    background: transparent;
    color: var(--ev-espresso);
    border-color: var(--ev-espresso);
}

.ev-btn--secondary:hover {
    background: rgba(26, 18, 12, 0.06);
}

.ev-btn--block {
    display: flex;
    width: 100%;
}

.ev-btn[disabled],
fieldset[disabled] .ev-btn {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .ev-btn,
    .ev-btn:hover,
    .ev-btn:active {
        transition: none;
        transform: none;
    }
}

/* ---- Top bar, banner, footer ------------------------------------------ */

.ev-top {
    background: var(--ev-espresso);
    color: var(--ev-cream);
    border-bottom: 1px solid rgba(242, 181, 68, 0.18);
}

.ev-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ev-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ev-brand img {
    flex: none;
    border-radius: 10px;
}

.ev-brand__name {
    font-family: var(--ev-display);
    font-weight: 800;
    font-size: 1.0625rem;
    line-height: 1.05;
    color: var(--ev-gold);
}

.ev-brand__name span {
    display: block;
    color: var(--ev-cream);
    font-weight: 600;
    font-size: 0.875rem;
}

.ev-top__tag {
    flex: none;
    padding: 4px 12px;
    border: 1px solid rgba(242, 181, 68, 0.5);
    border-radius: 999px;
    color: var(--ev-gold-soft);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 380px) {
    .ev-top__tag {
        display: none;
    }
}

.ev-testmode {
    margin: 0;
    padding: 10px var(--ev-gutter);
    background: repeating-linear-gradient(-45deg, #fff2c4 0 14px, #ffe9a3 14px 28px);
    color: #5a3d00;
    border-bottom: 2px solid var(--ev-gold-deep);
    font-size: 0.9375rem;
    text-align: center;
}

.ev-footer {
    margin-top: 56px;
    background: var(--ev-espresso);
    color: rgba(251, 241, 223, 0.78);
    font-size: 0.875rem;
}

.ev-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
}

/* ---- Hero ------------------------------------------------------------- */

.ev-hero {
    position: relative;
    overflow: hidden;
    color: var(--ev-cream);
    background:
        radial-gradient(circle at 78% 38%, rgba(242, 181, 68, 0.55) 0, rgba(242, 181, 68, 0.18) 22%, transparent 46%),
        linear-gradient(180deg, var(--ev-espresso) 0%, #3a2214 55%, #7a3b17 100%);
}

.ev-hero__grid {
    display: grid;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 44px;
    align-items: center;
}

.ev-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ev-gold);
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ev-title {
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    font-weight: 800;
    color: var(--ev-paper);
    text-wrap: balance;
}

.ev-tagline {
    margin-top: 12px;
    color: var(--ev-gold-soft);
    font-family: var(--ev-display);
    font-size: clamp(1.125rem, 3.4vw, 1.375rem);
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}

.ev-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ev-facts li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ev-facts svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--ev-gold);
}

.ev-summary {
    max-width: 34em;
    margin-top: 18px;
    color: rgba(251, 241, 223, 0.9);
    font-size: 1.125rem;
}

.ev-pwyc {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin-top: 24px;
}

.ev-pwyc__amount {
    font-family: var(--ev-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ev-gold);
}

.ev-pwyc__min {
    color: rgba(251, 241, 223, 0.75);
}

.ev-hero__cta {
    margin-top: 22px;
}

/* The finished painting, framed as a stretched canvas. Never wider than its
   320px source (REG-8). */
.ev-canvas {
    justify-self: center;
    width: min(100%, 300px);
    margin: 0;
}

.ev-canvas__frame {
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, #f7ecd6, #e4cfa8);
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        8px 10px 0 -2px #3b2617,
        0 28px 48px rgba(0, 0, 0, 0.55);
    transform: rotate(1.5deg);
}

.ev-canvas__frame img {
    width: 100%;
    max-width: 320px;
    border-radius: 2px;
}

.ev-canvas figcaption {
    margin-top: 22px;
    text-align: center;
    color: rgba(251, 241, 223, 0.85);
    font-size: 0.9375rem;
}

.ev-canvas figcaption strong {
    color: var(--ev-gold);
}

@media (prefers-reduced-motion: reduce) {
    .ev-canvas__frame {
        transform: none;
    }
}

@media (min-width: 860px) {
    .ev-hero__grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
        gap: 48px;
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .ev-canvas {
        width: 300px;
    }
}

/* A free event's hero (KWANZAA-60): no painting beside the copy, and a title
   that can run to a dozen words. */
.ev-title--long {
    font-size: clamp(1.875rem, 6vw, 3rem);
}

.ev-hero__grid--single .ev-summary {
    max-width: 40em;
}

@media (min-width: 860px) {
    .ev-hero__grid--single {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ev-kente {
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        var(--ev-red) 0 40px,
        var(--ev-espresso) 40px 52px,
        var(--ev-gold) 52px 92px,
        var(--ev-espresso) 92px 104px,
        var(--ev-green) 104px 144px,
        var(--ev-espresso) 144px 156px
    );
}

/* ---- Body: form + aside ------------------------------------------------ */

.ev-body-grid {
    display: grid;
    gap: 20px;
    margin-top: -4px;
    padding-top: 28px;
}

@media (min-width: 960px) {
    .ev-body-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
        gap: 28px;
        padding-top: 40px;
    }

    /* The form is deliberately NOT sticky. It is ~840px tall (more with an
       error list), taller than a 1366x768 or 1280x720 laptop's viewport, and
       a pinned card taller than the viewport holds its own pay button below
       the fold for every pixel of the pin range: the page scrolls and the
       form does not. Measured in the M12 S5 browser pass. */
}

.ev-card {
    background: var(--ev-paper);
    border: 1px solid var(--ev-line);
    border-radius: var(--ev-radius);
    box-shadow: 0 1px 0 rgba(26, 18, 12, 0.04), 0 14px 34px rgba(74, 50, 34, 0.1);
    padding: 22px 18px;
}

@media (min-width: 480px) {
    .ev-card {
        padding: 28px;
    }
}

.ev-card__title {
    margin-bottom: 14px;
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--ev-espresso);
}

.ev-register:focus {
    outline: none;
}

.ev-side {
    display: grid;
    gap: 20px;
}

/* ---- Alerts ----------------------------------------------------------- */

.ev-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 5px solid;
    font-size: 0.9875rem;
}

.ev-alert ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.ev-alert li {
    display: list-item;
    list-style: disc;
}

.ev-alert--info {
    background: var(--ev-gold-soft);
    border-color: var(--ev-gold-deep);
}

.ev-alert--error {
    background: var(--ev-red-soft);
    border-color: var(--ev-red);
    color: #6e1712;
}

.ev-alert--closed {
    background: #f1e6d4;
    border-color: var(--ev-umber);
}

.ev-alert--success {
    background: var(--ev-green-soft);
    border-color: var(--ev-green);
}

/* ---- Form ------------------------------------------------------------- */

.ev-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.ev-form__legend {
    padding: 0;
    font-family: var(--ev-display);
    font-size: 1.1875rem;
    font-weight: 800;
    color: var(--ev-espresso);
}

.ev-form__hint {
    margin-top: 2px;
    color: var(--ev-muted);
    font-size: 0.9rem;
}

.ev-form__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.ev-form__aside {
    color: var(--ev-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.ev-field {
    margin-top: 18px;
}

.ev-input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    border: 2px solid var(--ev-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ev-ink);
    font: inherit;
}

.ev-input:focus {
    border-color: var(--ev-orange);
    outline: 3px solid rgba(217, 98, 43, 0.25);
    outline-offset: 0;
}

.ev-input:disabled {
    background: #f4ece0;
}

/* Amount choices: real radio buttons, visually replaced but still focusable
   and announced; the sibling selector styles the checked one (no :has()). */
.ev-amounts {
    margin-bottom: 4px;
}

.ev-amount {
    position: relative;
    display: block;
    cursor: pointer;
}

.ev-amount input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.ev-amount__body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid var(--ev-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.ev-amount:hover .ev-amount__body {
    border-color: var(--ev-gold-deep);
}

.ev-amount input:focus-visible + .ev-amount__body {
    outline: 3px solid var(--ev-orange);
    outline-offset: 2px;
}

.ev-amount input:checked + .ev-amount__body {
    border-color: var(--ev-espresso);
    background: var(--ev-gold-soft);
    box-shadow: 0 0 0 1px var(--ev-espresso) inset;
}

.ev-amount__value {
    font-family: var(--ev-display);
    font-weight: 800;
    font-size: 1.375rem;
    line-height: 1;
    color: var(--ev-espresso);
}

.ev-amount__value--small {
    font-size: 1.0625rem;
}

.ev-amount__note {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

/* The suggested amount: the one thing on the page that should be biggest. */
.ev-amount--featured {
    margin-top: 14px;
}

.ev-amount--featured .ev-amount__body {
    flex-direction: column;
    gap: 2px;
    padding: 18px 16px 16px;
    border-width: 3px;
    background:
        radial-gradient(circle at 85% 20%, rgba(242, 181, 68, 0.35), transparent 55%),
        #fff;
}

.ev-amount--featured input:checked + .ev-amount__body {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
        linear-gradient(135deg, var(--ev-gold) 0%, #f6c862 60%, #f9d98c 100%);
    box-shadow: 0 0 0 1px var(--ev-espresso) inset, 0 10px 24px rgba(201, 138, 18, 0.35);
}

.ev-amount--featured .ev-amount__value {
    font-size: 3.25rem;
}

.ev-amount__badge {
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--ev-orange);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ev-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.ev-amount--chip .ev-amount__body {
    flex-direction: column;
    gap: 2px;
    min-height: 58px;
    padding: 8px 6px;
}

.ev-other {
    margin-top: 10px;
}

.ev-amount--other .ev-amount__body {
    min-height: 48px;
    padding: 8px 12px;
}

.ev-other__field {
    margin-top: 10px;
}

/* With JS the field opens only when "Other amount" is chosen; without JS it
   is always there (and says how to use it). */
.js .ev-other__field {
    display: none;
}

.js .ev-other[data-open] .ev-other__field {
    display: block;
}

.js .ev-nojs-only {
    display: none;
}

.ev-money {
    position: relative;
}

.ev-money__sign {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--ev-muted);
}

.ev-money__input {
    padding-left: 30px;
    max-width: 200px;
    font-weight: 700;
}

.ev-form .ev-btn--block {
    margin-top: 22px;
}

.ev-form__secure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    color: var(--ev-muted);
    font-size: 0.875rem;
}

.ev-form__secure svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: var(--ev-green);
}

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

/* ---- Aside cards ------------------------------------------------------ */

.ev-ticks,
.ev-steps__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev-ticks li {
    position: relative;
    padding-left: 34px;
}

.ev-ticks li + li {
    margin-top: 10px;
}

.ev-ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ev-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ev-steps__list {
    counter-reset: ev-step;
}

.ev-steps__list li {
    position: relative;
    padding-left: 44px;
    counter-increment: ev-step;
}

.ev-steps__list li + li {
    margin-top: 12px;
}

.ev-steps__list li::before {
    content: counter(ev-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ev-espresso);
    color: var(--ev-gold);
    font-family: var(--ev-display);
    font-weight: 800;
    line-height: 30px;
    text-align: center;
}

.ev-faq details {
    border-top: 1px solid var(--ev-line);
    padding: 10px 0;
}

.ev-faq details:last-child {
    padding-bottom: 0;
}

.ev-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.ev-faq details p {
    margin-top: 6px;
    color: var(--ev-muted);
}

.ev-faq__contact {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ev-line);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ev-tip {
    background: var(--ev-gold-soft);
    border-color: var(--ev-gold);
}

.ev-tip .ev-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ev-tip .ev-card__title svg {
    flex: none;
    width: 26px;
    height: 26px;
    color: var(--ev-orange-deep);
}

.ev-tip p {
    color: var(--ev-ink);
}

.ev-tip a {
    font-weight: 700;
}

/* Text for screen readers only. */
.ev-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Status pages: confirmed, gate, simulated checkout ----------------- */

.ev-status {
    max-width: 640px;
    margin: 36px auto 0;
}

.ev-status__card {
    text-align: left;
}

.ev-status__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
}

.ev-status__title {
    font-size: clamp(1.75rem, 6vw, 2.375rem);
    font-weight: 800;
    color: var(--ev-espresso);
}

.ev-status__lead {
    margin-top: 10px;
    font-size: 1.125rem;
}

.ev-status__meta {
    display: grid;
    gap: 4px;
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--ev-cream);
}

.ev-status__meta div {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}

.ev-status__meta dt {
    font-weight: 700;
}

.ev-status__meta dd {
    margin: 0;
}

.ev-status__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.ev-status__note {
    margin-top: 18px;
    color: var(--ev-muted);
    font-size: 0.9375rem;
}

/* The access link: the registrant's ticket. A readonly input so it can be
   selected and copied with no JS; the button is a convenience. */
.ev-ticket {
    margin-top: 22px;
    padding: 16px;
    border: 2px dashed var(--ev-gold-deep);
    border-radius: 14px;
    background: #fff8e6;
}

.ev-ticket__label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--ev-display);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ev-espresso);
}

.ev-ticket__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ev-ticket__input {
    flex: 1 1 220px;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875rem;
}

.ev-ticket__copy {
    flex: none;
    min-height: 50px;
}

.ev-ticket__hint {
    margin-top: 8px;
    color: var(--ev-muted);
    font-size: 0.875rem;
}

.ev-copied {
    color: var(--ev-green);
    font-weight: 700;
}

/* The organizer's donation ask: a sentence they wrote, so it reads as body
   copy, not as a field hint. */
.ev-appeal {
    margin: 4px 0 14px;
    padding: 12px 14px;
    border-left: 4px solid var(--ev-gold-deep);
    border-radius: 0 10px 10px 0;
    background: var(--ev-cream);
    color: var(--ev-ink);
    font-size: 1rem;
}
