/* Shared visual roles and values: assets/css/visual-tokens.css. */
.fancybox__carousel.is-draggable {
    cursor: auto;
}

.fancybox__carousel.is-draggable .fancybox__slide, .fancybox__carousel.is-draggable .fancybox__slide .fancybox__content {
    cursor: auto !important;
}

.form-modal {
    display: flex;
    max-width: 740px;
    width: 100%;
    padding: 70px 110px;
}

.fancybox__content > .carousel__button.is-close {
    top: 30px;
    right: 30px;
    height: auto;
    width: auto;
}

.fancybox__content > .carousel__button.is-close svg {
    width: 24px;
    height: 24px;
    filter: none;
    stroke: rgb(138, 138, 138);
    stroke-width: 1.3px;
}

.form__title {
    font-weight: 400;
    text-transform: none;
}

.form__item {
    position: relative;
}

.form__item textarea {
    padding: 20px;
    height: 85px;
}

.form__fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__label {
    position: absolute;
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-surface);
    padding: 1px 6px;
    margin: 0px;
    left: 17px;
    top: -9px;
    color: var(--seacan-color-text);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.form__input {
    border-radius: 0px;
    height: 45px;
    width: 100%;
    padding: 0px 20px;
    color: var(--seacan-color-text);
    background-image: none;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    font-size: var(--seacan-body-size);
    font-family: inherit;
    background-color: transparent !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-top-color: var(--seacan-color-border) !important;
    border-right-color: var(--seacan-color-border) !important;
    border-bottom-color: var(--seacan-color-border) !important;
    border-left-color: var(--seacan-color-border) !important;
    border-image: none !important;
    box-shadow: unset !important;
}

.form__input.is-invalid {
    border-color: rgb(214, 69, 47) !important;
    box-shadow: rgba(214, 69, 47, 0.12) 0px 0px 0px 2px !important;
}

.form__input.is-valid {
    border-top-color: var(--seacan-color-brand) !important;
    border-right-color: var(--seacan-color-brand) !important;
    border-bottom-color: var(--seacan-color-brand) !important;
    border-left-color: var(--seacan-color-brand) !important;
}

.form__field-message {
    color: rgb(214, 69, 47);
    font-size: 12px;
    line-height: 1.35;
    margin-top: 6px;
}

.form__field-message[hidden] {
    display: none;
}

.form__file input {
    opacity: 0;
    width: 0px;
    height: 0px;
    position: absolute;
}

.form__file {
    margin-bottom: 30px;
    margin-top: 10px;
    cursor: pointer;
}

.form__file label {
    cursor: pointer;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.form__button {
    border: 0px;
}

.form__button:disabled {
    cursor: wait;
    opacity: 0.78;
    pointer-events: none;
}

.form__button.is-loading::after {
    animation: 0.8s linear 0s infinite normal none running form-button-spin;
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-surface);
    border-width: 2px;
    border-style: solid;
    border-top-color: var(--seacan-color-border);
    border-right-color: var(--seacan-color-border);
    border-bottom-color: var(--seacan-color-border);
    border-left-color: var(--seacan-color-border);
    border-image: none;
    box-sizing: border-box;
}

.btn-white.form__button.is-loading::after {
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-action);
    border-top-color: rgb(255, 255, 255);
    border-right-color: var(--seacan-color-border);
    border-bottom-color: var(--seacan-color-border);
    border-left-color: var(--seacan-color-border);
}

.form__message {
    border-width: 1px;
    border-style: solid;
    border-top-color: var(--seacan-color-border);
    border-right-color: var(--seacan-color-border);
    border-bottom-color: var(--seacan-color-border);
    border-left-color: var(--seacan-color-border);
    border-image: none;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.35;
    margin-top: 14px;
    padding: 12px 14px;
}

.form__message[hidden] {
    display: none;
}

.form__message--error {
    background: rgb(255, 246, 237);
    color: var(--seacan-color-text);
}

.form__message--success {
    background: rgb(239, 250, 246);
    border-top-color: var(--seacan-color-border);
    border-right-color: var(--seacan-color-border);
    border-bottom-color: var(--seacan-color-border);
    border-left-color: var(--seacan-color-border);
    color: var(--seacan-color-text);
}

.form-modal__form_white .form__message {
    background: rgba(255, 255, 255, 0.12);
    border-top-color: var(--seacan-color-border);
    border-right-color: var(--seacan-color-border);
    border-bottom-color: var(--seacan-color-border);
    border-left-color: var(--seacan-color-border);
    color: rgb(255, 255, 255);
}

.form__footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.form__agree {
    color: rgba(24, 39, 39, 0.5);
    font-size: 12px;
    font-style: normal;
    margin-bottom: 0px;
    font-weight: 400;
    line-height: normal;
}

@media (max-width: 1200px) {
    .form-modal {
        padding: 40px 50px;
    }
}

@media (max-width: 767px) {
    .form-modal {
        padding: 50px 15px 30px;
        max-height: 100vh !important;
    }

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

    .form__agree br {
        display: none;
    }
}

.form__file svg {
    flex-shrink: 0;
}

.form-modal__form_white .form__file label {
    font-size: 16px;
}

.form-modal__form_white .form__file {
    padding: 14px 60px 14px 25px;
}

.form-modal__form_white .form__input, .form-modal__form_white .form__label, .form-modal__form_white .form__file label {
    color: rgb(255, 255, 255);
}

.form-modal__form_white .form__label {
    background: rgb(45, 75, 68);
}

.form-modal__form_white .form__input {
    border-color: rgb(255, 255, 255) !important;
}

.form-modal__form_white .form__input.is-invalid {
    border-top-color: var(--seacan-color-border) !important;
    border-right-color: var(--seacan-color-border) !important;
    border-bottom-color: var(--seacan-color-border) !important;
    border-left-color: var(--seacan-color-border) !important;
    box-shadow: rgba(255, 176, 136, 0.16) 0px 0px 0px 2px !important;
}

.form-modal__form_white .form__input.is-valid {
    border-top-color: var(--seacan-color-border) !important;
    border-right-color: var(--seacan-color-border) !important;
    border-bottom-color: var(--seacan-color-border) !important;
    border-left-color: var(--seacan-color-border) !important;
}

.form-modal__form_white .form__field-message {
    color: rgb(255, 215, 194);
}

.form-modal__form_white .form__agree {
    color: rgba(255, 255, 255, 0.5);
}
