/**
 * استایل‌های درگاه پرداخت کارت به کارت سیت‌آپ
 * 
 * @package Cart_To_Card_Siteup
 * @version 1.0.0
 */

/* تنظیمات کلی */
.cart-to-card-payment-page {
    direction: rtl;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.cart-to-card-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* هدر صفحه */
.cart-to-card-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.cart-to-card-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.order-info {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* محتوای اصلی */
.cart-to-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .cart-to-card-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* بخش کارت بانکی */
.bank-card-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bank-card-section h2 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* طراحی کارت بانکی */
.bank-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.bank-card:hover {
    transform: translateY(-5px);
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.bank-logo {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

.bank-name {
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card-body {
    position: relative;
    z-index: 2;
}

.card-number-section,
.cardholder-section,
.sheba-section {
    margin-bottom: 20px;
}

.card-number-section label,
.cardholder-section label,
.sheba-section label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.8;
    font-weight: 500;
}

.card-number-display,
.sheba-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.card-number,
.sheba-number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    flex: 1;
}

.cardholder-name {
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* دکمه کپی */
.copy-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* بخش خلاصه سفارش */
.order-summary-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.order-summary-section h2 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.item-quantity {
    margin: 0 10px;
    color: #666;
    font-size: 0.9rem;
}

.item-total {
    font-weight: 600;
    color: #2a5298;
}

.order-total {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.2rem;
}

/* بخش آپلود رسید */
.receipt-upload-section {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.receipt-upload-section h2 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* فرم */
#paymentProofForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    #paymentProofForm {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="file"] {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.file-info {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* دکمه ارسال */
.form-actions {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* پیام‌های سیستم */
.system-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* استایل‌های اضافی برای صفحه تشکر */
.cart-to-card-thankyou {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.cart-to-card-thankyou h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cart-to-card-thankyou p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cart-to-card-thankyou .button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.cart-to-card-thankyou .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* استایل‌های ایمیل */
.cart-to-card-email-instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.cart-to-card-email-instructions h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cart-to-card-email-instructions p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cart-to-card-email-instructions a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.cart-to-card-email-instructions a:hover {
    text-decoration: underline;
}

/* استایل‌های ادمین */
.cart-to-card-payment-proof {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.cart-to-card-payment-proof h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.cart-to-card-payment-proof p {
    margin-bottom: 10px;
    color: #555;
}

.cart-to-card-payment-proof strong {
    color: #333;
    font-weight: 600;
}

.cart-to-card-payment-proof a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.cart-to-card-payment-proof a:hover {
    text-decoration: underline;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .cart-to-card-container {
        padding: 15px;
    }
    
    .cart-to-card-header h1 {
        font-size: 2rem;
    }
    
    .bank-card {
        padding: 20px;
    }
    
    .card-number,
    .sheba-number {
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
