@font-face {
    font-family: GillSansNova;
    font-display: fallback;
    src: local("GillSansNova Light"), url(../../../../assets/fonts/GillSans/GillSans-light.woff2) format("woff2");
    font-weight: 400
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal__content {
    position: relative;
    background: white;
    padding: 60px 30px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    color: black;
    margin: auto;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    font-family: 'GillSansNova', sans-Serif;
}

.modal__close-btn {
    margin-top: 20px;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    position: absolute;
    top: 0;
    right: 0;
    background: unset;
}

.modal__title {
    font-style: normal;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 26px;
    padding-bottom: 15px;
    position: relative;
}

.modal__title::after {
    background-color: #e2001a;
    bottom: 0;
    content: '';
    height: 1px;
    left: 50%;
    margin-left: -31px;
    position: absolute;
    width: 62px;
}

.modal__text {
    margin-top: 25px;
    font-size: 20px;
    line-height: 1.4;
}

.form-wrapper {
    font-family: 'GillSansNova', sans-Serif;
    padding: 30px 20px 70px;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    box-sizing: border-box;
}

.form-wrapper form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 495px;
    margin: 0 auto;
}

.form__title {
    font-style: normal;
    font-weight: normal;
    font-size: 26px;
    text-transform: uppercase;
    margin: 0  0 40px 0;
}


.form__field {
    width: 100%;
}

.form__field_text {
    position: relative;
    height: 30px;
}

.form__field_text .form__label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
}

.form__field_text .form__input:focus + .form__label,
.form__field_text .form__input:not(:placeholder-shown) + .form__label,
.form__field_text .form__input:active + .form__label {
    top: -10px;
}

.form__label {
    font-size: 16px;
    color: #333;
}
.form__input {
    width: 100%;
    border-bottom: 1px solid #d1d1d1;
}

.form__submit {
    color: #fff;
    background-color: #000;
    font-size: 15px;
    border: unset;
    width: 250px;
    height: 45px;
    text-transform: uppercase;
}

.form__label a {
    color: #000;
    text-decoration: underline;
}
.form__field_checkbox {
    max-width: 250px;
}

.form__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form__field_checkbox .form__label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    line-height: 1.4;
    display: inline-block;
    color: #333;
}

.form__field_checkbox .form__label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 25px;
    height: 25px;
    border: 1px solid #d1d1d1;
    background: #fff;
    transition: all 0.2s ease;
}

.form__field_checkbox .form__label::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 5px;
    width: 6px;
    height: 13px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.form__field_checkbox .form__checkbox:checked + .form__label::before {
    background: #000;
    border-color: #000;
}

.form__field_checkbox .form__checkbox:checked + .form__label::after {
    transform: rotate(45deg) scale(1);
}
.form__field_text .form__input:focus-within::after {
    width: 100%;
}

.form__field_text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 0;
    background-color: #e2001a;
    transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);
    z-index: 2;
}

.form__field_text:focus-within::after {
    width: 100%;
}