/* assets/styles/payment-modal.css */

@import url('global.css'); 

/* ظرف اصلی مودال - پس‌زمینه شیشه‌ای تیره */
.payment-modal-overlay {
    font-family: 'Samim', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none; /* در حالت عادی مخفی است */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* نمایش مودال هنگام فعال بودن */
.payment-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* بدنه مودال */
.payment-modal-container {
    font-family: 'Samim', sans-serif;
    background: #ffffff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 25px;
    direction: rtl;
    text-align: right;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.payment-modal-overlay.active .payment-modal-container {
    transform: translateY(0);
}

/* هدر مودال */
.payment-modal-header {
    font-family: 'Samim', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.payment-modal-header h3 {
    font-family: 'Samim', sans-serif;
    color: #4a3728;
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

/* دکمه ضربدر */
.payment-modal-close {
    font-family: 'Samim', sans-serif;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.payment-modal-close:hover {
    color: #ef4444;
}

/* استایل فیلدهای فرم */
.payment-form-group {
    font-family: 'Samim', sans-serif;
    margin-bottom: 18px;
}

.payment-form-group label {
    display: block;
    font-family: 'Samim', sans-serif;
    font-weight: bold;
    margin-bottom: 8px;
    color: #4a3728;
    font-size: 0.9rem;
}

.payment-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    text-align: center;
    font-family: 'Samim', sans-serif;
    font-size: 1.1rem;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}

.payment-input:focus {
    border-color: #4a3728;
    box-shadow: 0 0 0 3px rgba(74, 55, 40, 0.1);
}

/* دکمه‌ها */
.payment-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.payment-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Samim', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.payment-btn-submit {
    background-color: #4a3728;
    color: white;
}

.payment-btn-submit:hover {
    background-color: #3d2d21;
    transform: translateY(-1px);
}

.payment-btn-cancel {
    background-color: #f1f5f9;
    color: #64748b;
}

.payment-btn-cancel:hover {
    background-color: #e2e8f0;
    color: #475569;
}

/* غیرفعال کردن دکمه در حال ارسال */
.payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
