/**
 * Payment Information Page Styles
 * Bank transfer details and payment instructions
 */

/* Hero Section */
.payment-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.payment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.payment-hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #c89e4a 0%, #d4af37 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(200, 158, 74, 0.3);
}

.payment-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.payment-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Bank Accounts Section */
.bank-accounts-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.bank-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Bank Card */
.bank-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e2e8f0;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.bank-card.featured {
    border-color: #d4af37;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.2);
}

.bank-card.featured:hover {
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.3);
}

/* Bank Badge */
.bank-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #64748b;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bank-badge.primary {
    background: linear-gradient(135deg, #c89e4a 0%, #d4af37 100%);
}

/* Bank Header */
.bank-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.bank-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.bank-logo.secondary {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.bank-logo.tertiary {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.bank-info {
    flex: 1;
}

.bank-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.bank-name-ar {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 5px;
    direction: rtl;
}

.bank-abbr {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Account Details */
.account-details {
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.detail-row:hover {
    background: #f1f5f9;
}

.detail-row.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
}

.detail-row.highlight:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.detail-label i {
    font-size: 18px;
    color: #c89e4a;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copyable {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    user-select: all;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.copyable.large {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.copyable.iban {
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.copy-btn {
    background: #1e3a5f;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.copy-btn:hover {
    background: #2c5282;
    transform: scale(1.05);
}

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

.copy-btn.copied {
    background: #10b981;
}

.copy-btn.copied i::before {
    content: '\f00c'; /* FontAwesome check icon */
}

/* QR Code Section */
.qr-code-section {
    text-align: center;
    padding-top: 20px;
    border-top: 2px dashed #e2e8f0;
}

.qr-code-image {
    width: 220px;
    height: 220px;
    margin: 0 auto 15px;
    border: 4px solid #1e3a5f;
    border-radius: 15px;
    padding: 10px;
    background: white;
}

.qr-label {
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-label i {
    color: #c89e4a;
    font-size: 18px;
}

/* Payment Instructions */
.payment-instructions {
    padding: 80px 0;
    background: white;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    text-align: center;
    padding: 40px 30px;
    background: #f8fafc;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.instruction-card:hover {
    background: white;
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.instruction-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c89e4a 0%, #d4af37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(200, 158, 74, 0.3);
}

.instruction-icon {
    font-size: 48px;
    color: #1e3a5f;
    margin: 30px 0 20px;
}

.instruction-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.instruction-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Payment Notes */
.payment-notes {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.notes-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.notes-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notes-card h3 i {
    font-size: 2rem;
    color: #c89e4a;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.note-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #c89e4a;
}

.note-item i {
    font-size: 28px;
    color: #10b981;
    flex-shrink: 0;
}

.note-item strong {
    display: block;
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.note-item p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Confirmation CTA */
.confirmation-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.confirmation-cta .cta-card {
    text-align: center;
    color: white;
}

.confirmation-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.confirmation-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Toast Notification */
.copy-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.copy-toast.show {
    bottom: 40px;
}

.copy-toast i {
    font-size: 24px;
}

/* Mobily Pay Section */
.mobily-pay-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.mobily-pay-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #10b981;
    position: relative;
}

.mobily-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mobily-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.mobily-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
}

.mobily-info {
    flex: 1;
}

.mobily-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 5px;
}

.mobily-subtitle-ar {
    font-size: 1.2rem;
    color: #10b981;
    margin-bottom: 5px;
    direction: rtl;
}

.mobily-description {
    color: #6b7280;
    font-size: 1rem;
}

/* Mobily Payment Grid */
.mobily-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.mobily-qr-section,
.mobily-number-section {
    text-align: center;
}

.mobily-qr-section h4,
.mobily-number-section h4 {
    font-size: 1.2rem;
    color: #1e3a5f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qr-code-container {
    background: white;
    border: 3px solid #10b981;
    border-radius: 15px;
    padding: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.mobily-qr-image {
    width: 200px;
    height: 200px;
    display: block;
}

.qr-instruction {
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
}

.mobily-number-section {
    text-align: left;
}

.mobily-steps {
    margin-top: 30px;
    padding: 20px;
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 8px;
}

.mobily-steps h5 {
    color: #1e3a5f;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobily-steps ol {
    margin: 0;
    padding-left: 20px;
}

.mobily-steps li {
    color: #374151;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Mobily Benefits */
.mobily-benefits {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    border: 1px solid #10b981;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.benefit-item i {
    font-size: 28px;
    color: #10b981;
}

.benefit-item span {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
}

/* View Details Button */
.view-details-btn {
    width: 100%;
    padding: 16px 24px;
    margin: 20px 0;
    background: linear-gradient(135deg, #d4af37 0%, #c89e4a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #c89e4a 0%, #b8953f 100%);
}

.view-details-btn:active {
    transform: translateY(0);
}

.view-details-btn i:first-child {
    font-size: 18px;
}

.view-details-btn i:last-child {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.view-details-btn.active {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.view-details-btn.active i:last-child {
    transform: rotate(180deg);
}

.view-details-btn.active span {
    content: 'Hide Account Details';
}

/* Account Details Toggle Animation */
.account-details {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    max-height: 0;
}

.account-details.visible {
    opacity: 1;
    max-height: 2000px; /* Increased for Mobily Pay content */
    margin-top: 20px;
}

/* Ensure Mobily Pay details have enough space */
.mobily-details.visible {
    max-height: 2500px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .bank-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .payment-hero {
        padding: 100px 0 60px;
    }

    .payment-hero-title {
        font-size: 2rem;
    }

    .payment-hero-subtitle {
        font-size: 1.1rem;
    }

    /* Mobily Pay Mobile */
    .mobily-pay-card {
        padding: 25px 20px;
    }

    .mobily-header {
        flex-direction: column;
        text-align: center;
    }

    .mobily-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .mobily-title {
        font-size: 1.5rem;
    }

    .mobily-badge {
        position: static;
        margin-bottom: 15px;
        display: inline-flex;
    }

    .mobily-payment-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mobily-qr-section h4,
    .mobily-number-section h4 {
        font-size: 1.1rem;
    }

    .qr-code-container {
        padding: 15px;
    }

    .mobily-qr-image {
        width: 180px;
        height: 180px;
    }

    .mobily-benefits {
        flex-wrap: wrap;
        gap: 15px;
    }

    .benefit-item {
        flex: 1 1 40%;
    }

    /* Bank Cards Mobile */
    .bank-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bank-card {
        padding: 30px 20px;
    }

    .bank-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bank-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .detail-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .detail-value {
        flex-direction: column;
        width: 100%;
    }

    .copyable {
        width: 100%;
        font-size: 0.85rem;
    }

    .copyable.large {
        font-size: 1rem;
    }

    .copyable.iban {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .qr-code-image {
        width: 180px;
        height: 180px;
    }

    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .notes-card {
        padding: 30px 20px;
    }

    .notes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .footer,
    .copy-btn,
    .cta-buttons,
    .confirmation-cta {
        display: none !important;
    }

    .bank-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000;
    }

    .qr-code-image {
        max-width: 150px;
        max-height: 150px;
    }
}
