/* فرم اصلی */
.wds-form-container {
    /* max-width: 400px; */
    font-family: "IRANSans", sans-serif;
}

/* تیتر و متن توضیح */
.wds-form-container h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: #222;
    text-align: center;
}

.wds-form-container p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 16px;
    text-align: center;
}

/* فرم */
#wds-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* اینپوت */
#wds-phone {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    direction: ltr;
}

/* دکمه */
#wds-submit-btn {
    width: 100%;
    padding: 12px;
    background: #e98300;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

#wds-submit-btn:hover {
    background: #ee9117;
}

/* متن پاسخ */
#wds-response {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #0073aa;
    text-align: center;
}

/* پس‌زمینهٔ تیره پاپ‌آپ */
#conditional-popup {
    position: fixed;
    inset: 0;
    display: none;
    /* با JS می‌ذاریش flex */
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    padding: 15px;
    box-sizing: border-box;
}

/* خود باکس پاپ‌آپ */
#conditional-popup .popup-content {
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    /* اگر خواستی انیمیشن را فعال کنی، این خط را باز کن */
    /* animation: scaleIn 0.25s ease; */
}

/* انیمیشن باز شدن پاپ‌آپ (همراه با مرکز بودن) */
@keyframes scaleIn {
    from {
        transform: translate(50%, -50%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translate(50%, -50%) scale(1);
        opacity: 1;
    }
}

/* دکمه بستن */
#popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

/* موبایل */
@media (max-width: 480px) {
    #conditional-popup .popup-content {
        max-width: 95%;
        padding: 20px 15px;
    }

    .wds-form-container h3 {
        font-size: 1.1rem;
    }

    .wds-form-container p {
        font-size: 0.9rem;
    }
}