/* EF Booking Calendar — high-specificity, Astra/Elementor-safe */
#ef-booking-root,
#ef-umow-konsultacje #ef-booking-root,
#ef-umow-konsultacje .ef-bc-card {
  color: #0f172a !important;
  font-family: "Open Sans", system-ui, sans-serif !important;
  box-sizing: border-box !important;
}

#ef-booking-root *,
#ef-booking-root *::before,
#ef-booking-root *::after,
#ef-umow-konsultacje .ef-bc-card *,
#ef-umow-konsultacje .ef-bc-card *::before,
#ef-umow-konsultacje .ef-bc-card *::after {
  box-sizing: border-box !important;
}

/* Compact 2-column: left form | right calendar+slots stacked */
#ef-booking-root .ef-bc-grid,
#ef-umow-konsultacje .ef-bc-grid {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) !important;
  gap: 18px 22px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
}

#ef-booking-root .ef-bc-left,
#ef-booking-root .ef-bc-right,
#ef-umow-konsultacje .ef-bc-left,
#ef-umow-konsultacje .ef-bc-right {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
}

#ef-booking-root .ef-bc-right,
#ef-umow-konsultacje .ef-bc-right {
  gap: 12px !important;
}

#ef-booking-root .ef-bc-label,
#ef-umow-konsultacje .ef-bc-label {
  font: 600 12px/1.35 Montserrat, system-ui, sans-serif !important;
  color: #334155 !important;
  margin: 0 0 6px !important;
  display: block !important;
}

#ef-booking-root .ef-bc-field,
#ef-umow-konsultacje .ef-bc-field {
  margin: 0 0 10px !important;
}

#ef-booking-root .ef-bc-input,
#ef-booking-root .ef-bc-select,
#ef-umow-konsultacje .ef-bc-input,
#ef-umow-konsultacje .ef-bc-select,
#ef-umow-konsultacje #ef-booking-root input[type="text"],
#ef-umow-konsultacje #ef-booking-root input[type="email"],
#ef-umow-konsultacje #ef-booking-root input[type="tel"],
#ef-umow-konsultacje #ef-booking-root select {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  min-height: 48px !important;
  height: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  vertical-align: middle !important;
}

#ef-booking-root .ef-bc-select,
#ef-umow-konsultacje .ef-bc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 36px !important;
}

#ef-booking-root .ef-bc-cal,
#ef-umow-konsultacje .ef-bc-cal {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  width: 100% !important;
  max-width: 100% !important;
}

#ef-booking-root .ef-bc-cal-head,
#ef-umow-konsultacje .ef-bc-cal-head {
  background: #0ea5e9 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  font: 600 14px Montserrat, system-ui, sans-serif !important;
}

#ef-booking-root .ef-bc-cal-nav,
#ef-umow-konsultacje .ef-bc-cal-nav {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 18px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
  min-height: 0 !important;
  width: auto !important;
  box-shadow: none !important;
}

#ef-booking-root .ef-bc-cal-grid,
#ef-umow-konsultacje .ef-bc-cal-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 2px !important;
  padding: 8px !important;
  font-size: 13px !important;
}

#ef-booking-root .ef-bc-dow,
#ef-umow-konsultacje .ef-bc-dow {
  text-align: center !important;
  color: #94a3b8 !important;
  font: 600 11px Montserrat, system-ui, sans-serif !important;
  padding: 4px 0 !important;
}

#ef-booking-root .ef-bc-day,
#ef-umow-konsultacje .ef-bc-day {
  text-align: center !important;
  padding: 6px 0 !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  color: #0f172a !important;
  min-height: 32px !important;
  width: 100% !important;
  box-shadow: none !important;
}

#ef-booking-root .ef-bc-day:hover:not(:disabled),
#ef-umow-konsultacje .ef-bc-day:hover:not(:disabled) {
  background: #f0f9ff !important;
}

#ef-booking-root .ef-bc-day.is-selected,
#ef-umow-konsultacje .ef-bc-day.is-selected {
  background: #10b981 !important;
  color: #fff !important;
}

#ef-booking-root .ef-bc-day:disabled,
#ef-booking-root .ef-bc-day.is-muted,
#ef-umow-konsultacje .ef-bc-day:disabled,
#ef-umow-konsultacje .ef-bc-day.is-muted {
  color: #cbd5e1 !important;
  cursor: default !important;
}

#ef-booking-root .ef-bc-slots,
#ef-umow-konsultacje .ef-bc-slots {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  max-height: none !important;
  overflow: visible !important;
  width: 100% !important;
}

#ef-booking-root .ef-bc-slot,
#ef-umow-konsultacje .ef-bc-slot {
  font-size: 13px !important;
  line-height: 1.35 !important;
  padding: 8px 6px !important;
  border-radius: 999px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #0f172a !important;
  cursor: pointer !important;
  text-align: center !important;
  width: 100% !important;
  min-height: 36px !important;
  box-shadow: none !important;
}

#ef-booking-root .ef-bc-slot.is-selected,
#ef-umow-konsultacje .ef-bc-slot.is-selected {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #fff !important;
}

#ef-booking-root .ef-bc-slot:disabled,
#ef-booking-root .ef-bc-slot.is-disabled,
#ef-umow-konsultacje .ef-bc-slot:disabled,
#ef-umow-konsultacje .ef-bc-slot.is-disabled {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  text-decoration: line-through !important;
  opacity: 0.72 !important;
}

#ef-booking-root .ef-bc-submit,
#ef-umow-konsultacje .ef-bc-submit,
#ef-umow-konsultacje #ef-booking-root button.ef-bc-submit {
  background: #10b981 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font: 600 14px/1.4 Montserrat, system-ui, sans-serif !important;
  padding: 12px 18px !important;
  min-height: 46px !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 8px !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

#ef-booking-root .ef-bc-submit:disabled,
#ef-umow-konsultacje .ef-bc-submit:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

#ef-booking-root .ef-bc-msg,
#ef-umow-konsultacje .ef-bc-msg {
  margin: 8px 0 0 !important;
  font: 500 13px "Open Sans", system-ui, sans-serif !important;
}

#ef-booking-root .ef-bc-msg.is-ok,
#ef-umow-konsultacje .ef-bc-msg.is-ok {
  color: #047857 !important;
}

#ef-booking-root .ef-bc-msg.is-err,
#ef-umow-konsultacje .ef-bc-msg.is-err {
  color: #b91c1c !important;
}

/* Kill leftover AHB / green corner badges */
#ef-umow-konsultacje .ef-bc-badge-hide,
#ef-umow-konsultacje .ef-booking-badge,
#ef-umow-konsultacje .ef-bc-hours-badge,
#ef-booking-root .ef-bc-hours-badge {
  display: none !important;
}

@media (max-width: 820px) {
  #ef-booking-root .ef-bc-grid,
  #ef-umow-konsultacje .ef-bc-grid {
    grid-template-columns: 1fr !important;
  }

  #ef-booking-root .ef-bc-slots,
  #ef-umow-konsultacje .ef-bc-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  #ef-booking-root .ef-bc-slots,
  #ef-umow-konsultacje .ef-bc-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
