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

.logo {
    height: 334px;
    width: 274px;
}

header {
    display: flex;
    justify-content: space-between;
}

footer {
    display: flex;
    justify-content: center;
    color: var(--color-gray);
    font-size: 16px;
}

main {
    display: flex;
    justify-content: center;
    padding: 64px;
}

.headline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.underline {
    height: 3px;
    width: 150px;
    background-color: var(--color-light-blue);
    border-radius: 8px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

input,
select,
textarea,
.custom-select {
    width: 422px;
    border-radius: 10px;
    border: 1px solid var(--color-light-gray);
    padding: 12px 16px;
    font-family: Inter, sans-serif;
    color: black;
    font-size: 20px;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    color: var(--color-light-gray);
}

input:focus,
select:focus,
textarea:focus {
    border: 1px solid var(--color-light-blue);
    outline: none;
}

.input-email {
    background: url(/assets/icons/mail.svg);
    background-repeat: no-repeat;
    background-position: right 22px center;
}

.input-password {
    background: url(/assets/icons/lock.svg);
    background-repeat: no-repeat;
    background-position: right 22px center;
}

.input-name {
    background: url(/assets/icons/person.svg);
    background-repeat: no-repeat;
    background-position: right 22px center;
}

.input-phone {
    background: url(/assets/icons/phone.svg);
    background-repeat: no-repeat;
    background-position: right 22px center;
}

.input-checkbox {
    height: 16px;
    width: 16px;
    border-radius: 3px;
    border: 2px solid var(--primary-blue);
    background-color: white;
    cursor: pointer;
}

.button-container {
    display: flex;
    justify-content: space-evenly;
    padding-top: 24px;
    width: 100%;
}

.button {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 12px 16px;
    border-radius: 8px;
    border: unset;
    text-wrap: nowrap;
    font-family: Inter, sans-serif;
    font-size: 21px;
    font-weight: 600;
}

.button-2 {
    background-color: var(--bg-white);
    color: var(--primary-blue);
    padding: 12px 16px;
    font-size: 21px;
    border-radius: 8px;
    border: 1px solid var(--primary-blue);
}

.button:hover,
.button:focus,
.button-2:hover,
.button-2:focus {
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 3px -1px rgba(0, 0, 0, 0.2);
}

.button:hover,
.button:focus {
    background-color: var(--color-light-blue);
}

.button-2:hover,
.button-2:focus {
    border: 1px solid var(--color-light-blue);
    color: var(--color-light-blue);

    >img {
        filter: brightness(0) saturate(100%) invert(63%) sepia(14%) saturate(2444%) hue-rotate(157deg) brightness(91%) contrast(95%);
    }
}

.button-disabled:hover {
    cursor: not-allowed;
}

.undo-btn {
    margin: 0;
    line-height: 125%;
    border: none;
    font-family: inherit;
    font-size: inherit;
    background-color: transparent;
    color: white;
    text-decoration: underline;
}

.undo-btn:hover {
    cursor: pointer;
    color: var(--color-light-blue) !important;
}

.sideline-blue {
    height: 60px;
    width: 3px;
    background-color: var(--color-light-blue);
    border-radius: 8px;
}

.sideline-blue-horizontal {
    width: 60px;
    height: 3px;
    background-color: var(--color-light-blue);
    border-radius: 8px;
}

.sideline-gray {
    height: 102px;
    width: 2px;
    background-color: var(--color-light-gray);
    border-radius: 8px;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.join-span {
    color: var(--color-light-blue);
}

.ui-icon:hover,
.ui-icon:focus {
    outline: none;
    filter: brightness(0) saturate(100%) invert(63%) sepia(14%) saturate(2444%) hue-rotate(157deg) brightness(91%) contrast(95%);
    cursor: pointer;
}

.ui-icon {
    user-select: none;
}

.ui-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 16px;
}

.ui-icon-wrapper:hover,
.ui-icon-wrapper:focus {
    outline: none;
    cursor: pointer;
    background-color: var(--bg-color-gray);
}

.red-border {
    border: 1px solid red !important;
}

.input-error-message {
    color: red;
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    height: 0;
}

.input-error-message>span {
    padding: 0px 8px;
}

.overlay {
    overflow-y: auto;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: safe center;
    align-items: safe center;
    padding: 16px 8px;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
    z-index: 10;
}

.fade-out {
    opacity: 0;
    transition: opacity 125ms ease-out;
}

.overlay>:first-child {
    outline: none;
}

.fly-in-from-right {
    animation: flyInFromRight 200ms ease-out;
}

.fly-out-to-right {
    animation: flyOutToRight 200ms ease-out forwards;
}

.fly-in-from-bottom {
    animation: flyInFromBottom 200ms ease-out;
}

.fly-out-to-bottom {
    animation: flyOutToBottom 200ms ease-out forwards;
}

.overlay:has(.fly-in-from-right, .fly-out-to-right) {
    overflow-x: hidden;
}

@keyframes flyInFromRight {
    0% {
        transform: translateX(calc(50vw + 51%));
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes flyOutToRight {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(calc(50vw + 51%));
    }
}

@keyframes flyInFromBottom {
    0% {
        transform: translateY(calc(50vh + 51%));
    }

    100% {
        transform: translateY(0%);
    }
}

@keyframes flyOutToBottom {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(calc(50vh + 51%));
    }
}

.toast-container {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    gap: 8px;
    justify-items: center;
    z-index: 100;
}

.toast {
    padding: 16px 32px;
    border-radius: 20px;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    animation: toastIt 4000ms cubic-bezier(0.785, 0.135, 0.15, 0.86) forwards;
}

@keyframes toastIt {

    0%,
    100% {
        transform: translateY(+150%);
        opacity: 0;
    }

    5%,
    90% {
        transform: translateY(0%);
        opacity: 1;
    }
}

@media (max-width:480px) {
    .h1-responsive {
        font-size: 44px;
    }

    .h4-responsive {
        font-size: 19px;
    }

    .h5-responsive {
        font-size: 36px;
        font-weight: 400;
    }

    .sideline-blue {
        width: 60px;
        height: 3px;
    }

    .sideline-gray {
        height: 87px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .overlay {
        padding: 0;

        &>:first-child {
            border-radius: 0;
        }
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .h1-responsive {
        font-size: 47px;
    }

    .h4-responsive {
        font-size: 20px;
    }

    .h5-responsive {
        font-size: 36px;
        font-weight: 400;
    }

    .sideline-blue {
        width: 60px;
        height: 3px;
    }

    .sideline-gray {
        height: 87px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px
    }

    .fly-in-from-right {
        animation: flyInFromBottom 200ms ease-out;
    }

    .fly-out-to-right {
        animation: flyOutToBottom 200ms ease-out forwards;
    }

}

@media (max-width: 1024px) and (min-width: 769px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .sideline-blue {
        width: 60px;
        height: 3px;
    }

    .h5-responsive {
        font-size: 40px;
        font-weight: 400;
    }
}