/* ==========================================================================
   Estilos Formulario Candidaturas - Estilo Twenty Twenty-Four (TT4)
   ========================================================================== */

/* Contenedor principal */
#fc-form-container {
    max-width: 680px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #111111;
    line-height: 1.6;
}

/* Formulario */
.fc-form {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Campos del formulario */
.fc-field {
    margin-bottom: 1.5rem;
}

.fc-field label,
.fc-field p strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111111;
}

/* Inputs y Selects */
.fc-field input[type="text"],
.fc-field input[type="email"],
.fc-field input[type="tel"],
.fc-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #111111;
    background-color: #f9f9f9;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

/* Flecha personalizada para Selects al estilo TT4 */
.fc-field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Estados Focus / Hover de Inputs */
.fc-field input[type="text"]:focus,
.fc-field input[type="email"]:focus,
.fc-field input[type="tel"]:focus,
.fc-field select:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #111111;
    box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.1);
}

/* Botón Submit al estilo Twenty Twenty-Four */
#fc-btn-submit {
    display: inline-block;
    width: 100%;
    background-color: #111111;
    color: #ffffff;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 1rem;
}

#fc-btn-submit:hover {
    background-color: #2d2d2d;
}

#fc-btn-submit:active {
    transform: scale(0.99);
}

#fc-btn-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   Errores de jQuery Validate
   ========================================================================== */
span.fc-error-text {
    color: #d97706; /* Tono cálido de advertencia en lugar de rojo chillón */
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.35rem;
    display: block;
}

input.fc-error-input, 
select.fc-error-input {
    border-color: #d97706 !important;
    background-color: #fffbeb !important;
}

/* ==========================================================================
   Alertas de Estado / Notificaciones AJAX
   ========================================================================== */
.fc-alert {
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 1.5rem;
    animation: fcFadeIn 0.3s ease-in-out;
}

/* Éxito */
.fc-alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Error / Filtro no superado */
.fc-alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Info (Cargando) */
.fc-alert-info {
    background-color: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

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