/* Estilos para o formulário de pagamento Stripe */
.stripe-form-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.stripe-form-container h3 {
    color: #ff6b6b;
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.stripe-card-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

#card-element {
    background: transparent;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #666;
    min-height: 40px;
}

#card-errors {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-top: 10px;
    min-height: 20px;
}

.stripe-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.stripe-pay-button,
.stripe-cancel-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    min-width: 150px;
}

.stripe-pay-button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.stripe-pay-button:hover {
    background: linear-gradient(45deg, #ff5252, #ff7979);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.stripe-pay-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.stripe-cancel-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid #666;
}

.stripe-cancel-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: #999;
}

/* Responsividade */
@media (max-width: 768px) {
    .stripe-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .stripe-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .stripe-pay-button,
    .stripe-cancel-button {
        width: 100%;
        min-width: auto;
    }
}

/* Animações de loading */
.stripe-pay-button.loading {
    position: relative;
    color: transparent;
}

.stripe-pay-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: stripe-spin 1s linear infinite;
}

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

/* Estilos para mensagens de erro do Stripe */
.stripe-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #ff6b6b;
    font-size: 0.9em;
}

/* Estilos para campos válidos */
.StripeElement--complete {
    border-color: #4caf50 !important;
}

/* Estilos para campos com erro */
.StripeElement--invalid {
    border-color: #ff6b6b !important;
}

/* Estilos para campos em foco */
.StripeElement--focus {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}