/* Waitlist Modal — Gain.io */

.wl-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wl-overlay.is-open {
    display: flex;
}

.wl-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    padding: 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.wl-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.wl-close:hover { color: #374151; }

.wl-state { display: none; }
.wl-state.is-active { display: block; }

.wl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F3FDE2;
    color: #1D1F1E;
    border: 1px solid #E4FFBD;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.wl-title {
    font-size: 48px;
    font-weight: 400;
    color: #1D1F1E;
    line-height: 1.5;
    padding-bottom: 16px;
}

.wl-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #5C5D76;
    line-height: 1.6;
    padding-bottom: 40px;
}

.wl-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    padding: 16px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.wl-input-wrap:focus-within { border-color: #149365; }
.wl-input-wrap svg { flex-shrink: 0; color: #9ca3af; }

.wl-email-input {
    flex: 1;
    border: none !important;
    outline: none;
    font-size: 15px;
    color: #111827;
    padding: 14px 0;
    background: transparent;
}

.wl-email-input::placeholder { color: #9ca3af; }

.wl-error {
    display: none;
    font-size: 13px;
    color: #dc2626;
    text-align: left;
    margin: -8px 0 12px 4px;
}

.wl-error.is-visible { display: block; }

.wl-submit-btn {
    width: 100%;
    background: #149365;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, opacity 0.2s;
    margin-bottom: 24px;
    min-height: 56px;
    box-sizing: border-box;
}

.wl-submit-btn:hover { background: #0f7a55; }
.wl-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.wl-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wl-spin 0.7s linear infinite;
}

.wl-submit-btn.is-loading .wl-spinner { display: inline-block; }
.wl-submit-btn.is-loading .wl-btn-text,
.wl-submit-btn.is-loading .wl-btn-arrow { display: none; }

@keyframes wl-spin { to { transform: rotate(360deg); } }

.wl-skip {
    background: none;
    border: none;
    color: #5C5D76;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.wl-skip:hover { color: #1D1F1E; }

.wl-recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.wl-confirm-icon {
    width: 128px;
    height: 128px;
    margin: 0 auto 16px;
}

.wl-confirm-title {
    font-size: 48px;
    font-weight: 400;
    color: #1D1F1E;
    line-height: 1.5;
    padding-bottom: 16px;
}

.wl-confirm-sub {
    font-size: 16px;
    font-weight: 400;
    color: #5C5D76;
    line-height: 1.6;
    padding-bottom: 40px !important;
}

.wl-close-link {
    background: none;
    border: none;
    color: #5C5D76;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.wl-close-link:hover { color: #1D1F1E; }

.wl-already-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-already-title {
    font-size: 48px;
    font-weight: 400;
    color: #1D1F1E;
    line-height: 1.5;
    padding-bottom: 16px;
}

.wl-already-sub {
    font-size: 16px;
    font-weight: 400;
    color: #5C5D76;
    line-height: 1.6;
    padding-bottom: 40px !important;
}

.wl-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #149365;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.wl-trigger-btn:hover { background: #0f7a55; transform: translateY(-1px); }
.wl-trigger-btn:active { transform: translateY(0); }

@media (max-width: 540px) {
    .wl-modal { padding: 30px; }
    .wl-title { font-size: 26px; }
    .wl-confirm-title, .wl-already-title { font-size: 24px; }
}
