/* ===== WAITLIST - TYPEFORM STYLE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --wl-bg: #FAFAFA;
    --wl-bg-grid: rgba(0,0,0,0.04);
    --wl-text: #0D0D0D;
    --wl-text-muted: #7A7A7A;
    --wl-accent: #2f8a6c;
    --wl-accent-hover: #246e57;
    --wl-accent-contrast: #ffffff;
    --wl-option-bg: #ffffff;
    --wl-option-border: rgba(0,0,0,0.12);
    --wl-option-hover: #f2f2f2;
    --wl-option-selected-bg: rgba(47,138,108,0.1);
    --wl-option-selected-border: var(--wl-accent);
    --wl-input-border: rgba(0,0,0,0.2);
    --wl-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --wl-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--wl-font);
    background: var(--wl-bg);
    color: var(--wl-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image:
        linear-gradient(var(--wl-bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--wl-bg-grid) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== LOGO ===== */
.wl-logo {
    position: fixed;
    top: 24px;
    left: 28px;
    text-decoration: none;
    z-index: 100;
}

.wl-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--wl-text);
}

.wl-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

/* ===== PROGRESS BAR ===== */
.wl-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.08);
    z-index: 100;
}

.wl-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--wl-accent);
    transition: width var(--wl-transition);
}

/* ===== FORM CONTAINER ===== */
.wl-form {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* ===== SCREENS ===== */
.wl-screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wl-screen.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wl-screen.exit-up {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
}

/* ===== WELCOME ===== */
.wl-welcome {
    text-align: center;
    max-width: 500px;
}

.wl-welcome-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.wl-welcome h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.wl-welcome-sub {
    color: var(--wl-text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

.wl-time {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--wl-text-muted);
}

/* ===== QUESTION ===== */
.wl-question {
    max-width: 600px;
    width: 100%;
}

.wl-q-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--wl-accent);
    color: var(--wl-accent-contrast);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.wl-question h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.wl-q-desc {
    color: var(--wl-text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-style: italic;
}

.wl-q-desc a {
    color: var(--wl-accent);
    text-decoration: underline;
}

/* ===== TEXT INPUT ===== */
.wl-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--wl-input-border);
    color: var(--wl-text);
    font-family: var(--wl-font);
    font-size: 1.05rem;
    padding: 12px 0;
    margin-top: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.wl-input:focus {
    border-bottom-color: var(--wl-accent);
}

.wl-input::placeholder {
    color: rgba(0,0,0,0.3);
}

.wl-textarea {
    resize: none;
    border: 1px solid var(--wl-input-border);
    border-radius: 8px;
    padding: 12px 16px;
    min-height: 100px;
}

.wl-textarea:focus {
    border-color: var(--wl-accent);
}

/* ===== FIELD GROUP ===== */
.wl-field-group {
    margin-top: 20px;
}

.wl-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wl-text-muted);
    margin-bottom: 0;
}

.wl-field-group .wl-input {
    margin-top: 4px;
}

/* ===== OPTIONS ===== */
.wl-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.wl-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--wl-option-bg);
    border: 1px solid var(--wl-option-border);
    border-radius: 8px;
    color: var(--wl-text);
    font-family: var(--wl-font);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    max-width: 420px;
}

.wl-option:hover {
    background: var(--wl-option-hover);
    border-color: rgba(0,0,0,0.2);
}

.wl-option.selected {
    background: var(--wl-option-selected-bg);
    border-color: var(--wl-option-selected-border);
}

.wl-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--wl-option-border);
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.2s;
}

.wl-option.selected .wl-option-letter {
    background: var(--wl-accent);
    border-color: var(--wl-accent);
    color: var(--wl-accent-contrast);
}

/* ===== BUTTONS ===== */
.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    font-family: var(--wl-font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.wl-btn-start {
    background: var(--wl-accent);
    color: var(--wl-accent-contrast);
    padding: 14px 40px;
    font-size: 1rem;
    border-radius: 8px;
}

.wl-btn-start:hover {
    background: var(--wl-accent-hover);
}

.wl-btn-ok,
.wl-btn-submit {
    background: var(--wl-accent);
    color: var(--wl-accent-contrast);
    margin-top: 24px;
}

.wl-btn-ok:hover,
.wl-btn-submit:hover {
    background: var(--wl-accent-hover);
}

/* ===== NAVIGATION ARROWS ===== */
.wl-nav {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 2px;
    z-index: 100;
}

.wl-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.12);
    color: var(--wl-text);
    cursor: pointer;
    transition: all 0.2s;
}

.wl-nav-btn:first-child {
    border-radius: 6px 6px 0 0;
}

.wl-nav-btn:last-child {
    border-radius: 0 0 6px 6px;
}

.wl-nav-btn:hover {
    background: rgba(0,0,0,0.1);
}

.wl-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== ERROR STATE ===== */
.wl-input.error {
    border-bottom-color: #e55;
}

.wl-error-msg {
    color: #e55;
    font-size: 0.8rem;
    margin-top: 6px;
}

.wl-options.error {
    outline: 1px solid #e55;
    outline-offset: 8px;
    border-radius: 8px;
}

/* ===== LOADING STATE ===== */
.wl-btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .wl-welcome h1 {
        font-size: 1.4rem;
    }

    .wl-question h2 {
        font-size: 1.1rem;
    }

    .wl-option {
        max-width: 100%;
    }

    .wl-logo {
        top: 16px;
        left: 16px;
    }

    .wl-nav {
        bottom: 16px;
        right: 16px;
    }

    .wl-screen {
        padding: 70px 20px 50px;
    }
}
