.aptechka__form-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 100px;
    gap: 20px;
}

.aptechka__form-main {
    max-width: 600px;
}

.aptechka__form-description {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
    margin-bottom: 28px;
}

.aptechka__form-description span {
    color: #1F3B71;
    font-family: "GT Eesti Pro Display", sans-serif;
    font-size: 38px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
}

.aptechka__form-description p {
    color: #1F3B71;
    font-family: "GT Eesti Pro Display", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 350;
    line-height: 100%;
}

.aptechka__form {
    display: flex;
    flex-direction: column;
}

.aptechka__form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aptechka__form-field span {
    color: #1F3B71;
    font-family: "GT Eesti Pro Display", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 350;
    line-height: 100%;
}

.aptechka__form-image img {
    max-width: 475px;
}

.aptechka__form-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 40px 0;
}

.aptechka__form-mark {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.aptechka__form-mark input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.aptechka__form-mark span {
    font-size: 14px;
    font-family: "GT Eesti Pro Display", sans-serif;
    color: #002169;
    position: relative;
    font-weight: 300;
    padding-left: 34px;
    line-height: 1.2;
}

.aptechka__form-mark span::before {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 18px;
    height: 18px;
    background-color: #FFFFFF;
    border: 1px solid #1F3B71;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.aptechka__form-mark a {
    color: #002169;
    text-decoration: underline;
}

.aptechka__form-mark input[type="checkbox"]:checked + span::before {
    background-color: #1F3B71;
}

.aptechka__form-mark input[type="checkbox"]:checked + span::after {
    content: '';
    position: absolute;
    left: 6px;
    top: -1px;
    width: 6px;
    height: 12px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    border-radius: 1px;
}

.aptechka__button-complete {
    padding: 24px 40px;
    align-items: center;
    border-radius: 68px;
    background: #1F3B71;
    color: #FFF;
    text-align: center;
    font-family: "GT Eesti Pro Display", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.aptechka__form-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.aptechka__button-complete:hover {
    color: rgba(255, 255, 255, 0.50);
}

.aptechka__form-error {
    color: #E05252;
    border-color: #E05252;
    font-family: "GT Eesti Pro Display", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 350;
    line-height: 100%;
}

@media (max-width: 900px) {
    .aptechka__form-wrapper {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .aptechka__form-image img {
        max-width: 410px;
        width: 100%;
    }

    .aptechka__form-description span {
        font-size: 28px;
    }

    .aptechka__form-description {
        margin-bottom: 24px;
    }

    .aptechka__form-mark span {
        line-height: 1;
    }

    .aptechka__form-checks {
        margin-bottom: 24px;
    }
}

@media (max-width: 500px) {

    .aptechka__button-complete {
        padding: 20px 40px;
    }
}

.aptechka__form-field textarea {
    resize: none;
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #E7E7E7;
    font-family: "GT Eesti Pro Display", sans-serif;
    font-size: 18px;
    font-weight: 350;
    padding: 12px;
    color: #1F3B71;
}

.aptechka__form-field textarea:focus-visible {
    outline: 1px solid #E7E7E7;
}


.aptechka__popup-form {
    border: none;
    padding: 16px 44px 16px 16px;
    background: transparent;
    max-width: unset;
    max-height: unset;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
}

.aptechka__popup-form[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aptechka__popup-form::backdrop {
    background: rgba(180, 185, 195, 0.72);
}

.aptechka__popup-form-content {
    background: #FFF;
    border-radius: 20px;
    padding: 52px;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 40, 90, .18);
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}

.aptechka__popup-form-wrapper {
    position: relative;
    max-width: 650px;
    width: 100%;
}

.aptechka__popup-form-close {
    position: absolute;
    top: -20px;
    right: -20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.aptechka__popup-form-close::before,
.aptechka__popup-form-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #939393;
}

.aptechka__popup-form-close::before {
    transform: translateY(-50%) rotate(45deg);
}

.aptechka__popup-form-close::after {
    transform: translateY(-50%) rotate(-45deg);
}

.aptechka__popup-form-title {
    color: #94C11F;
    font-family: "GT Eesti Pro Display", sans-serif;
    font-size: 38px;
    font-style: normal;
    font-weight: 500;
    line-height: 95%;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.aptechka__popup-form-text {
    color: #1F3B71;
    font-family: "GT Eesti Pro Display", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
    margin-bottom: 24px;
}

.aptechka__popup-form-logo {
    max-width: 120px;
    width: 100%;
    align-self: end;
}

@media (max-width: 900px) {
    .aptechka__popup-form-wrapper {
        max-width: 500px;
    }

    .aptechka__popup-form-content {
        padding: 28px;
    }

    .aptechka__popup-form-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .aptechka__popup-form-text {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .aptechka__popup-form-close {
        width: 40px;
        height: 40px;
        top: -35px;
        right: -35px;
    }
}

@media (max-width: 600px) {
    .aptechka__popup-form-wrapper {
        max-width: 320px;
    }

    .aptechka__popup-form-close {
        width: 35px;
        height: 35px;
        top: -32px;
        right: -32px;
    }
}