/* Online consultation booking — premium modal */
.booking-open-btn {
  width: 100%;
  margin-top: 0.75rem;
}

.profile-booking-cta-wrap {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.profile-booking-cta {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(12, 50, 45, 0.08));
}

@media (min-width: 640px) {
  .profile-booking-cta {
    width: auto;
    min-width: 16rem;
  }
}

/* —— Modal shell —— */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.65rem, 3vw, 1.5rem);
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 36, 32, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: booking-fade-in 0.22s var(--ease-premium, ease);
}

.booking-modal__panel {
  position: relative;
  width: min(100%, 54rem);
  max-height: min(94vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #ffffff 0%, #f7faf8 48%, #f2f8f6 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg, 24px);
  box-shadow:
    0 32px 64px rgba(10, 55, 48, 0.16),
    0 8px 24px rgba(10, 55, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: booking-panel-in 0.32s var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1));
}

@keyframes booking-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes booking-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.booking-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(10, 92, 80, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 250, 0.6) 100%);
}

.booking-modal__head-text {
  min-width: 0;
}

.booking-modal__head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display, "Noto Serif Georgian", Georgia, serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--color-primary, #0a5c50);
  letter-spacing: -0.01em;
}

.booking-modal__subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted, #556963);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-modal__close {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(10, 92, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.booking-modal__close:hover {
  background: var(--color-primary-soft, #e2f3ef);
  border-color: rgba(10, 92, 80, 0.22);
  color: var(--color-primary, #0a5c50);
}

.booking-modal__body {
  overflow: auto;
  padding: 1.15rem 1.5rem 1.5rem;
}

/* —— Steps —— */
.booking-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.booking-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 92, 80, 0.08);
}

.booking-step-pill.is-active {
  color: var(--color-primary-hover, #07443a);
  background: var(--color-primary-soft, #e2f3ef);
  border-color: rgba(10, 92, 80, 0.2);
}

.booking-step-pill.is-done {
  color: var(--color-primary, #0a5c50);
}

.booking-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.68rem;
  background: rgba(10, 92, 80, 0.1);
}

.booking-step-pill.is-active .booking-step-num {
  background: var(--color-primary, #0a5c50);
  color: #fff;
}

/* —— Two-pane layout —— */
.booking-modal__layout {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .booking-modal__layout {
    grid-template-columns: 1.12fr 1fr;
    align-items: start;
  }
}

.booking-pane {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 92, 80, 0.08);
  border-radius: var(--radius-md, 18px);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(12, 50, 45, 0.04));
}

.booking-pane__title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* —— Calendar —— */
.booking-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.booking-cal-nav__label {
  margin: 0;
  font-family: var(--font-display, "Noto Serif Georgian", Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text, #142422);
  text-align: center;
  flex: 1;
}

.booking-cal-nav__btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(10, 92, 80, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary, #0a5c50);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.booking-cal-nav__btn:hover:not(:disabled) {
  background: var(--color-primary-soft, #e2f3ef);
  transform: translateY(-1px);
}

.booking-cal-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.booking-cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 0.2rem 0;
}

.booking-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.booking-cal-day {
  aspect-ratio: 1;
  min-height: 2.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text, #142422);
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.booking-cal-day:hover:not(:disabled):not(.is-empty) {
  background: var(--color-primary-soft, #e2f3ef);
  border-color: rgba(10, 92, 80, 0.15);
  transform: translateY(-1px);
}

.booking-cal-day.is-today {
  border-color: rgba(10, 92, 80, 0.25);
  font-weight: 700;
}

.booking-cal-day.is-selected {
  background: linear-gradient(145deg, #0a5c50 0%, #087a68 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(10, 92, 80, 0.28);
}

.booking-cal-day.is-past,
.booking-cal-day.is-empty {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}

.booking-cal-day:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

/* —— Time slots —— */
.booking-slots-pane {
  min-height: 12rem;
}

.booking-slots-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 11rem;
  padding: 1rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.booking-slots-placeholder__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft, #e2f3ef);
  color: var(--color-primary, #0a5c50);
}

.booking-slots-placeholder__icon::before {
  content: "◷";
  font-size: 1.35rem;
  line-height: 1;
}

.booking-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
  gap: 0.5rem;
}

.booking-slot {
  border: 1px solid rgba(10, 92, 80, 0.12);
  background: linear-gradient(160deg, #fff 0%, #f9fbfa 100%);
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text, #142422);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.booking-slot:hover {
  border-color: rgba(10, 92, 80, 0.28);
  background: var(--color-primary-soft, #e2f3ef);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.booking-slot.is-selected {
  border-color: var(--color-primary, #0a5c50);
  background: linear-gradient(145deg, #0a5c50 0%, #087a68 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(10, 92, 80, 0.25);
}

/* —— Form step —— */
.booking-modal__step {
  display: grid;
  gap: 0.85rem;
}

.booking-summary-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md, 18px);
  background: linear-gradient(135deg, rgba(226, 243, 239, 0.9) 0%, rgba(232, 244, 248, 0.75) 100%);
  border: 1px solid rgba(10, 92, 80, 0.12);
}

.booking-summary-card__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary-hover, #07443a);
}

.booking-summary-card__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--color-primary, #0a5c50);
}

.booking-modal__label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text, #142422);
}

.booking-field {
  display: grid;
  gap: 0.4rem;
}

.booking-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(10, 92, 80, 0.14);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.booking-field input:focus {
  outline: none;
  border-color: rgba(10, 92, 80, 0.35);
  box-shadow: 0 0 0 3px rgba(10, 92, 80, 0.12);
}

.booking-msg {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
}

.booking-msg.is-error {
  color: #8a1f17;
  background: #fdecea;
}

.booking-msg.is-success {
  color: #027a48;
  background: #ecfdf3;
}

.booking-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.booking-loading {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  text-align: center;
  padding: 1.5rem 0;
}

@media (max-width: 719px) {
  .booking-modal__head,
  .booking-modal__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .booking-pane {
    padding: 0.85rem;
  }

  .booking-cal-day {
    min-height: 2rem;
    font-size: 0.82rem;
    border-radius: 10px;
  }
}

.booking-phone-intl {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.booking-phone-intl select {
  flex: 0 0 auto;
  max-width: 42%;
  min-width: 6.5rem;
}

.booking-phone-intl input {
  flex: 1 1 auto;
  min-width: 0;
}

.booking-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--color-muted, #5a6b66);
}

.booking-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0.75rem 0;
}

.booking-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.booking-consent__text {
  flex: 1;
  min-width: 0;
}

.booking-consent__label {
  cursor: pointer;
}

.booking-consent a {
  color: var(--color-primary, #0a5c50);
}

input[data-booking-honeypot] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
