/* Card Payment Modal Styles */
.card-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.card-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.card-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.card-modal-body {
    padding: 1.5rem;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #2e7d32;
}

.security-notice i {
    font-size: 1.2rem;
}

.card-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group input:invalid {
    border-color: #f44336;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.card-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card-icons i {
    font-size: 1.5rem;
    color: #666;
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.order-summary h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.total-amount {
    text-align: right;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--accent-color);
}

.btn-pay-now {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-pay-now:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-pay-now:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Payment Success Modal */
.payment-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps {
    text-align: left;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.next-steps h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.next-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.3rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.success-actions .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-actions .btn-primary {
    background: #5865F2;
    color: white;
    border: none;
}

.success-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.success-actions .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}