/* ============ WAITLIST POPUP STYLES ============ */

/* Overlay */
.wl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wl-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup container */
.wl-popup {
    background: var(--cream, #FAF7F2);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    box-shadow: 0 24px 80px rgba(26, 26, 46, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.wl-overlay.active .wl-popup {
    transform: scale(1) translateY(0);
}

/* Close button */
.wl-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(26, 26, 46, 0.05);
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-muted, #8A8A9A);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-close:hover {
    background: rgba(26, 26, 46, 0.1);
    color: var(--charcoal, #1A1A2E);
}

/* Coby image */
.wl-coby-container {
    text-align: center;
    margin-bottom: 20px;
}

.wl-coby {
    width: 120px;
    height: auto;
    animation: cobyBounce 0.6s ease;
}

@keyframes cobyBounce {
    0% { transform: scale(0.8) translateY(20px); opacity: 0; }
    50% { transform: scale(1.05) translateY(-5px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.wl-coby-celebrate {
    animation: cobyCelebrate 0.8s ease;
}

@keyframes cobyCelebrate {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Step content */
.wl-step {
    text-align: center;
}

.wl-step h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--charcoal, #1A1A2E);
    margin-bottom: 8px;
    line-height: 1.2;
}

.wl-subtitle {
    font-size: 15px;
    color: var(--text-secondary, #5A5A72);
    margin-bottom: 28px;
}

/* Options (Step 1) */
.wl-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.wl-option {
    cursor: pointer;
}

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

.wl-option-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 2px solid rgba(26, 26, 46, 0.08);
    border-radius: 12px;
    transition: all 0.2s;
}

.wl-option:hover .wl-option-box {
    border-color: rgba(26, 26, 46, 0.15);
    transform: translateX(4px);
}

.wl-option input:checked + .wl-option-box {
    border-color: var(--coral, #E8735A);
    background: rgba(212, 113, 92, 0.05);
}

.wl-option-icon {
    font-size: 20px;
}

.wl-option-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal, #1A1A2E);
}

/* Slider (Step 2) */
.wl-slider-container {
    margin-bottom: 28px;
}

.wl-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(26, 26, 46, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.wl-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--coral, #E8735A);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 113, 92, 0.4);
    transition: transform 0.2s;
}

.wl-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.wl-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--coral, #E8735A);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(212, 113, 92, 0.4);
}

.wl-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted, #8A8A9A);
}

.wl-slider-value {
    margin-top: 20px;
    text-align: center;
}

.wl-mrr-amount {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    color: var(--charcoal, #1A1A2E);
}

.wl-mrr-label {
    font-size: 16px;
    color: var(--text-muted, #8A8A9A);
}

/* Fit Score (Step 3) */
.wl-fit-score {
    margin-bottom: 24px;
}

.wl-fit-bar {
    height: 12px;
    background: rgba(26, 26, 46, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wl-fit-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage, #7BAE7F), var(--coral, #E8735A));
    border-radius: 6px;
    width: 0%;
    transition: width 0.8s ease;
}

.wl-fit-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.wl-fit-label.high {
    color: var(--coral, #E8735A);
}

.wl-fit-label.medium {
    color: var(--sage, #7BAE7F);
}

.wl-fit-label.low {
    color: var(--text-secondary, #5A5A72);
}

.wl-fit-percent {
    background: rgba(26, 26, 46, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

/* Email form */
.wl-email-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wl-email-label {
    font-size: 14px;
    color: var(--text-secondary, #5A5A72);
    text-align: left;
}

.wl-email-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(26, 26, 46, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wl-email-input:focus {
    border-color: var(--coral, #E8735A);
}

.wl-email-input.error {
    border-color: #e53e3e;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Buttons */
.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.wl-btn-primary {
    background: var(--charcoal, #1A1A2E);
    color: white;
    width: 100%;
}

.wl-btn-primary:hover:not(:disabled) {
    background: var(--charcoal-light, #2D2D44);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.2);
}

.wl-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wl-btn-secondary {
    background: transparent;
    color: var(--charcoal, #1A1A2E);
    border: 2px solid rgba(26, 26, 46, 0.12);
}

.wl-btn-secondary:hover {
    border-color: var(--charcoal, #1A1A2E);
}

.wl-btn-row {
    display: flex;
    gap: 12px;
}

.wl-btn-row .wl-btn-secondary {
    flex: 0 0 auto;
}

.wl-btn-row .wl-btn-primary {
    flex: 1;
}

/* Gold button for high fit */
.wl-btn-gold {
    background: linear-gradient(135deg, #E5A94E 0%, #D4915C 50%, #E5A94E 100%);
    background-size: 200% 200%;
    animation: goldShimmer 2s ease infinite;
    color: white;
    font-size: 16px;
    padding: 18px 32px;
    box-shadow: 0 4px 20px rgba(229, 169, 78, 0.4);
}

.wl-btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(229, 169, 78, 0.5);
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wl-btn-submit {
    width: 100%;
}

.wl-arrow {
    transition: transform 0.2s;
}

.wl-btn:hover .wl-arrow {
    transform: translateX(3px);
}

/* Progress dots */
.wl-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.wl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.15);
    transition: all 0.3s;
}

.wl-dot.active {
    background: var(--coral, #E8735A);
    width: 24px;
    border-radius: 4px;
}

.wl-dot.completed {
    background: var(--sage, #7BAE7F);
}

/* Success state (Step 4) */
.wl-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(123, 174, 127, 0.1);
    border: 1px solid rgba(123, 174, 127, 0.2);
    border-radius: 100px;
    margin: 24px 0;
}

.wl-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sage, #7BAE7F);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.wl-badge-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal, #1A1A2E);
}

/* Responsive */
@media (max-width: 540px) {
    .wl-popup {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .wl-step h2 {
        font-size: 24px;
    }

    .wl-coby {
        width: 100px;
    }

    .wl-mrr-amount {
        font-size: 28px;
    }

    .wl-btn-row {
        flex-direction: column;
    }
}
