.domoplaner-booking.popups[hidden]:not(.popups--appearing) {
    display: none !important;
}

.domoplaner-booking.popups {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 23, 23, 0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
    /* Above Domoplaner catalog iframe (sw.js sets z-index ~99999999999999) */
    z-index: 100000000000000;
}

.domoplaner-booking.popups .popups__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domoplaner-booking.popups.popups--appearing {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.domoplaner-booking__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100vw - 2rem, 28rem);
    max-height: calc(100vh - 2rem);
    padding: 3rem 1.5rem 2rem;
    background-color: #fff;
    overflow: auto;
}

@media (min-width: 768px) {
    .domoplaner-booking__card {
        width: min(100vw - 4rem, 36rem);
        padding: 3.5rem 2.5rem 2.5rem;
    }
}

.domoplaner-booking__title {
    margin: 0 0 0.75rem;
    text-align: center;
    text-transform: lowercase;
}

.domoplaner-booking__subtitle,
.domoplaner-booking__apartment {
    margin: 0 0 1.5rem;
    text-align: center;
    color: rgba(23, 23, 23, 0.7);
}

.domoplaner-booking__apartment {
    color: #171717;
}

.domoplaner-booking__form .form__fieldset {
    margin-bottom: 1.5rem;
}

.domoplaner-booking__consents {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.domoplaner-booking__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.domoplaner-booking__checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.domoplaner-booking__checkbox-box {
    flex: 0 0 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    border: 1px solid rgba(23, 23, 23, 0.35);
    transition: background-color 0.3s, border-color 0.3s;
}

.domoplaner-booking__checkbox input:checked + .domoplaner-booking__checkbox-box {
    background-color: #00963c;
    border-color: #00963c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5.2L4.2 8.4L11 1.6' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75rem;
}

.domoplaner-booking__checkbox-text {
    color: rgba(23, 23, 23, 0.75);
}

.domoplaner-booking__checkbox-text .link {
    display: inline;
}

.domoplaner-booking__captcha {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    min-height: 102px;
}

.domoplaner-booking__captcha--loading {
    opacity: 0.6;
}

.domoplaner-booking__captcha-error {
    margin: 0;
    text-align: center;
    color: #c0392b;
}

.domoplaner-booking__error {
    margin: 0 0 1rem;
    text-align: center;
    color: #c0392b;
}

.domoplaner-booking__submit {
    width: 100%;
    border-color: #00963c;
}

.domoplaner-booking__submit--loading {
    opacity: 0.6;
    pointer-events: none;
}

.domoplaner-booking__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    text-align: center;
}

.domoplaner-booking__success[hidden],
.domoplaner-booking__form-view[hidden] {
    display: none !important;
}

.domoplaner-booking__close::before,
.domoplaner-booking__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1px;
    background-color: #171717;
}

.domoplaner-booking__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.domoplaner-booking__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 768px) {
    .domoplaner-booking__form.form--callback .form__fieldset {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem 2rem;
    }

    .domoplaner-booking__form.form--callback .form__field {
        width: calc(50% - 1rem);
        margin-bottom: 0;
    }

    .domoplaner-booking__form.form--callback .form__field:last-child {
        width: 100%;
    }
}
