/* Reset básico para alinearnos con un estilo limpio */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente base: Roboto (estilo Google). Puedes usar <link> de Google Fonts en tu HTML. */
body {
    font-family: "Roboto", Arial, sans-serif;
    background-color: #f4f4f4;
    /* Un gris claro */
    color: #333;
}

/* Contenedor principal */
.container {
    width: 95%;
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Encabezado con el logo */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header img {
    max-width: 220px;
    /* Ajusta el tamaño del logo */
    margin-bottom: 10px;
}

.header h1 {
    font-size: 1.8rem;
    color: #2e7d32;
    /* Un verde oscuro */
    margin-bottom: 5px;
}

.header p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Títulos de sección (similares a Google Forms) */
h2 {
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    color: #2e7d32;
    /* verde oscuro */
    border-left: 4px solid #4caf50;
    /* barra verde */
    padding-left: 10px;
}

/* Labels y campos del formulario */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="file"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #fafafa;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4caf50;
    /* Verde de foco */
    background-color: #fff;
}

/* Estilo para el botón Enviar */
input[type="submit"] {
    background: #4caf50;
    /* Verde principal */
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
}

input[type="submit"]:hover {
    background: #43a047;
}

/* Espaciados para <br> y secciones */
form {
    margin-bottom: 20px;
}

/* Párrafos y notas */
p {
    margin-bottom: 18px;
    line-height: 1.4em;
    color: #555;
}

.note {
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
}

/* Ajustar textarea */
textarea {
    min-height: 70px;
    resize: vertical;
}

/* Sutil highlight de las secciones */
section {
    margin-bottom: 25px;
}

/* Si deseas que los h1, h2 tengan un color distintivo */
h1 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.6rem;
}

/* Ejemplo de estilo para los <select> en modo “deshabilitado” */
select:disabled {
    color: #999;
}

/* Mensajes de validación (opcional) */
.validation-message {
    color: red;
    font-size: 0.85rem;
    margin-top: -12px;
    margin-bottom: 12px;
}

/* Bordes rojos si invalid */
.invalid {
    border: 1px solid red !important;
}

.modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
}

.modal-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.modal-body {
    margin-bottom: 15px;
    /* Sin scroll detection, sin max-height */
}

#btnAceptarModal {
    background: #4caf50;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#submitBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}