/* ═══════════════════════════════════════════════════════════════
   Wachtlijst Tickets — Frontend Styles
   Matching Het Klein Toneel dark blue / purple theme
═══════════════════════════════════════════════════════════════ */

:root {
    --wlt-primary:       #4f46e5;
    --wlt-primary-dark:  #3730a3;
    --wlt-primary-light: #e0e7ff;
    --wlt-bg-dark:       #1e1b4b;
    --wlt-bg-mid:        #312e81;
    --wlt-accent:        #818cf8;
    --wlt-text:          #fff;
    --wlt-muted:         #c7d2fe;
    --wlt-radius:        12px;
    --wlt-shadow:        0 24px 80px rgba(0,0,0,0.5);
    --wlt-transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Button ──────────────────────────────────────────────────── */
.wlt-wrapper {
    margin: 20px 0;
}

.wlt-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--wlt-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background var(--wlt-transition), transform var(--wlt-transition), box-shadow var(--wlt-transition);
    box-shadow: 0 4px 16px rgba(79,70,229,0.35);
}

.wlt-open-btn:hover {
    background: var(--wlt-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.45);
}

.wlt-open-btn:active {
    transform: translateY(0);
}

.wlt-open-btn svg {
    flex-shrink: 0;
}

/* ── Overlay ─────────────────────────────────────────────────── */
.wlt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 40, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--wlt-transition);
}

.wlt-modal-overlay.wlt-visible {
    opacity: 1;
}

/* ── Modal ───────────────────────────────────────────────────── */
.wlt-modal {
    background: var(--wlt-bg-dark);
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: var(--wlt-radius);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--wlt-shadow);
    transform: translateY(20px) scale(0.98);
    transition: transform var(--wlt-transition);
    scrollbar-width: thin;
    scrollbar-color: var(--wlt-primary) transparent;
}

.wlt-modal-overlay.wlt-visible .wlt-modal {
    transform: translateY(0) scale(1);
}

/* ── Close ───────────────────────────────────────────────────── */
.wlt-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--wlt-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--wlt-transition), color var(--wlt-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.wlt-modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ── Modal header ────────────────────────────────────────────── */
.wlt-modal-header {
    padding: 40px 36px 24px;
    text-align: center;
    background: linear-gradient(160deg, var(--wlt-bg-mid) 0%, var(--wlt-bg-dark) 100%);
    border-radius: var(--wlt-radius) var(--wlt-radius) 0 0;
    border-bottom: 1px solid rgba(129, 140, 248, 0.15);
}

.wlt-modal-icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}

.wlt-modal-header h2 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wlt-modal-subtitle {
    color: var(--wlt-muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.wlt-modal-subtitle strong {
    color: var(--wlt-accent);
}

/* ── Form ────────────────────────────────────────────────────── */
.wlt-form {
    padding: 28px 36px 36px;
}

.wlt-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.wlt-field label {
    color: var(--wlt-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.wlt-required {
    color: #f87171;
}

.wlt-form input[type="text"],
.wlt-form input[type="email"],
.wlt-form input[type="tel"] {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 11px 14px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--wlt-transition), background var(--wlt-transition), box-shadow var(--wlt-transition);
    outline: none;
    font-family: inherit;
}

.wlt-form input::placeholder {
    color: rgba(199, 210, 254, 0.3);
}

.wlt-form input:focus {
    border-color: var(--wlt-accent);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.wlt-form input.wlt-error {
    border-color: #f87171;
}

/* ── Checkbox ────────────────────────────────────────────────── */
.wlt-checkbox-field {
    margin-bottom: 20px;
}

.wlt-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

.wlt-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wlt-checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(129, 140, 248, 0.4);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    margin-top: 1px;
    transition: all var(--wlt-transition);
    position: relative;
}

.wlt-checkbox-label input[type="checkbox"]:checked + .wlt-checkbox-box {
    background: var(--wlt-primary);
    border-color: var(--wlt-primary);
}

.wlt-checkbox-label input[type="checkbox"]:checked + .wlt-checkbox-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.wlt-checkbox-label input[type="checkbox"]:focus + .wlt-checkbox-box {
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.wlt-checkbox-text {
    line-height: 1.5;
    color: var(--wlt-muted);
}

.wlt-checkbox-text strong {
    color: var(--wlt-accent);
}

/* ── Privacy notice ──────────────────────────────────────────── */
.wlt-privacy-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(199, 210, 254, 0.5);
    font-size: 11px;
    margin-bottom: 20px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border: 1px solid rgba(129, 140, 248, 0.1);
}

.wlt-privacy-notice svg {
    flex-shrink: 0;
    color: var(--wlt-accent);
}

/* ── Submit ──────────────────────────────────────────────────── */
.wlt-form-actions {
    margin-top: 4px;
}

.wlt-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--wlt-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--wlt-transition), transform var(--wlt-transition), box-shadow var(--wlt-transition);
    box-shadow: 0 4px 16px rgba(79,70,229,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.wlt-submit-btn:hover:not(:disabled) {
    background: var(--wlt-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.5);
}

.wlt-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Spinner ─────────────────────────────────────────────────── */
@keyframes wlt-spin {
    to { transform: rotate(360deg); }
}

.wlt-spin {
    animation: wlt-spin 0.8s linear infinite;
}

/* ── Form message ────────────────────────────────────────────── */
.wlt-form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.wlt-form-message.wlt-msg-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fca5a5;
}

/* ── Success state ───────────────────────────────────────────── */
.wlt-success-state {
    padding: 48px 36px;
    text-align: center;
}

.wlt-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(79, 70, 229, 0.2);
    border: 2px solid var(--wlt-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--wlt-accent);
    margin: 0 auto 20px;
    animation: wlt-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes wlt-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.wlt-success-state h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 10px;
}

.wlt-success-state p {
    color: var(--wlt-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.wlt-success-state p strong {
    color: var(--wlt-accent);
}

.wlt-close-success {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: var(--wlt-accent);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--wlt-transition);
    font-family: inherit;
}

.wlt-close-success:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: var(--wlt-accent);
}

/* ── Scrollbar ───────────────────────────────────────────────── */
.wlt-modal::-webkit-scrollbar {
    width: 4px;
}
.wlt-modal::-webkit-scrollbar-track {
    background: transparent;
}
.wlt-modal::-webkit-scrollbar-thumb {
    background: var(--wlt-primary);
    border-radius: 2px;
}

/* ── Body lock ───────────────────────────────────────────────── */
body.wlt-locked {
    overflow: hidden;
}
