/* KIRSH shared appointment blocks: page, split column and popup. */
.kirsh-booking-section:has(form.kirsh-booking) {
  background: transparent!important; border: 0!important; padding: 0!important;
  color: #332a3e; margin-top: 48px!important; margin-bottom: 64px!important;
}
.kirsh-booking-section:not(.kb-split) { max-width: 1170px; margin-left: auto!important; margin-right: auto!important; }
.kirsh-booking-section > .elementor-container { width: 100%; }
.kirsh-booking-section .elementor-column:has(> .kb-panel) { background: transparent!important; padding: 0!important; min-width: 0; }
.kirsh-booking-section .kb-panel {
  container-type: inline-size; box-sizing: border-box; width: 100%; min-width: 0;
  display: block!important; background: #f9f8f6!important; color: #332a3e;
  border: 1px solid #d6e2e4; border-top: 2px solid #2a8192;
  padding: clamp(26px,4.6vw,58px)!important;
}
.kirsh-booking-section.kb-split .kb-panel { padding: 38px 32px!important; }
.kb-panel > .elementor-widget-heading { margin: 0!important; }
.kb-panel > .elementor-widget-heading .elementor-heading-title {
  font-family: Georgia,'Times New Roman',serif!important; font-size: clamp(30px,3.2vw,44px)!important;
  font-weight: 400!important; line-height: 1.2!important; letter-spacing: -.02em;
  color: #332a3e!important; margin: 0!important;
}
.kb-panel > .elementor-widget-divider { display: none!important; }
.kb-panel > .elementor-widget-contact-form-7 { margin: 0!important; width: 100%!important; }
.kb-panel > .elementor-widget-contact-form-7 > .elementor-widget-container { padding: 0!important; margin: 0!important; background: transparent!important; }
#popup-appointment { width: min(940px,calc(100vw - 32px)); max-width: 940px; padding: 0!important; background: #f9f8f6; }
#popup-appointment .kirsh-booking-section { margin: 0!important; }
#popup-appointment .kb-panel { padding: 38px 36px!important; }
#popup-appointment .fancybox-close-small { color: #247d90; }
.kb-panel form.kirsh-booking { padding: 24px 0 0!important; margin: 0!important; border: 0!important; background: transparent!important; box-shadow: none!important; color: #52616b!important; }
.kirsh-booking .kb-intro { margin: 0 0 30px!important; max-width: 700px; font-size: 16px; line-height: 1.7; color: #52616b!important; }
.kirsh-booking .kb-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 24px; }
.kirsh-booking .kb-field { grid-column: span 3; margin: 0!important; min-width: 0; }
.kirsh-booking .kb-full { grid-column: 1/-1; }
.kirsh-booking .kb-field:has(select[name="specialization"]) { grid-column: span 2; }
.kirsh-booking .kb-field:has(select[name="specialist"]) { grid-column: span 4; }
.kirsh-booking .kb-field label { display: block; margin: 0 0 9px; font-size: 13px; line-height: 1.5; font-weight: 600; letter-spacing: .025em; color: #334954!important; }
.kirsh-booking .kb-field select,.kirsh-booking .kb-field input {
  width: 100%!important; max-width: 100%; min-height: 54px;
  padding: 14px 16px!important; margin: 0!important;
  border: 1px solid #ccdadd!important; border-radius: 3px!important;
  background: #fff!important; color: #332a3e!important;
  font: inherit; font-size: 16px; line-height: 1.5; box-sizing: border-box;
  transition: border-color .18s ease,box-shadow .18s ease;
}
.kirsh-booking .kb-field select {
  padding-right: 40px!important; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg,transparent 50%,#2a8192 50%),linear-gradient(135deg,#2a8192 50%,transparent 50%)!important;
  background-position: calc(100% - 22px) 24px,calc(100% - 16px) 24px!important;
  background-size: 6px 6px!important; background-repeat: no-repeat!important;
}
.kirsh-booking .kb-field :is(select,input):hover { border-color: #8cb8c1!important; }
.kirsh-booking .kb-field :is(select,input):focus-visible { outline: 2px solid #2a8192!important; outline-offset: 2px; box-shadow: 0 0 0 4px #2a819210; }
.kirsh-booking .kb-field select:disabled { background: #eff3f3!important; color: #6b7b82!important; opacity: 1; cursor: not-allowed; }
.kirsh-booking .kb-phone-hint { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: #697981; }
.kirsh-booking .kb-status { margin: -7px 0 0!important; font-size: 13px; line-height: 1.6; color: #697981!important; }
.kirsh-booking .kb-profile { display: inline-block; margin-top: 9px; color: #24788b!important; font-size: 14px; text-decoration: underline!important; text-underline-offset: 4px; }
.kirsh-booking .kb-profile[hidden] { display: none!important; }
.kirsh-booking .kb-actions { margin-top: 30px; padding-top: 26px; border-top: 1px solid #d6e2e4; display: flex; gap: 28px; align-items: center; }
.kirsh-booking .kb-actions input[type=submit] {
  flex: 0 0 auto; min-height: 54px; margin: 0!important; padding: 15px 28px!important;
  border: 1px solid #247d90!important; border-radius: 2px!important;
  background: #247d90!important; color: #fff!important;
  font-size: 14px!important; font-weight: 600; line-height: 1.5;
  letter-spacing: .025em!important; text-transform: none!important; cursor: pointer;
  transition: background .18s ease;
}
.kirsh-booking .kb-actions input[type=submit]:hover { background: #1d6878!important; }
.kirsh-booking .kb-actions input[type=submit]:focus-visible { outline: 2px solid #332a3e; outline-offset: 3px; }
.kirsh-booking .kb-note { margin: 0!important; max-width: 480px; font-size: 13px; line-height: 1.65; color: #697981!important; }
@media(max-width: 760px) {
  .kirsh-booking-section .kb-panel,.kirsh-booking-section.kb-split .kb-panel,#popup-appointment .kb-panel { padding: 28px 22px!important; }
  .kb-panel form.kirsh-booking { padding-top: 18px!important; }
  .kirsh-booking .kb-intro { margin-bottom: 24px!important; font-size: 15px; }
  .kirsh-booking .kb-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .kirsh-booking .kb-field,.kirsh-booking .kb-field:has(select) { grid-column: 1/-1!important; }
  .kirsh-booking .kb-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; padding-top: 22px; }
  .kirsh-booking .kb-actions input[type=submit] { width: 100%; }
}
@media(prefers-reduced-motion: reduce) { .kirsh-booking .kb-field :is(select,input),.kirsh-booking .kb-actions input[type=submit] { transition: none; } }

/* Use the actual form column width, including sidebars and dialogs. */
@container (max-width: 640px) {
  .kirsh-booking .kb-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .kirsh-booking .kb-field,.kirsh-booking .kb-field:has(select) { grid-column: 1/-1!important; }
  .kirsh-booking .kb-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .kirsh-booking .kb-actions input[type=submit] { width: 100%; }
}

/* Specialist profile dialog moves the shared form into a native dialog. */
.kirsh-booking-section.kb-split .elementor-element-7050cb9 > .elementor-widget-wrap { align-content: flex-start!important; }
.ke-dialog:has(form.kirsh-booking) {
  width: min(900px,calc(100vw - 32px))!important; max-width: 900px!important;
  max-height: calc(100dvh - 32px); padding: 0!important; border: 0!important;
  border-radius: 2px!important; background: #f9f8f6!important; box-sizing: border-box;
}
.km-request:has(form.kirsh-booking) {
  container-type: inline-size; padding: 38px 36px!important; margin: 0!important;
  width: 100%!important; max-width: none!important; box-sizing: border-box;
  border: 1px solid #d6e2e4!important; border-top: 2px solid #2a8192!important;
  background: #f9f8f6!important; color: #332a3e;
}
.km-request:has(form.kirsh-booking) > h2 {
  font-family: Georgia,'Times New Roman',serif!important; font-size: clamp(30px,3.2vw,40px)!important;
  font-weight: 400!important; line-height: 1.2; color: #332a3e!important; margin: 0 0 18px!important;
}
.km-request:has(form.kirsh-booking) #km-native-form { margin: 0!important; }
.km-request #km-native-form form.kirsh-booking {
  width: 100%!important; max-width: none!important; box-sizing: border-box;
  padding: 20px 0 0!important; margin: 0!important; border: 0!important;
  background: transparent!important; box-shadow: none!important;
}
@media(max-width: 760px) {
  .km-request:has(form.kirsh-booking) { padding: 32px 22px!important; }
}

/* Keep the profile request action and its confirmation note within the dialog. */
.km-request .kirsh-booking .kb-actions { flex-direction: column!important; align-items: stretch!important; gap: 16px; }
.km-request .kirsh-booking .kb-actions input[type=submit] { width: 100%!important; max-width: 100%!important; box-sizing: border-box; }
.km-request .kirsh-booking .kb-note { width: auto!important; max-width: none!important; min-width: 0; }
