/* hero background: swap this URL for your own photo (e.g. url("img/stage.png")) */
:root {
    --purple: #5b0f6e;
    --purple-deep: #2e0839;
    --lilac: #e9a7ff;
    --lilac-soft: #f6eafa;
    --ink: #1d1224;
    --line: #e6dcec;
    --muted: #6b5a74;
    /* --hero-img: url("https://assets.mixkit.co/videos/13192/13192-thumb-720-3.jpg"); */
    --hero-img: url("./img/stage.png");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.5;
    overflow-x: clip;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-text-size-adjust: 100%;
}

:focus-visible {
    outline: 3px solid var(--lilac);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

/* ---------- HERO ---------- */
.reg-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    min-height: clamp(260px, 36vw, 440px);
    padding: clamp(48px, 7vw, 90px) var(--gutter, clamp(14px, 4vw, 56px));
    overflow: hidden;
}

.reg-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hero-img) center / cover no-repeat;
}

.reg-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(46, 8, 57, .55), rgba(46, 8, 57, .8));
}

.reg-date {
    color: var(--lilac);
    font-size: clamp(.68rem, 1.1vw, .85rem);
    font-weight: 700;
    letter-spacing: .3em;
    margin-bottom: clamp(8px, 1.4vw, 16px);
}

.reg-hero h1 {
    font-size: clamp(2rem, 6.4vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.reg-sub {
    margin-top: clamp(12px, 2vw, 22px);
    font-size: clamp(.68rem, 1.2vw, .9rem);
    font-weight: 700;
    letter-spacing: .12em;
}

/* ---------- SCROLLING STRIP ---------- */
.reg-marquee {
    background: var(--purple);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: clamp(12px, 1.6vw, 18px) 0;
}

.reg-marquee .track {
    display: inline-flex;
    width: max-content;
    animation: regScroll 30s linear infinite;
}

.reg-marquee span {
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-style: italic;
    padding: 0 clamp(24px, 4vw, 56px);
}

@keyframes regScroll {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- FORM WRAPPER ---------- */
.reg {
    width: min(940px, calc(100% - clamp(32px, 8vw, 112px)));
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 100px);
}

/* ---------- PROGRESS ---------- */
.reg-progress {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 20px);
    margin-bottom: clamp(28px, 4vw, 48px);
}

.reg-progress li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    padding-top: clamp(10px, 1.4vw, 14px);
    border-top: 4px solid var(--line);
    color: var(--muted);
    font-size: clamp(.68rem, 1.1vw, .82rem);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: border-color .3s, color .3s;
}

.reg-progress b {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: clamp(24px, 3vw, 30px);
    height: clamp(24px, 3vw, 30px);
    border-radius: 50%;
    background: var(--lilac-soft);
    color: var(--purple);
    font-size: clamp(.72rem, 1vw, .85rem);
}

.reg-progress li.is-active,
.reg-progress li.is-done {
    border-top-color: var(--purple);
    color: var(--ink);
}

.reg-progress li.is-active b,
.reg-progress li.is-done b {
    background: var(--purple);
    color: #fff;
}

/* ---------- STEPS ---------- */
.step {
    border: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.6vw, 28px);
    animation: regFade .35s ease;
}

@keyframes regFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.step-title {
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--purple);
}

.step-title--sub {
    margin-top: clamp(14px, 2.4vw, 28px);
    padding-top: clamp(20px, 3vw, 32px);
    border-top: 1px solid var(--line);
}

/* ---------- FIELDS ---------- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.4vw, 28px) clamp(14px, 1.6vw, 20px);
}

.grid>* {
    min-width: 0;
}

.full {
    grid-column: 1 / -1;
}

.field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field>label,
.field>.lbl {
    font-size: clamp(.68rem, 1.1vw, .78rem);
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink);
}

.field label b {
    color: var(--purple);
}

.field small {
    font-size: clamp(.72rem, 1.1vw, .8rem);
    color: var(--muted);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    font: inherit;
    font-size: clamp(.92rem, 1.4vw, 1rem);
    color: var(--ink);
    min-height: clamp(52px, 5.4vw, 66px);
    padding: 0 clamp(14px, 1.8vw, 22px);
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: 6px;
    transition: border-color .2s, box-shadow .2s;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover {
    border-color: var(--purple);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(91, 15, 110, .14);
}

/* ---------- CHECKBOX OPTIONS (Google-Form style list) ---------- */
.opts {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.6vw, 16px);
    margin-top: 6px;
}

.opt {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.4vw, 16px);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(.92rem, 1.4vw, 1.05rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.opt input {
    flex-shrink: 0;
    width: clamp(20px, 2vw, 22px);
    height: clamp(20px, 2vw, 22px);
    accent-color: var(--purple);
    cursor: pointer;
}

.opt span {
    min-width: 0;
    transition: color .2s;
}

.opt:hover span {
    color: var(--purple);
}

/* ---------- "OTHER" TEXT LINE ---------- */
.opts .other-input {
    width: calc(100% - clamp(32px, 3.4vw, 38px));
    /* lines up under the option text */
    margin-left: clamp(32px, 3.4vw, 38px);
    min-height: clamp(44px, 4.6vw, 52px);
    animation: regFade .25s ease;
}

/* ---------- BUILD ROOMS ---------- */
.rooms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 1.4vw, 14px);
    margin-top: 4px;
}

.room {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 14px);
    padding: clamp(12px, 1.6vw, 18px);
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: 6px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    transition: border-color .2s, background .2s, transform .2s;
}

.room:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
}

.room input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.room-n {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: clamp(28px, 3.4vw, 34px);
    height: clamp(28px, 3.4vw, 34px);
    border-radius: 50%;
    background: var(--lilac-soft);
    color: var(--purple);
    font-weight: 800;
    font-size: clamp(.8rem, 1.2vw, .95rem);
}

.room strong {
    display: block;
    font-size: clamp(.78rem, 1.2vw, .9rem);
    font-weight: 800;
    letter-spacing: .02em;
}

.room em {
    display: block;
    font-style: normal;
    font-size: clamp(.72rem, 1.1vw, .84rem);
    color: var(--muted);
    font-weight: 500;
}

.room:has(input:checked) {
    border-color: var(--purple);
    background: var(--lilac-soft);
    box-shadow: 0 0 0 3px rgba(91, 15, 110, .14);
}

.room:has(input:checked) .room-n {
    background: var(--purple);
    color: #fff;
}

.room:has(input:focus-visible) {
    outline: 3px solid var(--lilac);
    outline-offset: 2px;
}

/* ---------- BUTTONS ---------- */
.reg-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: clamp(28px, 4vw, 44px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: clamp(48px, 5vw, 58px);
    padding: 0 clamp(24px, 3.4vw, 44px);
    font: inherit;
    font-size: clamp(.85rem, 1.3vw, 1rem);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

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

.btn-next {
    margin-left: auto;
    border: 1px solid var(--purple);
    background: var(--purple);
    color: #fff;
    box-shadow: 0 12px 24px rgba(91, 15, 110, .24);
}

.btn-next:hover {
    background: var(--purple-deep);
    border-color: var(--purple-deep);
}

.btn-next:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.btn-back {
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
}

.btn-back:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.reg-error {
    margin-top: 14px;
    text-align: right;
    color: #b3261e;
    font-size: clamp(.82rem, 1.2vw, .95rem);
    font-weight: 600;
}

/* ---------- SUCCESS ---------- */
.reg-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(18px, 2.6vw, 28px);
    padding: clamp(32px, 7vw, 80px) 0;
    animation: regFade .4s ease;
}

.reg-tick {
    display: grid;
    place-items: center;
    width: clamp(64px, 8vw, 88px);
    height: clamp(64px, 8vw, 88px);
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 0 10px var(--lilac-soft);
}

.reg-tick svg {
    width: 50%;
    height: 50%;
    fill: none;
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reg-success h2 {
    font-size: clamp(1.6rem, 4.4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--purple);
}

.reg-success .btn-next {
    margin-left: 0;
}

/* ---------- REQUIRED QUESTIONS ---------- */
.field .lbl b { color: var(--purple); }
.q-error { margin-top: 10px; color: #b3261e; font-size: clamp(.82rem, 1.2vw, .95rem); font-weight: 600; }

/* ---------- WHATSAPP POPUP ---------- */
.wa-modal {
    border: 0;
    border-radius: 12px;
    padding: clamp(28px, 5vw, 44px);
    width: min(460px, calc(100% - 32px));
    text-align: center;
    color: var(--ink);
    margin: auto;
}

.wa-modal::backdrop {
    background: rgba(46, 8, 57, .72);
}

.wa-modal[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: regFade .3s ease;
}

.wa-kicker {
    color: var(--purple);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.wa-modal h2 {
    font-size: clamp(1.3rem, 3.6vw, 1.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.wa-modal h2 span {
    color: var(--purple);
}

.wa-text {
    color: var(--muted);
    font-size: .95rem;
}

.wa-modal .btn-next {
    margin-left: 0;
    width: 100%;
}

.wa-close {
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    padding: 8px;
}

.wa-close:hover {
    color: var(--purple);
}

/* =====================================================
     MEDIA QUERIES
  ===================================================== */
@media (max-width: 800px) {

    .grid,
    .rooms {
        grid-template-columns: 1fr;
    }

    .reg-progress li span {
        display: none;
    }

    /* numbers only on small screens */
    .reg-progress li.is-active span {
        display: inline;
    }

    .reg-actions .btn {
        flex: 1;
    }

    .reg-error {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }

    .reg-marquee .track,
    .step,
    .reg-success,
    .wa-modal[open] {
        animation: none;
    }
}
