@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap");

:root {
  --koral: #ff8947;
  --lightlime: #98c800;
  --lime: #719500;
  --lilac: #a67dc8;
  --turquoise: #5a9da2;
  --ink: #212529;
  --muted: #6c757d;
  --line: rgba(0, 0, 0, .12);
  --paper: #ffffff;
  --lightgrey: #fbfbfb;
  --footer: #625f5f;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.container-xl {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

@media (min-width: 1200px) {
  .container-xl { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .container-xl { max-width: 1320px; }
}

body {
  min-width: 374px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}

button, input, select, textarea { font: inherit; }

.booking-page {
  min-height: 100vh;
  background-color: var(--lightgrey);
  background-image:
    conic-gradient(from -45deg at 33.333% 33.333%, #fbfbfb 90deg, transparent 0),
    conic-gradient(from -135deg at 33.333% 66.666%, #fbfbfb 90deg, #fff 0 135deg, transparent 0),
    conic-gradient(from 135deg at 66.666% 66.666%, #fbfbfb 90deg, #fff 0 135deg, transparent 0),
    conic-gradient(from 45deg at 66.666% 33.333%, #fbfbfb 90deg, #fff 0 135deg, transparent 0, #fbfbfb 0 225deg, #fff 0);
  background-size: 20px 20px;
}

.contact-intro {
  padding: 34px 0 14px;
  color: #000;
  background: transparent;
}

.contact-intro h1 {
  margin: 0;
  padding: 22px 20px;
  color: #000;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
}

.contact-intro p {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  color: #000;
  font-size: 1rem;
  line-height: 1.55;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 7px;
  color: var(--koral);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.booking-workspace {
  position: relative;
  margin-top: 0;
  padding-top: 18px;
  padding-bottom: 70px;
}

.stepper {
  display: flex;
  width: min(590px, 100%);
  margin: 0 auto 25px;
  color: #777;
}

.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
}

.step:not(:last-child)::after {
  content: "";
  height: 3px;
  flex: 1;
  margin: 0 9px;
  background: #e7b08f;
}

.step span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: #bbb;
  border: 0;
  border-radius: 50%;
  font-weight: 700;
}

.step.active { color: #000; }
.step.active span { background: var(--koral); }

.booking-grid {
  display: grid;
  grid-template-columns: minmax(340px, .95fr) minmax(260px, .72fr) minmax(350px, 1fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 1.5rem;
  box-shadow: 0 2px 10px rgba(1, 122, 111, .2);
  text-align: left;
}

.calendar-panel,
.times-panel,
.form-panel {
  min-width: 0;
  padding: 30px;
}

.calendar-panel,
.times-panel { border-right: 1px solid var(--line); }

.calendar-toolbar,
.panel-heading {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.calendar-toolbar h3,
.panel-heading h3 {
  margin: 0;
  color: #000;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.35;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--turquoise);
  border-radius: 50%;
  color: var(--turquoise);
  background: white;
  transition: color .25s, background-color .25s;
}

.icon-btn:hover:not(:disabled) {
  color: #fff;
  background: var(--turquoise);
}

.icon-btn:disabled {
  border-color: #d6d6d6;
  color: #c9c9c9;
  cursor: not-allowed;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  margin-bottom: 7px;
  color: #111;
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
}

.calendar-grid { gap: 5px; }

.calendar-day {
  width: 42px;
  height: 42px;
  max-width: 100%;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  color: #222;
  background: transparent;
  font-size: .82rem;
  position: relative;
  transition: color .2s, background-color .2s;
}

.calendar-day:not(.blank):not(:disabled):hover {
  color: #fff;
  background: var(--lightlime);
}

.calendar-day.available { font-weight: 700; }

.calendar-day.available::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: 50%;
  bottom: 5px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateX(-50%);
}

.calendar-day.selected {
  color: #fff;
  background: var(--koral) !important;
}

.calendar-day.selected::after { background: #fff; }

.calendar-day.today {
  box-shadow: inset 0 0 0 1px var(--turquoise);
}

.calendar-day:disabled { color: #c9c9c9; }

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: .7rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
}

.legend-dot.available { background: var(--lightlime); }
.legend-dot.selected { background: var(--koral); }

.panel-kicker {
  color: var(--lime);
  font-size: .65rem;
}

.timezone {
  color: var(--muted);
  font-size: .7rem;
  white-space: nowrap;
}

.empty-state {
  min-height: 285px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.empty-state i {
  margin-bottom: 14px;
  color: var(--turquoise);
  font-size: 2rem;
}

.empty-state p {
  max-width: 190px;
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 315px;
  overflow: auto;
  padding-right: 3px;
}

.time-slot {
  min-height: 44px;
  border: 1px solid var(--turquoise);
  border-radius: .6rem;
  color: #3c7478;
  background: white;
  font-size: .83rem;
  font-weight: 700;
}

.time-slot:hover {
  color: #fff;
  background: var(--turquoise);
}

.time-slot.selected {
  border-color: var(--koral);
  color: #fff;
  background: var(--koral);
}

.slots-loading {
  min-height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.slots-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lightlime);
  animation: pulse 1s infinite alternate;
}

.slots-loading span:nth-child(2) { animation-delay: .2s; }
.slots-loading span:nth-child(3) { animation-delay: .4s; }

@keyframes pulse {
  to { opacity: .25; transform: translateY(-5px); }
}

.selection-summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 14px;
  color: #536d00;
  background: #f3f8e5;
  border-left: 4px solid var(--lightlime);
  border-radius: 0 .65rem .65rem 0;
  font-size: .8rem;
  font-weight: 600;
}

.selection-summary.empty {
  color: var(--muted);
  background: var(--lightgrey);
  border-left-color: var(--turquoise);
}

.selection-summary i { font-size: 1.1rem; }

.form-label {
  margin-bottom: 6px;
  color: #111;
  font-size: .75rem;
  font-weight: 700;
}

.form-label span {
  color: var(--muted);
  font-weight: 400;
}

.form-control,
.form-select {
  min-height: 44px;
  border-color: rgba(90, 157, 162, .65);
  border-radius: .45rem;
  font-size: .84rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--turquoise);
  box-shadow: 0 0 0 .2rem rgba(90, 157, 162, .13);
}

.form-check-label {
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.5;
}

.form-check-input:checked {
  border-color: var(--lightlime);
  background-color: var(--lightlime);
}

.btn {
  min-height: 46px;
  border-radius: .55rem;
  font-size: .84rem;
  font-weight: 700;
}

.btn-primary {
  border-color: var(--koral);
  color: #fff;
  background: var(--koral);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #eb7334;
  color: #fff;
  background: #eb7334;
}

.btn-primary:disabled {
  border-color: #d3d3d3;
  background: #d3d3d3;
}

.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--lightlime);
  font-size: 1.5rem;
}

.modal-content {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 1.5rem;
  box-shadow: 0 2px 10px rgba(1, 122, 111, .2);
}

.modal h2 {
  color: #000;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.25;
}

.success-details {
  margin: 18px auto 24px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 16px;
  color: #fff;
  background: var(--footer);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .booking-grid { grid-template-columns: 1fr 1fr; }
  .form-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
  .times-panel { border-right: 0; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }

  .contact-intro { padding: 22px 0 10px; }
  .contact-intro h1 { padding: 14px 18px; }
  .contact-intro p { padding: 0 20px; font-size: .94rem; }

  .booking-workspace {
    padding: 12px 12px 55px;
  }

  .stepper { padding: 0 8px; }
  .step strong { display: none; }
  .step:not(:last-child)::after { margin: 0 6px; }

  .booking-grid {
    display: block;
    border-radius: 1.2rem;
  }

  .calendar-panel,
  .times-panel,
  .form-panel {
    padding: 24px 18px;
    border-right: 0;
  }

  .times-panel,
  .form-panel { border-top: 1px solid var(--line); }

  .empty-state { min-height: 160px; }
  .time-slots { max-height: none; }
}
