/**
 * Veritas Intake — Public Booker Styles
 * ──────────────────────────────────────────────────────────────────────
 * Loaded by Veritas_Intake::enqueue_assets() on pages hosting
 * the [veritas_intake] shortcode. Depends on hyde-tokens.css for the
 * --hyde-* design tokens; if a theme strips that, the rules fall back
 * to sensible defaults via the second value in var().
 *
 * Scoped under #hyde-intake-root so theme styles do not bleed in and
 * our styles do not bleed out. Avoid !important except where a theme
 * is known to attack our resets.
 *
 * @since 2.24.2 (M2)
 */

#hyde-intake-root.hyde-intake {
  font-family: var(--hyde-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--hyde-ink, #1d1d1f);
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  line-height: var(--hyde-leading-normal, 1.5);
  box-sizing: border-box;
}

#hyde-intake-root *,
#hyde-intake-root *::before,
#hyde-intake-root *::after {
  box-sizing: border-box;
}

/* ─── Admin-preview banner ─── */

.hyde-intake-preview-banner {
  background: var(--hyde-warning-bg, #fdf8ed);
  border: 1px solid var(--hyde-warning-border, #e4c57d);
  color: var(--hyde-warning, #92600a);
  border-radius: var(--hyde-radius-md, 12px);
  padding: 12px 16px;
  font-size: var(--hyde-text-small, 13px);
  margin-bottom: 24px;
}

/* ─── Header ─── */

.hyde-intake-header {
  margin-bottom: 40px;
  max-width: 720px;
}

.hyde-intake-eyebrow {
  font-size: var(--hyde-text-tiny, 11px);
  text-transform: uppercase;
  letter-spacing: var(--hyde-tracking-eyebrow, 0.08em);
  color: var(--hyde-ink-soft, #6e6e73);
  margin-bottom: 14px;
  font-weight: var(--hyde-weight-medium, 500);
}

.hyde-intake-title {
  font-size: var(--hyde-text-h1, 32px);
  font-weight: var(--hyde-weight-semibold, 600);
  letter-spacing: var(--hyde-tracking-tight, -0.01em);
  line-height: var(--hyde-leading-tight, 1.2);
  margin: 0 0 12px;
  color: var(--hyde-ink, #1d1d1f);
}

.hyde-intake-sub {
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink-soft, #6e6e73);
  margin: 0;
  line-height: var(--hyde-leading-loose, 1.65);
}

/* ─── Layout grid ─── */

.hyde-intake-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 880px) {
  .hyde-intake-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }
}

/* ─── Booker column / steps ─── */

.hyde-intake-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hyde-line-soft, #e5e5ea);
  margin-bottom: 32px;
}

.hyde-intake-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.hyde-intake-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hyde-ink, #1d1d1f);
  color: var(--hyde-paper, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--hyde-text-small, 13px);
  font-weight: var(--hyde-weight-semibold, 600);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.hyde-intake-step-body {
  min-width: 0;
}

.hyde-intake-label {
  display: block;
  font-size: var(--hyde-text-small, 13px);
  font-weight: var(--hyde-weight-medium, 500);
  color: var(--hyde-ink, #1d1d1f);
  margin-bottom: 8px;
}

.hyde-intake-hint {
  font-size: var(--hyde-text-small, 13px);
  color: var(--hyde-ink-soft, #6e6e73);
  margin-top: 8px;
  min-height: 1.5em;
}

/* ─── Date input ─── */

.hyde-intake-date-input {
  font-family: inherit;
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink, #1d1d1f);
  padding: 12px 14px;
  border: 1px solid var(--hyde-line, #d2d2d7);
  border-radius: var(--hyde-radius-sm, 10px);
  background: var(--hyde-paper, #fff);
  width: 100%;
  max-width: 280px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

.hyde-intake-date-input:focus {
  outline: none;
  border-color: var(--hyde-ink, #1d1d1f);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

/* ─── Slot status text ─── */

.hyde-intake-slot-status {
  font-size: var(--hyde-text-small, 13px);
  color: var(--hyde-ink-soft, #6e6e73);
  min-height: 1.5em;
  margin-bottom: 12px;
}

.hyde-intake-slot-status.is-error {
  color: var(--hyde-danger, #d62a2a);
}

/* ─── Slot grid ─── */

.hyde-intake-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.hyde-intake-slot {
  font-family: inherit;
  font-size: var(--hyde-text-small, 13px);
  font-weight: var(--hyde-weight-medium, 500);
  color: var(--hyde-ink, #1d1d1f);
  background: var(--hyde-paper, #fff);
  border: 1px solid var(--hyde-line, #d2d2d7);
  border-radius: var(--hyde-radius-sm, 10px);
  padding: 12px 8px;
  cursor: pointer;
  transition: all .12s ease;
  font-variant-numeric: tabular-nums;
  text-align: center;
  /* iOS tap target minimum */
  min-height: 44px;
}

.hyde-intake-slot:hover {
  border-color: var(--hyde-ink-soft, #6e6e73);
  background: var(--hyde-surface, #f5f5f7);
}

.hyde-intake-slot:focus {
  outline: none;
  border-color: var(--hyde-ink, #1d1d1f);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

.hyde-intake-slot.is-selected {
  background: var(--hyde-ink, #1d1d1f);
  color: var(--hyde-paper, #fff);
  border-color: var(--hyde-ink, #1d1d1f);
}

.hyde-intake-slot.is-selected:hover {
  background: var(--hyde-ink-2, #3a3a3c);
}

/* Loading skeleton — keeps grid from collapsing during fetch */
.hyde-intake-slot.is-skeleton {
  background: var(--hyde-surface, #f5f5f7);
  border-color: var(--hyde-line-soft, #e5e5ea);
  color: transparent;
  cursor: default;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.hyde-intake-slot.is-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: hydeIntakeShimmer 1.2s infinite;
}

@keyframes hydeIntakeShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Selection card ─── */

.hyde-intake-selection {
  background: var(--hyde-surface, #f5f5f7);
  border: 1px solid var(--hyde-line-soft, #e5e5ea);
  border-radius: var(--hyde-radius-md, 12px);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink, #1d1d1f);
  font-variant-numeric: tabular-nums;
  line-height: var(--hyde-leading-snug, 1.35);
}

.hyde-intake-selection-empty {
  background: transparent;
  border-style: dashed;
  color: var(--hyde-ink-fade, #86868b);
}

.hyde-intake-selection-time {
  font-weight: var(--hyde-weight-semibold, 600);
}

.hyde-intake-selection-meta {
  display: block;
  font-size: var(--hyde-text-small, 13px);
  color: var(--hyde-ink-soft, #6e6e73);
  margin-top: 2px;
}

/* ─── Buttons ─── */

.hyde-intake-btn {
  font-family: inherit;
  font-size: var(--hyde-text-body, 15px);
  font-weight: var(--hyde-weight-medium, 500);
  padding: 12px 24px;
  border-radius: var(--hyde-radius-sm, 10px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .12s ease;
  letter-spacing: var(--hyde-tracking-tight, -0.01em);
  min-height: 44px;
}

.hyde-intake-btn-primary,
.hyde-intake-btn-primary:link,
.hyde-intake-btn-primary:visited {
  background: var(--hyde-ink, #1d1d1f);
  color: var(--hyde-paper, #fff);
  border-color: var(--hyde-ink, #1d1d1f);
}

.hyde-intake-btn-primary:hover:not(:disabled),
.hyde-intake-btn-primary:focus:not(:disabled),
.hyde-intake-btn-primary:active:not(:disabled) {
  background: var(--hyde-ink-2, #3a3a3c);
  color: var(--hyde-paper, #fff);
  border-color: var(--hyde-ink-2, #3a3a3c);
}

.hyde-intake-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hyde-intake-fine {
  font-size: var(--hyde-text-tiny, 11px);
  color: var(--hyde-ink-fade, #86868b);
  margin-top: 12px;
  line-height: var(--hyde-leading-normal, 1.5);
}

/* ─── Aside cards ─── */

.hyde-intake-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hyde-intake-card {
  background: var(--hyde-paper, #fff);
  border: 1px solid var(--hyde-line-soft, #e5e5ea);
  border-radius: var(--hyde-radius-md, 12px);
  padding: 20px;
}

.hyde-intake-card-title {
  font-size: var(--hyde-text-tiny, 11px);
  text-transform: uppercase;
  letter-spacing: var(--hyde-tracking-eyebrow, 0.08em);
  color: var(--hyde-ink-soft, #6e6e73);
  margin-bottom: 12px;
  font-weight: var(--hyde-weight-medium, 500);
}

.hyde-intake-card-body {
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink, #1d1d1f);
  line-height: var(--hyde-leading-normal, 1.5);
}

.hyde-intake-card-body p {
  margin: 0 0 10px;
}

.hyde-intake-card-body p:last-child {
  margin-bottom: 0;
}

.hyde-intake-card-body-muted {
  color: var(--hyde-ink-soft, #6e6e73);
  font-style: italic;
}

.hyde-intake-card-foot {
  font-size: var(--hyde-text-small, 13px);
  color: var(--hyde-ink-soft, #6e6e73);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hyde-line-faint, #f2f2f4);
}

.hyde-intake-card-foot-muted {
  color: var(--hyde-ink-fade, #86868b);
}

.hyde-intake-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink, #1d1d1f);
}

.hyde-intake-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hyde-line-faint, #f2f2f4);
}

.hyde-intake-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hyde-intake-list li:first-child {
  padding-top: 0;
}

/* ─── Reduced motion ─── */

@media (prefers-reduced-motion: reduce) {
  .hyde-intake-slot.is-skeleton::after { animation: none; }
  .hyde-intake-slot,
  .hyde-intake-btn,
  .hyde-intake-date-input {
    transition: none;
  }
}

/* ──────────────────────────────────────────────────────────────────
 * M3 hotfix (v2.24.3.4) — Inline auth zone
 * ────────────────────────────────────────────────────────────────── */

.hyde-intake-auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--hyde-surface, #f5f5f7);
  border-radius: var(--hyde-radius-sm, 10px);
  padding: 4px;
}

.hyde-intake-auth-tab {
  flex: 1;
  font-family: inherit;
  font-size: var(--hyde-text-small, 13px);
  font-weight: var(--hyde-weight-medium, 500);
  color: var(--hyde-ink-soft, #6e6e73);
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: var(--hyde-radius-tight, 6px);
  cursor: pointer;
  transition: all .12s ease;
}

.hyde-intake-auth-tab:hover {
  color: var(--hyde-ink, #1d1d1f);
}

.hyde-intake-auth-tab.is-active {
  background: var(--hyde-paper, #fff);
  color: var(--hyde-ink, #1d1d1f);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.hyde-intake-auth-pane[hidden] {
  display: none;
}

.hyde-intake-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .hyde-intake-auth-row {
    grid-template-columns: 1fr;
  }
}

.hyde-intake-input {
  font-family: inherit;
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink, #1d1d1f);
  padding: 12px 14px;
  border: 1px solid var(--hyde-line, #d2d2d7);
  border-radius: var(--hyde-radius-sm, 10px);
  background: var(--hyde-paper, #fff);
  width: 100%;
  margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.hyde-intake-input:focus {
  outline: none;
  border-color: var(--hyde-ink, #1d1d1f);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

.hyde-intake-checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  font-size: var(--hyde-text-small, 13px);
  color: var(--hyde-ink-soft, #6e6e73);
  line-height: var(--hyde-leading-snug, 1.35);
}

.hyde-intake-checkline input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.hyde-intake-checkline a {
  color: var(--hyde-ink, #1d1d1f);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Notes textarea ─── */

.hyde-intake-label-optional {
  color: var(--hyde-ink-fade, #86868b);
  font-weight: var(--hyde-weight-regular, 400);
  font-size: var(--hyde-text-small, 13px);
}

.hyde-intake-textarea {
  font-family: inherit;
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink, #1d1d1f);
  padding: 12px 14px;
  border: 1px solid var(--hyde-line, #d2d2d7);
  border-radius: var(--hyde-radius-sm, 10px);
  background: var(--hyde-paper, #fff);
  width: 100%;
  resize: vertical;
  min-height: 84px;
  line-height: var(--hyde-leading-normal, 1.5);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.hyde-intake-textarea:focus {
  outline: none;
  border-color: var(--hyde-ink, #1d1d1f);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

/* ─── Inline error state below Continue ─── */

.hyde-intake-error {
  background: var(--hyde-danger-bg, #fff1f0);
  border: 1px solid var(--hyde-danger-border, #ffd6d3);
  color: var(--hyde-danger, #a23a2c);
  border-radius: var(--hyde-radius-sm, 10px);
  padding: 10px 12px;
  font-size: var(--hyde-text-small, 13px);
  line-height: var(--hyde-leading-snug, 1.35);
  margin-bottom: 12px;
}

/* ─── Ghost button (used for Cancel on confirmation) ─── */

.hyde-intake-btn-ghost {
  background: transparent;
  color: var(--hyde-ink, #1d1d1f);
  border: 1px solid var(--hyde-line, #d2d2d7);
}

.hyde-intake-btn-ghost:hover:not(:disabled) {
  background: var(--hyde-surface, #f5f5f7);
  border-color: var(--hyde-ink-soft, #6e6e73);
}

/* ─── Login prompt card ─── */

.hyde-intake-login-card {
  background: var(--hyde-paper, #fff);
  border: 1px solid var(--hyde-line-soft, #e5e5ea);
  border-radius: var(--hyde-radius-md, 12px);
  padding: 28px 32px;
  max-width: 520px;
}

.hyde-intake-login-card-title {
  font-size: var(--hyde-text-h3, 17px);
  font-weight: var(--hyde-weight-semibold, 600);
  color: var(--hyde-ink, #1d1d1f);
  margin-bottom: 8px;
}

.hyde-intake-login-card-body {
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink-soft, #6e6e73);
  line-height: var(--hyde-leading-normal, 1.5);
  margin: 0 0 20px;
}

.hyde-intake-login-card .hyde-intake-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* ─── Confirmation screen ─── */

.hyde-intake-confirm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 880px) {
  .hyde-intake-confirm-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }
}

.hyde-intake-confirm-main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hyde-intake-confirm-card {
  background: var(--hyde-paper, #fff);
  border: 1px solid var(--hyde-line-soft, #e5e5ea);
  border-radius: var(--hyde-radius-md, 12px);
  padding: 24px 28px;
}

.hyde-intake-confirm-card-soft {
  background: var(--hyde-surface, #f5f5f7);
  border-color: var(--hyde-line-faint, #f2f2f4);
}

.hyde-intake-confirm-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hyde-line-faint, #f2f2f4);
}

.hyde-intake-confirm-row:first-child { padding-top: 0; }
.hyde-intake-confirm-row:last-child  { padding-bottom: 0; border-bottom: 0; }

.hyde-intake-confirm-label {
  font-size: var(--hyde-text-tiny, 11px);
  text-transform: uppercase;
  letter-spacing: var(--hyde-tracking-eyebrow, 0.08em);
  color: var(--hyde-ink-soft, #6e6e73);
  font-weight: var(--hyde-weight-medium, 500);
  padding-top: 2px;
}

.hyde-intake-confirm-value {
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink, #1d1d1f);
  line-height: var(--hyde-leading-normal, 1.5);
}

.hyde-intake-confirm-value-emphasis {
  font-weight: var(--hyde-weight-semibold, 600);
  font-size: var(--hyde-text-h3, 17px);
  display: block;
  margin-top: 2px;
}

.hyde-intake-confirm-value-meta {
  display: block;
  font-size: var(--hyde-text-small, 13px);
  color: var(--hyde-ink-soft, #6e6e73);
  margin-top: 2px;
}

.hyde-intake-code {
  font-family: var(--hyde-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: var(--hyde-text-h3, 17px);
  font-weight: var(--hyde-weight-semibold, 600);
  letter-spacing: 0.04em;
  color: var(--hyde-ink, #1d1d1f);
  background: var(--hyde-surface, #f5f5f7);
  padding: 4px 10px;
  border-radius: var(--hyde-radius-sm, 10px);
  display: inline-block;
}

.hyde-intake-confirm-actions {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* v2.24.5.6 — Normalize Reschedule (secondary) and Cancel (ghost) so
 * they read as the same visual weight when stacked. The default
 * intake-btn rules cover most of this; we add explicit alignment
 * here so SVG-icon labels and plain-text labels line up. */
.hyde-intake-confirm-actions .hyde-intake-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#hyde-intake-cancel-msg {
  margin-top: 8px;
}

#hyde-intake-cancel-msg.is-error {
  color: var(--hyde-danger, #a23a2c);
}

/* Stack confirmation rows on mobile */
@media (max-width: 480px) {
  .hyde-intake-confirm-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hyde-intake-confirm-label {
    padding-top: 0;
  }
  .hyde-intake-confirm-card {
    padding: 20px 22px;
  }
}

/* ──────────────────────────────────────────────────────────────────
 * Custom confirm dialog (v2.24.4.2)
 *
 * Brand-aligned replacement for window.confirm(). Backdrop + centered
 * card, with a transition that's quick enough not to feel like a wait.
 * Locked to the booker page styles — does NOT inherit theme button
 * colors (we already learned that lesson on the primary CTA).
 * ────────────────────────────────────────────────────────────────── */

.hyde-intake-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 100000;
}

.hyde-intake-modal-backdrop.is-open {
  opacity: 1;
}

.hyde-intake-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 8px));
  background: var(--hyde-paper, #fff);
  border-radius: var(--hyde-radius-lg, 16px);
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 100001;
  font-family: var(--hyde-font-sans, Inter, -apple-system, BlinkMacSystemFont, sans-serif);
  box-sizing: border-box;
}

.hyde-intake-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.hyde-intake-modal-title {
  font-size: var(--hyde-text-h2, 20px);
  font-weight: var(--hyde-weight-semibold, 600);
  color: var(--hyde-ink, #1d1d1f);
  margin: 0 0 10px;
  line-height: var(--hyde-leading-tight, 1.25);
  letter-spacing: var(--hyde-tracking-tight, -0.01em);
}

.hyde-intake-modal-body {
  font-size: var(--hyde-text-body, 15px);
  color: var(--hyde-ink-soft, #6e6e73);
  line-height: var(--hyde-leading-normal, 1.5);
  margin: 0 0 22px;
}

.hyde-intake-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hyde-intake-modal-actions {
    flex-direction: column-reverse;
  }
  .hyde-intake-modal-actions .hyde-intake-btn {
    width: 100%;
  }
}

/* Destructive variant of the primary button — for the confirm side of
 * a cancel/delete dialog. Same shape as primary, different color. */
.hyde-intake-btn-destructive,
.hyde-intake-btn-destructive:link,
.hyde-intake-btn-destructive:visited {
  background: var(--hyde-danger, #a23a2c);
  color: var(--hyde-paper, #fff);
  border: 1px solid var(--hyde-danger, #a23a2c);
}

.hyde-intake-btn-destructive:hover:not(:disabled),
.hyde-intake-btn-destructive:focus:not(:disabled),
.hyde-intake-btn-destructive:active:not(:disabled) {
  background: #8e3023;
  color: var(--hyde-paper, #fff);
  border-color: #8e3023;
}

/* ──────────────────────────────────────────────────────────────────
 * Pieces list (v2.24.5.0)
 *
 * Structured "what you're bringing" intake. Up to MAX_PIECES rows;
 * each row is category dropdown + brand + model + remove button.
 * Stacked on narrow viewports, in a single-row grid on wider.
 * ────────────────────────────────────────────────────────────────── */

.hyde-intake-pieces {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.hyde-intake-piece-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr 32px;
  gap: 8px;
  align-items: center;
}

@media (max-width: 560px) {
  /* Stack on narrow viewports. Remove button stays right-aligned
   * next to the model field on the second row. */
  .hyde-intake-piece-row {
    grid-template-columns: 1fr 1fr 32px;
  }
  .hyde-intake-piece-row > .hyde-intake-piece-cat {
    grid-column: 1 / -1;
  }
}

.hyde-intake-piece-cat,
.hyde-intake-piece-brand,
.hyde-intake-piece-model {
  font-family: inherit;
  font-size: 14px;
  color: var(--hyde-ink, #1d1d1f);
  padding: 10px 12px;
  border: 1px solid var(--hyde-border, #d2d2d7);
  border-radius: 10px;
  background: var(--hyde-paper, #fff);
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
  transition: border-color .12s, box-shadow .12s;
}

.hyde-intake-piece-cat:focus,
.hyde-intake-piece-brand:focus,
.hyde-intake-piece-model:focus {
  outline: none;
  border-color: var(--hyde-ink, #1d1d1f);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
}

.hyde-intake-piece-cat {
  /* Custom dropdown caret. Default select arrow is theme-styled and
   * inconsistent; we hide it with -webkit-appearance:none above and
   * draw our own. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2386868b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  cursor: pointer;
  color: var(--hyde-ink, #1d1d1f);
}

/* Style the disabled placeholder option so it reads as a hint */
.hyde-intake-piece-cat option[disabled] {
  color: #86868b;
}

.hyde-intake-piece-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #86868b;
  cursor: pointer;
  padding: 0;
  transition: color .12s, border-color .12s, background .12s;
  flex-shrink: 0;
}

.hyde-intake-piece-remove:hover,
.hyde-intake-piece-remove:focus-visible {
  color: var(--hyde-danger, #a23a2c);
  border-color: var(--hyde-border, #d2d2d7);
  outline: none;
}

.hyde-intake-piece-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed var(--hyde-border, #d2d2d7);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--hyde-ink-soft, #6e6e73);
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}

.hyde-intake-piece-add:hover,
.hyde-intake-piece-add:focus-visible {
  color: var(--hyde-ink, #1d1d1f);
  border-color: var(--hyde-ink, #1d1d1f);
  outline: none;
}

.hyde-intake-piece-add-icon {
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
}

/* Confirmation: piece list display (v2.24.5.0) */
.hyde-intake-confirm-pieces {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hyde-intake-confirm-pieces li {
  padding: 2px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hyde-ink, #1d1d1f);
}
.hyde-intake-confirm-piece-cat {
  font-weight: 500;
}
.hyde-intake-confirm-piece-sep {
  margin: 0 6px;
  color: var(--hyde-ink-mute, #86868b);
}
.hyde-intake-confirm-piece-detail {
  color: var(--hyde-ink-soft, #6e6e73);
}

/* ──────────────────────────────────────────────────────────────────
 * Action buttons on the confirmation page (v2.24.5.4)
 *
 * The secondary action row holds Add-to-Calendar + Print as a side-
 * by-side pair (or stacked on narrow viewports). Cancel sits on its
 * own row below.
 * ────────────────────────────────────────────────────────────────── */

.hyde-intake-confirm-actions-secondary {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hyde-intake-confirm-actions-secondary .hyde-intake-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.hyde-intake-btn-secondary,
.hyde-intake-btn-secondary:link,
.hyde-intake-btn-secondary:visited {
  background: var(--hyde-paper, #fff);
  color: var(--hyde-ink, #1d1d1f);
  border: 1px solid var(--hyde-border, #d2d2d7);
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: -.01em;
  line-height: 1.4;
  min-height: 40px;
  transition: background .12s, border-color .12s, color .12s;
}

.hyde-intake-btn-secondary:hover,
.hyde-intake-btn-secondary:focus-visible,
.hyde-intake-btn-secondary:active {
  background: #f5f5f7;
  color: var(--hyde-ink, #1d1d1f);
  border-color: var(--hyde-ink, #1d1d1f);
  outline: none;
  text-decoration: none;
}

@media (max-width: 480px) {
  .hyde-intake-confirm-actions-secondary {
    flex-direction: column;
  }
  .hyde-intake-confirm-actions-secondary .hyde-intake-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ──────────────────────────────────────────────────────────────────
 * Reschedule mode banner (v2.24.5.5)
 *
 * Sits above the header on the booker page when ?reschedule=AP-CODE
 * is in the URL. Identifies the original appointment so the seller
 * knows exactly which slot they're moving.
 * ────────────────────────────────────────────────────────────────── */

.hyde-intake-reschedule-banner {
  background: #fff8e7;
  border: 1px solid #f1d695;
  border-left: 4px solid #b5872a;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 28px;
}

.hyde-intake-reschedule-banner-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a6519;
  font-weight: 600;
  margin: 0 0 4px;
}

.hyde-intake-reschedule-banner-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 4px;
  line-height: 1.4;
}

.hyde-intake-reschedule-banner-title code {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.hyde-intake-reschedule-banner-sub {
  font-size: 13px;
  color: #5a4815;
  line-height: 1.5;
}

/* Reschedule error banner on confirmation page (v2.24.5.5) */
.hyde-intake-reschedule-error {
  background: #fdf3f1;
  border: 1px solid #f1c4bc;
  border-left: 4px solid #a23a2c;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  color: #6b1f15;
  font-size: 14px;
  line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────
 * Account nav card (v2.24.5.8)
 *
 * Lives in the right column of both the booker and the confirmation
 * page. Three stacked links — My Appointments / My Account / Get
 * Support — with a chevron each. Subtle considered-luxury feel: no
 * button chrome, just text rows with hairlines between them.
 *
 * Inherits the base .hyde-intake-card box. The nav-list overrides
 * the padding and removes list defaults.
 * ────────────────────────────────────────────────────────────────── */

.hyde-intake-nav-card {
  /* v2.24.5.14 — Zero vertical padding so the first/last row's hover
   * fill goes flush to the card's top/bottom edges. The title sits
   * inside with its own padding-top so it breathes; the last row's
   * hover then closes against the bottom corner cleanly. Previously
   * the card had 8px bottom padding which left a visible white band
   * below the last row's hover state.
   *
   * overflow:hidden clips the hover fill to the card's 12px radius
   * — without it, the last row's hover background would have square
   * corners poking past the card's rounded bottom. */
  padding: 0;
  overflow: hidden;
}

/* v2.24.5.15 — Match other aside cards' visual breathing room while
 * keeping the hover fill flush to card edges. The trick: bake the
 * spacing into the card's interior (title's padding-top, first link's
 * padding-top, last link's padding-bottom) rather than the card's
 * outer padding. Card outer padding stays 0 so hover fill goes
 * edge-to-edge; the bigger padding lives INSIDE the link so the
 * hover background covers it. */
.hyde-intake-nav-card .hyde-intake-card-title {
  padding: 18px 20px 6px;
  margin-bottom: 0;
}
.hyde-intake-nav-list li:first-child .hyde-intake-nav-link {
  padding-top: 14px;
}
.hyde-intake-nav-list li:last-child .hyde-intake-nav-link {
  padding-bottom: 18px;
}

.hyde-intake-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* v2.24.5.13 — Removed inter-row dividers entirely. Previous attempts
 * to put hairlines between rows (first as border-top on li+li, then
 * as border-bottom on each link) both produced visible "gap" artifacts
 * on hover: a 1px gray line from a neighbor's border that the hover
 * fill couldn't cover. With only three rows in this card, the hover
 * state + chevron + row padding is enough visual separation; the
 * hairlines were adding more noise than structure. Same approach
 * Apple uses on tight settings cards (System Settings → first-level
 * nav). The card's outer border still provides the surface boundary. */

.hyde-intake-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  color: var(--hyde-ink, #1d1d1f);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}

.hyde-intake-nav-link:hover,
.hyde-intake-nav-link:focus-visible {
  background: var(--hyde-bg-soft, #fafafa);
  color: var(--hyde-ink, #1d1d1f);
  text-decoration: none;
  outline: none;
}

.hyde-intake-nav-link:focus-visible {
  outline: 2px solid var(--hyde-ink, #1d1d1f);
  outline-offset: -2px;
}

.hyde-intake-nav-label {
  flex: 1;
  min-width: 0;
}

.hyde-intake-nav-chev {
  flex-shrink: 0;
  color: var(--hyde-ink-mute, #86868b);
  transition: color .12s, transform .12s;
}

.hyde-intake-nav-link:hover .hyde-intake-nav-chev,
.hyde-intake-nav-link:focus-visible .hyde-intake-nav-chev {
  color: var(--hyde-ink, #1d1d1f);
  transform: translateX(2px);
}
