/* دکمه خبرم کن */








.notify-me-container {
    margin: 15px 0;
}

.notify-me-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: none;
    width: 100%;
    max-width: 300px;
}

.notify-me-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(45deg, #e55a2b, #e8841a);
}

.notify-me-btn:active {
    transform: translateY(0);
}

/* مودال */
.notify-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
    direction: rtl;
    text-align: right;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaaaaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

.modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* فرم */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    direction: ltr;
    text-align: left;
}

.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.form-group input[type="tel"].invalid {
    border-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.submit-notify-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.submit-notify-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #218838, #1ea87a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.submit-notify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cancel-notify-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cancel-notify-btn:hover {
    background: #545b62;
    transform: translateY(-2px);
}

/* پیام‌ها */
#notify-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

#notify-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#notify-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#notify-message p {
    margin: 0;
    font-weight: bold;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-notify-btn,
    .cancel-notify-btn {
        width: 100%;
    }
}

/* انیمیشن لودینگ */
.submit-notify-btn:disabled::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* سازگاری با تم‌های مختلف وردپرس */
.woocommerce .notify-me-container {
    clear: both;
}

.single-product .notify-me-container {
    margin-top: 20px;
}

/* فونت فارسی */
.modal-content,
.notify-me-btn {
    font-family: 'Tahoma', 'IRANSans', 'Vazir', sans-serif;
}

.notify-me-container { margin: 15px 0; }

.notify-me-btn {

    color: white !important;

    border: none;

    padding: 12px 25px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;

    width: 100%;

    text-decoration: none;

    background: #b50808;

    border-radius: 50px;

    width: 100%;

}

.notify-me-btn:hover { background: linear-gradient(45deg, #e55a2b, #e8841a); }



.notify-modal {

    display: none;

    position: fixed;

    z-index: 10000;

    left: 0; top: 0;

    width: 100%; height: 100%;

    background-color: rgba(0, 0, 0, 0.6);

}

.modal-content {

    background-color: #ffffff;

    margin: 10% auto;

    padding: 30px;

    border-radius: 15px;

    width: 90%;

    max-width: 500px;

    direction: rtl;

    text-align: right;

}

.close-modal {

    color: #aaaaaa;

    float: left;

    font-size: 28px;

    font-weight: bold;

    cursor: pointer;

}

.form-group input[type="tel"] {

    width: 100%;

    padding: 12px 15px;

    border: 2px solid #e1e5e9;

    border-radius: 8px;

    font-size: 16px;

    direction: ltr;

}

.submit-notify-btn {

    background: #28a745;

    color: white;

    border: none;

    padding: 12px 30px;

    font-size: 16px;

    border-radius: 8px;

    cursor: pointer;

}

.cancel-notify-btn {

    background: #6c757d;

    color: white;

    border: none;

    padding: 12px 30px;

    font-size: 16px;

    border-radius: 8px;

    cursor: pointer;

}

