@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

@font-face {
    font-family: 'Gotham Pro';
    src: url('../fonts/gothampro.ttf');
    src: local('Gotham Pro'), local('Gotham Pro'),
        url('../fonts/gothampro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --color-grey: #F6F6F6;
    --color-grey2: #C4c4c4;
    --color-white: #ffffff;
    --color-red: #E20101;
    --color-violet: #5B41F5;
    --color-violet-hover: #876fff;

    --color-dark-grey: #3E3E3D;
    --color-disabled: #bababa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

* {
    /* Синяя подсветка исчезает без следа */
    -webkit-tap-highlight-color: transparent;
}


body {
    background: var(--color-grey);
    min-width: 390px;
}

.main__container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 390px;
    margin: 0 auto;
    padding: 32px 10px;
}

.header__container {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    margin-bottom: 25px;
}

.header__logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 68px;
}

.logo {
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.header__title-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 16px;
    width: 100%;
    padding-top: 2px;
}

.header__title {
    font-family: Roboto;
    font-size: 33.93px;
    font-weight: 700;
    line-height: 35px;
    letter-spacing: -0.01em;
    text-align: left;

}

.header__subtitle {
    font-family: Roboto;
    font-size: 22.62px;
    font-weight: 400;
    line-height: 29px;
    letter-spacing: -0.01em;
    text-align: left;
}

section {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px #0000001A;
    background: var(--color-white);
    padding: 24px 24px 0 24px;
    margin-bottom: 32px;
}

.block__title {
    font-family: Roboto;
    font-size: 20px;
    font-weight: 700;
    line-height: 25.8px;
    letter-spacing: -0.01em;
    text-align: left;
    margin-bottom: 20px;
}

.item__title {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.64px;
    letter-spacing: -0.01em;
    text-align: left;
    margin-bottom: 16px;
    color: var(--color-dark-grey);
    width: 100%;
}

li::marker {
    font-size: 16px;
    font-family: 'Roboto';
    color: var(--color-dark-grey);
}

.item__notice {
    font-family: Roboto;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 20.64px;
    letter-spacing: -0.01em;
    text-align: left;
    margin-left: 26px;
    margin-bottom: 16px;
    color: var(--color-dark-grey);
}

.first__block .item__notice {
    margin-left: 16px;
}

.input {
    width: 100%;
    height: 45px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 0.5px solid var(--color-grey2);
    background-color: var(--color-grey);
    padding: 16px;
    font-family: Roboto;
    font-size: 18px;
    font-weight: 400;
    line-height: 23.22px;
    letter-spacing: -0.01em;
    text-align: left;
}

.input:disabled {
    border: 0.5px solid var(--color-grey2);
    background-color: var(--color-disabled);
}

.input.error {
    border: 1px solid var(--color-red);
}

.notice__policy {
    font-family: Roboto;
    font-size: 13px;
    font-weight: 400;
    line-height: 16.77px;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--color-dark-grey);
    margin-top: 48px;
}

#shareButton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    padding: 8px 48px;
    gap: 20px;
    border-radius: 8px;
    background: var(--color-violet);
    border: none;
    margin: 32px 0 40px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#shareButton:hover {
    background: var(--color-violet-hover);
}

#shareButton:active {
    background: var(--color-violet-hover);
}

.btn__text {
    color: var(--color-white);
    font-family: Gotham Pro;
    font-size: 15px;
    font-weight: 500;
    line-height: 14.36px;
    letter-spacing: -0.025em;
    text-align: left;
}

.red__notice {
    position: relative;
    display: flex;
    width: 322px;
    font-family: Roboto;
    font-size: 13px;
    font-weight: 400;
    line-height: 16.77px;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--color-red);
    margin-left: 26px;
    margin-bottom: 16px;
}

.footer__container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    max-width: 390px;
    margin: 0 auto;
}

.refresh__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    padding: 8px 48px;
    gap: 20px;
    border-radius: 8px;
    background: #F0EFEF;
    border: none;
    margin: 8px 0 40px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.refresh__link:hover {
    background: #ffffff;
}

.refresh__link:active {
    background: #ffffff;
}

.link-text {
    font-family: Gotham Pro;
    font-size: 15px;
    font-weight: 600;
    line-height: 14.36px;
    letter-spacing: -0.025em;
    text-align: left;
    color: var(--color-violet);
}

.options {
    position: relative;
    display: flex;
    justify-content: flex-start;
    gap: 32px;
    margin-left: 16px;
    margin-bottom: 16px;
}

.options__row {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.options__column {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.options__item {
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
    line-height: 19.35px;
    letter-spacing: -0.01em;
    text-align: left;
}

.options__input {
    display: none;
}

.options__input:checked+.options__label::after {
    transform: scale(1);
}

.options__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: Roboto;
    font-size: 18px;
    font-weight: 300;
    line-height: 23.22px;
    letter-spacing: -0.01em;
    text-align: left;
    cursor: pointer;
}

.options__label::before {
    content: url(/themes/myvisa/assets/forms/japan-form/img/ion_checkbox_unchecked.svg);
    align-self: flex-start;
    flex: 0 0 23px;
    height: 23px;
    margin: 0 10px 0 0;
}

.options__label::after {
    content: url(/themes/myvisa/assets/forms/japan-form/img/ion_checkbox_checked.svg);
    position: absolute;
    align-self: flex-start;
    flex: 0 0 23px;
    height: 23px;
    margin: 0 10px 0 0;
    transform: scale(0);
}

.options.error .options__label::before {
    content: url(/themes/myvisa/assets/forms/japan-form/img/ion_checkbox_unchecked_error.svg);
}

.options__origin {
    margin-left: 0;
    gap: 16px;
}

.options__origin .options__label {
    font-size: 15px;
}

.options__origin .options__label::after,
.options__origin .options__label::before {
    margin: 0 7px 0 0;
}

/* popup */

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.overlay.active {
    z-index: 999;
    opacity: 1;
    visibility: visible;
}

.popup {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 22px 52px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px #0000001A;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.popup.active {
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

#closeBtn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background: #D9D9D9;
    padding: 12px 33px;
    border-radius: 8px;
    font-family: Gotham Pro;
    font-size: 15px;
    font-weight: 600;
    line-height: 14.36px;
    letter-spacing: -0.025em;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#closeBtn:hover {
    background: #e5e5e5;
}

.popup__title {
    font-family: Roboto;
    font-size: 20px;
    font-weight: 700;
    line-height: 25.8px;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 12px;
    white-space: nowrap;
}

.popup__text {
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    line-height: 18.06px;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--color-red);
    margin-bottom: 24px;
    white-space: nowrap;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid;
    border-color: var(--color-violet) 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);
    }
}

.loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
}

.loader-wrapper.active {
    visibility: visible;
    opacity: 1;
}
