/* Bootstrap 5 adaptation for the existing consultation page layout. */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; }
h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 24px; } h4 { font-size: 18px; }
h1, h2, h3, h4 { margin-top: 20px; margin-bottom: 10px; }
p { margin-bottom: 10px; }
img { max-width: 100%; }
#header .main-navigation > .container { display: flex; align-items: center; justify-content: space-between; }
#header .navbar-brand { display: inline-block; padding: 15px; margin: 0; }
#header .navbar-brand img { max-width: 230px; }
#header .navbar-header { flex-shrink: 0; }
#header .navbar-collapse { flex-grow: 0; }
#header .nav { flex-direction: row; padding: 0; margin-bottom: 0; }
#header .nav li { margin-bottom: 16px; }
#header .nav li a { display: block; padding: 10px 15px; }
.navbar-toggle { display: none; border: 1px solid #ccc; border-radius: 4px; background: white; padding: 8px 12px; }
.form-group { margin-bottom: 15px; }
.form-group label { margin-bottom: 5px; }
.form-control { font-size: 14px; border-radius: 4px; padding: 6px 12px; min-height: 34px; }
select.form-control { appearance: auto; }
.input-group-addon { display: flex; align-items: center; padding: 6px 12px; background: #eee; border: 1px solid #ccc; border-radius: 0 4px 4px 0; }
.radio-inline, .checkbox-inline { display: inline-block; padding: 0 10px 0 0; font-size: 14px; }
.radio-inline input, .checkbox-inline input { margin-right: 5px; }
.btn-common { color: white; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
#booking-status { color: #333; }
.wow { visibility: visible !important; }
.scroll-top { display: none; }
.scroll-top.visible { display: block; }
@media (min-width: 768px) { #header .navbar-collapse.collapse { display: block; } }
@media (max-width: 767px) {
  #header .main-navigation > .container { display: block; }
  #header .navbar-header { display: flex; align-items: center; flex-direction: row-reverse; justify-content: space-between; }
  .navbar-toggle { display: block; }
  #header .nav { flex-direction: column; margin-top: 0; }
  #header .nav li { margin: 0; }
  #header .navbar-collapse { background: white; padding: 0; max-height: 240px; overflow: auto; }
  #header .navbar-brand img { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.contact-form form { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.contact-form form > .col-sm-6 { padding: 0 12px; }
#booking-status { flex-basis: 100%; padding: 0 12px; }
.contact-form .form-group .col-4, .contact-form .form-group .col-6 { width: 100%; }
.contact-form .checkbox-inline { white-space: normal; }
#connected .connected-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#connected .connected-wrapper > div { width: 100%; min-width: 0; }
.booking-date, .calendar-trigger { cursor: pointer; }
.booking-calendar {
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 1px solid #0BAFA0;
  border-radius: 12px;
  padding: 16px;
  color: #333;
  background: white;
}
.booking-calendar::backdrop { background: rgb(0 0 0 / 45%); }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-heading h2 { margin: 0; font-size: 20px; }
.booking-calendar p { margin: 12px 0; font-size: 14px; line-height: 1.6; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.calendar-weekdays { margin-bottom: 6px; font-size: 14px; }
.booking-calendar button { min-height: 38px; border: 1px solid #ddd; border-radius: 5px; background: white; color: #333; }
.calendar-heading button { width: 38px; font-size: 24px; }
.calendar-days button { padding: 4px 0; font-size: 15px; }
.booking-calendar button:disabled { color: #aaa; background: #f2f2f2; cursor: not-allowed; }
.booking-calendar button:enabled:hover, .calendar-days button[aria-pressed="true"] { color: white; background: #087f75; }
.booking-calendar button:focus-visible { outline: 3px solid #087f75; outline-offset: 2px; }
.calendar-close { display: block; width: 100%; margin-top: 12px; }
@media (max-width: 575px) {
  #connected .contact-item h4 {
    font-size: clamp(10px, 2.4vw, 14px);
    letter-spacing: 0;
    white-space: nowrap;
  }
}
