/* Payment Modal Styles */

.payment-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.payment-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow-y: auto;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.payment-modal.active {
    display: block;
}

.payment-modal-overlay.active {
    display: block;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.payment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.payment-modal-close:hover {
    color: var(--text-dark);
}

.payment-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.payment-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: var(--text-dark);
    font-family: 'Cormorant Garamond', serif;
}

.payment-course-name {
    margin: 0;
    color: var(--gold);
    font-weight: 600;
}

/* Payment Method Tabs */
.payment-methods-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.payment-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.payment-tab i {
    font-size: 1.5rem;
}

.payment-tab:hover {
    background: #efefef;
}

.payment-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}

/* Payment Forms */
.payment-form-container {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.payment-form-container.active {
    display: block;
}

.payment-form h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-amount {
    font-weight: 700;
    color: var(--gold);
}

/* Payment Instructions */
.payment-instructions {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
}

.payment-instructions p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.payment-instructions ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-muted);
}

.payment-instructions li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Payment Security */
.payment-security {
    margin-top: 15px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 6px;
    color: #2e7d32;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Payment Status */
.payment-status {
    padding: 40px 30px;
    text-align: center;
}

.payment-status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.status-icon.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-icon.error {
    background: #ffebee;
    color: #c62828;
}

.status-icon.pending {
    background: #fff3e0;
    color: #e65100;
}

.payment-status h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.payment-status p {
    margin: 0;
    color: var(--text-muted);
    max-width: 400px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .payment-modal {
        width: 95%;
        max-width: none;
        border-radius: 8px;
    }

    .payment-methods-tabs {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        padding: 15px;
    }

    .payment-tab {
        padding: 10px;
        font-size: 0.8rem;
    }

    .payment-tab i {
        font-size: 1.2rem;
    }

    .payment-form-container {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .payment-header {
        padding: 20px;
    }

    .payment-header h2 {
        font-size: 1.4rem;
    }
}

/* Loading State */
.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
