/**
 * Estilos para el formulario frontend
 */

.hosted-buyer-form-container {
    max-width: 900px;
    margin: 2rem auto;
    font-family: 'Fredoka', sans-serif;
}

.hosted-buyer-form-container .card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.hosted-buyer-form-container .card-title {
    color: #333;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.hosted-buyer-form-container h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.hosted-buyer-form-container .form-label {
    font-weight: 400;
    color: #495057;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka', sans-serif;
}

.hosted-buyer-form-container input,
.hosted-buyer-form-container textarea,
.hosted-buyer-form-container button {
    font-family: 'Fredoka', sans-serif;
}

.hosted-buyer-form-container .text-danger {
    color: #dc3545;
}

.hosted-buyer-form-container .form-control:focus,
.hosted-buyer-form-container .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Mensajes de alerta */
.fe-alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    display: none;
}

.fe-alert.show {
    display: block;
}

.fe-alert-success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.fe-alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* Botón de envío */
#fe-submit-btn {
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(45deg, rgb(27, 65, 148) 0%, rgb(110, 45, 129) 25%, rgb(237, 15, 102) 100%);
}

#fe-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Animación de loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hosted-buyer-form-container {
        margin: 1rem;
    }

    .hosted-buyer-form-container .card-body {
        padding: 1.5rem !important;
    }
}
