html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

*:focus {
    outline: none;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 1.6rem;
    /* background: #f5f5f5; */
}

h1, .title {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.6;
    font-size: 2rem;
    margin: 0;
}

fieldset {
    margin-bottom: 4rem;
    border: 1px solid #000000;
    border-radius: 10px;
}

legend {
    font-weight: bold;
    padding: 0 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.container {
    height: 100vh;
    width: 90%;
    max-width: 700px;
    margin: 0 auto; 
}

.t-none {
    text-transform: lowercase !important;
}

.d-none {
    display: none;
    opacity: 0;
}

.actions {
    margin-top: 1rem;
    margin-right: 1rem;
    align-items: center;
    justify-content: space-around;
    display: flex;
    margin-bottom: 4rem;
}

.change__form {
    margin-right: 2rem;
    text-decoration: none;
    font-size: 1.4rem;
    color: inherit;
    border: 1px solid #000;
    border-radius: 3px;
    padding: .5rem 1rem;
    transition: all .3s; 
}

.change__form:hover {
    color: #fff;
    background: #000;
}

.flags {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.flags__item {
    width: 40px;
    cursor: pointer;
}

.flags__img {
    display: block;
}

.logo {
    max-width: 300px;
    display: block;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.form {
    width: 95%;
    margin: 4rem auto;
    max-width: 1000px;
    padding-bottom: 2rem;
}

.form__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    grid-auto-flow: dense;
}

.form__title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {
    .form__content {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .col-1 {
        grid-column: 1 / 2;
    }

    .col-2 {
        grid-column: 2 / 3;
    }

    .row7-8 {
        grid-row: 7 / 8;
    }
}

.form__group {
    transition: all 0.3s;
}

.form__group.hidden {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.form__group.show {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.form__label {
    display: block;
    cursor: pointer;
    text-align: left;
    margin-bottom: 1rem;
    user-select: none;
}

.form__group-input {
    position: relative;
}

.form__input {
    width: 100%;
    background: #fff;
    border: 1px solid rgb(180, 180, 180);
    border-radius: 10px;
    height: 40px;
    line-height: 45px;
    padding: 0 40px 0 10px;
}

.form__input:focus {
    border: 2px solid rgb(179, 218, 223);
    outline: none;
    box-shadow: 3px 0px 30px rgba(163, 163, 163, 0.4);
    text-transform: capitalize;
}

.form__validation-status {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    font-size: 1.6rem;
    opacity: 0;
}

.toggle_bg {
    height: 30px;
    width: 64px;
    background: rgb(199, 199, 199);
    display: block;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s;
}

.toggle_bg::after {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background: rgb(158, 158, 158);
    position: absolute;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: 4%;
    transition: all 0.3s;
}

.checkbox:checked ~ .toggle_bg::after {
    transform: translate(130%, -50%);
    background: rgb(9, 132, 148);
}

.checkbox:checked ~ .toggle_bg {
    background: rgb(179, 218, 223);
}

.form__btn {
    line-height: 45px;
    width: 100%;
    background: #000;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.1s ease all;
    padding: 1rem 0;
    text-transform: uppercase;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    display: block;
    text-decoration: none;
}

@media screen and (min-width: 500px) {
    .form__btn {
        width: fit-content;
        padding: 0.5rem 2rem;
        margin: 0 auto;
        letter-spacing: 1px;
        font-size: 1.4rem;
    }
}

.form__btn:hover {
    box-shadow: 3px 0px 30px rgba(163, 163, 163, 1);
}

.form__group-success .form__validation-status {
    color: #2a9e34;
    opacity: 1;
}

.form__group-error .form__validation-status {
    color: #bb2929;
    opacity: 1;
}

.form__group-error .form__input {
    border: 2px solid #bb2929;
}

.message-error {
    background-color: #bb2929;
    text-align: center;
    padding: 2rem 0;
}

@media screen and (min-width: 1279px) {
    .form__content-health {
        grid-auto-rows: 70px;
        width: 80%;
        margin: 0 auto;
        column-gap: 8rem;
    }

    .form__content-health .form__group {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .form__content-health .form__label {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
}

.form__content-terminos {
    grid-template-columns: 1fr;
    text-align: justify;
    line-height: 1.6;
}

@media screen and (min-width: 1268px) {
    .form__content-terminos {
        width: 90%;
        margin: 0 auto;
    }
}

.form__list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media screen and (min-width: 1268px) {
    .form__list {
        gap: 3rem;
    }
}

.form__group-terminos {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto 4rem auto; 
    max-width: 900px; 
    font-size: 1.8rem; 
    line-height: 1.6;
}

@media screen and (max-width: 578px) {
    .form__group-terminos {
        flex-direction: column-reverse;
    }
}

@media (min-width: 1024px) {
    .form__group-terminos {
        display: flex;
        align-items: center;
        gap: 4rem;
    }
}

.form__group-terminos label {
    margin-bottom: 0;
}

.form__group-terminosInput {
    order: -1;
}

.input-date {
    text-transform: capitalize !important;
}

/* Loader Spinner */

.overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    display: none;
    justify-content: center;
    align-items: center;
    background: hsla(0, 0%, 0%, 0.8);
    z-index: 10;
}

.overlay.active {
    display: flex;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    height: 100%;
}

.animation {
    width: 200px;
    height: 200px;
}

.content p {
    margin: 1rem 0 4rem 0;
    font-size: 2.5rem;
}

.text-medico {
    margin: 1rem auto;
    font-weight: bold;
    font-size: 1.8rem;
    max-width: 700px;
    text-align: justify;
}

.servicios .form__content{
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .servicios .form__content {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.servicios .form__group {
    display: flex;
    margin: 0 auto;
}

.servicios .form__label {
    margin-right: 1rem;
}

label[for='esguinces'] {
    font-weight: bold;
    text-transform: uppercase;
}