/* ============================================================
   client-registration.css
   Page-specific layout for client registration v2.
   Depends on: tokens.css · components.css (global)
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */

.cr2-hero {
  background: var(--tm-navy);
  padding: 40px clamp(20px, 4vw, 60px) 68px;
}

.cr2-hero__inner {
  max-width: 1320px;
  margin: 0 auto;
}

/* ── Breadcrumb ──────────────────────────────────────────── */

.cr2-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--tm-font-body);
  font-size: 0.8rem;
}

.cr2-breadcrumb__link {
  text-decoration: none;
  transition: color 150ms ease;
}

.cr2-breadcrumb__sep { font-size: 0.62rem; }

.cr2-breadcrumb__current { font-weight: 500; }

.cr2-breadcrumb--light .cr2-breadcrumb__link         { color: rgba(255, 255, 255, 0.50); }
.cr2-breadcrumb--light .cr2-breadcrumb__link:hover   { color: rgba(255, 255, 255, 0.88); }
.cr2-breadcrumb--light .cr2-breadcrumb__sep          { color: rgba(255, 255, 255, 0.25); }
.cr2-breadcrumb--light .cr2-breadcrumb__current      { color: rgba(255, 255, 255, 0.70); }

/* ── Hero content ────────────────────────────────────────── */

.cr2-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tm-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tm-emerald);
  margin-top: 36px;
  margin-bottom: 18px;
}

.cr2-hero__eyebrow i { font-size: 0.82rem; }

.cr2-hero__headline {
  font-family: var(--tm-font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 640px;
}

.cr2-hero__sub {
  font-family: var(--tm-font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
}

.cr2-hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.cr2-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--tm-radius-pill);
  font-family: var(--tm-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.cr2-hero__chip i { font-size: 0.78rem; color: var(--tm-emerald); }

/* ── Section shell ───────────────────────────────────────── */

.cr2-section {
  background: var(--tm-cream);
  padding: 0 clamp(16px, 4vw, 40px) 80px;
  overflow-x: clip; /* contain the sliding panes */
}

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

/* ── Stepper ─────────────────────────────────────────────── */

.cr2-stepper {
  display: flex;
  align-items: flex-start;
  padding: 30px 0 34px;
}

.cr2-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cr2-stepper__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--tm-line-300);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.cr2-stepper__num {
  font-family: var(--tm-font-body);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--tm-line-300);
  transition: color 260ms ease;
}

.cr2-stepper__check {
  display: none;
  font-size: 0.95rem;
  color: #ffffff;
}

.cr2-stepper__label {
  font-family: var(--tm-font-body);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--tm-ink-500);
  letter-spacing: 0.01em;
  transition: color 260ms ease;
}

/* Active step */
.cr2-stepper__step.is-active .cr2-stepper__circle {
  background: var(--tm-emerald);
  border-color: var(--tm-emerald);
  box-shadow: 0 2px 10px rgba(15, 157, 110, 0.30);
}
.cr2-stepper__step.is-active .cr2-stepper__num  { color: #ffffff; }
.cr2-stepper__step.is-active .cr2-stepper__label { color: var(--tm-navy); }

/* Completed step */
.cr2-stepper__step.is-done .cr2-stepper__circle {
  background: var(--tm-navy);
  border-color: var(--tm-navy);
}
.cr2-stepper__step.is-done .cr2-stepper__num  { display: none; }
.cr2-stepper__step.is-done .cr2-stepper__check { display: block; }
.cr2-stepper__step.is-done .cr2-stepper__label { color: var(--tm-navy); }

/* Connector */
.cr2-stepper__line {
  flex: 1;
  height: 1px;
  background: var(--tm-line-200);
  align-self: flex-start;
  margin: 18px 14px 0;
  transition: background-color 400ms ease;
}

.cr2-stepper__step.is-done + .cr2-stepper__line {
  background: var(--tm-emerald);
}

/* ── Step panes ──────────────────────────────────────────── */

.cr2-pane { display: none; }

.cr2-pane.is-active {
  display: block;
  animation: cr2PaneIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cr2PaneIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step transition animations ──────────────────────────── */

/* Exit: forward (step 1 → 2): slide left + fade */
.cr2-pane.cr2-pane--exit-fwd {
  animation: cr2ExitFwd 220ms cubic-bezier(0.4, 0, 0.6, 1) both;
  pointer-events: none;
}

/* Exit: backward (step 2 → 1): slide right + fade */
.cr2-pane.cr2-pane--exit-bwd {
  animation: cr2ExitBwd 220ms cubic-bezier(0.4, 0, 0.6, 1) both;
  pointer-events: none;
}

/* Enter: forward (arriving at step 2): slide in from right */
.cr2-pane.cr2-pane--enter-fwd {
  animation: cr2EnterFwd 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Enter: backward (arriving at step 1): slide in from left */
.cr2-pane.cr2-pane--enter-bwd {
  animation: cr2EnterBwd 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cr2ExitFwd {
  from { opacity: 1; transform: translateX(0)     scale(1); }
  to   { opacity: 0; transform: translateX(-28px) scale(0.98); }
}

@keyframes cr2ExitBwd {
  from { opacity: 1; transform: translateX(0)    scale(1); }
  to   { opacity: 0; transform: translateX(28px) scale(0.98); }
}

@keyframes cr2EnterFwd {
  from { opacity: 0; transform: translateX(36px) scale(0.98); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

@keyframes cr2EnterBwd {
  from { opacity: 0; transform: translateX(-36px) scale(0.98); }
  to   { opacity: 1; transform: translateX(0)     scale(1); }
}

/* ── Form block (section grouping) ──────────────────────── */

.cr2-block {
  margin-bottom: 36px;
}

.cr2-eyebrow {
  display: block;
  font-family: var(--tm-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tm-ink-500);
  border-bottom: 1px solid var(--tm-line-200);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

/* ── Questions ───────────────────────────────────────────── */

.cr2-questions {
  display: flex;
  flex-direction: column;
}

.cr2-question {
  padding: 22px 0;
  border-bottom: 1px solid var(--tm-line-200);
}

.cr2-question:first-child { padding-top: 0; }
.cr2-question:last-child  { border-bottom: none; padding-bottom: 0; }

.cr2-question__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.cr2-question__num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 157, 110, 0.10);
  color: var(--tm-emerald-deep);
  font-family: var(--tm-font-body);
  font-size: 0.69rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cr2-question__text {
  font-family: var(--tm-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tm-ink-900);
  line-height: 1.45;
  margin: 0;
}

.cr2-question__controls {
  margin-left: 34px;
  margin-bottom: 0;
}

/* ── Required legend & questions intro ──────────────────── */

.cr2-required-legend {
  font-family: var(--tm-font-body);
  font-size: 0.775rem;
  color: var(--tm-ink-500);
  margin: -12px 0 20px;
  line-height: 1.4;
}

.cr2-required-legend .req { color: var(--tm-emerald); }

.cr2-questions-intro {
  font-family: var(--tm-font-body);
  font-size: 0.85rem;
  color: var(--tm-ink-500);
  margin: -12px 0 22px;
  line-height: 1.5;
}

/* ── Question error state ────────────────────────────────── */

.cr2-question.has-error .cr2-question__text {
  color: #991B1B;
}

.cr2-question.has-error .cr2-question__num {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
}

.cr2-question.has-error::after {
  content: 'Please select an option.';
  display: block;
  margin-left: 34px;
  margin-top: 8px;
  font-family: var(--tm-font-body);
  font-size: 0.775rem;
  font-weight: 500;
  color: #991B1B;
}

/* ── Checklist (multi_select) ────────────────────────────── */

.cr2-checklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr2-check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--tm-radius-sm);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.cr2-check-item:hover { background: rgba(15, 157, 110, 0.05); }

.cr2-check-item__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.cr2-check-item__box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1.5px solid var(--tm-line-300);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease, border-color 150ms ease;
  margin-top: 2px;
}

.cr2-check-item__box i {
  font-size: 0.72rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity 150ms ease;
}

.cr2-check-item__label {
  font-family: var(--tm-font-body);
  font-size: 0.875rem;
  color: var(--tm-ink-700);
  line-height: 1.5;
  transition: color 150ms ease;
}

.cr2-check-item__input:checked ~ .cr2-check-item__box {
  background: var(--tm-emerald);
  border-color: var(--tm-emerald);
}

.cr2-check-item__input:checked ~ .cr2-check-item__box i { opacity: 1; }

.cr2-check-item__input:checked ~ .cr2-check-item__label {
  color: var(--tm-navy);
  font-weight: 500;
}

/* ── Privacy row ─────────────────────────────────────────── */

.cr2-privacy {
  background: var(--tm-mist-100);
  border: 1px solid var(--tm-line-200);
  border-radius: var(--tm-radius-lg);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.cr2-privacy__notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--tm-font-body);
  font-size: 0.81rem;
  color: var(--tm-ink-500);
  line-height: 1.6;
  margin: 0 0 14px;
}

.cr2-privacy__notice i {
  font-size: 0.95rem;
  color: var(--tm-emerald);
  flex-shrink: 0;
  margin-top: 1px;
}

.cr2-privacy__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.cr2-privacy__check {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--tm-emerald);
  cursor: pointer;
}

.cr2-privacy__label {
  font-family: var(--tm-font-body);
  font-size: 0.865rem;
  font-weight: 500;
  color: var(--tm-ink-700);
  line-height: 1.5;
}

.cr2-privacy__label .req { color: var(--tm-emerald); }

.cr2-privacy__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tm-font-body);
  font-size: 0.775rem;
  font-weight: 500;
  color: #991B1B;
  margin-top: 10px;
}

/* ── Action rows ─────────────────────────────────────────── */

.cr2-foot {
  padding-top: 4px;
  margin-bottom: 40px;
}

.cr2-foot--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── Hours info bar (step 2) ─────────────────────────────── */

.cr2-hours {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 157, 110, 0.07);
  border: 1px solid rgba(15, 157, 110, 0.18);
  border-radius: var(--tm-radius-md);
  padding: 10px 16px;
  font-family: var(--tm-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--tm-emerald-deep);
  margin-bottom: 24px;
  line-height: 1.4;
}

.cr2-hours i { font-size: 0.95rem; flex-shrink: 0; }

/* ── Time validation message ─────────────────────────────── */

.cr2-time-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tm-font-body);
  font-size: 0.8rem;
  line-height: 1.45;
  border-radius: var(--tm-radius-sm);
  padding: 9px 13px;
  margin-bottom: 16px;
}

.cr2-time-msg.is-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-weight: 500;
}

.cr2-time-msg.is-ok {
  background: #F0FDF9;
  border: 1px solid rgba(15, 157, 110, 0.28);
  color: var(--tm-emerald-deep);
}

.cr2-time-msg.is-check {
  background: #ffffff;
  border: 1px solid var(--tm-line-200);
  color: var(--tm-ink-500);
}

/* ── reCAPTCHA error ─────────────────────────────────────── */

.cr2-recaptcha-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tm-font-body);
  font-size: 0.775rem;
  color: #DC2626;
  margin-top: 8px;
}

/* ── Success state ───────────────────────────────────────── */

.cr2-success {
  text-align: center;
  padding: 52px 0 44px;
}

.cr2-success__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(15, 157, 110, 0.10);
  border: 1.5px solid rgba(15, 157, 110, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}

.cr2-success__icon i {
  font-size: 2.2rem;
  color: var(--tm-emerald);
}

.cr2-success__headline {
  font-family: var(--tm-font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--tm-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.cr2-success__sub {
  font-family: var(--tm-font-body);
  font-size: 0.95rem;
  color: var(--tm-ink-500);
  line-height: 1.65;
  margin: 0 auto 26px;
  max-width: 400px;
}

.cr2-next-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 400px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cr2-next-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tm-line-200);
}

.cr2-next-step:last-child { border-bottom: none; }

.cr2-next-step__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 157, 110, 0.09);
  border: 1px solid rgba(15, 157, 110, 0.22);
  color: var(--tm-emerald-deep);
  font-family: var(--tm-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cr2-next-step div {
  font-family: var(--tm-font-body);
  font-size: 0.875rem;
  color: var(--tm-ink-700);
  line-height: 1.55;
}

.cr2-next-step strong {
  display: block;
  font-weight: 600;
  color: var(--tm-navy);
  margin-bottom: 2px;
}

#appointmentSummary {
  margin: 0 auto 28px;
  max-width: 400px;
  text-align: left;
}

.cr2-summary-card {
  background: #ffffff;
  border: 1px solid var(--tm-line-200);
  border-radius: var(--tm-radius-lg);
  padding: 20px 22px;
}

.cr2-summary-card__title {
  font-family: var(--tm-font-body);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tm-ink-500);
  margin: 0 0 14px;
}

.cr2-summary-row {
  display: flex;
  gap: 10px;
  font-family: var(--tm-font-body);
  font-size: 0.875rem;
  color: var(--tm-ink-700);
  margin-bottom: 8px;
  line-height: 1.45;
}

.cr2-summary-row:last-child { margin-bottom: 0; }

.cr2-summary-row strong {
  font-weight: 600;
  color: var(--tm-navy);
  min-width: 64px;
  flex-shrink: 0;
}

/* ── Submission overlay ──────────────────────────────────── */

.cr2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 61, 0.70);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.cr2-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cr2-overlay__card {
  background: var(--tm-cream);
  border-radius: var(--tm-radius-xl);
  padding: 40px 36px 36px;
  max-width: 360px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 28px 64px rgba(10, 31, 61, 0.45);
}

.cr2-overlay__ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--tm-line-200);
  border-top-color: var(--tm-emerald);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: cr2Spin 0.85s linear infinite;
}

@keyframes cr2Spin { to { transform: rotate(360deg); } }

.cr2-overlay__title {
  font-family: var(--tm-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--tm-navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 22px;
}

.cr2-overlay__track {
  height: 4px;
  background: var(--tm-line-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.cr2-overlay__fill {
  height: 100%;
  background: var(--tm-emerald);
  border-radius: 999px;
  width: 0%;
  transition: width 420ms ease;
}

.cr2-overlay__status {
  font-family: var(--tm-font-body);
  font-size: 0.8rem;
  color: var(--tm-ink-500);
  margin: 0;
}

/* ── Toast ───────────────────────────────────────────────── */

.cr2-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 340px;
  background: var(--tm-navy);
  color: rgba(255, 255, 255, 0.90);
  font-family: var(--tm-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 13px 18px;
  border-radius: var(--tm-radius-md);
  box-shadow: 0 8px 28px rgba(10, 31, 61, 0.28);
  z-index: 9100;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  line-height: 1.5;
}

.cr2-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cr2-toast.error   { background: #7F1D1D; }
.cr2-toast.success { background: var(--tm-emerald-deep); }

/* ── Date input wrapper (flatpickr) ─────────────────────── */

.cr2-date-wrap {
  position: relative;
}

.cr2-date-input {
  padding-right: 38px;
  cursor: pointer;
}

.cr2-date-input:read-only {
  background: #ffffff;
}

.cr2-date-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  color: var(--tm-ink-500);
  pointer-events: none;
  transition: color 150ms ease;
}

.cr2-date-wrap:focus-within .cr2-date-icon { color: var(--tm-emerald); }

/* ── Flatpickr calendar theme ────────────────────────────── */

.flatpickr-calendar {
  font-family: var(--tm-font-body) !important;
  border-radius: 12px !important;
  border: 1px solid var(--tm-line-200) !important;
  box-shadow: 0 16px 48px rgba(10, 31, 61, 0.18) !important;
  background: #ffffff !important;
  padding: 0 !important;
  width: 308px !important;
}

/* Remove the arrow/caret */
.flatpickr-calendar::before,
.flatpickr-calendar::after { display: none !important; }

/* Month header */
.flatpickr-month {
  background: var(--tm-navy) !important;
  border-radius: 12px 12px 0 0 !important;
  height: 50px !important;
  padding: 0 12px !important;
}

.flatpickr-current-month {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  padding-top: 14px !important;
}

.flatpickr-current-month .numInputWrapper { display: inline-block; }

.flatpickr-current-month .numInputWrapper:hover { background: transparent !important; }

.numInputWrapper span.arrowUp,
.numInputWrapper span.arrowDown { border-color: rgba(255,255,255,0.4) !important; }

.cur-month { font-weight: 600 !important; margin-right: 4px; }

/* Month dropdown — native select lives inside the navy header */
.flatpickr-monthDropdown-months {
  background: var(--tm-navy) !important;
  color: #ffffff !important;
  border: none !important;
  outline: none !important;
  font-family: var(--tm-font-body) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}

.flatpickr-monthDropdown-months:hover {
  background: rgba(255,255,255,0.1) !important;
  border-radius: 4px !important;
}

.flatpickr-monthDropdown-months option {
  background: var(--tm-navy) !important;
  color: #ffffff !important;
  font-family: var(--tm-font-body) !important;
  font-weight: 500 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: rgba(255,255,255,0.65) !important;
  fill:  rgba(255,255,255,0.65) !important;
  padding: 10px 12px !important;
  top: 4px !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  color: #ffffff !important;
  fill:  #ffffff !important;
  background: rgba(255,255,255,0.12) !important;
  border-radius: 6px !important;
}

/* Weekday labels */
.flatpickr-weekdays {
  background: var(--tm-navy) !important;
  border-radius: 0 !important;
  padding: 0 8px 6px !important;
}

.flatpickr-weekday {
  font-family: var(--tm-font-body) !important;
  font-size: 0.69rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  color: rgba(255,255,255,0.45) !important;
}

/* Days grid */
.flatpickr-days { padding: 8px !important; }

.dayContainer {
  padding: 0 !important;
  gap: 2px !important;
}

.flatpickr-day {
  font-family: var(--tm-font-body) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  color: var(--tm-ink-700) !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  height: 38px !important;
  line-height: 36px !important;
  max-width: 38px !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected):not(.prevMonthDay):not(.nextMonthDay) {
  background: rgba(15, 157, 110, 0.08) !important;
  border-color: rgba(15, 157, 110, 0.22) !important;
  color: var(--tm-navy) !important;
}

.flatpickr-day.today:not(.selected) {
  border-color: rgba(15, 157, 110, 0.40) !important;
  font-weight: 700 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--tm-emerald) !important;
  border-color: var(--tm-emerald) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 157, 110, 0.35) !important;
}

/* Prev/next month ghost days */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--tm-line-300) !important;
}

/* Unavailable days — crossed out */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: var(--tm-line-300) !important;
  background: transparent !important;
  border-color: transparent !important;
  cursor: not-allowed !important;
  text-decoration: line-through !important;
  opacity: 0.6 !important;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {

  /* Hero */
  .cr2-hero              { padding: 22px 20px 40px; }
  .cr2-breadcrumb        { margin-top: 14px; }
  .cr2-hero__eyebrow     { margin-top: 20px; margin-bottom: 12px; }
  .cr2-hero__headline    { font-size: clamp(2rem, 8vw, 4.2rem); }
  .cr2-hero__sub         { font-size: 0.95rem; }
  .cr2-hero__chips       { margin-top: 18px; gap: 6px; }
  .cr2-hero__chip        { font-size: 0.75rem; padding: 5px 10px; }

  /* Section */
  .cr2-section           { padding-bottom: 56px; }

  /* Stepper — smaller circles, tighter connector */
  .cr2-stepper           { padding: 18px 0 22px; }
  .cr2-stepper__circle   { width: 32px; height: 32px; }
  .cr2-stepper__num      { font-size: 0.78rem; }
  .cr2-stepper__label    { font-size: 0.72rem; }
  .cr2-stepper__line     { margin: 15px 10px 0; }

  /* Form blocks */
  .cr2-block             { margin-bottom: 28px; }
  .cr2-eyebrow           { margin-bottom: 16px; }

  /* Questions */
  .cr2-question          { padding: 18px 0; }
  .cr2-question__controls { margin-left: 0; margin-top: 10px; }
  .cr2-question.has-error::after { margin-left: 0; }

  /* Privacy block */
  .cr2-privacy           { padding: 14px 16px; }

  /* Foot / CTAs */
  .cr2-foot              { margin-bottom: 28px; }
  .cr2-foot .jp2-btn     { width: 100%; justify-content: center; }
  .cr2-foot--split       { flex-direction: column-reverse; align-items: stretch; }
  .cr2-foot--split .jp2-btn { width: 100%; justify-content: center; }

  /* Step 2: hours bar — icon top-aligns when text wraps */
  .cr2-hours             { font-size: 0.78rem; padding: 9px 13px; align-items: flex-start; }

  /* Flatpickr: prevent calendar from overflowing narrow viewports */
  .flatpickr-calendar    { width: min(308px, calc(100vw - 40px)) !important; }

  /* Success */
  .cr2-success           { padding: 36px 0 28px; }
  .cr2-next-steps        { max-width: none; }
  #appointmentSummary    { max-width: none; }

  /* Toast: full-width, above system nav */
  .cr2-toast             { left: 16px; right: 16px; max-width: none; bottom: 16px; }

  /* Overlay */
  .cr2-overlay__card     { padding: 28px 20px 24px; }
}

/* ── Page-load entrance animation ── */
@keyframes cr2-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cr2-breadcrumb     { animation: cr2-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0ms   both; }
.cr2-hero__eyebrow  { animation: cr2-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 60ms  both; }
.cr2-hero__headline { animation: cr2-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 140ms both; }
.cr2-hero__sub      { animation: cr2-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 220ms both; }
.cr2-hero__chips    { animation: cr2-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 300ms both; }
.cr2-section        { animation: cr2-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 380ms both; }

@media (prefers-reduced-motion: reduce) {
  .cr2-breadcrumb, .cr2-hero__eyebrow, .cr2-hero__headline,
  .cr2-hero__sub, .cr2-hero__chips, .cr2-section { animation: none; }
}
