/* Estilos Generales para el Contenedor del Formulario */
@font-face {
  font-family: "Nexa-Light";
  src:url("../fonts/Nexa-Light.otf") format("opentype");
}

@font-face {
  font-family: "Nexa-Bold";
  src:url("../fonts/Nexa-Bold.otf") format("opentype");
}


.form-container {
    background-color: #01465b; /* Fondo en color azul oscuro */
    color: white; /* Texto blanco */
    padding: 30px;
    max-width: 700px;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);

}
/* Títulos */
h2 {
    font-size: 2.2em;
    font-family: "Nexa-Light", sans-serif;
    margin-bottom: 30px;
    text-align: center;
}
h3 {
    font-size: 22px;
    font-family: "Nexa-Light", sans-serif;
    margin-bottom: 15px;
}
/* Estilo de las etiquetas (labels) */
label {
    font-size: 1.3em;
    font-family: "Nexa-Light";
    margin-bottom: 8px;
    display: block;
    color: white;
}
/* Efecto al hacer hover sobre los inputs */
input:hover, select:hover {
    border-color: #01719D; /* Color de borde al pasar el cursor */
}
/* Estilos para los botones */
button {
    background-color: #01719D; /* Fondo azul */
    color: white;
    padding: 8px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 30%;
    box-sizing: border-box;
    margin-top: 1em;
    margin-bottom: 2em;
}
/* Efecto al hacer hover sobre el botón */
button:hover {
    transform: scale(1.05);
}
/* Estilo para el grupo de checkboxes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    margin-left: 8%;
    width: 30%;
}
/* Alineación del texto con el checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-family: "Nexa-Light";
    color: white;
}
input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
select {
    font-size: 1.4em;
    background-color: transparent;
    border: none;
    color: white;
    margin-left: 8%;
}
option{
    background-color: #01465b;
}
.form-group{
    display: flex;
    flex-direction: row;
    margin-left: 8%;
}
.field{
    background-color: transparent;
    border: none;
    border-bottom: 1px white solid;
    border-radius: 3px;
    width: 40%;
    height: 20px;
    margin-left: 2%;
    color: aliceblue;
    font-size: 1.3em;
}
.field::placeholder{
    color: rgba(255, 255, 255, 0.562);
    font-size: 1em;
}
.checkbox-label input {
    margin-right: 15px; 
}
.contact-info {
    display: none; 
}
#person-type-section {
    margin-bottom: 20px;
}

#submit{
    justify-self: center;
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        width: 90%; 
    }
    h2 {
        font-size: 32px;
    }

    label {
        font-size: 20px;
    }

    input, select {
        padding: 10px 12px;
        font-size: 18px;
    }

    button {
        font-size: 16px;
        padding: 10px;
    }

    .checkbox-group {
        flex-direction: column; 
    }
    .field{
        flex: 1;
        height: 10px;
        margin-left: 2%;
        color: aliceblue;
        font-size: 1.2em;
        padding: 1%;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {
    h2 {
        font-size: 2.1em;
    }

    h3 {
        font-size: 22px;
        text-align: start;
    }

    label {
        font-size: 1.2em;
        padding: 1%;
    }

    input:hover, select:hover {
        border-color: #01719D; 
    }
    button {
        padding: 8px;
        width: 50%;
    }
    .checkbox-group {
        width: 70%;
    }
    .field{
        flex: 1;
        height: 10px;
        margin-left: 2%;
        color: aliceblue;
        font-size: 1.2em;
        padding: 2%;
    }
}