:root {
    --purple: #5f1f79;
    --purple-light: #d8a1ff;
    --purple-shadow: #baa4c9;
    --fondo-nav: #f4d4fcb3;
    --boton: linear-gradient(90deg, rgba(150, 38, 162, 1) 0%, rgba(161, 24, 148, 1) 43%, rgba(255, 106, 0, 1) 100%);
    --texto-oscuro: rgb(0, 0, 0);
    --texto-claro: #fff;
    --naranja-logo: #ff5722;
    --gris: gray;
    --border: #6868687c;
    --background: #f0f2f5;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    color: black;
    font-family: 'Quicksand', sans-serif;
    padding: 0;
}

.formulario {
    margin-top: 100px;
}

/* estilos para formulario */

#h1 {
    text-align: center;
    margin-top: 30px;
}

#h2 {
    text-align: center;
    margin-top: 30px;
    ;
}

#h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: medium;
}

.container-form {
    display: flex;
    align-items: center;
    justify-content: center;

}

#formulario-evento {
    height: 880px;
    width: auto;
    padding: 0 30px;
    margin-top: 15px;
    -webkit-box-shadow: 0px 0px 21px -7px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 21px -7px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 21px -7px rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    background-color: #fff;
    display: grid;
    justify-content: center;
    text-align: center;
    max-width: 370px
}

.fields {
    width: 100%;
    text-decoration: none;
    border-radius: 5px;
    border-color: var(--background);
    padding: 4%;
    margin-bottom: 10px;
    transition: .3s ease all;
}

.fields:focus {
    box-shadow: 3px 0px 30px rgba(120, 103, 103, 0.4);
}

#buttonRegistrar {
    background: var(--boton);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    display: block;
    width: 290px;
    height: 50px;
    margin: 10px 10px 30px;
    text-decoration: none;
}

#buttonRegistrar:hover {
    background: linear-gradient(90deg, rgba(150, 38, 162, 1) 0%, rgba(255, 106, 0, 1) 0%, rgba(161, 24, 148, 1) 64%);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#nombre {
    margin-top: 30px;

}

#ciudades {
    border-color: var(--border);
    padding: 5%;

}

.field-opcion {
    color: var(--gris);
    width: 100%;
    border-style: ridge;
    text-decoration: none;
    border-radius: 5px;
    border-color: var(--background);
    padding: 4%;
    margin-bottom: 20px;
    transition: .3s ease all;
}


.tiempo {
    border-radius: 10px;
    text-decoration: none;
    border-radius: 5px;
    border-color: var(--background);
    padding: 4%;
    color: var(--gris);
    cursor: pointer;
}





/*----*/
.form-grupo-input {
    position: relative;
}

.form-validacion {
    position: absolute;
    right: 15px;
    bottom: 31px;
    z-index: 10;
    font-size: 16px;
    opacity: 0;
}

.form-input-error {
    font-size: 12px;
    margin-bottom: 0;
    text-align: left;
    display: none;
}

.form-input-error-activo {
    display: block;
}

.formulario-mensaje-error {
    grid-column: span 1;
    height: 45px;
    line-height: 45px;
    background-color: #F66060;
    padding: 0 15px;
    border-radius: 3px;
    font-size: 0.7em;
    display: none;
}

.formulario-mensaje-error-activo {
    display: block;
}

.formulario-mensaje-exito {
    color: #1ed12d;
    font-weight: bold;
    display: none;
}

.formulario-mensaje-exito-activo {
    display: block;
}

.form-grupo-correcto .form-validacion {
    color: #1ed12d;
    opacity: 1;
}

.form-grupo-incorrecto .form-validacion {
    color: #bb2929;
    opacity: 1;
}

.form-grupo-incorrecto .fields {
    border: 3px solid #bb2929;
}


@media(min-width: 900px) {
    .form-validacion {
        right: 33px;
        bottom: 34px;
    }

    #formulario-evento {
        height: 1100px;
        width: auto;
        padding: 0 30px;
        -webkit-box-shadow: 0px 0px 21px -7px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 0px 21px -7px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 0px 21px -7px rgba(0, 0, 0, 0.75);
        border-radius: 10px;
        background-color: #fff;
        display: grid;
        justify-content: center;
        text-align: center;
        max-width: 1000px
    }

    .fields {
        width: 100%;
        height: 10px;
        text-decoration: none;
        border-radius: 5px;
        border-color: var(--background);
        padding: 4%;
        transition: .3s ease all;
        margin-bottom: 10px;
    }

    .field-opcion {
        color: var(--gris);
        width: 100%;
        border: 2px inset;
        text-decoration: none;
        border-radius: 5px;
        border-color: var(--background);
        margin-bottom: 20px;
        transition: .3s ease all;
    }

    .fields:focus {
        box-shadow: 3px 0px 30px rgba(120, 103, 103, 0.4);
    }

    #buttonRegistrar {
        background: var(--boton);
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 18px;
        display: block;
        width: 750px;
        height: 50px;
        margin: 10px 10px 30px;
        text-decoration: none;
    }

    #nombre {
        margin-top: 40px;

    }

    #ciudades {
        border-color: var(--border);
        padding: 2.8%;
    }
}

footer {
    background-color: #221c23c5;
    width: 100%;
    color: white;
    font-weight: bold;
}