/* PhysioBeats — booking page as one question at a time (Typeform-style).
   Loaded after styles.css, pages.css and theme.css on book.html only. */
.tf-page [hidden] { display: none !important; }
.tf-page .inner-main { padding: 0; }

.tf { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 20px 120px; }
.tf__bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; background: rgba(54, 176, 255, .15); z-index: 60; }
.tf__bar span { display: block; height: 100%; width: 0; background: #36b0ff; transition: width .5s cubic-bezier(.2, .7, .2, 1); }

.tf__form { width: min(720px, 100%); margin: 0 auto; }
.tf__intro { color: #9aa0a6; font-size: 15px; margin: 0 0 28px; max-width: 560px; }

.tf__q, .tf__fs legend.tf__q {
  display: block; position: relative; padding: 0; margin: 0 0 22px;
  font: 500 clamp(22px, 3.2vw, 30px)/1.3 'Poppins', sans-serif; letter-spacing: -.02em; color: #fff;
}
.tf__q .req { color: #36b0ff; }
.tf__n { position: absolute; right: calc(100% + 14px); top: .28em; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: #36b0ff; white-space: nowrap; }
.tf__n svg { width: 14px; height: 14px; }
.tf__fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.tf__help { color: #8b9096; font-size: 15px; margin: -10px 0 20px; }

/* Answer fields: big text on an underline, like Typeform */
.tf-page .tf__in {
  display: block; width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(54, 176, 255, .35);
  border-radius: 0; padding: 8px 0 10px; color: #fff; box-shadow: none;
  font: 400 clamp(20px, 2.8vw, 28px)/1.35 'Poppins', sans-serif; transition: border-color .25s;
}
.tf-page .tf__in::placeholder { color: rgba(54, 176, 255, .45); }
.tf-page .tf__in:focus { outline: none; border-bottom-color: #36b0ff; }
.tf-page .tf__in.is-invalid, .tf-page .tf__in[aria-invalid="true"] { border-bottom-color: #ff6b6b; }
.tf-page .tf__in--sm { font-size: clamp(17px, 2vw, 20px); }
.tf__ta { resize: none; overflow: hidden; min-height: 56px; }
.tf__kbd { margin: 10px 0 0; font-size: 12px; color: #6f747a; }
.tf__kbd b { color: #9aa0a6; font-weight: 500; }
@media (pointer: coarse) { .tf__kbd { display: none; } }
.tf-page input[type="number"].tf__in { -moz-appearance: textfield; }
.tf-page input[type="number"].tf__in::-webkit-outer-spin-button,
.tf-page input[type="number"].tf__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Country code and number on one line, like a normal phone field */
.tf__phone { display: flex; align-items: stretch; border-bottom: 2px solid rgba(54, 176, 255, .35); transition: border-color .25s; }
.tf__phone:focus-within { border-bottom-color: #36b0ff; }
.tf__phone.is-invalid, .tf__phone:has(.is-invalid), .tf__phone:has([aria-invalid="true"]) { border-bottom-color: #ff6b6b; }
.tf__dial {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  margin: 6px 12px 8px 0; padding: 0 12px; border-radius: 8px;
  background: rgba(54, 176, 255, .1); border: 1px solid rgba(54, 176, 255, .35); color: #fff;
  font: 500 clamp(17px, 2.4vw, 22px)/1 'Poppins', sans-serif; white-space: nowrap;
}
.tf__dial svg { width: 14px; height: 14px; color: #36b0ff; }
.tf__dial:focus-within { border-color: #36b0ff; }
/* the real list sits invisibly on top, so a tap opens the phone's own country picker */
.tf__dial select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.tf-page .tf__phone .tf__in { flex: 1; min-width: 0; border-bottom: 0; }
.tf__echo { display: block; margin-top: 10px; color: #8b9096; font-size: 14px; }
.tf__sub { display: block; margin: 34px 0 4px; color: #d9d9d9; font: 500 16px/1.3 'Poppins', sans-serif; }
.tf__sub .opt { color: #6f747a; font-weight: 400; }

/* Choice buttons with letter keys */
.tf__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tf__choices { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 480px; background: none; border: 0; padding: 0; }
.tf-page .tf__choice, .tf-page #genderSeg .seg-opt {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; min-width: min(320px, 100%); max-width: 100%;
  padding: 10px 16px 10px 10px; border-radius: 8px; cursor: pointer; text-align: left;
  background: rgba(54, 176, 255, .08); border: 1px solid rgba(54, 176, 255, .35); color: #fff;
  font: 400 17px/1.35 'Poppins', sans-serif; transition: background .2s, border-color .2s, transform .15s;
}
.tf-page .tf__choice:hover, .tf-page #genderSeg .seg-opt:hover { background: rgba(54, 176, 255, .16); }
.tf-page .tf__choice.checked, .tf-page #genderSeg .seg-opt.checked { background: rgba(54, 176, 255, .22); border-color: #36b0ff; }
.tf-page .tf__choice:focus-visible, .tf-page #genderSeg .seg-opt:focus-within { outline: 2px solid #36b0ff; outline-offset: 2px; }
.tf__choice kbd {
  flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px;
  border: 1px solid rgba(54, 176, 255, .5); color: #36b0ff; background: #000; font: 600 12px/1 'Poppins', sans-serif;
}
.tf__choice.checked kbd { background: #36b0ff; color: #000; border-color: #36b0ff; }
.tf-page #genderSeg .seg-opt span { background: none; padding: 0; color: inherit; box-shadow: none; }
.tf-page #genderSeg.is-invalid .seg-opt, .tf-page #genderSeg[aria-invalid="true"] .seg-opt { border-color: #ff6b6b; }

/* OK button and hint */
.tf__nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.tf__ok {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 6px; cursor: pointer;
  background: #36b0ff; color: #000; font: 600 17px/1 'Poppins', sans-serif; transition: background .2s;
}
.tf__ok:hover { background: #5cc0ff; }
.tf__ok svg { width: 16px; height: 16px; }
.tf__hint { font-size: 13px; color: #8b9096; }
.tf__hint b { color: #d9d9d9; font-weight: 600; }
.tf__status { margin: 16px 0 0; min-height: 1.4em; font-size: 15px; }
.tf__status[data-state="error"] { color: #ff8a8a; }
.tf__status[data-state="ok"] { color: #5fd38d; }

/* Last question: Apple-style day + time picker */
.pk__legacy { display: none !important; }
.pk { margin-top: 4px; }
.pk__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pk__month { font: 600 17px/1.2 'Poppins', sans-serif; color: #fff; }
.pk__nav { display: flex; gap: 6px; }
.pk__nav button {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #36b0ff; transition: background .2s;
}
.pk__nav button:hover { background: rgba(54, 176, 255, .15); }
.pk__nav svg { width: 15px; height: 15px; }
.pk__days {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 4px 2px 10px; margin: 0 -2px; -webkit-overflow-scrolling: touch;
}
.pk__days::-webkit-scrollbar { display: none; }
.pk__day {
  flex: 0 0 auto; scroll-snap-align: start; width: 62px; padding: 10px 0 12px; border-radius: 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: #d9d9d9; transition: background .2s, border-color .2s;
}
.pk__day:hover { border-color: rgba(54, 176, 255, .5); }
.pk__dow { font: 500 12px/1 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #8b9096; }
.pk__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 600 18px/1 'Poppins', sans-serif; color: #fff; transition: background .2s; }
.pk__day.is-on { background: rgba(54, 176, 255, .1); border-color: #36b0ff; }
.pk__day.is-on .pk__dow { color: #36b0ff; }
.pk__day.is-on .pk__num { background: #36b0ff; color: #000; }
.pk__day:focus-visible, .pk__time:focus-visible { outline: 2px solid #36b0ff; outline-offset: 2px; }

.pk__times { margin-top: 14px; min-height: 120px; }
.pk__seg {
  display: flex; gap: 2px; padding: 3px; margin-bottom: 14px; border-radius: 11px;
  background: rgba(255, 255, 255, .07);
}
.pk__tab {
  flex: 1; padding: 9px 4px; border: 0; border-radius: 8px; cursor: pointer; background: transparent;
  color: #b8bcc2; font: 500 14px/1.2 'Poppins', sans-serif; transition: background .2s, color .2s;
}
.pk__tab:hover { color: #fff; }
.pk__tab.is-on { background: #3a3d42; color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.pk__tab:focus-visible { outline: 2px solid #36b0ff; outline-offset: 1px; }
.pk__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pk__time {
  padding: 12px 6px; border-radius: 10px; cursor: pointer; text-align: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(54, 176, 255, .35); color: #36b0ff;
  font: 500 15px/1 'Poppins', sans-serif; transition: background .2s, color .2s;
}
.pk__time:hover { background: rgba(54, 176, 255, .12); }
.pk__time { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.pk__time.is-on { background: #25d366; border-color: #25d366; color: #04210f; animation: pkPop .25s ease-out; }
.pk__time.is-on:hover { background: #2ee374; }
.pk__t { font-size: 12px; font-weight: 500; line-height: 1.2; }
.pk__go { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.pk__go svg { width: 15px; height: 15px; }
@keyframes pkPop { 0% { transform: scale(.94); } 100% { transform: scale(1); } }
.pk__msg { margin: 6px 0 0; color: #8b9096; font-size: 15px; }
.pk__msg--small { font-size: 13px; margin-top: 14px; }
.pk__chosen {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(54, 176, 255, .08);
  border: 1px solid rgba(54, 176, 255, .25); color: #fff; font-size: 15px;
}
.pk__chosen::before { content: "✓  "; color: #36b0ff; font-weight: 700; }
.tf__send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; width: 100%; max-width: 420px;
  padding: 16px 24px; border: 0; border-radius: 8px; cursor: pointer;
  background: #25d366; color: #04210f; font: 700 17px/1 'Poppins', sans-serif; transition: transform .2s, background .2s;
}
.tf__send:hover { background: #2ee673; transform: translateY(-1px); }
.tf__send svg { width: 20px; height: 20px; }
.tf__note { color: #8b9096; font-size: 13px; margin-top: 12px; max-width: 520px; }
.tf__note a { color: #36b0ff; }

/* Up / down arrows, bottom right */
.tf__arrows { position: fixed; right: 24px; bottom: 24px; display: flex; gap: 2px; z-index: 40; }
.tf__arrows button {
  width: 38px; height: 36px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: #36b0ff; color: #000; transition: opacity .2s, background .2s;
}
.tf__arrows button:first-child { border-radius: 6px 0 0 6px; }
.tf__arrows button:last-child { border-radius: 0 6px 6px 0; }
.tf__arrows button:disabled { opacity: .35; cursor: default; }
.tf__arrows svg { width: 16px; height: 16px; }
.tf-page .wa { right: 24px; bottom: 76px; }

/* Question change: slide in from below (or above when going back) */
@keyframes tfUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes tfDown { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
.tf-in-up { animation: tfUp .5s cubic-bezier(.2, .7, .2, 1) both; }
.tf-in-down { animation: tfDown .5s cubic-bezier(.2, .7, .2, 1) both; }

@media (max-width: 760px) {
  .tf { align-items: flex-start; padding: 110px 20px 110px; }
  .tf__n { position: static; display: flex; margin-bottom: 8px; }
  .tf__choices { align-items: stretch; }
  .tf-page .tf__choice, .tf-page #genderSeg .seg-opt { min-width: 0; width: 100%; }
  .tf__send { max-width: none; }
  .pk__grid { grid-template-columns: repeat(3, 1fr); }
  .pk__day { width: 56px; }
  .tf__arrows { right: 16px; bottom: 16px; }
  .tf-page .wa { right: 16px; bottom: 64px; }
}
