/*
  Appointment booking widget (booking.js). Uses the site's own palette and
  font so it reads as part of the page rather than an embed.
*/
.gsb {
  --gsb-blue: #0170b9;
  --gsb-blue-dark: #015c98;
  --gsb-accent: #40a5d7;
  --gsb-ink: #333;
  --gsb-text: #767676;
  --gsb-line: #dfe6ec;
  --gsb-soft: #eef5fa;
  --gsb-ok: #2f8f4e;
  --gsb-bad: #c8412f;
  font-family: "Sansation", Sans-serif;
  color: var(--gsb-ink);
  background: #fff;
  border: 1px solid var(--gsb-line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(1, 112, 185, 0.08);
  text-align: left;
  box-sizing: border-box;
  max-width: 100%;
}
.gsb *, .gsb *::before, .gsb *::after { box-sizing: border-box; }

/* The theme styles every <button> as a big blue call to action. Start the
   widget's buttons from nothing and give each its own look below. */
.gsb button {
  appearance: none; -webkit-appearance: none; background: none; border: 0; margin: 0; padding: 0;
  color: inherit; font: inherit; line-height: normal; letter-spacing: normal; text-transform: none;
  border-radius: 0; box-shadow: none; min-height: 0; width: auto; height: auto; text-decoration: none;
}
.gsb button:hover, .gsb button:focus { background: none; color: inherit; box-shadow: none; }
.gsb button:focus-visible { outline: 2px solid var(--gsb-accent); outline-offset: 2px; }

.gsb-head { margin-bottom: 18px; }
.gsb .gsb-title { margin: 0 0 6px; font-size: 1.45rem; font-weight: 700; color: var(--gsb-blue); line-height: 1.2; }
.gsb .gsb-blurb { margin: 0; color: var(--gsb-text); font-size: 0.95rem; line-height: 1.5; }

.gsb-notice {
  background: var(--gsb-soft); border-left: 4px solid var(--gsb-blue);
  padding: 14px 16px; border-radius: 6px; color: var(--gsb-ink); line-height: 1.5;
}

.gsb-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 699px) { .gsb-body { grid-template-columns: 1fr; } .gsb { padding: 18px; } }

.gsb-step {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gsb-blue); margin-bottom: 10px;
}

/* calendar */
.gsb-cal { border: 1px solid var(--gsb-line); border-radius: 10px; padding: 12px; }
.gsb-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gsb-cal-month { font-weight: 700; font-size: 0.98rem; }
.gsb .gsb-cal-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gsb-line); background: #fff;
  color: var(--gsb-blue); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0;
}
.gsb .gsb-cal-btn:hover:not(:disabled) { background: var(--gsb-soft); }
.gsb .gsb-cal-btn:disabled { opacity: 0.35; cursor: default; }
.gsb-cal-dow, .gsb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.gsb-cal-dow span { text-align: center; font-size: 0.72rem; color: var(--gsb-text); padding: 4px 0; }
.gsb .gsb-day {
  aspect-ratio: 1; border: none; border-radius: 50%; background: transparent; font: inherit;
  font-size: 0.9rem; color: #b8c1c9; padding: 0; cursor: default; display: flex; align-items: center; justify-content: center;
}
.gsb .gsb-day.is-open { color: var(--gsb-blue); background: var(--gsb-soft); font-weight: 700; cursor: pointer; }
.gsb .gsb-day.is-open:hover { background: #d9ebf7; }
.gsb .gsb-day.is-chosen, .gsb .gsb-day.is-open.is-chosen, .gsb .gsb-day.is-chosen:hover { background: var(--gsb-blue); color: #fff; }
.gsb-day-pad { visibility: hidden; }

/* times */
.gsb-hint { margin: 0 0 10px; color: var(--gsb-text); font-size: 0.92rem; }
.gsb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gsb .gsb-time {
  border: 1.5px solid var(--gsb-blue); background: #fff; color: var(--gsb-blue); border-radius: 8px;
  padding: 10px 8px; font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.gsb .gsb-time:hover { background: var(--gsb-soft); color: var(--gsb-blue); }
.gsb .gsb-time.is-chosen, .gsb .gsb-time.is-chosen:hover { background: var(--gsb-blue); color: #fff; }

/* details */
.gsb-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gsb-line); }
.gsb-summary { margin: 0 0 14px; color: var(--gsb-text); font-size: 0.95rem; }
.gsb-summary.is-set { color: var(--gsb-ink); font-weight: 700; }
.gsb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 599px) { .gsb-row { grid-template-columns: 1fr; } }
.gsb-field { display: block; margin-bottom: 12px; }
.gsb-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--gsb-ink); margin-bottom: 5px; }
.gsb-field input, .gsb-field textarea {
  width: 100%; border: 1px solid #c9d3dc; border-radius: 6px; padding: 10px 12px; font: inherit; font-size: 0.95rem;
  color: var(--gsb-ink); background: #fff;
}
.gsb-field input:focus, .gsb-field textarea:focus { outline: none; border-color: var(--gsb-blue); box-shadow: 0 0 0 3px rgba(1, 112, 185, 0.15); }
.gsb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gsb-error { margin: 0 0 12px; color: var(--gsb-bad); font-size: 0.9rem; font-weight: 700; }
.gsb .gsb-submit {
  display: inline-block; border: none; border-radius: 6px; background: var(--gsb-blue); color: #fff !important;
  padding: 13px 28px; font: inherit; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.85rem; cursor: pointer; text-decoration: none; transition: background 0.15s;
}
.gsb .gsb-submit:hover { background: var(--gsb-blue-dark); color: #fff; }
.gsb .gsb-submit:disabled { opacity: 0.6; cursor: default; }
.gsb-fine { margin: 12px 0 0; color: var(--gsb-text); font-size: 0.82rem; }

/* done */
.gsb-done { text-align: center; padding: 12px 0 4px; }
.gsb-done-mark {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--gsb-ok); color: #fff;
  font-size: 1.8rem; line-height: 56px; font-weight: 700;
}
.gsb-done-when { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.gsb-done .gsb-blurb { margin-bottom: 16px; }
.gsb-ics { margin-top: 4px; }

/* compact layout: home page and the popup */
.gsb.gsb-compact { margin-left: auto; margin-right: auto; }
.gsb-compact .gsb-body { grid-template-columns: 1fr; gap: 18px; }
.gsb-compact .gsb-form { margin-top: 18px; padding-top: 16px; }
.gsb-daychips { display: flex; flex-wrap: wrap; gap: 8px; }
.gsb-daychips[hidden] { display: none; }
.gsb .gsb-daychip {
  display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 8px 10px;
  border: 1.5px solid var(--gsb-line); border-radius: 10px; background: #fff; color: var(--gsb-ink);
  font: inherit; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.gsb .gsb-daychip:hover { border-color: var(--gsb-blue); background: var(--gsb-soft); color: var(--gsb-ink); }
.gsb .gsb-daychip.is-chosen, .gsb .gsb-daychip.is-chosen:hover { background: var(--gsb-blue); border-color: var(--gsb-blue); color: #fff; }
.gsb-daychip-dow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.gsb-daychip-date { font-weight: 700; font-size: 0.95rem; }
.gsb .gsb-daychip-more { justify-content: center; color: var(--gsb-blue); font-weight: 700; font-size: 0.85rem; }
