.wds-form-container {
    /* max-width: 400px; */
    /* margin: 40px auto; */
    /* padding: 30px 25px; */
    /* border: 1px solid #ddd; */
    /* border-radius: 12px; */
    /* background-color: #f9f9f9; */
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); */
    font-family: "IRANSans", sans-serif;
}

.wds-form-container h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.wds-form-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

#wds-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#wds-phone {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    direction: ltr;
}

#wds-submit-btn {
    padding: 12px;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#wds-submit-btn :hover {
    background-color: #218838;
}

#wds-response {
    margin-top: 10px;
    font-size: 14px;
    color: #d9534f;
    /* Error color */
    text-align: center;
}

/* Overlay */
#conditional-popup {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    padding: 15px;
    box-sizing: border-box;
}

/* Popup 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);
    position: relative;
    text-align: center;
    /* animation: scaleIn 0.25s ease; */
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}



/* Form container */
.wds-form-container h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #222;
}

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

#wds-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Input */
#wds-phone {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Button */
#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;
}

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

/* Response text */
#wds-response {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #0073aa;
}

/* موبایل */
@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;
    }
}

/* لایه پاپ‌آپ روی همه چیز */
#conditional-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

/* محتوا */
#conditional-popup .popup-content {
    position: relative;
    z-index: 1;
}

/* اگر یه لایه روی دکمه کلیک رو می‌قاپه، این کمک می‌کنه */
#conditional-popup::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
}
#popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-close img {
    width: 22px;
    height: 22px;
    pointer-events: none;
    /* مهم */
}