/* =========================================
   WAITLIST MODAL STYLES
   ========================================= */

/* Base Modal */
.waitlist-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.waitlist-modal.open {
    display: block;
}

.waitlist-modal__backdrop {
    position: absolute;
    inset: 0;
    background: #141413;
}

.waitlist-modal__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
}

.waitlist-modal__inner {
    max-width: 480px;
    width: 100%;
    animation: modalFadeIn 0.4s ease;
    background: transparent;
    padding: 0;
    border-radius: 0;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.waitlist-modal__close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(250, 249, 245, 0.2);
    background: transparent;
    font-size: 24px;
    color: #faf9f5;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
}

.waitlist-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Typography */
.waitlist-modal__title {
    font-family: var(--font-heading, "Inter", sans-serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    color: #faf9f5;
    margin-bottom: 12px;
    padding-right: 50px;
}

.waitlist-modal__subtitle {
    font-family: var(--font-heading, "Inter", sans-serif);
    font-size: 18px;
    color: rgba(250, 249, 245, 0.7);
    margin-bottom: 40px;
}

/* Form Styles */
.waitlist-form__group {
    margin-bottom: 28px;
}

.waitlist-form__label {
    display: block;
    font-family: var(--font-heading, "Inter", sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: rgba(250, 249, 245, 0.9);
    margin-bottom: 10px;
}

.waitlist-form__input {
    width: 100%;
    padding: 16px 18px;
    font-family: var(--font-heading, "Inter", sans-serif);
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #faf9f5;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.waitlist-form__input::placeholder {
    color: rgba(250, 249, 245, 0.4);
}

.waitlist-form__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.waitlist-form__radio-group,
.waitlist-form__checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.waitlist-form__radio,
.waitlist-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: var(--font-heading, "Inter", sans-serif);
    font-size: 15px;
    color: rgba(250, 249, 245, 0.9);
    cursor: pointer;
}

.waitlist-form__radio input,
.waitlist-form__checkbox input {
    margin-top: 3px;
    accent-color: #faf9f5;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.waitlist-form__other-input {
    margin-top: 14px;
}

.waitlist-form__submit {
    width: 100%;
    padding: 18px 32px;
    background: #faf9f5;
    color: #141413;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 16px;
}

.waitlist-form__submit:hover {
    background: #ffffff;
}

.waitlist-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success State */
.waitlist-modal__success {
    text-align: center;
    padding: 60px 0;
}

.waitlist-success__icon {
    width: 72px;
    height: 72px;
    background: rgba(102, 128, 11, 0.15);
    border: 2px solid #66800B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #66800B;
    margin: 0 auto 28px;
}

.waitlist-success__title {
    font-family: var(--font-heading, "Inter", sans-serif);
    font-size: 28px;
    font-weight: 600;
    color: #faf9f5;
    margin-bottom: 12px;
}

.waitlist-success__text {
    font-family: var(--font-heading, "Inter", sans-serif);
    font-size: 16px;
    color: rgba(250, 249, 245, 0.7);
}

/* =========================================
   MOBILE RESPONSIVE - Slide up card
   ========================================= */
@media (max-width: 640px) {
    .waitlist-modal__backdrop {
        background: rgba(0, 0, 0, 0.5);
    }

    .waitlist-modal__content {
        padding: 0;
        align-items: flex-end;
    }

    .waitlist-modal__inner {
        max-width: 100%;
        background: #faf9f5;
        padding: 24px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        animation: modalSlideUp 0.3s ease;
    }

    @keyframes modalSlideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .waitlist-modal__close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        font-size: 24px;
        background: transparent;
        color: #878580;
        border-color: rgba(20, 20, 19, 0.1);
    }

    .waitlist-modal__close:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #141413;
        border-color: rgba(20, 20, 19, 0.3);
    }

    /* Mobile Text Colors (Light Theme) */
    .waitlist-modal__title {
        color: #141413;
        font-size: 24px;
        padding-right: 40px;
    }

    .waitlist-modal__subtitle {
        color: #878580;
        font-size: 16px;
        margin-bottom: 24px;
    }

    .waitlist-form__label {
        color: #141413;
    }

    .waitlist-form__input {
        background: #ffffff;
        color: #141413;
        border-color: #e6e4d9;
    }

    .waitlist-form__input::placeholder {
        color: #aba9a5;
    }

    .waitlist-form__input:focus {
        border-color: #141413;
        background: #ffffff;
    }

    .waitlist-form__radio,
    .waitlist-form__checkbox {
        color: #3d3d3a;
    }

    .waitlist-form__radio input,
    .waitlist-form__checkbox input {
        accent-color: #141413;
    }

    .waitlist-form__submit {
        background: #141413;
        color: #faf9f5;
    }

    .waitlist-form__submit:hover {
        background: #2d2d2a;
    }

    .waitlist-success__title {
        color: #141413;
    }

    .waitlist-success__text {
        color: #878580;
    }
}
