/* Payment Page Styles - Consistent with main site */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

/* Main Container */
.payment-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px 0;
}

.payment-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.payment-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.payment-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.payment-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Amount Display */
.amount-display {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.amount-value {
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
    margin: 0;
}

.amount-label {
    font-size: 14px;
    color: #6c757d;
    margin: 5px 0 0 0;
}

/* PIX Section */
.pix-section {
    padding: 30px;
}

.pix-qr-container {
    text-align: center;
    margin-bottom: 30px;
}

.pix-qr-code {
    width: 250px;
    height: 250px;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    margin: 0 auto 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pix-qr-code img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.pix-copy-container {
    margin-bottom: 30px;
}

.pix-input-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: block;
}

.pix-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    color: #495057;
    resize: none;
    min-height: 60px;
}

.pix-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.copy-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button svg {
    width: 20px;
    height: 20px;
}

/* Instructions */
.instructions {
    background: #f8f9fa;
    padding: 30px;
    border-top: 1px solid #e9ecef;
}

.instructions h3 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.instruction-item .icon {
    width: 24px;
    height: 24px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.instruction-text {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Status Messages */
.status-message {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Timer */
.timer-container {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.timer-text {
    font-size: 16px;
    font-weight: 600;
    color: #856404;
    margin: 0;
}

.timer-value {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
    margin: 5px 0 0 0;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-container {
        padding: 10px;
    }
    
    .payment-card {
        margin: 0;
        border-radius: 15px;
    }
    
    .payment-header {
        padding: 20px;
    }
    
    .payment-header h1 {
        font-size: 20px;
    }
    
    .pix-section {
        padding: 20px;
    }
    
    .pix-qr-code {
        width: 200px;
        height: 200px;
    }
    
    .instructions {
        padding: 20px;
    }
}

/* Hidden elements */
.hidden {
    display: none !important;
}
