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

:root {
    box-sizing: border-box;

    --white: #ffffff;
    --page: #ffffff;
    --soft: #f4f0eb;
    --ink: #191a1d;
    --muted: #68707b;
    --line: #e1e4e8;

    --orange: #ed7b24;
    --orange-dark: #c75d13;
    --orange-soft: #fff1e5;

    --green: #1c825c;
    --green-soft: #e8f5ef;

    --red: #bd4d45;
    --red-soft: #fbecea;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--page);
    color: var(--ink);
    font: 400 16px/1.5 Jost, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

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

.event-page {
    width: 100%;
    min-height: 100dvh;
}


/* =========================================================
   FULL SCREEN LAYOUT
   ========================================================= */

.event-layout {
    display: grid;
    grid-template-columns:
        minmax(420px, 46vw)
        minmax(540px, 1fr);
    width: 100%;
    min-height: 100dvh;
}


/* =========================================================
   LEFT / VISUAL
   ========================================================= */

.event-visual {
    position: sticky;
    top: 0;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    background: #111;
}

.event-visual__image {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--event-image);
    background-size: cover;
    background-position: center center;
    transform: scale(1.015);
}

.event-visual__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            to top,
            rgba(8, 9, 10, .92) 0%,
            rgba(8, 9, 10, .67) 34%,
            rgba(8, 9, 10, .25) 68%,
            rgba(8, 9, 10, .08) 100%
        ),
        linear-gradient(
            to right,
            rgba(8, 9, 10, .26),
            transparent 58%
        );
}

.event-visual__inner {
    position: relative;
    z-index: 2;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding:
        clamp(26px, 3vw, 48px)
        clamp(28px, 4vw, 64px)
        clamp(34px, 5vw, 68px);
}

.event-logo {
    align-self: flex-start;
    width: clamp(88px, 8vw, 118px);
    aspect-ratio: 1;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

.event-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 13px;
}

.event-intro {
    max-width: 680px;
    margin-top: auto;
}

.event-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffc99f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.event-intro h1 {
    margin: 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(44px, 5.3vw, 48px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 4px 28px rgba(0, 0, 0, .34);
}

.event-description {
    max-width: 48ch;
    margin-top: 21px;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(17px, 1.35vw, 16px);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 27px;
}

.event-meta__pill {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(22, 24, 26, .48);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
}

.event-meta__pill svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #ffad72;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-meta__pill--open {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .94);
    color: var(--green);
}

.event-meta__pill--closed {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .94);
    color: var(--red);
}
.event-meta__pill SPAN {
    font-size: 26px;
}

/* =========================================================
   RIGHT / FORM
   ========================================================= */

.event-form-side {
    min-width: 0;
    min-height: 100dvh;
    background: var(--white);
}

.event-form-wrap {
    width: min(690px, calc(100% - 72px));
    margin: 0 auto;
    padding:
        clamp(44px, 7vh, 82px)
        0
        34px;
}

.form-header {
    margin-bottom: 34px;
}

.form-header__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.form-header h2 {
    margin: 0;
    font-size: clamp(34px, 3vw, 46px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.form-header p {
    max-width: 46ch;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.registration-form {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 38px rgba(34, 44, 59, .08);
}

.form-section {
    padding: 31px 34px;
}

.form-section + .form-section {
    border-top: 1px solid var(--line);
}

.form-section--tinted {
    background: var(--soft);
}

.form-section--final {
    padding-top: 25px;
    padding-bottom: 27px;
}

.section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 23px;
}

.section-number {
    min-width: 27px;
    padding-top: 4px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
}

.section-head h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.015em;
}

.section-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
}


/* =========================================================
   FIELDS
   ========================================================= */

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-row {
    display: flex;
    min-height: 53px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.two .field-row {
    margin-bottom: 14px;
}

.field-row label {
    flex: 0 0 101px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    background: #e9e4de;
    color: #3e4248;
    font-size: 14px;
    font-weight: 500;
}

.two .field-row label {
    flex-basis: 81px;
}

.field-row input {
    min-width: 0;
    flex: 1;
    padding: 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: 0;
}

.field-row input::placeholder {
    color: #a3a8ae;
}

.field-row:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange);
}


/* =========================================================
   PRICES
   ========================================================= */

.price-list {
    display: grid;
    gap: 11px;
}

.price-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 13px 14px 13px 17px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition:
        border-color .15s,
        box-shadow .15s,
        background .15s;
}

.price-choice.is-selected {
    border-color: var(--orange);
    box-shadow: inset 0 0 0 1px var(--orange);
    background: #fffaf6;
}

.price-choice__info strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
}

.price-choice__info span {
    display: block;
    margin-top: 2px;
    color: var(--orange-dark);
    font-size: 15px;
    font-weight: 650;
}

.price-choice__info .price-choice__caption {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.qty-control {
    display: grid;
    grid-template-columns: 38px 48px 38px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.qty-control button {
    height: 39px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.qty-control button:hover {
    background: #f1f2f3;
}

.qty-control input {
    width: 48px;
    height: 39px;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    text-align: center;
    font-weight: 700;
    appearance: textfield;
    outline: 0;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
    appearance: none;
}


/* =========================================================
   SUMMARY + CTA
   ========================================================= */

.booking-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.booking-summary > div {
    display: grid;
    gap: 2px;
}

.booking-summary__total {
    text-align: right;
}

.booking-summary span {
    color: var(--muted);
    font-size: 13px;
}

.booking-summary strong {
    color: #363b42;
    font-size: 18px;
    font-weight: 700;
}

.booking-summary__total strong {
    color: var(--orange);
    font-size: 27px;
}

.register-button {
    width: 100%;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 12px 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
    transition:
        filter .15s,
        transform .15s;
}

.register-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.register-button:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.register-button__arrow {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 19px;
}

.payment-note {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}


/* =========================================================
   STATES
   ========================================================= */

.registration-errors {
    margin: 20px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(189, 77, 69, .18);
    border-radius: 9px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 14px;
    font-weight: 600;
}

.registration-errors div + div {
    margin-top: 4px;
}

.registration-success,
.event-state {
    padding: 70px 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 38px rgba(34, 44, 59, .08);
}

.success-icon,
.event-state__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 29px;
    font-weight: 700;
}

.event-state__icon {
    background: var(--red);
}

.registration-success h3,
.event-state h3 {
    margin: 0 0 8px;
    font-size: 27px;
}

.registration-success p,
.event-state p {
    max-width: 40ch;
    margin: 0 auto;
    color: var(--muted);
}

.form-footer {
    padding-top: 26px;
    color: #a0a5ab;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .event-layout {
        grid-template-columns:
            minmax(350px, 42vw)
            minmax(500px, 1fr);
    }

    .event-visual__inner {
        padding: 30px;
    }

    .event-form-wrap {
        width: min(650px, calc(100% - 44px));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .event-layout {
        display: block;
        min-height: 100dvh;
    }

    .event-visual {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
        min-height: min(580px, 72dvh);
    }

    .event-visual__inner {
        min-height: min(580px, 72dvh);
        padding: 22px 20px 42px;
    }

    .event-logo {
        width: 82px;
        border-radius: 16px;
    }

    .event-intro h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .event-description {
        max-width: 38ch;
        margin-top: 16px;
        font-size: 14px;
    }

    .event-meta {
        margin-top: 21px;
    }

    .event-meta__pill {
        min-height: 39px;
        padding: 0 14px;
        font-size: 13px;
    }

    .event-form-side {
        min-height: auto;
    }

    .event-form-wrap {
        width: min(680px, calc(100% - 28px));
        padding: 34px 0 28px;
    }

    .form-header {
        margin-bottom: 26px;
    }

    .form-header h2 {
        font-size: 34px;
    }
}


@media (max-width: 560px) {

    .event-visual {
        min-height: 540px;
    }

    .event-visual__inner {
        min-height: 540px;
        padding: 18px 17px 34px;
    }

    .event-visual__image {
        background-position: 44% center;
    }

    .event-intro h1 {
        font-size: clamp(38px, 12vw, 52px);
    }

    .event-description {
        font-size: 16px;
    }

    .event-form-wrap {
        width: calc(100% - 20px);
        padding-top: 28px;
    }

    .form-header {
        padding: 0 7px;
    }

    .registration-form,
    .registration-success,
    .event-state {
        border-radius: 15px;
    }

    .form-section {
        padding: 25px 18px;
    }

    .section-head h3 {
        font-size: 23px;
    }

    .two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .field-row {
        display: block;
    }

    .field-row label,
    .two .field-row label {
        min-height: 34px;
        padding: 8px 13px;
        background: #e9e4de;
    }

    .field-row input {
        width: 100%;
        min-height: 48px;
        padding: 12px 13px;
    }

    .price-choice {
        gap: 10px;
        padding-left: 14px;
    }

    .price-choice__info strong {
        font-size: 16px;
    }

    .qty-control {
        grid-template-columns: 34px 42px 34px;
    }

    .qty-control input {
        width: 42px;
    }

    .booking-summary__total strong {
        font-size: 24px;
    }
}
.event-visual--default {
    background:
        radial-gradient(
            circle at 22% 18%,
            rgba(223, 108, 50, .58),
            transparent 34%
        ),
        radial-gradient(
            circle at 82% 78%,
            rgba(53, 104, 212, .28),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #252a31 0%,
            #171a1f 58%,
            #0e1013 100%
        );
}
.event-visual--empty {
     background:
        radial-gradient(
            circle at 22% 18%,
            rgba(223, 108, 50, .58),
            transparent 34%
        ),
        radial-gradient(
            circle at 82% 78%,
            rgba(53, 104, 212, .28),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #252a31 0%,
            #171a1f 58%,
            #0e1013 100%
        );
}
.event-visual--default .event-visual__image {
    display: none;
}