/* Ratahome — Book a Call modal (assets/runtime/booking.js) */
.rhb {
  --rhb-ink: #2b2c27;
  --rhb-accent: #c05c15;
  --rhb-accent-dark: #a84f11;
  --rhb-cream: #fcf7f3;
  --rhb-line: #e0d8d0;
  --rhb-muted: #7a7870;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--rhb-ink);
  -webkit-font-smoothing: antialiased;
}
.rhb[hidden] { display: none; }
html.rhb-open, html.rhb-open body { overflow: hidden; }
.rhb *, .rhb *::before, .rhb *::after { box-sizing: border-box; }
.rhb__backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(30, 32, 21, 0.62); cursor: default; }
.rhb__dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  outline: none;
  animation: rhb-in 0.18s ease-out;
}
@keyframes rhb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rhb__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 30px 18px; border-bottom: 1px solid var(--rhb-line); }
.rhb__eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rhb-accent); margin-bottom: 8px; }
.rhb__title { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.rhb__steps { display: flex; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.rhb__step { padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--rhb-muted); background: var(--rhb-cream); }
.rhb__step.is-current { color: #fff; background: var(--rhb-ink); }
.rhb__step.is-done { color: var(--rhb-accent); }
.rhb__close { flex: none; width: 36px; height: 36px; border: 1px solid var(--rhb-line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; color: var(--rhb-muted); cursor: pointer; }
.rhb__close:hover { color: var(--rhb-ink); border-color: var(--rhb-ink); }

.rhb__body { padding: 22px 30px 26px; }
.rhb__body--pick { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; }
.rhb__body--pick .rhb__foot { grid-column: 1 / -1; }

.rhb__tzwrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; color: var(--rhb-muted); }
.rhb__tz { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--rhb-line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--rhb-ink); }

.rhb__calnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rhb__month { font-size: 15px; font-weight: 600; }
.rhb__navbtn { width: 34px; height: 34px; border: 1px solid var(--rhb-line); border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; color: var(--rhb-ink); cursor: pointer; }
.rhb__navbtn:disabled { opacity: 0.3; cursor: default; }
.rhb__weekdays, .rhb__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rhb__weekdays span { text-align: center; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: var(--rhb-muted); padding: 4px 0 6px; }
.rhb__day { height: 40px; border: 0; border-radius: 50%; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--rhb-ink); cursor: pointer; }
.rhb__day:not(:disabled):not(.is-empty) { background: var(--rhb-cream); }
.rhb__day:not(:disabled):hover { background: #f1e6dc; }
.rhb__day:disabled { color: #c9c6bf; cursor: default; }
.rhb__day.is-today { box-shadow: inset 0 0 0 1px var(--rhb-line); }
.rhb__day.is-selected, .rhb__day.is-selected:hover { background: var(--rhb-accent); color: #fff; }

.rhb__slots { min-height: 300px; max-height: 480px; overflow: auto; padding-right: 4px; }
.rhb__slots--empty { display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px dashed var(--rhb-line); border-radius: 14px; }
.rhb__slotshead { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.rhb__group { margin-bottom: 14px; }
.rhb__grouplabel { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rhb-muted); margin-bottom: 8px; }
.rhb__chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rhb__chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 6px 4px; border: 1px solid var(--rhb-line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--rhb-ink); cursor: pointer; }
.rhb__chip small { font-size: 10px; font-weight: 400; color: var(--rhb-muted); letter-spacing: 0.02em; }
.rhb__chip:hover { border-color: var(--rhb-accent); }
.rhb__chip:disabled { opacity: 0.4; cursor: default; text-decoration: line-through; }
.rhb__chip.is-selected { background: var(--rhb-accent); border-color: var(--rhb-accent); color: #fff; }
.rhb__chip.is-selected small { color: rgba(255, 255, 255, 0.8); }

.rhb__hint { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--rhb-muted); }
.rhb__hint--small { font-size: 12px; }
.rhb__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rhb-line); }
.rhb__foot--center { justify-content: center; }
.rhb__summary { font-size: 13px; color: var(--rhb-muted); }
.rhb__fine { margin: 0; font-size: 12px; color: var(--rhb-muted); max-width: 420px; }
.rhb__btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border: 0; border-radius: 100px; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.rhb__btn--primary { background: var(--rhb-accent); color: #fff; }
.rhb__btn--primary:hover { background: var(--rhb-accent-dark); }
.rhb__btn--primary:disabled { opacity: 0.45; cursor: default; }
.rhb__btn--outline { background: #fff; color: var(--rhb-accent); box-shadow: inset 0 0 0 1px var(--rhb-accent); }
.rhb__btn--outline:hover { background: var(--rhb-accent); color: #fff; }
.rhb__link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--rhb-accent); text-decoration: underline; cursor: pointer; }

.rhb__chosen { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; margin-bottom: 18px; border-radius: 12px; background: var(--rhb-cream); font-size: 14px; }
.rhb__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.rhb__field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--rhb-muted); }
.rhb__field--span { grid-column: 1 / -1; }
.rhb__input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--rhb-line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; letter-spacing: 0; color: var(--rhb-ink); }
textarea.rhb__input { height: auto; padding: 12px 14px; resize: vertical; }
.rhb__input:focus { outline: none; border-color: var(--rhb-accent); box-shadow: 0 0 0 3px rgba(192, 92, 21, 0.15); }
.rhb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rhb__error { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: #9b2c2c; font-size: 14px; }

.rhb__body--done { text-align: center; padding-top: 36px; }
.rhb__mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--rhb-accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.rhb__mark svg { width: 30px; height: 30px; }
.rhb__donelead { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.rhb__donetime { margin: 0 0 6px; font-size: 18px; font-weight: 500; color: var(--rhb-accent); }
.rhb__body--done .rhb__hint { max-width: 520px; margin: 10px auto 0; }
.rhb__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.rhb__actions .rhb__btn { height: 46px; padding: 0 20px; font-size: 12px; }

@media (max-width: 760px) {
  .rhb { padding: 0; align-items: flex-end; }
  .rhb__dialog { width: 100%; max-height: 100dvh; border-radius: 18px 18px 0 0; }
  .rhb__head { position: relative; padding: 20px 60px 14px 18px; flex-wrap: wrap; }
  .rhb__close { position: absolute; top: 16px; right: 16px; }
  .rhb__title { font-size: 22px; }
  .rhb__steps { order: 3; width: 100%; }
  .rhb__body { padding: 16px 18px 22px; }
  .rhb__body--pick { grid-template-columns: 1fr; gap: 18px; }
  .rhb__slots { min-height: 0; max-height: none; }
  .rhb__chips { grid-template-columns: repeat(3, 1fr); }
  .rhb__foot { flex-direction: column; align-items: stretch; }
  .rhb__grid { grid-template-columns: 1fr; }
  .rhb__btn { height: 50px; }
  .rhb__chosen { flex-direction: column; align-items: flex-start; }
}
