:root {
    --custom-color: #fac564;
    --custom-dark: #e5b04c;
    --bg-dark: rgba(42, 42, 42, 0.8);
}

.bg-custom-form {
    background-color: var(--bg-dark);
    border-radius: 10px;
    padding: 30px;
    color: white;
}

.bg-custom-form .form-control {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ced4da;
    margin-bottom: 15px;
    color: #333;
}

.bg-custom-form .form-control:focus {
    border-color: var(--custom-color);
    box-shadow: 0 0 0 0.2rem rgba(250, 197, 100, 0.25);
    color: #333;
}

.btn-custom {
    background-color: var(--custom-color);
    border-color: var(--custom-color);
    color: #333 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.btn-custom:hover {
    background-color: var(--custom-dark);
    border-color: var(--custom-dark);
    transform: translateY(-2px);
    color: #333 !important;
}

.boton_actualizar {
    display: inline-block;
    background-color: var(--custom-color);
    color: #333 !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.boton_actualizar:hover {
    background-color: var(--custom-dark);
    color: #333;
    text-decoration: none;
    transform: translateY(-2px);
}

.cuenta {
    width: 100%;
    margin-bottom: 20px;
}

.cuenta td {
    padding: 8px;
    vertical-align: top;
}

.cuenta tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.alert-success {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.heading-section h2 {
    color: white;
    margin-bottom: 20px;
}

.ftco-section {
    padding: 5em 0;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    opacity: .3;
    background: #000;
}

.container-wrap {
    position: relative;
    z-index: 1;
}

textarea.form-control {
    min-height: 100px;
}

/* Estilos para mensajes de error */
span[style="color:red"] {
    color: #ff6b6b !important;
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

/* Mejoras para responsividad */
@media (max-width: 767.98px) {
    .bg-custom-form {
        padding: 20px;
    }
    
    .heading-section h2 {
        font-size: 1.8rem;
    }
    
    .btn-custom, .boton_actualizar {
        width: 100%;
    }
}

/* Estilos para las etiquetas del formulario */
.bg-custom-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Estilos para el contenedor principal */
.container {
    position: relative;
    z-index: 2;
}
/* Estilos para mensajes de error */
.error-message {
    color: #ff6b6b !important;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 5px;
    font-weight: 500;
    padding-left: 5px;
}

/* Estilos para campos con error */
.has-error .form-control {
    border-color: #ff6b6b;
}

.has-error .form-control:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

/* Estilos para mensajes de error debajo de los campos */
.error-below {
    display: block;
    margin-top: 5px;
}

/* Animación para mensajes de error */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-message {
    animation: fadeIn 0.3s ease-in-out;
}

/* Estilos para iconos de error (opcional) */
.error-icon {
    color: #ff6b6b;
    margin-right: 5px;
    font-size: 0.9em;
}