/* =========================================================
   Guest application page (guest.html)
   Builds on style.css — same tokens, same brutalist language
   ========================================================= */

.guest-page {
    --line: #2a2a2a;
    --line-strong: #444;
    --panel: #070707;
    --error: #FE2C55;
}

/* Top progress bar */
.guest-progress {
    position: fixed;
    top: var(--livebar-h);
    left: 0;
    right: 0;
    height: 3px;
    background: #111;
    z-index: 200;
}

.guest-progress-fill {
    display: block;
    height: 100%;
    background: var(--text-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hero */
.guest-hero {
    min-height: 100vh;
    padding: 7rem 5% 4rem;
}

.guest-hero-grid {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
    align-items: center;
}

.guest-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.rec-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FE2C55;
    animation: recBlink 1.4s steps(1, end) infinite;
}

@keyframes recBlink {
    50% { opacity: 0.25; }
}

/* Recording monitor (hero, right side) */
.guest-monitor {
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 100% 4px,
        #050505;
    position: relative;
    transition-delay: 0.15s;
}

.guest-monitor::before,
.guest-monitor::after {
    /* viewfinder corners */
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-main);
    pointer-events: none;
}

.guest-monitor::before {
    top: -6px;
    left: -6px;
    border-right: none;
    border-bottom: none;
}

.guest-monitor::after {
    bottom: -6px;
    right: -6px;
    border-left: none;
    border-top: none;
}

.monitor-bar,
.monitor-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.monitor-bar {
    border-bottom: 1px solid var(--line);
}

.monitor-foot {
    border-top: 1px solid var(--line);
}

.monitor-rec {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
}

.monitor-time {
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
}

.monitor-seat strong {
    color: var(--text-main);
}

.monitor-questions {
    list-style: none;
    padding: 1.75rem 1.5rem;
    counter-reset: q;
}

.monitor-questions li {
    counter-increment: q;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.55rem 0 0.55rem 1rem;
    border-left: 3px solid transparent;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.15rem, 1.7vw, 1.75rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #2e2e2e;
    transition: color 0.5s ease, border-color 0.5s ease, padding-left 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.monitor-questions li::before {
    content: counter(q, decimal-leading-zero);
    font-size: 0.55em;
    letter-spacing: 1px;
    color: inherit;
    opacity: 0.8;
}

.monitor-questions li.is-active {
    color: var(--text-main);
    border-left-color: #FE2C55;
    padding-left: 1.4rem;
}

/* About / How it works */
.guest-about {
    padding: 8rem 2rem;
    border-bottom: 1px solid #111;
}

.guest-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.guest-lede {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #aaa;
    max-width: 34rem;
}

.guest-steps {
    list-style: none;
    border-top: 1px solid var(--line);
}

.guest-steps li {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.guest-step-num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
    min-width: 3.5rem;
}

.guest-steps h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.guest-steps p {
    color: #999;
    line-height: 1.55;
}

.guest-watch {
    margin-top: 6rem;
}

.guest-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Apply section */
.guest-apply {
    padding: 8rem 2rem 6rem;
}

.guest-apply-head .section-subtext {
    font-size: 1rem;
}

.guest-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 5rem;
    align-items: start;
}

/* Sticky section index */
.guest-index {
    position: sticky;
    top: 7rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
}

.guest-index a {
    display: flex;
    gap: 0.9rem;
    padding: 0.7rem 0 0.7rem 1.25rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.guest-index a span {
    font-family: var(--font-heading);
    font-weight: 900;
}

.guest-index a:hover,
.guest-index a.is-current {
    color: var(--text-main);
    border-left-color: var(--text-main);
}

.guest-index-count {
    margin-top: 2rem;
    padding-left: 1.25rem;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.guest-index-count strong {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Form */
.guest-form {
    max-width: 820px;
}

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

.guest-fieldset {
    border: none;
    padding: 0 0 5rem;
    margin: 0 0 5rem;
    border-bottom: 1px solid #151515;
    scroll-margin-top: 6rem;
}

.guest-fieldset:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.guest-fieldset legend {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1rem;
    padding: 0;
}

.guest-fieldset legend span {
    font-size: 0.45em;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
    letter-spacing: 1px;
}

.guest-intro {
    color: #8a8a8a;
    line-height: 1.6;
    max-width: 40rem;
    margin-bottom: 3rem;
}

.guest-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.field {
    margin-bottom: 2.5rem;
}

.field label,
.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #cfcfcf;
    margin-bottom: 0.6rem;
}

.field em,
.check em {
    font-style: normal;
    color: var(--text-muted);
}

.field-hint {
    font-size: 0.9rem;
    color: #777;
    margin: -0.2rem 0 0.8rem;
    line-height: 1.5;
}

.field-note {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.55;
    margin-top: -1.25rem;
    margin-bottom: 2.5rem;
}

.field .field-note {
    margin-top: 0.75rem;
    margin-bottom: 0;
    color: #bbb;
    border-left: 2px solid var(--line-strong);
    padding-left: 0.9rem;
}

.guest-form input[type="text"],
.guest-form input[type="email"],
.guest-form input[type="tel"],
.guest-form input[type="url"],
.guest-form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    border-radius: 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.15rem;
    padding: 0.75rem 0;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.guest-form select {
    cursor: pointer;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='square'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
}

.guest-form select option {
    background: #0a0a0a;
    color: var(--text-main);
}

.guest-form select:invalid,
.guest-form select.is-empty {
    color: #555;
}

.guest-form textarea {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 1rem 1.1rem;
    resize: vertical;
    min-height: 6rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.guest-form input::placeholder,
.guest-form textarea::placeholder {
    color: #444;
}

.guest-form input:focus,
.guest-form select:focus {
    border-bottom-color: var(--text-main);
}

.guest-form textarea:focus {
    border-color: var(--text-main);
    background: #0b0b0b;
}

.field-count {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #666;
    margin-top: 0.5rem;
    text-align: right;
}

/* Pill choices (radio / checkbox groups) */
.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.choice {
    position: relative;
    cursor: pointer;
}

.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.choice span {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border: 1px solid #3a3a3a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #aaa;
    transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    user-select: none;
}

.choice:hover span {
    border-color: var(--text-main);
    color: var(--text-main);
}

.choice input:checked + span {
    background: var(--text-main);
    border-color: var(--text-main);
    color: var(--bg-dark);
    box-shadow: 4px 4px 0 #333;
}

.choice input:focus-visible + span {
    outline: 2px solid var(--text-main);
    outline-offset: 3px;
}

/* Consent checkboxes */
.check {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    cursor: pointer;
    line-height: 1.55;
    color: #cfcfcf;
}

.check input {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 1px solid #555;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.check input::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bg-dark);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.check input:checked {
    background: var(--text-main);
    border-color: var(--text-main);
}

.check input:checked::after {
    transform: scale(1);
}

.check input:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 3px;
}

.guest-fieldset .check + .field-note,
#s-consent .field-note {
    margin-top: 0;
}

/* Errors */
.has-error label,
.has-error .field-label {
    color: var(--error);
}

.has-error input[type="text"],
.has-error input[type="email"],
.has-error select {
    border-bottom-color: var(--error) !important;
}

.has-error textarea {
    border-color: var(--error) !important;
}

.has-error .choice span,
.check.has-error input {
    border-color: var(--error);
}

.check.has-error span {
    color: var(--error);
}

.guest-error {
    border: 1px solid var(--error);
    color: var(--error);
    padding: 1rem 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.guest-submit {
    font-size: 1.1rem;
    padding: 1.5rem 2.5rem;
}

.guest-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Responsive */
@media (max-width: 1100px) {
    .guest-hero-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 900px) {
    .guest-hero {
        padding: 7rem 2rem 4rem;
    }

    .guest-hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .guest-monitor {
        max-width: 640px;
    }
}

@media (max-width: 1100px) {
    .guest-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .guest-index {
        display: none;
    }

    .guest-form {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .guest-about,
    .guest-apply {
        padding: 5rem 1.25rem;
    }

    .guest-about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .guest-watch {
        margin-top: 4rem;
    }

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

    .guest-fieldset {
        padding-bottom: 3.5rem;
        margin-bottom: 3.5rem;
    }

    .guest-kicker {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .guest-steps li {
        gap: 1.25rem;
    }

    .guest-step-num {
        font-size: 2rem;
        min-width: 2.75rem;
    }

    .choice {
        flex: 1 1 auto;
    }

    .choice span {
        display: block;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .guest-hero {
        padding: 6.5rem 1.25rem 3.5rem !important;
    }

    .monitor-bar,
    .monitor-foot {
        padding: 0.85rem 1rem;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .monitor-ep {
        display: none;
    }

    .monitor-questions {
        padding: 1.25rem 1rem;
    }

    .monitor-questions li {
        font-size: 1.1rem;
        padding-left: 0.75rem;
    }

    .monitor-questions li.is-active {
        padding-left: 1rem;
    }
}

@supports (paint-order: stroke fill) {
    /* Clean outlined numbers (hides letter-overlap lines) */
    .guest-step-num,
    .guest-fieldset legend span {
        color: var(--bg-dark);
        -webkit-text-stroke: 2px var(--text-main);
        paint-order: stroke fill;
    }
}
