@font-face {
    font-family: "Circe";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/Circe-Regular.ttf") format("truetype"),
    url("../fonts/Circe-Regular.woff") format("woff"),
    url("../fonts/Circe-Regular.eot") format("eot");
}

@font-face {
    font-family: "Circe";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/Circe-Light.ttf") format("truetype"),
    url("../fonts/Circe-Light.woff") format("woff"),
    url("../fonts/Circe-Light.eot") format("eot");
}

body {
    font-size: 14px;
    font-family: 'Circe', serif;
    min-width: 360px;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 10px 0px;
    position: relative;
}

.verification-back-button.button {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 56px;
    height: 56px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.verification-back-button svg{
    width: 12px;
    height: 12px;
    fill: white;
}

.select-event{
    padding-top: 40px;
}

.verification-content-block {
    width: 100%;
    padding: 0px 16px;
}

.logo {
    margin-top: 24px;
    height: 100%;
    width: auto;
    top: 2px;
    left: 20px;
}

.button {
    width: 100%;
}

.logo img {
    width: auto;
    height: 100%;
}

h1 {
    font-size: 40px;
    line-height: 60px;
    margin-bottom: 40px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
}

.verification-title{
    font-size: 40px;
    line-height: 44px;
    margin-bottom: 24px;
}

.auth{
    padding-top: 130px;
}

.auth-form,
.select-event
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.select-event-subtitle{
    font-size: 16px;
    margin-bottom: 20px;
}

.search-form{
    margin-bottom: 40px;
}

.event-grid{
    display: flex;
    flex-direction: column;
    overflow: visible;
    max-width: 600px;
    width: 100%;
    margin-bottom: 24px;
}

.search-form{
    max-width: 600px;
    width: 100%;
    display: flex;
    position: relative;
}

.preloader
{
    display: none;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(0%, -50%);
}


.preloader.active
{
    display: block;
}

.search-form .text-field{
    max-width: 600px;
    border-radius: 56px;
    height: 60px;
    margin-bottom: 0px;
}

.event-grid .button + .button{
    margin-top: 16px;
}

.text-field {
    width: 100%;
    max-width: 480px;
    height: 48px;
    padding: 8px 24px;
    font-size: 18px;
    line-height: 18px;
    border-radius: 6px;
    border: 1px solid black;
    margin-bottom: 16px;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 56px;
    background: black;
    cursor: pointer;
    color: white;
    line-height: 26px;
    font-size: 20px;
    text-align: center;
}

.verification{
    padding-top: 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.verification-inner{
    max-width: 600px;
}

.validation-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 40px;
}

.validation-info-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.validation-info-item-title{
    width: 100%;
    min-width: 200px;
    color: #B6B6B6;
    font-size: 16px;
}

.validation-info-item-value{
    color: black;
    font-size: 16px;
    font-weight: bold;
}

.validation-info-item-value + .validation-info-item-value{
    margin-left: 5px;
}

.validation-form-title{
    display: block;
    margin-bottom: 8px;
}

.validation-form .text-field{
    max-width: none;
    margin-bottom: 0px;
}

.validation-form-result{
    margin-top: 40px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.validation-form-result-info{
    text-align: center;
    font-size: 16px;
    margin-top: 8px;
    font-weight: 700;
    line-height: 22px;
    text-transform: uppercase;
}

.validation-form-result-value{
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
}

.validation-form-result-value.value-error{
    color: #B40000;
}

.validation-form-result-value.value-warning{
    color: #E78600;
}

.validation-form-result-icon{
    width: 300px;
    height: 90px;
    margin-top: 20px;
    overflow: visible;
}

.validation-form-result-icon svg{
    max-height: 100%;
}
.error{
    margin-bottom: 20px;
    max-width: 480px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.validation-form-input{
    position: relative;
}

.validation-form-button-camera{
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translate(0%, -50%);
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.validation-form-input .text-field{
    padding: 8px 40px 8px 24px;
}

.validation-form-button-camera svg{
    height: 16px;
    width: 16px;
}

.validation-form-popup-camera{
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%; /* Используем 100% вместо 100vh */
    max-height: -webkit-fill-available; /* Для мобильных браузеров */
    position: fixed;
    top: 0px;
    left: 0px;
    background: white;
    max-height: 100vh;
    overflow: hidden;
    z-index: 100;
}

.validation-form-popup-camera.active{
    display:flex;
}

.scanner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: white; /* Фон вокруг сканера */
    display: flex;
    justify-content: center;
    align-items: center;
}

#scanner {
    width: 100%;
    height: auto;
    object-fit: cover; /* Чтобы видео заполняло контейнер */
}

.validation-form-result-button.button{
    display: none;
}


.validation-form-popup-camera-header{
    width: 100%;
    min-height: 90px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: transparent;
}

.validation-form-popup-camera .validation-form-result{
    margin-top: 5px;
    min-height: 130px;
    height: 130px;
    flex-shrink: 0;
    width: 100%;
}

.validation-form-popup-camera .validation-form-result-icon{
    width: 300px;
    height: 70px;
}

.validation-form-popup-camera-header .preloader {
    right: 24px;
}

.validation-form-popup-camera .validation-form-result {
    position: fixed;
    background: white;
    max-width: 800px;
    width: 100%; /* Добавляем отступы от краев на мобильных */
    bottom: 0;
    left: 50%; /* Центрируем по горизонтали */
    transform: translate(-50%, 100%); /* Смещаем вниз и центрируем */
    z-index: 20;
    height: auto;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    margin-bottom: 0;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1), 
                0 -6px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 0.3s ease-out;
}

.validation-form-popup-camera .validation-form-result.active {
    transform: translate(-50%, 0); /* Центрируем по X и поднимаем по Y */
    opacity: 1;
}

.validation-form-popup-camera .validation-form-result-button.button{
    display: flex;
    margin-top: 20px;
    width: calc(100% - 32px);
}
.validation-form-result-row{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
    .validation-form-popup-camera-header{
        width: 100%;
        min-height: 128px;
    }

    header{
        height: 128px;
    }

    h1 {
        font-size: 80px;
        line-height: 80px;
        margin-bottom: 80px;
    }

    .search-form .text-field{
        height: 80px;
    }

    .select-event{
        padding-top: 80px;
    }

    .select-event-subtitle{
        font-size: 16px;
        margin-bottom: 40px;
    }

    .search-form{
        margin-bottom: 80px;
    }

    .button{
        padding: 24px;
    }

    .verification-back-button.button {
        left: 16px;
        top: 16px;
    }

}