.bottom__image__mobile {
    display: none;
}

.bottom {
    padding: 100px 0;
    background: url(../images/bottom/bottom_bg.webp) no-repeat;
    background-position: center;
    background-size: cover;
}

.bottom__inner {
    max-width: 1500px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto;
}

.bottom__faq {
    overflow: hidden;
}

.bottom__faq__title {
    display: block;
    width: 100%;
    height: 69px;
    margin-left: -82px;
}

.bottom__faq-container__wrapper {
    height: 432px;
    padding: 0 20px;
    position: relative;
    margin-top: 12px;
}

.bottom__faq-container__wrapper::after {
    display: block;
    content: "";
    height: 130px;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.bottom__faq-container {
    max-width: 640px;
    padding-right: 40px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-y: scroll;
    scroll-behavior: auto;
}

.bottom__faq-container__wrapper.scrolled-to-bottom::after {
    display: none;
}

/* Custom scrollbar styling for .bottom__faq-container */

/* Firefox scrollbar styles */
.bottom__faq-container {
    scrollbar-width: thin !important; /* Firefox: Thin scrollbar */
    scrollbar-color: #fb6639 #d9d9d9 !important; /* Firefox: Thumb and track color */
}

.bottom__faq-item {
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 19px;
    margin-bottom: 18px;
}

.bottom__faq-question {
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.bottom__faq-question::after {
    content: "";
    display: block;
    width: 20px;
    height: 10px;
    background: url(../images/bottom/arrow.svg) center no-repeat;
    background-size: cover;
    transition: transform 0.3s ease;
}

.bottom__faq-question.active::after {
    transform: rotate(180deg);
}

.bottom__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.bottom__faq-answer.open {
    max-height: 500px;
}

.bottom__faq-answer p {
    margin: 0;
    color: #383838;
    font-size: 16px;
}

/* Register */

.bottom__register {
    display: flex;
    justify-content: end;
    align-items: end;
    flex-direction: column;
    background: url(../images/bottom/grey-bg.webp) no-repeat;
    background-position: 100% 0;
    background-size: 100% 325px;
    padding-top: 75px;
}

.bottom__register__label {
    width: 100%;
    border-radius: 0 8px 8px 0;
    background: #2d2d2d;
    color: #fff;
    text-align: end;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.13;
    text-transform: uppercase;
    padding: 4px 66px 5px 20px;
    margin-top: 17px;
}

.bottom__register__box {
    margin-right: 35px;
    background: url(../images/bottom/bottom_form_bg-image.webp) no-repeat;
    background-size: 196px 348px;
    background-position: 0 70px;
    padding-left: 155px;
}

.register__form {
    height: 560px;
    width: 420px;
    max-width: 460px;
    background: url(../images/form-bg.webp) center no-repeat;
    background-size: 100% 100%;
    padding: 45px 30px 55px;
    z-index: 1;
}

.register__form.success_submit {
    height: 510px;
    background: url(../images/form_success_bg.webp) center no-repeat;
    background-size: 100% 100%;
}

.register__form__image {
    display: block;
    width: 292px;
    height: 313px;
    position: absolute;
    right: 75%;
    top: 50px;
    z-index: -1;
}

.register__form__title {
    color: #fb6639;
    text-align: center;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.13;
    text-transform: uppercase;
}

.register__form__subtitle {
    color: #383838;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.13;
    text-transform: uppercase;
    margin-bottom: 29px;
}

.register__form__input {
    display: block;
    max-width: 336px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    padding: 13px 14px 12px;

    color: #2d2d2d;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0 auto 15px;
}

.register__form__input::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.register__form__input::-moz-placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.register__form__input:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.register__form__input::-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.register__form__input::placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.register__form__button {
    max-width: 336px;
    cursor: pointer;
    width: 100%;
    display: block;
    font-family: "Montserrat", sans-serif;

    background: url(../images/orange_btn.webp) center no-repeat;
    background-size: 100% 100%;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.13;
    text-transform: uppercase;
    padding: 11px;
    margin: 25px auto 0;
}

.register__form__button:hover {
    background: url(../images/orange_btn-hover.webp) center no-repeat;
    background-size: 100% 100%;
}

.register__form__checkbox-group {
    display: flex;
    gap: 10px;
    max-width: 336px;
    margin: 0 auto;
}

.register__form__checkbox {
    flex: 1 0 20px;
    width: 20px; /* Size of the checkbox */
    height: 20px;
    appearance: none;
    background-color: #fff;
    border: 1px solid #E95937; /* Border similar to the screenshot */
    border-radius: 3px; /* Slight rounding for a modern look */
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* When checkbox is checked */
.register__form__checkbox:checked {
    background-color: #FB6639; /* Fill background with #FB6639 */
    border-color: #FB6639; /* Make the border match the fill */
}

/* Checkbox checkmark style */
.register__form__checkbox:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid white; /* White checkmark */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.register__form__checkbox-group__label {
    color: #8C8C8C;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.1;
}

/* MEDIA */

@media (max-width: 1250px) {
    .register__form.success_submit {
        height: 460px;
        background: url(../images/form_success_bg.webp) center no-repeat;
        background-size: 100% 100%;
    }


    .bottom {
        padding: 90px 0 112px;
        background: url(../images/bottom/media/bottom_tablet.webp) no-repeat;
        background-position: center;
        background-size: 200% 150%;
    }

    .bottom__register {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background: url(../images/bottom/media/bottom_register_bg-tablet.webp) no-repeat;
        background-position: center;
        background-size: 100% 100%;
        padding: 30px 5px 25px;
        border-radius: 0 11px 11px 0;
    }

    .bottom__register__box {
        padding: 0;
        background: transparent;
        margin: 0;
    }

    .bottom__register__box .register__form {
        margin: 0 auto;
    }

    .bottom__register__label {
        text-align: center;
        font-size: 20px;
        font-weight: 500;
        max-width: 300px;
        background-color: transparent;
        margin: 10px auto 0;
        padding: 0;
    }

    .bottom__register__label.--desktop {
        display: none !important;
    }

    .bottom__register__label.--tablet {
        display: block !important;
    }

    .bottom__faq__title {
        height: auto;
        margin: 0 0 0 5px;
    }

    .bottom__faq__title.--desktop {
        display: none !important;
    }

    .bottom__faq__title.--tablet {
        display: block !important;
    }

    .bottom__faq-container__wrapper {
        height: 500px;
        padding: 0 20px 0 0;
    }

    .bottom__faq-container {
        padding-right: 20px;
    }

    .bottom__faq-item {
        padding: 14px 20px;
    }

    .bottom__faq-question {
        font-size: 16px;
        padding: 0;
    }

    .bottom__faq-question.active {
        padding-bottom: 10px;
    }

    .bottom__faq-question::after {
        margin-left: 40px;
    }

    .bottom__faq {
        padding-left: 20px;
    }
}

@media (max-width: 720px) {
    .bottom {
        padding: 0;
        position: relative;
        z-index: 1;
    }
    .bottom:after{
        content: '';
        display: block;
        width: 100%;
        height: 119px;
        background: url(../images/bottom/media/bottom-leaves-mobile.webp) center no-repeat;
        background-size: 100% 100%;
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
    }
    .bottom__inner {
        display: flex;
        flex-direction: column;
    }

    .bottom__register {
        border-radius: 0;

        flex-direction: column;
        background: url(../images/bottom/media/register_bg_mobile.webp) no-repeat;
        background-position: center;
        background-size: 101% 100%;
        padding: 100px 0 72px;
    }

    .bottom__faq {
        padding-left: 0;
        overflow: hidden;
    }

    .bottom__faq__title {
        max-width: 470px;
        width: 470px !important;
        height: auto;
        margin: 0 auto;
    }

    .bottom__faq-container__wrapper {
        height: 300px;
        padding: 0 20px;
        margin-top: 25px;
    }

    .bottom__faq-container {
        max-width: 400px;
        padding-right: 0;
        margin: 0 auto;
    }

    .bottom__image__mobile {
        display: block !important;
        margin-top: 28px;
    }
}

@media (max-width: 440px) {
    .bottom__faq__title {
        margin-left: -40px;
    }
}
