/* Shared appointment accents. Keep navigation and secondary actions quiet. */
:root { --appointment-accent: #854c3e; --appointment-hover: #703c30; --appointment-ink: #3d302b; }
body.appointment-open { transition: none; }
.kilia-form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; pointer-events: none !important; }
.appointment-cta.appointment-cta {
    position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
    cursor: pointer;
}
/* New controls follow the theme's original rounded button-grey style. */
.appointment-dock__book, .appointment__success .appointment-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #8e736b; color: #fff; border: 0; border-radius: 50px;
    font-family: inherit; font-weight: 600; text-transform: uppercase;
    text-align: center; line-height: 1.4; text-decoration: none;
}
.appointment-cta:focus-visible, .appointment button:focus-visible, .appointment a:focus-visible, .appointment-dock a:focus-visible, .appointment-dock button:focus-visible { outline: 3px solid #b68c5b; outline-offset: 4px; }
.appointment-cta::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, #ffffff30 48%, transparent 66%);
    transform: translateX(-130%); animation: appointment-shimmer 4s ease-in-out infinite;
}
@keyframes appointment-shimmer { 0%, 62% { transform: translateX(-130%); } 93%, 100% { transform: translateX(130%); } }
.header { box-shadow: 0 2px 20px #47382f0a; }
.appointment-ready .header { position: fixed; }

/* Native dialog supplies focus containment and makes the background inert. */
.appointment { width: min(940px, calc(100% - 48px)); max-width: 940px; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; margin: auto; background: #fcfaf7; color: var(--appointment-ink); box-shadow: 0 30px 100px #1f171847; overflow: auto; overscroll-behavior: contain; }
.appointment::backdrop { background: #2f2624a8; backdrop-filter: blur(7px); }
.appointment[open] { animation: appointment-reveal .25s ease-out; }
@keyframes appointment-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.appointment [hidden], .appointment-dock[hidden], .appointment-dock [hidden], .appointment-form [hidden] { display: none !important; }
.appointment__layout { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 586px; }
.appointment__visual { position: relative; overflow: hidden; background: #e9d8cb; min-height: 100%; }
.appointment__art { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.appointment__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #fcfaf77a 0%, transparent 34%, #f0e3d8 64%, #f0e3d8 100%); }
.appointment__logo { position: absolute; z-index: 1; left: 32px; top: 36px; width: 160px; }
.appointment__visual-copy { position: absolute; z-index: 1; left: 32px; right: 20px; bottom: 38px; color: #49362e; }
.appointment__visual-copy span { font-size: 10px; letter-spacing: .14em; font-weight: 500; }
.appointment__visual-copy p { margin: 16px 0 0; font-size: 30px; font-weight: 400; line-height: 1.18; letter-spacing: -.04em; }
.appointment__body { position: relative; padding: 60px 42px 32px; min-width: 0; }
.appointment__close { position: absolute; right: 16px; top: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #ded3cb; border-radius: 50%; background: transparent; color: #69534a; font: 28px/1 Arial, sans-serif; cursor: pointer; transition: background .2s; }
.appointment__close:hover { background: #eee5dd; }
.appointment__eyebrow { display: block; margin-bottom: 20px; color: #846c5e; font-size: 10px; line-height: 1.6; letter-spacing: .13em; font-weight: 500; }
.appointment #appointment-title { margin: 0; color: var(--appointment-ink); font-size: clamp(30px, 3vw, 40px); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; text-transform: none; }
.appointment__description { margin: 18px 0 28px; color: #75675f; font-size: 14px; line-height: 1.65; }
.appointment .appointment-form, .appointment .request__form { width: 100%; max-width: none; padding: 0; margin: 0; }
.appointment .request__title, .appointment .request__text { display: none; }
.appointment .request__inputs { display: block; margin: 0 0 22px; }
.appointment .request__inputs > .wp-block-group__inner-container { display: flex; flex-direction: column; gap: 18px; }
.appointment .jet-form-builder-row { padding: 0; margin: 0; }
.appointment-form__label { display: block; margin-bottom: 9px; font-size: 12px; line-height: 1.4; font-weight: 500; }
.appointment .request__input { display: block; width: 100%; height: 54px; min-height: 54px; box-sizing: border-box; padding: 14px 16px; border: 1px solid #d9cec4; border-radius: 5px; background: #fffdfb; color: #3d302b; font-family: inherit; font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.appointment .request__input::placeholder { color: #807168; opacity: 1; }
.appointment .request__input:focus { outline: none; border-color: #854c3e; box-shadow: 0 0 0 3px #854c3e12; }
.appointment .request__bot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.appointment .request__button { min-width: 0; width: 100%; max-width: none; height: 54px; font-size: 14px; }
.appointment .request__warning { color: #807168; font-size: 10px; line-height: 1.65; margin: 0; }
.appointment .request__warning a { color: #755245; text-decoration: underline; text-underline-offset: 2px; }
.appointment__direct { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #e7dfd7; color: #807168; font-size: 11px; line-height: 1.6; }
.appointment__direct a { display: inline-block; margin-left: 8px; color: #4e3e35; font-size: 13px; font-weight: 500; white-space: nowrap; }
.appointment .jet-form-builder-message--error { color: #972e21 !important; border-color: #d3a396 !important; margin: 16px 0 0 !important; font-size: 13px; }
.appointment .jet-form-builder-message--success { display: none; }
.appointment .error-message { color: #972e21; font-size: 12px; margin-top: 5px; }
.appointment-form__network-error { color: #972e21; font-size: 12px; line-height: 1.6; margin-top: 16px; }
.appointment [aria-busy="true"] .request__button { opacity: .6; cursor: wait; }
.appointment__success { padding: 15px 0 10px; }
.appointment__success-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #cbb49b; border-radius: 50%; color: #854c3e; font-size: 24px; margin-bottom: 22px; }
.appointment__success h3 { font-size: 26px; line-height: 1.25; font-weight: 400; }
.appointment__success p { color: #75675f; font-size: 14px; line-height: 1.7; margin: 14px 0 24px; }
.appointment__success .appointment-cta { width: 100%; min-height: 52px; padding: 12px; font-size: 12px; }
#contacts .appointment-form__label { color: #fff; }

/* One compact widget contains booking, Telegram and the existing bonus. */
.appointment-dock { position: fixed; z-index: 1000; right: 24px; bottom: max(24px, var(--cookie-lift, 0px)); font-family: inherit; color: var(--appointment-ink); }
.appointment-dock__bar { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid #ffffffa6; border-radius: 11px; background: #fcfaf7f5; box-shadow: 0 8px 35px #45312629; backdrop-filter: blur(12px); }
.appointment-dock__book.appointment-cta { min-height: 50px; min-width: 168px; padding: 12px 20px; font-size: 14px; }
.appointment-dock__icon { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.appointment-dock__arrow { display: flex; margin-left: 12px; }
.appointment-dock__more { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid #dfd4cb; border-radius: 50px; background: transparent; color: #765248; font-size: 26px; cursor: pointer; }
.appointment-dock__more span { transition: transform .2s; }
.appointment-dock__more[aria-expanded="true"] span { transform: rotate(45deg); }
.appointment-dock__more:hover { background: #eee5dd; }
.appointment-dock__call { display: none; }
.appointment-dock__links { position: absolute; bottom: calc(100% + 12px); right: 0; width: 288px; max-height: calc(100dvh - var(--cookie-lift, 0px) - 104px); overflow-y: auto; padding: 20px; box-sizing: border-box; border: 1px solid #e7dfd7; border-radius: 12px; background: #fcfaf7; box-shadow: 0 12px 45px #45312629; }
.appointment-dock__caption { display: block; color: #8b796c; font-size: 10px; letter-spacing: .03em; margin-bottom: 12px; }
.appointment-dock__links a { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 13px; line-height: 1.5; border-top: 1px solid #e7dfd7; color: #4e3e35; }
.appointment-dock__links a:hover { color: #854c3e; }
.appointment-dock__links a > span:first-child { display: flex; flex-shrink: 0; color: #854c3e; }
.appointment-dock__links small { display: block; font-size: 10px; color: #8b796c; margin-top: 3px; }
.appointment-ready .button-go-top { right: auto; left: 20px; bottom: 24px; }
@media (max-width: 767px) {
    .appointment-ready .header__content { gap: 10px; padding-left: 12px; padding-right: 12px; }
    .appointment-ready .header__logo { flex-shrink: 0; }
    .appointment-ready .header__logo-img { width: 44px; height: 58px; object-fit: contain; }
    .appointment-ready .header__contacts { margin-left: auto; gap: 0; }
    .appointment-ready .header__contacts-link { display: none; }
    .appointment-ready .header__contacts-call.appointment-cta { display: inline-flex; width: auto; min-width: 0; max-width: none; min-height: 42px; height: auto; padding: 10px 12px; font-size: 10px; }
    .appointment-ready .header__burger-toggle, .appointment-ready .header__burger-toggle svg { width: 40px; flex-shrink: 0; }
    .appointment-ready .header .search-btn { width: 32px; flex-shrink: 0; }
    .appointment { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
    .appointment__layout { display: block; min-height: 0; }
    .appointment__visual { display: none; }
    .appointment__body { padding: 58px 24px 24px; }
    .appointment__eyebrow { font-size: 9px; margin-bottom: 16px; }
    .appointment #appointment-title { font-size: 34px; }
    .appointment__description { font-size: 13px; margin: 16px 0 24px; }
    .appointment__direct { margin-top: 20px; padding-top: 18px; }
    .appointment-dock { right: 0; left: 0; bottom: var(--cookie-lift, 0px); padding: 8px 12px max(8px, env(safe-area-inset-bottom)); background: #fcfaf7f7; border-top: 1px solid #e7dfd7; box-shadow: 0 -4px 24px #45312612; }
    .appointment-dock__bar { padding: 0; gap: 8px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
    .appointment-dock__book.appointment-cta { flex: 1; min-width: 0; min-height: 48px; padding: 12px; font-size: 13px; }
    .appointment-dock__arrow { margin-left: 0; }
    .appointment-dock__more { width: 44px; height: 48px; }
    .appointment-dock__call { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; box-sizing: border-box; font-size: 12px; border: 1px solid #d9cec4; border-radius: 50px; color: #65483c; }
    .appointment-dock__links { right: 12px; width: min(288px, calc(100vw - 24px)); }
    .appointment-ready .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
    .appointment-ready .button-go-top { bottom: 88px; left: 12px; }
    .appointment-ready .alertcookies { right: 12px; width: calc(100% - 24px); box-sizing: border-box; }
}
@media (max-height: 540px) and (min-width: 768px) {
    .appointment__body { padding-top: 42px; }
    .appointment__layout { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .appointment[open], .appointment-cta::after { animation: none !important; }
    .appointment-cta, .appointment-dock__more span { transition: none !important; }
}
