/* Estilos para Sistema de Pagamentos */

/* Modal de Pagamento */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.payment-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.payment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Resumo do Plano */
.plan-summary {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.plan-summary h4 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #333;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin: 8px 0;
}

.plan-summary p {
    margin: 8px 0 0 0;
    color: #666;
}

/* Formulário de Dados */
.user-data-form {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.payment-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Segurança do Pagamento */
.payment-security {
    padding: 16px 24px 24px;
    text-align: center;
}

.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

/* Teste Gratuito */
.free-trial-info {
    padding: 24px;
    text-align: center;
}

.trial-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 16px;
}

.free-trial-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #333;
}

.free-trial-info p {
    margin: 0;
    color: #666;
}

/* Loading */
.payment-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loading-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Notificações */
.payment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.payment-notification.error {
    border-left: 4px solid #dc3545;
}

.payment-notification.success {
    border-left: 4px solid #28a745;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 20px;
}

.payment-notification.error i {
    color: #dc3545;
}

.payment-notification.success i {
    color: #28a745;
}

.notification-content p {
    margin: 0;
    flex: 1;
    color: #333;
}

.notification-content button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.notification-content button:hover {
    background: #f8f9fa;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(100%);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsivo */
@media (max-width: 768px) {
    .payment-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .payment-header {
        padding: 20px;
    }
    
    .plan-summary,
    .user-data-form {
        padding: 20px;
    }
    
    .payment-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

