/* ============================================================
   The Booking Well — book.thebookingwell.com
   Dark theme matched to thebookingwell.com:
   plum #332657 / #2a1f49 · cards #3d2f66 · teal #34c9cf
   Fonts: Outfit (headings) · Inter (body)
   Cache-busting: bump ?v=N on the stylesheet link every change.
   ============================================================ */

:root {
  --plum:        #332657;
  --plum-deep:   #2a1f49;
  --plum-card:   #3d2f66;
  --teal:        #2bb8be;
  --teal-bright: #34c9cf;
  --ink:         #1c1530;
  --cream:       #f5f2ec;
  --muted:       #b9aed6;
  --line:        rgba(255, 255, 255, 0.14);
  --pink:        #e06a8b;
  --font-head: "Outfit", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--plum-deep);
  color: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

/* --- Hero ---------------------------------------------------- */
.hero {
  background: linear-gradient(170deg, var(--plum) 0%, var(--plum-deep) 100%);
  color: #fff;
  padding: 48px 24px 56px;
  text-align: center;
}

.hero-inner { max-width: 640px; margin: 0 auto; }

.hero-logo {
  height: 130px;
  width: auto;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.hero-meta div {
  color: var(--teal-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* --- Layout -------------------------------------------------- */
main { padding: 40px 24px 64px; }

.container { max-width: 720px; margin: 0 auto; }

.intro {
  background: var(--plum-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-bright);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.intro strong { color: #fff; }

h2 {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  font-size: 27px;
  margin-bottom: 6px;
}

.slots-note {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* --- Slots grid ----------------------------------------------- */
.slots-state {
  background: var(--plum-card);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
}

.slots-state a { color: var(--teal-bright); }

/* --- Calendly-style scheduler --------------------------------- */
.scheduler {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cal-panel {
  flex: 0 0 350px;
  background: var(--plum-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
}

.cal-nav {
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.cal-nav:hover:not(:disabled) {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

.cal-nav:disabled { opacity: 0.3; cursor: default; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 4px 0 6px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 10px;
  color: var(--muted);
}

span.cal-day.off { opacity: 0.35; }

button.cal-day.available {
  background: rgba(52, 201, 207, 0.14);
  border: 1.5px solid transparent;
  color: var(--teal-bright);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}

button.cal-day.available:hover { border-color: var(--teal-bright); }

button.cal-day.available.selected {
  background: var(--teal-bright);
  color: var(--ink);
}

.times-panel { flex: 1; min-width: 0; }

.times-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
}

.times {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}

.times-empty { color: var(--muted); font-size: 14px; }

.time-btn {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--cream);
  background: var(--plum-card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.time-btn:hover { border-color: var(--teal-bright); }

.time-btn.selected {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  color: var(--ink);
}

/* --- Booking form --------------------------------------------- */
.form-card {
  background: var(--plum-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-top: 36px;
}

.form-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}

.picked {
  font-size: 15px;
  background: var(--plum-deep);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.picked a { color: var(--teal-bright); }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.field-required label::after {
  content: " *";
  color: var(--teal-bright);
}

.hint { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cream);
  background: var(--plum-deep);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
}

.form-error {
  background: rgba(224, 106, 139, 0.14);
  border-left: 4px solid var(--pink);
  border-radius: 0 10px 10px 0;
  color: #f3b9c9;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.form-actions { margin-top: 8px; }

.btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: var(--teal-bright);
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: var(--teal); }

.btn:disabled { opacity: 0.6; cursor: default; }

.form-note { margin-top: 14px; margin-bottom: 0; }

/* --- Success -------------------------------------------------- */
.success-card {
  background: var(--plum-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal-bright);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}

.success-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  font-size: 26px;
  margin-bottom: 12px;
}

/* --- Footer --------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.footer a { color: var(--teal-bright); }

/* --- Small screens -------------------------------------------- */
@media (max-width: 640px) {
  .scheduler { flex-direction: column; }
  .cal-panel { flex: none; width: 100%; }
  .times { max-height: none; }
}

@media (max-width: 480px) {
  .hero { padding: 36px 18px 44px; }
  .hero-logo { height: 100px; }
  main { padding: 28px 16px 48px; }
  .form-card { padding: 20px 16px; }
}
