/**
 * Payment Page Styles
 */

.payment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.payment-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-header h2 {
    font-size: 28px;
    color: #0f52ba;
    margin-bottom: 8px;
}

.payment-subtitle {
    color: #666;
    font-size: 14px;
}

/* Payment Form */
.payment-form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 24px;
}

.payment-form .form-group {
    margin-bottom: 24px;
}

.payment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.amount-input-wrapper:focus-within {
    border-color: #0f52ba;
}

.currency-symbol {
    padding: 14px 16px;
    background: #f5f5f5;
    color: #666;
    font-size: 18px;
    font-weight: 600;
    border-right: 2px solid #e0e0e0;
}

.amount-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-size: 24px;
    font-weight: 600;
    color: #0f52ba;
}

.amount-input::placeholder {
    color: #ccc;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input[type=number] {
    -moz-appearance: textfield;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.description-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.description-input:focus {
    outline: none;
    border-color: #0f52ba;
}

.description-input::placeholder {
    color: #bbb;
}

/* User Info Display */
.user-info-display {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.user-info-display label {
    margin-bottom: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* User Info Input */
.user-info-input {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.user-info-input > label {
    margin-bottom: 12px;
}

.input-group {
    margin-bottom: 12px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.info-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-input:focus {
    outline: none;
    border-color: #0f52ba;
    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.1);
}

.info-input::placeholder {
    color: #aaa;
}

/* Submit Button */
.payment-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0f52ba, #1a6dd9);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a428a, #1456b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.3);
}

.payment-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.payment-submit-btn .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Payment Info Cards */
.payment-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card i {
    font-size: 24px;
    color: #0f52ba;
    margin-top: 2px;
}

.info-card h4 {
    font-size: 14px;
    color: #333;
    margin: 0 0 4px 0;
}

.info-card p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* Payment Modal Styles */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.payment-modal-overlay.active {
    display: flex;
}

.payment-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Icons */
.payment-success-icon,
.payment-error-icon,
.payment-pending-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.payment-success-icon {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.payment-success-icon i {
    font-size: 40px;
    color: white;
}

.payment-error-icon {
    background: linear-gradient(135deg, #f44336, #e91e63);
}

.payment-error-icon i {
    font-size: 40px;
    color: white;
}

.payment-pending-icon {
    background: linear-gradient(135deg, #FF9800, #FFC107);
}

.payment-pending-icon i {
    font-size: 40px;
    color: white;
}

/* Order Info Summary in Modal */
.order-info-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    text-align: left;
}

.order-info-summary .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.order-info-summary .info-row:last-child {
    border-bottom: none;
}

.order-info-summary .info-row.amount {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
    font-weight: 600;
}

.order-info-summary .info-row.amount span:last-child {
    font-size: 18px;
    color: #0f52ba;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #0f52ba, #1a6dd9);
    color: white;
    border: none;
}

.modal-btn.primary:hover {
    background: linear-gradient(135deg, #0a428a, #1456b8);
}

.modal-btn.secondary {
    background: #f5f5f5;
    color: #666;
    border: none;
}

.modal-btn.secondary:hover {
    background: #e8e8e8;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-container {
        padding: 16px;
    }

    .payment-header h2 {
        font-size: 24px;
    }

    .payment-form-container {
        padding: 20px;
    }

    .amount-input {
        font-size: 20px;
    }

    .payment-info {
        grid-template-columns: 1fr;
    }

    .payment-modal {
        padding: 24px;
        margin: 16px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}
