.popup-form-appointment {
    --ap-bg: #fefefe;
    --ap-text: #30333a;
    --ap-accent: #a72035;
    --ap-muted: #a9b2c7;
    --ap-border: #dde5f9;
    --ap-input-bg: #f9f9f9;
    --ap-white: #ffffff;
    --ap-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    --ap-overlay-bottom: rgba(41, 44, 51, 0.5);
    --ap-overlay-accent: rgba(167, 32, 53, 0.7);

    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 24px;
    background: rgba(48, 51, 58, 0.55);
    overflow-y: auto;
}

.popup-form-appointment.active {
    display: block;
}

body.appointment-popup-open {
    overflow: hidden;
}

.popup-form-appointment .appointment-popup__dialog {
    position: relative;
    width: min(940px, 100%);
    margin: 24px auto;
    padding: 12px;
    background: var(--ap-bg);
    box-shadow: var(--ap-shadow);
}

.popup-form-appointment .closeThis {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ap-text);
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

.popup-form-appointment .appointment-popup__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 452px;
    gap: 12px;
    align-items: stretch;
    max-height: 90vh;
    overflow: hidden;
}

.popup-form-appointment .appointment-popup__right {
    min-width: 0;
}

.popup-form-appointment .appointment-popup__left {
    position: relative;
    min-width: 0;
}

.popup-form-appointment .appointment-popup__slider,
.popup-form-appointment .slick-list,
.popup-form-appointment .slick-track,
.popup-form-appointment .slick-slide,
.popup-form-appointment .slick-slide > div {
    height: 100%;
}

.popup-form-appointment .appointment-popup__slide,
.popup-form-appointment .appointment-popup__image-wrap {
    height: 100%;
}

.popup-form-appointment .appointment-popup__image-wrap {
    position: relative;
    min-height: 569px;
    overflow: hidden;
    background: #ddd;
}

.popup-form-appointment .appointment-popup__image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 569px;
    object-fit: cover;
}

.popup-form-appointment .appointment-popup__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(100% 100% at 100% 100%, var(--ap-overlay-accent) 0%, rgba(167, 32, 53, 0) 100%),
        linear-gradient(180deg, rgba(41, 44, 51, 0) 54.54%, var(--ap-overlay-bottom) 84.18%);
    pointer-events: none;
}

.popup-form-appointment .appointment-popup__caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 27px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.popup-form-appointment .appointment-popup__quote-wrap {
    overflow: hidden;
}

.popup-form-appointment .appointment-popup__quote-inner {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-form-appointment .appointment-popup__quote-inner.slide-out-up {
    transform: translateY(-100%);
    opacity: 0;
}

.popup-form-appointment .appointment-popup__quote-inner.slide-out-down {
    transform: translateY(100%);
    opacity: 0;
}

.popup-form-appointment .appointment-popup__quote-inner.slide-in-from-bottom {
    transform: translateY(100%);
    opacity: 0;
}

.popup-form-appointment .appointment-popup__quote-inner.slide-in-from-top {
    transform: translateY(-100%);
    opacity: 0;
}

.popup-form-appointment .appointment-popup__quote-inner.transition-none {
    transition: none !important;
}

.popup-form-appointment .appointment-popup__quote {
    margin: 0;
    color: var(--ap-white);
    font-family: "Nunito Sans", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
}

.popup-form-appointment .appointment-popup__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(254, 254, 254, 0.15);
}

.popup-form-appointment .appointment-popup__reviews-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-form-appointment .appointment-popup__stars {
    display: flex;
    gap: 4px;
    color: var(--ap-white);
    font-size: 16px;
    line-height: 1;
}

.popup-form-appointment .appointment-popup__reviews-label {
    color: var(--ap-white);
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.popup-form-appointment .appointment-popup__arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-form-appointment .appointment-popup__arrow {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    color: var(--ap-white);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.popup-form-appointment .appointment-popup__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-form-appointment .appointment-popup__arrow span {
    font-size: 18px;
    line-height: 1;
}

.popup-form-appointment .appointment-popup__right {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 28px;
    border: 1px solid var(--ap-border);
    background: var(--ap-bg);
}

.popup-form-appointment .appointment-popup__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
    text-align: center;
}

.popup-form-appointment .appointment-popup__title {
    margin: 0;
    color: var(--ap-text);
    font-family: "Lora", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

.popup-form-appointment .appointment-popup__subtitle {
    color: var(--ap-accent);
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
}

.popup-form-appointment h2:after {
    content: unset;
}

.popup-form-appointment .appointment-popup__subtitle:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    display: block;
    width: 253px;
    height: 7px;
    margin: 0 auto;
    top: 50px;
}

.popup-form-appointment .contact-form {
    margin-top: 40px;
}

.popup-form-appointment .contact-form,
.popup-form-appointment .wpcf7,
.popup-form-appointment .wpcf7 form {
    width: 100%;
}

.popup-form-appointment .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-form-appointment .wpcf7 form > p,
.popup-form-appointment .wpcf7 form .popup-row,
.popup-form-appointment .wpcf7 form .popup-field,
.popup-form-appointment .wpcf7 form .wpcf7-form-control-wrap {
    width: 100%;
}

.popup-form-appointment .wpcf7 p {
    margin: 0;
    display: flex;
    align-items: center;
}

.popup-form-appointment .popup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.popup-form-appointment .popup-field {
    position: relative;
}

.popup-form-appointment .popup-field::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 16px;
    z-index: 2;
    width: 24px;
    height: 24px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.popup-form-appointment .popup-field--name::before {
    background-image: url("/wp-content/uploads/2026/04/user.svg");
}

.popup-form-appointment .popup-field--email::before {
    background-image: url("/wp-content/uploads/2026/04/mail.svg");
}

.popup-form-appointment .popup-field--phone::before {
    background-image: url("/wp-content/uploads/2026/04/phone.svg");
}

.popup-form-appointment .popup-field--location::before {
    background-image: url("/wp-content/uploads/2026/04/location.svg");
}

.popup-form-appointment .popup-field--message::before {
    background-image: url("/wp-content/uploads/2026/04/message.svg");
}

.popup-form-appointment input[type="text"],
.popup-form-appointment input[type="email"],
.popup-form-appointment input[type="tel"],
.popup-form-appointment textarea,
.popup-form-appointment select {
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    padding: 0 16px 0 48px;
    border: 0;
    border-radius: 0;
    background: var(--ap-input-bg);
    box-shadow: none;
    color: var(--ap-text);
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    line-height: 25px;
}

.popup-form-appointment textarea {
    min-height: 120px;
    padding-top: 16px;
    padding-bottom: 16px;
    resize: vertical;
}

.popup-form-appointment select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image:
        linear-gradient(45deg, transparent 50%, #a9b2c7 50%),
        linear-gradient(135deg, #a9b2c7 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.popup-form-appointment input::placeholder,
.popup-form-appointment textarea::placeholder {
    color: var(--ap-muted);
    opacity: 1;
}

.popup-form-appointment input[type="submit"],
.popup-form-appointment .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 133px;
    height: 56px;
    margin: 0 auto;
    padding: 0 36px;
    border: 0;
    background: var(--ap-accent);
    color: var(--ap-white);
    font-family: "Nunito Sans", sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.popup-form-appointment .wpcf7-spinner {
    margin: 12px auto 0;
}

.popup-form-appointment .wpcf7-response-output,
.popup-form-appointment .wpcf7-not-valid-tip {
    font-size: 14px;
}

.popup-form-appointment .screen-reader-response,
.popup-form-appointment .wpcf7-character-count,
.popup-form-appointment .ccEmail,
.popup-form-appointment .sendToEmail {
    display: none !important;
}

.popup-form-appointment .appointment-popup__trigger {
    display: none;
}

@media (max-width: 991px) {
    .popup-form-appointment {
        padding: 16px;
    }

    .popup-form-appointment .appointment-popup__dialog {
        width: min(680px, 100%);
        margin: 16px auto;
        padding: 8px;
    }

    .popup-form-appointment .appointment-popup__inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .popup-form-appointment .appointment-popup__image-wrap,
    .popup-form-appointment .appointment-popup__image-wrap img {
        min-height: 360px;
    }

    .popup-form-appointment .appointment-popup__right {
        padding: 28px 18px;
    }

    .popup-form-appointment .appointment-popup__title {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .popup-form-appointment {
        padding: 8px;
    }

    .popup-form-appointment .appointment-popup__dialog {
        margin: 0 auto;
        padding: 8px;
    }

    .popup-form-appointment .appointment-popup__image-wrap,
    .popup-form-appointment .appointment-popup__image-wrap img {
        min-height: 280px;
    }

    .popup-form-appointment .appointment-popup__caption {
        padding: 16px;
    }

    .popup-form-appointment .appointment-popup__quote {
        font-size: 18px;
        line-height: 1.45;
    }

    .popup-form-appointment .appointment-popup__footer {
        align-items: start;
        flex-direction: column;
        padding: 10px 16px;
    }

    .popup-form-appointment .appointment-popup__arrows {
        align-self: flex-end;
    }

    .popup-form-appointment .appointment-popup__right {
        padding: 24px 16px;
    }

    .popup-form-appointment .appointment-popup__title {
        font-size: 28px;
    }

    .popup-form-appointment .appointment-popup__subtitle {
        font-size: 13px;
        line-height: 1.5;
        letter-spacing: 1.8px;
    }

    .popup-form-appointment .popup-row {
        grid-template-columns: 1fr;
    }

    .popup-form-appointment input[type="text"],
    .popup-form-appointment input[type="email"],
    .popup-form-appointment input[type="tel"],
    .popup-form-appointment textarea,
    .popup-form-appointment select {
        font-size: 16px;
    }
}

.popup-form-appointment.active {
    width: 100%;
    max-width: 100vw;
}
