#overlay, #popup {
    position: fixed;
    opacity: 0;
    display: none
}

section.modal {
    padding: 0;
    z-index: 3
}

#overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    transition: opacity .5s;
    z-index: 1000;
}

#popup {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background-color: #fff;
    z-index: 8;
    transition: opacity .5s ease-out;
    max-width: 680px;
    border-radius: 5px;
    height: 495px;
    margin: 0 auto;
    width: 90%;
}

.modal__content {
    width: 100%;
    height: 100%;
}

#popup .modal__inner {
    position: relative;
    z-index: 2;
    height: 50px;
}

#popup .modal__inner-error {
    position: absolute;
    display: none;
    bottom: -23px;
    left: 25px;
    color: red;
}

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

.modal__content .modal__form {
    max-width: 490px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal__select {
    position: relative;
    width: 100%;
    max-width: 490px;
    height: 54px;
    display: inline-block;
    border-radius: 12px;
    font-size: 25px;
    border: 1px solid #a4a6b2;
    margin: 0 auto
}

.modal__select[data-state=active] .modal__select__content-wrapper {
    z-index: 10;
    opacity: 1
}

.modal__select[data-state=""] .modal__select__content-wrapper {
    z-index: -15;
    height: 0;
    border-color: transparent;
}

.modal__select[data-state=active] .modal__select__title::before {
    transform: translate(-3px, -50%) rotate(-45deg)
}

.modal__select[data-state=active] .modal__select__title::after {
    transform: translate(3px, -50%) rotate(45deg)
}

.modal__select[data-state=active] .modal__select__label + .modal__select__input + .modal__select__label {
    max-height: 40px
}

.modal__select__title {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 11px 12px 11px 20px;
    font-size: 25px;
    border-radius: 10px;
    cursor: pointer
}

.modal__select__title::after, .modal__select__title::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    display: block;
    width: 10px;
    height: 2px;
    transition: .3s ease-out;
    background-color: #333;
    transform: translate(-3px, -50%) rotate(45deg)
}

.modal__select__title::after {
    transform: translate(3px, -50%) rotate(-45deg)
}

.modal__select__title:hover {
    border-color: rgba(164, 166, 178, .2)
}

.modal__select__content-wrapper {
    max-height: 190px;
    width: calc(100% + 2px);
    position: absolute;
    right: calc(50% - (50% + 1px));
    top: calc(100% + 5px);
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #a4a6b2;
    transition: .3s ease-out opacity;
    opacity: 0;
    z-index: 8;
    overflow-y: scroll
}

.modal__select__content {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    background-color: #fff;
    overflow-y: hidden;
    padding: 13px 20px 13px 0;
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
    padding-top: 10px
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .5);
    -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)
}

.modal__select__input {
    display: none
}

.modal__select__input:disabled + label {
    opacity: .6;
    pointer-events: none
}

.modal__select__label {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    font-size: 23px;
    transition: .2s ease-out;
    cursor: pointer
}

#popup option, #popup select, .uk-input {
    font-size: 25px
}

.modal__select__label + input + .modal__select__label {
    border-top: 0 solid #c7ccd160
}

.modal__select__label:hover {
    background: rgba(164, 166, 178, .2) !important
}

#popup select {
    position: absolute;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url(../images/chevron-down.svg);
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: 98% 16px;
    width: 100%;
    max-width: 490px;
    padding-left: 15px;
    border-radius: 8px;
    color: #444;
    min-height: 54px
}

#popup select::-webkit-scrollbar {
    width: 5px;
    height: 10px !important
}

#popup select::-webkit-scrollbar-thumb {
    background: #1e1e1e;
    border-radius: 10px
}

#popup select::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #a4a6b2;
    border-radius: 10px
}

.modal__inner-input input::-webkit-input-placeholder {
    color: #a4a6b2;
    font-size: 25px
}

.modal__inner-input input::-moz-placeholder {
    color: #a4a6b2;
    font-size: 25px
}

.modal__inner-input input:-ms-input-placeholder {
    color: #a4a6b2;
    font-size: 25px
}

.modal__inner-input input::-ms-input-placeholder {
    color: #a4a6b2;
    font-size: 25px
}

.modal__inner-input input::placeholder {
    color: #a4a6b2;
    font-size: 25px
}

.modal__outer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 0 25px;
    padding: 0;
    gap: 15px;
    width: 100%;
    max-width: 490px
}

.uk-input {
    padding: 0 20px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 10px;
    border: 1px solid #a4a6b2;
    width: 100%;
    height: 54px;
    max-width: 490px
}

.modal__bottom {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: center;
    width: 100%;
    max-width: 490px;
}

.modal__bottom * {
    margin: 15px auto
}

.modal__bottom button {
    width: 100%;
    padding: 16px 30px;
    margin: 20px 0 0;
    cursor: pointer;
    max-width: 490px;
    border: 2px solid #00be9c;
    background-color: #00be9c;
    color: #fff;
    box-shadow: none;
    border-radius: 0;
}

.modal__bottom button strong {
    color: #fff;
    transition: .3s ease-in-out;
    font-size: 26px
}

.modal__bottom button:hover {
    border-color: #2065ab;
    background-color: #2065ab;
}

.modal__bottom-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 15px;
    font-size: 14px;
    color: #a4a6b2
}

#popup h5 {
    color: #021633;
    text-align: center;
    letter-spacing: 0.4px;
    text-transform: capitalize;
    font-size: 40px;
    margin-bottom: 1.5rem;
    margin-top: 1rem
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    padding: 0;
    height: 25px;
    cursor: pointer;
    background: 0 0;
    border: none;
}

#closePopup {
    width: 100%;
    height: 100%;
    max-width: 100%;
    color: #1e1e1e;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 25px;
    display: block;
}

@media screen and (max-width: 768px) {
    #popup {
    }
}
