.swi-form {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-content: space-between;
    padding: 0rem;
    box-sizing: border-box;
    width: 100%;
    max-height: 99vh;
    max-width: 99vw;
    font-size: 14px;
    gap: 1rem;
}

.form_group *:not(.checkmark):not(label):not(button) {
    min-width: 100%;
}

.form_group_reserva {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    box-sizing: border-box;
    align-items: flex-start;
}

input,
label,
select,
button {
    font-size: 14px;
    line-height: 1.5;
}

label {
    font-weight: bold;
}

.otra_ofi_switch_container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.otra_ofi_switch_container label {
    font-size: small;
    font-weight: 600;
}

.otra_ofi_switch_container p {
    width: 100%;
}

input,
select,
option,
button {
    cursor: pointer;
}

.swi-form .swi_btn_submit button {
    max-width: max-content;
    margin: 0;
}

input[type="date"].custom_icon {
    position: relative;
    width: 100%;
    padding-left: 30px;
}

input[type="date"].custom_icon::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

input[type="date"].custom_icon {
    background: var(--icon) no-repeat left 0 center;
    background-size: 20px;
}

input[type="checkbox"].custom_icon {
    position: absolute;
    opacity: 0 !important;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: white;
}

input[type="checkbox"].custom_icon+.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: 0;
    background: var(--icon) no-repeat center;
    background-size: 0%;
    transition: background-size 0.2s;
}

/* Icono */
input[type="checkbox"].custom_icon:checked+.custom-checkbox .checkmark::after {
    background-size: 120%;
}

/* Tapamos la esquina superior derecha */
input[type="checkbox"].custom_icon+.custom-checkbox .checkmark::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: transparent;
    transition: background-color .2s;
}

input[type="checkbox"].custom_icon:checked+.custom-checkbox .checkmark::before {
    background: white;
}

.swi-form .swi_select_ofi_btn {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 1.5rem;
    margin: auto;
    background: var(--primary-color);
    color: #fff;
    transition: background-color 0.2s, color 0.2s;
}

.swi-form .swi_select_ofi_btn:hover {
    background: var(--secundary-color);
    color: var(--primary-color);
}

.swi-form .swi_select_ofi_btn:disabled {
    filter: brightness(0.6);
}

.swi-form div div input:disabled,
.swi-form div div select:disabled {
    opacity: 0.6 !important;
}

.swi-form .swi_select_ofi_btn.loading {
    position: relative;
    box-sizing: border-box;
    z-index: 1;
}

.swi-form .swi_select_ofi_btn.loading::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    z-index: -1;
    inset: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: inherit;
    color: inherit;
    background: linear-gradient(90deg,
            rgba(30, 43, 55, 0.3) 0%,
            rgba(255, 255, 255, 0.2) 26%,
            rgba(255, 255, 255, 0.2) 46%,
            rgba(30, 43, 55, 0.3) 57%);
    animation: loadingAnimate 6.5s infinite linear;

}

.swi-form .form_group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;

}

.swi-form .form_group_date {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* .swi-form .form_group_date input[type="date"] {
    padding: 0.5rem;
} */

.swi-form .form_group_date input,
.swi-form .form_group_date select {
    border: none;
    height: 35px;
}

.swi-form .form_group_date {
    justify-content: space-between;
}

.swi-form .form_group_date select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

}

.swi-form .form_group input:focus,
.swi-form .form_group select:focus {
    border: none;
    outline: none;
}


.swi-form * {
    box-sizing: border-box;
}

.swi-form .hidden {
    opacity: 0;
    height: 0;
    width: 0;
    display: none;
}

.swi-form .form_group .hidden {
    opacity: 0;
    height: 0;
    width: 0;
    display: none;
}

.swi-form .form_group * {
    animation: visible .2s 1 forwards linear;
}

.swi-form .form_container_ofis {
    background: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.swi-form .form_container_zonas:has(>h2) {
    display: flex;
    height: 100%;
}

.swi-form .form_container_zonas h2 {
    margin: auto;
}

.swi-form .form_group select {
    outline: none;
    border: none;
}

.swi-form .form_group option {
    word-wrap: break-word;
    white-space: pre-line;
}

.swi-form .form_group_date label {
    display: flex;
    align-items: flex-start;
}




.swi-form .error_text {
    width: 100%;
    color: #b51919;
}

.swi-form .error_submit_text {
    color: #b51919;
    font-weight: bold;

}

.suplements_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem;
}

.suplements_container>p {
    margin: auto;

}

.swi-form .form_group_date label {
    display: inline-flex;
}

.swi-form .swi_btn_submit {
    height: 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.swi-form option:hover {
    background-color: var(--primary-color);
}

#age_driver {
    min-width: 150px;
}


.swi-form.minimal {
    transition: max-height 2s, min-height 2s;
}

.swi-form.minimal:not(.active) {
    max-height: 0;
    min-height: 0;
}

.swi-form.minimal:not(.active) {
    max-height: 0;
    min-height: 0;
}

.swi-form.minimal>* {
    transition: max-height 2s, min-height 2s;
}

.swi-form.minimal:not(.active)>* {
    min-height: 0vh;
    max-height: 0vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.minimal_mode_container {
    height: 25px;
    width: 25px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.minimal_mode_container .minimalMode_container {
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    color: var(--secundary-color);
    margin: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    transition: opacity .2s, transform .2s, top .2s;
}

.minimal_mode_container .minimalMode_container::after {
    content: "";
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    color: var(--secundary-color);
    position: absolute;
    top: -9px;
    transition: opacity .2s, transform .2s, top .2s;
}

.minimal_mode_container .minimalMode_container::before {
    content: "";
    transition: opacity .2s, transform .2s, top .2s;
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    color: var(--secundary-color);
    position: absolute;
    top: 9px;
    opacity: 1;
}

.minimal_mode_container.active .minimalMode_container {
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    color: var(--secundary-color);
    margin: auto;
    position: relative;
    transform: rotate(45deg);
}

.minimal_mode_container.active .minimalMode_container::after {
    content: "";
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    color: var(--secundary-color);
    position: absolute;
    top: 0px;
    transform: rotate(-90deg);
}

.minimal_mode_container.active .minimalMode_container::before {
    content: "";
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    color: var(--secundary-color);
    position: absolute;
    top: 9px;
    opacity: 0;
}

@keyframes loadingAnimate {
    0% {
        background-position: 0px;
    }

    100% {
        background-position: 1000px;
    }
}

@keyframes visible {
    0% {
        opacity: 0;
        transform: translateY(10%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}


@media screen and (min-width:630px) {
    .swi-form {
        grid-template-columns: 1fr;
        grid-template-rows: min-content auto;

    }

    .form_group_reserva {
        grid-template-columns: 1fr 1fr;

    }

}

@media screen and (min-width:713px) {
    .swi-form {
        grid-template-columns: 1fr;
        grid-template-rows: min-content auto;

    }

    .form_group_reserva {
        grid-template-columns: 1fr 1fr;

    }

}

@media screen and (min-width:1188px) {
    .swi-form {
        grid-template-columns: 3fr 1fr;
        grid-template-rows: min-content auto;

    }

    .form_group_reserva {
        grid-template-columns: 1fr 1fr 1fr;

    }

}