/* Позиционирование колонки (отступ сверху компенсирует липкую шапку сайта) */



.page-sidebar-layout__sidebar {}

.page-sidebar-layout__sticky {
    padding: 1.8rem 1.8rem 0 1.8rem;
    position: sticky;
    top: calc(4rem + var(--space-4));
    border-radius: 2.5rem;
    /* overflow: hidden; */
    background: var(--brand-muted);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="635" height="95" viewBox="0 0 635 95" fill="none"><ellipse cx="317.5" cy="204" rx="410.5" ry="204" fill="%23096766"/></svg>');
    background-position: bottom center;
    background-size: 100%;
    background-repeat: no-repeat;
}

/* Визуальное оформление блока формы */
.sidebar-contact-form {}

.sidebar-contact-form__title {
    margin-top: 0;
    margin: 0 0 var(--space-3) 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 120%;
}

.sidebar-contact-form__desc {
    font-size: .7rem;
    color: var(--text-muted)
}

.sidebar-contact-form__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.sidebar-contact-form__input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-family: var(--font-main);
    background-color: var(--bg-white);
}

.sidebar-contact-form__submit {
    width: 100%;
    justify-content: center;
}

.page-sidebar-layout>div {
    gap: 1.8rem;
    grid-template-columns: auto 32rem;
}

section.page-sidebar-layout section:last-child {
    margin: 0;
}


.sidebar-contact-form__image {
    position: relative;
    height: 7rem;
}

.sidebar-contact-form__image>img {
    position: absolute;
    bottom: 0;
    /* height: auto; */
    width: auto;
    object-fit: cover;
    min-height: 7rem;
}


.sidebar-contact-form__form .phone-input__input {
    background-color: var(--bg-white);

}

.contact-sidebar__field {
    gap: var(--space-2);
}

.contact-sidebar__field label {
    font-size: .7rem;
    color: var(--text);
    line-height: 100%;
    padding-left: var(--space-5);
}

.contact-sidebar__input {
    width: 100%;
    background-color: var(--bg-white);
    border: 1px solid transparent;
    border-radius: 1.2rem;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-main);
    color: var(--text);
    outline: none;
    transition: border-color 0.3s ease;
    box-shadow: 0 20px 40px -15px rgba(10, 61, 36, 0.05);
    font-size: .9rem;
    line-height: 100%;
    height: 2.1rem;
}

.contact-sidebar__input:focus {
    border-color: var(--brand);
}

.sidebar-contact-form__terms {
    font-size: .7rem;
}

.sidebar-contact-form__checkbox input {
    appearance: none;
    position: absolute;
    opacity: 0;
}

.sidebar-contact-form__checkbox {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: flex;
    background-color: #CDDEDE;
    cursor: pointer;
    background-position: 50% 55%;
    background-size: 10px;
    background-repeat: no-repeat;
    background-image: none;
}


.sidebar-contact-form__terms>p {
    max-width: calc(100% - 1.4rem - var(--space-3));
}



.sidebar-contact-form__checkbox:not(:has(input[type="checkbox"]:checked)):hover {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="9" viewBox="0 0 11 9" fill="none"><path d="M3.8 8.01667L0 4.21667L0.95 3.26667L3.8 6.11667L9.91667 0L10.8667 0.95L3.8 8.01667Z" fill="black" fill-opacity="0.2"/></svg>');
}

.sidebar-contact-form__checkbox:has(input[type="checkbox"]:checked) {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="9" viewBox="0 0 11 9" fill="none"><path d="M3.8 8.01667L0 4.21667L0.95 3.26667L3.8 6.11667L9.91667 0L10.8667 0.95L3.8 8.01667Z" fill="white"/></svg>');
    background-color: var(--brand);

}

.sidebar-contact-form__form .contact-sidebar__field .iti__country-selector {
    background: var(--bg-white) !important;
}




.sidebar-contact-form__form .action-button.is-loading .action-button__label,
.sidebar-contact-form__form .action-button.is-loading .action-button__icon {
    opacity: 0;
}


@media(max-width: 1024px) {
    .contact-sidebar__fields {
        grid-template-columns: 1fr !important;
    }

    .page-sidebar-layout>div {
        gap: var(--space-5);
        grid-template-columns: 60% 40%;
    }

    .faq__question {
        gap: var(--space-5);
    }
}



@media(max-width: 768px) {
    .page-sidebar-layout>div {
        grid-template-columns: 1fr;

    }
}