/* GLOBAL --------------------------------------------------------------- */
fieldset{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pink16);
}
fieldset:last-child{
    padding: unset;
    border: unset;
}
fieldset .title{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}
fieldset .title p{
    color: var(--pink);
}
.field{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}
.field.row{
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}
/* ---------------------------------------------------------------------- */

/* INPUTS & BUTTONS ----------------------------------------------------- */
input::placeholder,
textarea::placeholder{
    opacity: 0;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

input[type=text],
input[type=number],
input[type=password],
input[type=time],
input[type=email],
textarea{
    width: 100%;
    height: fit-content;
    border-bottom: 1px solid var(--pink64);
    padding: 0.25rem;
    padding-top: 1rem;
    line-height: 1.2;
}
input[type=text] + label,
input[type=number] + label,
input[type=password] + label,
input[type=time] + label,
input[type=email] + label,
textarea + label{
    position: absolute;
    top: 1rem;
    left: 0.25rem;
    pointer-events: none;
    transition: top 300ms, font-size 300ms;
}
input[type=text]:focus + label,
input[type=number]:focus + label,
input[type=password]:focus + label,
input[type=time]:focus + label,
input[type=email]:focus + label,
textarea:focus + label,
input[type=text]:not(:placeholder-shown) + label,
input[type=number]:not(:placeholder-shown) + label,
input[type=password]:not(:placeholder-shown) + label,
input[type=time]:not(:placeholder-shown) + label,
input[type=email]:not(:placeholder-shown) + label,
textarea:not(:placeholder-shown) + label{
    top: 0;
    font-size: 0.75rem;
}

input[type=checkbox],
input[type=radio]{
    display: none;
}
input[type=checkbox] + label,
input[type=radio] + label{
    width: 100%;
    display: block;
    padding: 0.25rem 0;
    padding-right: 2.5rem;
    position: relative;
    cursor: pointer;
}
input[type=radio] + label{
    width: fit-content;
    padding-right: unset;
    padding-left: 1.5rem;
}
input[type=radio] + label::first-letter{
    text-transform: uppercase;
}

input[type=checkbox] + label::before{
    content: "";
    display: block;
    width: 1.5rem;
    height: 0.5rem;
    background-color: var(--black64);
    border-radius: 100rem;
    position: absolute;
    top: calc(50% - 0.25rem);
    right: 0;
    opacity: 0.32;
    transition: background-color 300ms;
}
input[type=checkbox] + label::after{
    content: "";
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--black64);
    border-radius: 100rem;
    position: absolute;
    top: calc(50% - 0.375rem);
    right: 0.75rem;
    transition: background-color 300ms, right 300ms;
}
input[type=checkbox]:checked + label::before{
    background-color: var(--pink);
}
input[type=checkbox]:checked + label::after{
    right: 0;
    background-color: var(--pink);
}

input[type=radio] + label::before{
    content: "";
    display: block;
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: calc(50% - 0.5rem);
    left: 0;
    border: 1px solid var(--pink);
    border-radius: 100rem;
}
input[type=radio] + label::after{
    content: "";
    display: block;
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    top: calc(50% - 0.25rem);
    left: 0.25rem;
    background-color: var(--pink);
    border-radius: 100rem;
    opacity: 0;
    transition: opacity 300ms;
}
input[type=radio]:checked + label::after{
    opacity: 1;
}
/* ---------------------------------------------------------------------- */

/* MORE & ERRORS -------------------------------------------------------- */
.show-password{
    padding: unset;
    position: absolute;
    top: 1rem;
    right: 0.25rem;
}
.show-password i{
    width: 1.25em;
}

form .error{
    color: red;
    font-size: 0.75rem;
    display: none;
}
form.required .required-error,
form.user .user-error,
form.password .password-error{
    display: block;
}
/* ---------------------------------------------------------------------- */

/* DROPDOWNS ------------------------------------------------------------ */
.dropdown{
    width: fit-content;
    position: relative;
    flex-shrink: 0;
}

.dropdown-toggle, .dropdown-option{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    /* justify-content: center; */
    line-height: 1.2;
    cursor: pointer;
    border-bottom: 1px solid var(--pink64);
}
.dropdown-toggle{
    padding: 0.25rem;
    padding-top: 0;
}
.dropdown-toggle::after{
    content: "";
    width: 16px;
    height: 17px;
    mask-image: url("data:image/svg+xml,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_338_3752' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='16' height='17'%3E%3Cpath d='M7.46875 12.9062L1.46875 6.90625C1.15625 6.625 1.15625 6.15625 1.46875 5.84375C1.75 5.5625 2.21875 5.5625 2.53125 5.84375L8 11.3438L13.4688 5.875C13.75 5.5625 14.2188 5.5625 14.5312 5.875C14.8125 6.15625 14.8125 6.625 14.5312 6.90625L8.5 12.9062C8.21875 13.2188 7.75 13.2188 7.46875 12.9062Z' fill='%23EC5544'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_338_3752)'%3E%3Crect x='-4' y='-3.625' width='24' height='24' fill='%23EC5544'/%3E%3C/g%3E%3C/svg%3E%0A");
    mask-position: 50%;
    mask-repeat: no-repeat;
    mask-size: contain;
    background-color: var(--pink);
    flex-shrink: 0;
    margin-left: 0.25rem;
    transition: transform 300ms;
}
.dropdown.active .dropdown-toggle::after{
    transform: rotate(180deg);
}
.dropdown-toggle span{
    margin-right: auto;
}
.dropdown-option{
    padding: 0.75rem 0.25rem;
    border-color: var(--pink16);
}
.dropdown-option.active{
    color: var(--pink);
    cursor: default;
}
.dropdown-option:last-child{
    border-bottom: unset;
}

.dropdown-options-wrapper{
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    width: fit-content;
    max-height: 10rem;
    overflow: auto;
    padding: 0.125rem 0.75rem;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadowlight);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -1rem);
    transition: transform 300ms, opacity 300ms, z-index 0ms 300ms;
}
.dropdown.active .dropdown-options-wrapper{
    opacity: 1;
    pointer-events: all;
    z-index: 2;
    transform: translate(-50%, 0);
    transition: transform 300ms, opacity 300ms, z-index 0ms;
}
/* ---------------------------------------------------------------------- */