/* --- Estilos Generales del Formulario --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    margin: 0;
    /* Dejamos espacio para el header y footer fijos */
    padding-top: 80px;
    padding-bottom: 70px;
}

main {
    padding: 20px;
}

/* --- Contenedor del Formulario --- */
.form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
}
.form-container h5 {
    text-align: center;
    color: #555;
    font-weight: normal;
    margin-bottom: 30px;
}

/* --- Estilo de Grupo de Formulario (Inputs y Labels) --- */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Importante para que el padding no afecte el ancho */
}

/* Efecto "Floating Label" que usas */
.form-group label {
    position: absolute;
    top: 12px;
    left: 10px;
    color: #999;
    background-color: #ffffff;
    padding: 0 5px;
    transition: all 0.2s ease;
    pointer-events: none; /* Para poder hacer clic "a través" de la etiqueta */
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 8px;
    font-size: 0.8rem;
    color: #007bff;
}

/* Estilo para los 'select' (no usan el efecto floating label) */
.form-group.full-width label {
    position: static; /* Quita el posicionamiento absoluto */
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.form-group select[multiple] {
    padding: 10px;
    height: 150px; /* Altura para ver varias opciones */
}

.form-group select[multiple] option {
    padding: 8px;
    font-size: 0.95rem;
}

/* --- Botón de Envío --- */
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* --- Responsive --- */
@media screen and (max-width: 600px) {
    main {
        padding: 10px;
    }
    .form-container {
        padding: 15px;
    }
    .form-container h1 {
        font-size: 1.5rem;
    }
}