/* أنماط واجهة المستخدم لإضافة فودافون كاش */

/* النموذج الرئيسي */
.vcp-payment-form-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.vcp-payment-form-wrapper h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid #e60000;
    padding-bottom: 15px;
}

/* مجموعات النموذج */
.vcp-form-group {
    margin-bottom: 25px;
}

.vcp-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* خطط الاشتراك */
.vcp-plans {
    display: grid;
    gap: 15px;
}

.vcp-plan-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.vcp-plan-item:hover {
    border-color: #e60000;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.15);
}

.vcp-plan-item input[type="radio"] {
    display: none;
}

.vcp-plan-item input[type="radio"]:checked + .vcp-plan-label {
    color: #e60000;
}

.vcp-plan-item:has(input[type="radio"]:checked) {
    border-color: #e60000;
    background: #fff5f5;
}

.vcp-plan-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.vcp-plan-name {
    font-size: 16px;
    font-weight: 500;
}

.vcp-plan-price {
    font-size: 20px;
    color: #e60000;
    font-weight: bold;
}

/* معلومات المحفظة */
.vcp-wallet-info {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.vcp-wallet-info input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    background: #f9f9f9;
    color: #333;
}

.vcp-copy-btn {
    padding: 12px 24px;
    background: #e60000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.vcp-copy-btn:hover {
    background: #cc0000;
}

.vcp-copy-btn:active {
    transform: scale(0.98);
}

/* حقل رقم الهاتف */
#sender_phone {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#sender_phone:focus {
    outline: none;
    border-color: #e60000;
}

/* زر الإرسال */
.vcp-submit-btn {
    width: 100%;
    padding: 16px;
    background: #e60000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vcp-submit-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.vcp-submit-btn:active {
    transform: translateY(0);
}

.vcp-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* نص المساعدة */
.vcp-help-text {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* الرسائل */
.vcp-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    animation: slideIn 0.3s ease;
}

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

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

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

/* التحميل */
.vcp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e60000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

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

/* حالة الاشتراك */
.vcp-subscription-status {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 16px;
    font-weight: 500;
}

.vcp-status-active {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.vcp-status-inactive {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.vcp-status-icon {
    font-weight: bold;
    margin-left: 8px;
    font-size: 18px;
}

/* المحتوى المقيد */
.vcp-restricted-message {
    padding: 30px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.8;
}

.vcp-restricted-message a {
    color: #e60000;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.vcp-restricted-message a:hover {
    border-bottom-color: #e60000;
}

/* التوافق مع الجوال */
@media (max-width: 600px) {
    .vcp-payment-form-wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .vcp-wallet-info {
        flex-direction: column;
    }
    
    .vcp-copy-btn {
        width: 100%;
    }
    
    .vcp-plan-label {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .vcp-submit-btn {
        font-size: 16px;
        padding: 14px;
    }
}