/* ==========================================================================
   Hidden states: Must override all display: flex/inline-flex/grid properties
   ========================================================================== */
[hidden],
[hidden=""],
[hidden="hidden"] {
  display: none !important;
}

.booking-custom-select-menu[hidden],
.booking-time-popover[hidden],
.booking-calendar-popover[hidden],
.booking-input-clear[hidden],
.booking-person-drawer[hidden],
.booking-therapist-custom-wrap[hidden],
.booking-tab-panel[hidden],
.booking-step-pane[hidden],
.booking-service-card[hidden],
.booking-person-badge[hidden],
.booking-tag-count[hidden] {
  display: none !important;
}

.booking-page {
  padding: 28px 0 64px;
  background: var(--cream);
}

.booking-hero-card {
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.booking-hero-card .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.booking-hero-card h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
}

.booking-hero-sub {
  margin: 8px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

.booking-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.booking-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.booking-tab:hover {
  color: var(--orange);
  background: var(--cream-2);
  border-color: var(--line);
}

.booking-tab.is-active {
  background: var(--orange);
  color: var(--on-primary);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--orange) 18%, transparent);
}

.booking-tab-panel[hidden] {
  display: none;
}

.booking-center-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.booking-center-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.booking-center-head h2 {
  margin: 4px 0 8px;
  font-size: clamp(22px, 2.8vw, 28px);
}

.booking-center-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.booking-center-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.booking-center-actions .form-note {
  margin: 0;
}

.booking-wizard-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.booking-steps-card {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--orange) 6%, transparent);
}

.booking-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.booking-step-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.booking-step-item:hover {
  background: var(--cream);
  border-color: var(--line);
}

.booking-step-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.booking-step-item.is-active {
  background: var(--cream-2);
  border-color: color-mix(in srgb, var(--orange) 35%, var(--line));
  color: var(--orange);
  font-weight: 700;
}

.booking-step-item.is-active .booking-step-icon {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--on-primary);
}

.booking-step-item.is-completed .booking-step-icon {
  border-color: var(--primary-light);
  background: color-mix(in srgb, var(--primary-light) 14%, #fff);
  color: var(--orange);
}

.booking-panel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.booking-step-pane[hidden] {
  display: none;
}

.booking-step-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.booking-panel-body {
  padding: 26px 28px 20px;
  flex: 1;
}

.booking-block + .booking-block {
  margin-top: 22px;
}

.booking-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.booking-section-head .booking-section-label {
  margin-bottom: 0;
}

.booking-multi-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.booking-section-label {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================================================
   Category Filter Pills (Select Category)
   ========================================================================== */
.booking-category-filter {
  margin-top: 14px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-category-filter-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.booking-category-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.booking-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
  user-select: none;
}

.booking-category-pill:hover {
  border-color: var(--orange);
  background: var(--cream);
}

.booking-pill-check {
  display: none;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-size: 9px;
  margin-left: 2px;
}

.booking-category-pill.is-active {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--cream-2) 65%, #fff);
  color: var(--orange);
  font-weight: 700;
}

.booking-category-pill.is-active .booking-pill-check {
  display: inline-grid;
}

.booking-service-scroll {
  max-height: 410px;
  overflow-y: auto;
  padding-right: 6px;
}

.booking-service-scroll::-webkit-scrollbar {
  width: 8px;
}

.booking-service-scroll::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 999px;
}

.booking-service-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.booking-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-service-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.booking-service-card[hidden] {
  display: none;
}

.booking-service-card:hover {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--cream-2) 24%, #fff);
  box-shadow: none;
  transform: none;
}

.booking-service-card.is-selected {
  border: 2px solid var(--orange);
  padding: 15px;
  background: color-mix(in srgb, var(--cream-2) 48%, #fff);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--orange) 12%, transparent);
}

.booking-service-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--cream-2);
}

.booking-service-info {
  flex: 1;
  min-width: 0;
}

.booking-service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.booking-service-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}

.booking-service-check {
  display: none;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--on-primary);
  font-size: 11px;
}

.booking-service-card.is-selected .booking-service-check {
  display: grid;
}

.booking-service-info p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.booking-service-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.booking-service-tag,
.booking-person-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.booking-service-tag {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--muted);
}

.booking-person-badge {
  background: var(--orange);
  color: var(--on-primary);
}

.booking-person-badge[hidden] {
  display: none;
}

.booking-service-price {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.booking-person-drawer {
  margin: 0 28px 20px;
  padding: 22px;
  background: #ffffff;
  border: 1.5px solid color-mix(in srgb, var(--orange) 35%, var(--line));
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(181, 84, 47, .07);
}

.booking-person-drawer[hidden] {
  display: none;
}

.booking-person-count-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.booking-person-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.booking-person-label i {
  color: var(--orange);
  font-size: 15px;
}

.booking-person-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Custom Select Component for Person Count */
.booking-custom-select-wrap {
  position: relative;
  min-width: 230px;
}

.booking-custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.booking-custom-select-trigger:hover {
  border-color: var(--orange);
  background: var(--cream-2);
}

.booking-custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 15%, transparent);
}

.booking-select-value {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.select-value-icon {
  color: var(--orange);
  font-size: 14px;
}

.select-chevron-icon {
  font-size: 12px;
  color: var(--muted);
  transition: transform .18s ease;
}

.booking-custom-select-wrap.is-open .select-chevron-icon {
  transform: rotate(180deg);
}

.booking-custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: calFadeIn .15s ease-out;
}

.booking-custom-select-menu[hidden] {
  display: none !important;
}

.booking-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.booking-select-option:hover {
  background: var(--cream-2);
  color: var(--orange);
}

.booking-select-option.is-selected {
  background: color-mix(in srgb, var(--cream-2) 65%, #fff);
  color: var(--orange);
  font-weight: 700;
}

.booking-select-option i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--orange);
  font-size: 13px;
  flex-shrink: 0;
}

.booking-select-option .option-text {
  display: flex;
  flex-direction: column;
}

.booking-select-option strong {
  font-size: 13.5px;
  color: inherit;
}

.booking-select-option small {
  font-size: 11.5px;
  color: var(--muted);
}

/* Center Booking Custom Dropdown & Fullwidth modifier */
.booking-custom-select-wrap.is-fullwidth {
  width: 100%;
  min-width: 100%;
}

.booking-custom-select-wrap.is-fullwidth .booking-custom-select-trigger {
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  box-sizing: border-box;
}

.booking-custom-select-wrap.is-fullwidth .booking-custom-select-trigger:hover {
  border-color: var(--orange);
  background: var(--cream);
}

.booking-custom-select-wrap.is-fullwidth.is-open .booking-custom-select-trigger {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 15%, transparent);
}

.booking-custom-select-wrap.is-fullwidth .select-value-icon {
  font-size: 15px;
  color: var(--orange);
  flex-shrink: 0;
}

.booking-custom-select-wrap.is-fullwidth .select-chevron-icon {
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform .2s ease, color .18s ease;
}

.booking-custom-select-wrap.is-fullwidth.is-open .select-chevron-icon {
  transform: rotate(180deg);
  color: var(--orange);
}

.booking-custom-select-menu.center-services-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(58, 38, 28, .14), 0 4px 12px rgba(0, 0, 0, .04);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.booking-custom-select-menu.center-services-menu::-webkit-scrollbar {
  width: 6px;
}

.booking-custom-select-menu.center-services-menu::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}

.booking-custom-select-menu.center-services-menu::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

.center-services-menu .booking-select-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.center-services-menu .booking-select-option:hover {
  background: var(--cream-2);
}

.center-services-menu .booking-select-option:hover strong {
  color: var(--orange);
}

.center-services-menu .booking-select-option.is-selected {
  background: color-mix(in srgb, var(--cream-2) 80%, #fff);
}

.center-services-menu .booking-select-option.is-selected strong {
  color: var(--orange);
  font-weight: 700;
}

.center-services-menu .booking-select-option i:not(.option-check-icon) {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--orange);
  font-size: 13.5px;
  flex-shrink: 0;
  transition: background-color .15s ease, color .15s ease;
}

.center-services-menu .booking-select-option:hover i:not(.option-check-icon) {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.center-services-menu .booking-select-option.is-selected i:not(.option-check-icon) {
  background: var(--orange);
  color: #ffffff;
}

.center-services-menu .booking-select-option .option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.center-services-menu .booking-select-option strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.center-services-menu .booking-select-option small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.center-services-menu .booking-select-option .option-check-icon {
  font-size: 13px;
  color: var(--orange);
  opacity: 0;
  flex-shrink: 0;
  margin-left: 8px;
  transition: opacity .15s ease;
}

.center-services-menu .booking-select-option.is-selected .option-check-icon {
  opacity: 1;
}

/* Fallback for native selects to avoid touching right edge */
.field select {
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d4124' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
}

/* 2-Column Relation Grid */
.booking-relation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.booking-relation-col {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}

.booking-relation-head {
  margin-bottom: 8px;
}

.booking-relation-col .booking-field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.booking-tag-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  margin-left: 4px;
}

.booking-relation-col .booking-field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.booking-text-input {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.booking-text-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 14%, transparent);
}

.booking-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.booking-quick-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin-right: 2px;
}

.booking-chip-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.booking-chip-tag:hover {
  background: var(--cream-2);
  border-color: var(--orange);
  color: var(--orange);
}

.booking-chip-tag.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

/* Disabled / muted state for Cột phải when count = 1 */
[data-patient-relation-col].is-muted {
  opacity: .55;
}

[data-patient-relation-col].is-muted .booking-text-input {
  background: #f7f3ee;
  cursor: not-allowed;
  border-color: var(--line);
}

[data-patient-relation-col].is-muted .booking-chip-tag {
  pointer-events: none;
  opacity: .5;
}

.booking-person-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.booking-btn-text {
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.booking-btn-text:hover {
  color: var(--ink);
}

.booking-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.booking-panel-footer .button {
  white-space: nowrap;
  flex-shrink: 0;
}

.booking-panel-footer .button[disabled] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.booking-footer-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.booking-placeholder h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.booking-placeholder p {
  color: var(--muted);
  max-width: 560px;
}

.booking-selection-chip {
  display: inline-flex;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--cream-2);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.booking-selection-chip:empty {
  display: none;
}

/* ==========================================================================
   Step 2: Date & Time Picker + Therapist Preference
   ========================================================================== */
.booking-datetime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.booking-field-col {
  display: flex;
  flex-direction: column;
}

.booking-field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.req-star {
  color: #d93829;
}

.booking-field-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.booking-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.booking-input-wrapper:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 15%, transparent);
}

.booking-date-input {
  width: 100%;
  padding: 12px 74px 12px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.booking-date-input::placeholder {
  color: #9e8e81;
  font-weight: 400;
}

.booking-time-display-btn {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 74px 12px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.booking-time-display-text.is-placeholder {
  color: #9e8e81;
  font-weight: 400;
}

.booking-time-select {
  display: none;
}

.booking-input-clear {
  position: absolute;
  right: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #eae2d8;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.booking-input-clear:hover {
  background: #d8c6b7;
  color: #000;
}

.booking-input-icon-btn,
.booking-input-icon {
  position: absolute;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
}

.booking-input-icon {
  pointer-events: none;
  font-size: 13px;
  color: var(--muted);
}

/* Custom Time Popover Dropdown */
.booking-time-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: calFadeIn .18s ease-out;
}

.booking-time-popover[hidden] {
  display: none !important;
}

.booking-time-group-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.booking-time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.booking-time-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 4px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.booking-time-slot:hover {
  background: var(--cream-2);
  border-color: var(--orange);
  color: var(--orange);
}

.booking-time-slot.is-selected {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .3);
}

/* Calendar Popover */
.booking-calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
  z-index: 60;
  animation: calFadeIn .18s ease-out;
}

@keyframes calFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.booking-cal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.booking-cal-navs {
  display: inline-flex;
  gap: 6px;
}

.booking-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
}

.booking-cal-nav:hover:not(:disabled) {
  background: var(--cream-2);
  border-color: var(--orange);
  color: var(--orange);
}

.booking-cal-nav:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.booking-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.booking-cal-weekdays span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0;
}

.booking-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.booking-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}

.booking-cal-day:hover:not(.is-disabled):not(.is-selected) {
  background: var(--cream-2);
  color: var(--orange);
}

.booking-cal-day.is-today:not(.is-selected) {
  border-color: var(--orange);
  font-weight: 700;
}

.booking-cal-day.is-selected {
  background: #1e293b;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .3);
}

.booking-cal-day.is-disabled {
  color: #c4b5a5;
  cursor: not-allowed;
  opacity: .4;
}

.booking-cal-day.is-other-month {
  color: #d1c3b5;
  cursor: not-allowed;
}

/* Therapist preference section */
.booking-therapist-card {
  margin-top: 26px;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.booking-therapist-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.booking-therapist-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--orange);
  font-size: 18px;
  flex-shrink: 0;
}

.booking-therapist-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.booking-therapist-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.booking-therapist-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s ease;
}

.booking-choice-card:hover {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--cream-2) 20%, #ffffff);
  transform: none;
}

.booking-choice-card.is-active {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--cream-2) 35%, #ffffff);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--orange) 10%, transparent);
}

.booking-choice-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--orange);
  cursor: pointer;
}

.booking-choice-body {
  flex: 1;
}

.booking-choice-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.booking-choice-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.booking-badge-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2px;
}

.booking-badge-tag.is-free {
  background: #e6f4ea;
  color: #137333;
}

.booking-badge-tag.is-fee {
  background: #fef3e6;
  color: #b5542f;
  border: 1px solid #f2caa9;
}

.booking-choice-desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.booking-therapist-custom-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  animation: calFadeIn .2s ease-out;
}

.booking-therapist-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.booking-therapist-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 15%, transparent);
}

.booking-therapist-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-size: 12.5px;
  color: #9a3412;
  line-height: 1.45;
}

.booking-therapist-notice i {
  margin-top: 2px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   Step 3: Basic Info Form Sections
   ========================================================================== */
.booking-form-section {
  margin-top: 22px;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.booking-form-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.booking-form-subtitle i {
  color: var(--orange);
  font-size: 15px;
}

.booking-form-section .form-grid {
  row-gap: 16px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Checkbox card in Booking form */
.booking-checkbox-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-checkbox-card:hover {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--cream-2) 25%, #fff);
}

.booking-checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  margin: 0;
}

.booking-checkbox-custom {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: transparent;
  font-size: 11px;
  transition: all 0.2s ease;
}

.booking-checkbox-card:hover .booking-checkbox-custom {
  border-color: var(--orange);
}

.booking-checkbox-card.is-checked,
.booking-checkbox-card:has(input:checked) {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--cream-2) 48%, #fff);
  box-shadow: 0 0 0 1px var(--orange);
}

.booking-checkbox-card.is-checked .booking-checkbox-custom,
.booking-checkbox-card:has(input:checked) .booking-checkbox-custom {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

.booking-checkbox-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.booking-checkbox-card.is-checked .booking-checkbox-label,
.booking-checkbox-card:has(input:checked) .booking-checkbox-label {
  color: var(--orange);
}

/* ==========================================================================
   Step 4: Summary Cards & Policy Notice
   ========================================================================== */
.booking-summary-intro {
  margin: 10px 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.booking-summary-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.booking-summary-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.booking-summary-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.booking-summary-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.booking-summary-card-title i {
  color: var(--orange);
  font-size: 15px;
}

.booking-summary-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--orange);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.booking-summary-edit-btn:hover {
  background: var(--cream-2);
  border-color: var(--orange);
  transform: none;
}

.booking-summary-card-body {
  padding: 18px 20px;
}

.booking-summary-service-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.booking-summary-service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 10px;
}

.booking-summary-service-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.booking-summary-service-info {
  flex: 1;
}

.booking-summary-service-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.booking-summary-service-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.booking-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.booking-summary-field {
  display: flex;
  flex-direction: column;
}

.booking-summary-field.full {
  grid-column: 1 / -1;
}

.booking-summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 3px;
}

.booking-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.booking-summary-value .tag-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: #e6f4ea;
  color: #137333;
}

.booking-summary-value .tag-badge.fee {
  background: #fef3e6;
  color: #b5542f;
  border: 1px solid #f2caa9;
}

/* ==========================================================================
   Responsive Overhaul for Mobile & Tablet (<= 900px, <= 768px, <= 480px)
   ========================================================================== */

.step-label-long {
  display: inline;
}

@media (max-width: 900px) {
  .booking-wizard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .booking-steps-card {
    padding: 8px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  }

  .booking-step-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .booking-step-item {
    width: 100%;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.2s ease;
  }

  .booking-step-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 8px;
  }

  .step-label-long {
    display: none !important;
  }

  .booking-datetime-grid,
  .booking-therapist-options,
  .booking-relation-grid,
  .booking-summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .booking-person-count-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .booking-custom-select-wrap {
    width: 100%;
    min-width: 100%;
  }

  .booking-custom-select-menu,
  .booking-time-popover,
  .booking-calendar-popover {
    width: 100%;
    max-width: 100%;
  }
}

/* Ensure no jumping/translate hover effects anywhere in booking page */
.booking-page .button:hover {
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .booking-page {
    padding: 14px 0 48px;
    background: #f8f5f0;
  }

  /* Make container full width with clean 14px gutters */
  .booking-page > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  /* Hero Card: Clean, modern header */
  .booking-hero-card {
    padding: 20px 16px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  }

  .booking-hero-card .eyebrow {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  .booking-hero-card h1 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
  }

  .booking-hero-sub {
    font-size: 13.5px;
    line-height: 1.5;
    margin-top: 6px;
    color: var(--muted);
  }

  /* Tabs as full-width modern segmented control */
  .booking-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    border-radius: 12px;
    background: #ede6dd;
    margin-top: 16px;
    box-sizing: border-box;
    border: none;
  }

  .booking-tab {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    white-space: nowrap;
    border: none;
  }

  .booking-tab i {
    font-size: 13px;
    flex-shrink: 0;
  }

  /* Center Booking Card */
  .booking-center-card {
    padding: 20px 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  }

  .booking-center-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .booking-center-head h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .booking-center-head p {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .booking-center-card .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .booking-center-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .booking-center-actions .button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
  }

  .booking-center-actions .form-note {
    text-align: center;
    font-size: 12.5px;
  }

  /* Stepper on Mobile: 4 clean icon + title columns */
  .booking-steps-card {
    padding: 8px 6px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  }

  .booking-step-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .booking-step-item {
    width: 100%;
    padding: 8px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
    background: transparent;
  }

  .booking-step-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 8px;
  }

  .booking-step-item.is-active {
    background: #fdf5ef;
    border-color: #eed6c4;
    color: var(--orange);
  }

  .booking-step-item.is-active .booking-step-icon {
    background: var(--orange);
    color: #ffffff;
    border-color: var(--orange);
    box-shadow: 0 4px 10px rgba(181, 84, 47, 0.25);
  }

  .booking-step-item.is-completed {
    color: #2e7d32;
  }

  .booking-step-item.is-completed .booking-step-icon {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
  }

  .step-label-long {
    display: none !important;
  }

  /* Flatten Nested Cards on Mobile */
  .booking-panel-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: auto !important;
  }

  .booking-panel-body {
    padding: 0 !important;
  }

  .booking-block {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    margin-bottom: 12px;
  }

  .booking-section-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .booking-section-label {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .booking-multi-hint {
    font-size: 12px;
  }

  /* Step 1: Category Filter horizontal touch-scroll */
  .booking-category-filter {
    margin-top: 10px;
    margin-bottom: 14px;
    gap: 8px;
  }

  .booking-category-filter-label {
    font-size: 13.5px;
    font-weight: 700;
  }

  .booking-category-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 8px;
    margin: 0 -4px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .booking-category-list::-webkit-scrollbar {
    display: none;
  }

  .booking-category-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9px;
    gap: 6px;
  }

  .booking-pill-check {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  /* Step 1: Service Cards */
  .booking-service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .booking-service-scroll {
    max-height: 60vh;
    padding-right: 2px;
  }

  .booking-service-card {
    padding: 14px;
    gap: 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .booking-service-card.is-selected {
    padding: 13px;
    border-width: 2px;
    background: #fdf6f0;
  }

  .booking-service-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }

  .booking-service-head {
    gap: 8px;
    margin-bottom: 4px;
  }

  .booking-service-head h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
  }

  .booking-service-check {
    width: 22px;
    height: 22px;
    font-size: 11px;
    flex: 0 0 22px;
  }

  .booking-service-info p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
  }

  .booking-service-meta {
    gap: 8px;
  }

  .booking-service-tag,
  .booking-person-badge {
    padding: 3px 8px;
    font-size: 11px;
  }

  .booking-service-price {
    font-size: 13px;
    font-weight: 700;
  }

  /* Step 2: Person Drawer */
  .booking-person-drawer {
    margin: 0 0 14px;
    padding: 16px 14px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  }

  .booking-person-count-card {
    padding-bottom: 14px;
  }

  .booking-person-label {
    font-size: 14.5px;
  }

  .booking-person-note {
    font-size: 12.5px;
  }

  .booking-custom-select-trigger {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 10px;
  }

  .booking-custom-select-menu {
    border-radius: 14px;
  }

  .booking-relation-grid {
    margin-top: 14px;
    gap: 12px;
  }

  .booking-relation-col {
    padding: 14px;
    border-radius: 12px;
    background: #faf6f1;
  }

  .booking-relation-col .booking-field-label {
    font-size: 14px;
  }

  .booking-relation-col .booking-field-hint {
    font-size: 12px;
  }

  .booking-text-input {
    padding: 12px 14px;
    font-size: 16px !important;
    border-radius: 10px;
    min-height: 48px;
  }

  .booking-quick-chips {
    gap: 6px;
    margin-top: 10px;
  }

  .booking-chip-tag {
    padding: 6px 11px;
    font-size: 12.5px;
    border-radius: 8px;
  }

  /* Step 2: Calendar & Time */
  .booking-datetime-grid {
    margin-top: 14px;
    gap: 14px;
  }

  .booking-field-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
  }

  .booking-field-hint {
    font-size: 12px !important;
  }

  .booking-date-input,
  .booking-time-display-btn {
    padding: 12px 64px 12px 14px !important;
    font-size: 16px !important;
    min-height: 48px !important;
  }

  .booking-calendar-popover,
  .booking-time-popover {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px 12px;
    border-radius: 16px;
    box-sizing: border-box;
    z-index: 70;
  }

  .booking-cal-title {
    font-size: 15px;
  }

  .booking-cal-nav {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .booking-cal-day {
    height: 36px;
    font-size: 13.5px;
  }

  .booking-time-group-label {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .booking-time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .booking-time-slot {
    padding: 10px 4px;
    font-size: 13px;
    border-radius: 9px;
  }

  /* Step 2: Therapist Preference */
  .booking-therapist-card {
    margin-top: 16px;
    padding: 16px 14px;
    border-radius: 14px;
    background: #faf6f1;
  }

  .booking-therapist-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .booking-therapist-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-radius: 10px;
  }

  .booking-therapist-heading {
    font-size: 15px;
  }

  .booking-therapist-sub {
    font-size: 12.5px;
  }

  .booking-therapist-options {
    gap: 10px;
  }

  .booking-choice-card {
    padding: 14px;
    border-radius: 12px;
    gap: 12px;
  }

  .booking-choice-title {
    font-size: 14px;
  }

  .booking-choice-desc {
    font-size: 12.5px;
  }

  .booking-therapist-textarea {
    padding: 12px 14px;
    font-size: 16px !important;
    border-radius: 10px;
  }

  /* Step 3: Standalone Form Section Cards on Mobile */
  .booking-form-section {
    margin-top: 12px !important;
    padding: 18px 14px !important;
    background: #ffffff !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
  }

  .booking-form-subtitle {
    font-size: 15px !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
  }

  .booking-form-section .form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .field label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    margin-bottom: 5px !important;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 12px 14px !important;
    font-size: 16px !important; /* Critical for iOS Safari zoom prevention */
    border-radius: 10px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  .field textarea {
    min-height: 100px !important;
  }

  .booking-checkbox-card {
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    gap: 12px !important;
  }

  .booking-checkbox-custom {
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
  }

  .booking-checkbox-label {
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  .booking-dropzone {
    padding: 20px 14px !important;
    border-radius: 14px !important;
  }

  .booking-dropzone-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }

  .dropzone-prompt {
    font-size: 13.5px !important;
  }

  .dropzone-hint {
    font-size: 12px !important;
  }

  .booking-file-item {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 10px !important;
  }

  .booking-file-name {
    font-size: 13px !important;
    max-width: calc(100vw - 160px) !important;
  }

  /* Step 4: Summary Cards */
  .booking-summary-intro {
    font-size: 13.5px !important;
    margin: 6px 0 16px !important;
  }

  .booking-summary-cards {
    gap: 14px !important;
  }

  .booking-summary-card {
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
  }

  .booking-summary-card-head {
    padding: 12px 16px !important;
  }

  .booking-summary-card-title {
    font-size: 14.5px !important;
  }

  .booking-summary-edit-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }

  .booking-summary-card-body {
    padding: 16px !important;
  }

  .booking-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .booking-summary-label {
    font-size: 11.5px !important;
    margin-bottom: 3px !important;
  }

  .booking-summary-value {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .booking-summary-service-item {
    padding: 10px 12px !important;
    gap: 12px !important;
  }

  .booking-summary-service-thumb {
    width: 44px !important;
    height: 44px !important;
  }

  .booking-summary-service-title {
    font-size: 14px !important;
  }

  /* Footer on Mobile: Full-width elevated card */
  .booking-panel-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px 14px !important;
    margin-top: 14px !important;
    background: #ffffff !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }

  .booking-panel-footer .button[data-next-step],
  .booking-panel-footer button[type="submit"] {
    order: 1 !important;
    width: 100% !important;
    min-height: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    letter-spacing: 0.2px !important;
  }

  .booking-footer-status {
    order: 2 !important;
    text-align: center !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin: 2px 0 !important;
  }

  .booking-panel-footer .button[data-prev-step] {
    order: 3 !important;
    width: 100% !important;
    min-height: 44px !important;
    font-size: 13.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 420px) {
  .booking-tabs {
    gap: 4px;
    padding: 4px;
  }

  .booking-tab {
    padding: 9px 4px;
    font-size: 12.5px;
    gap: 4px;
  }

  .booking-tab i {
    font-size: 12px;
  }

  .booking-hero-card h1 {
    font-size: 21px;
  }

  .booking-time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .booking-time-slot {
    font-size: 12px;
    padding: 8px 2px;
  }

  .booking-cal-day {
    height: 32px;
    font-size: 12.5px;
  }

  .booking-checkbox-label {
    font-size: 13px !important;
  }

  .booking-service-thumb {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   File Upload Component in Step 3
   ========================================================================== */
.booking-upload-field {
  margin-top: 6px;
}

.booking-upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.booking-upload-label i {
  color: var(--orange);
  font-size: 15px;
}

.booking-dropzone {
  border: 2px dashed var(--line);
  background: var(--cream);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.booking-dropzone:hover {
  border-color: var(--orange);
  background: var(--cream-2);
}

.booking-dropzone.is-dragover {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 10%, #ffffff);
  border-style: solid;
}

.booking-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.booking-dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(181, 84, 47, .08);
}

.dropzone-prompt {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.dropzone-prompt strong {
  color: var(--ink);
  font-weight: 700;
}

.dropzone-browse-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--orange);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.dropzone-browse-btn:hover {
  color: var(--orange-dark);
}

.dropzone-hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.booking-upload-error {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fde8e8;
  border: 1px solid #f8b4b4;
  border-radius: 8px;
  color: #9b1c1c;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-upload-error[hidden] {
  display: none !important;
}

.booking-file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-file-list[hidden] {
  display: none !important;
}

.booking-file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  padding: 0 4px;
}

.booking-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.booking-file-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.booking-file-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.booking-file-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.booking-file-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100vw - 160px);
}

.booking-file-size {
  font-size: 12px;
  color: var(--muted);
}

.booking-file-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background-color .15s ease, color .15s ease;
}

.booking-file-remove:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: none;
}

.booking-files-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.booking-file-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink);
}

.booking-file-summary-badge i {
  color: var(--orange);
}

/* ==========================================================================
   BOOKING TAB & WIZARD STEP TRANSITIONS
   ========================================================================== */
@keyframes bookingPanelIn {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.booking-tab-panel.is-active,
.booking-step-pane.is-active {
  animation: bookingPanelIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.booking-service-card {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.22s ease;
}

.booking-service-card:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .booking-tab-panel.is-active,
  .booking-step-pane.is-active {
    animation: none;
  }
  .booking-service-card {
    transition: none;
    transform: none !important;
  }
}

/* ==========================================================================
   HOMEPAGE PALETTE 2 DESIGN SYSTEM OVERLAY (WARM PASTEL · EDITORIAL PAPER)
   Purely visual UI/UX alignment with Trang chủ — zero functional changes.
   ========================================================================== */
#dat-lich-hen.booking-page {
  position: relative;
  padding: 40px 0 76px;
  background-color: var(--gk-ivory, #F8F3E9);
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen.booking-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/images/home-grid-paper-bg.webp');
  background-repeat: repeat;
  background-size: 572px auto;
  background-position: top center;
  opacity: 0.46;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

#dat-lich-hen.booking-page > .container {
  position: relative;
  z-index: 1;
}

/* Hero Card */
#dat-lich-hen .booking-hero-card {
  position: relative;
  padding: 34px 32px 30px;
  margin-bottom: 28px;
  background-color: var(--gk-ivory-card, #FCF9F2);
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 8px;
  box-shadow:
    5px 6px 0 rgba(51, 39, 28, 0.12),
    0 18px 40px rgba(51, 39, 28, 0.08);
}

#dat-lich-hen .booking-hero-card .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  background-color: var(--gk-yellow-soft, #FBEDC0);
  color: var(--gk-ink, #33271C);
  border: 1px solid rgba(51, 39, 28, 0.18);
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  box-shadow: 2px 2px 0 rgba(51, 39, 28, 0.55);
  transform: rotate(-1deg);
}

#dat-lich-hen .booking-hero-card h1 {
  margin: 0;
  color: var(--gk-blue, #2C4A8C);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

#dat-lich-hen .booking-hero-sub {
  margin: 10px auto 0;
  max-width: 640px;
  color: var(--gk-ink-muted, #594636);
  font-size: 15px;
  line-height: 1.6;
}

/* Mode Switcher Tabs (Genki House Orange vs Genki Care Green) */
#dat-lich-hen .booking-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 6px;
  border-radius: 8px;
  background-color: var(--gk-ivory, #F8F3E9);
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
}

#dat-lich-hen .booking-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--gk-ink-muted, #594636);
  font-size: 14.5px;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

#dat-lich-hen .booking-tab:hover {
  color: var(--gk-ink, #33271C);
  background-color: var(--gk-ivory-card, #FCF9F2);
  border-color: var(--gk-kraft-border, #B3966E);
}

#dat-lich-hen .booking-tab[data-booking-tab="center"].is-active {
  background-color: var(--gk-orange, #EC6A4E);
  color: #FFFFFF;
  border-color: var(--gk-ink, #33271C);
  box-shadow: 2px 2px 0 rgba(51, 39, 28, 0.78);
}

#dat-lich-hen .booking-tab[data-booking-tab="home"].is-active {
  background-color: var(--gk-green, #4C7A5A);
  color: #FFFFFF;
  border-color: var(--gk-ink, #33271C);
  box-shadow: 2px 2px 0 rgba(51, 39, 28, 0.78);
}

/* Status Alerts */
#dat-lich-hen .success-message {
  background-color: var(--gk-green-soft, #E3E9DA);
  border: 1.5px solid var(--gk-green, #4C7A5A);
  border-radius: 6px;
  color: var(--gk-green-dark, #3B6247);
  font-weight: 600;
  box-shadow: 3px 3px 0 rgba(51, 39, 28, 0.14);
}

#dat-lich-hen .error-message {
  background-color: var(--gk-orange-soft, #FBD9C7);
  border: 1.5px solid var(--gk-orange-dark, #D2553A);
  border-radius: 6px;
  color: var(--gk-ink, #33271C);
  font-weight: 600;
  box-shadow: 3px 3px 0 rgba(51, 39, 28, 0.14);
}

/* Main Cards: Center Booking & Home Care Wizard */
#dat-lich-hen .booking-center-card,
#dat-lich-hen .booking-panel-card {
  background-color: var(--gk-ivory-card, #FCF9F2);
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 8px;
  box-shadow:
    5px 6px 0 rgba(51, 39, 28, 0.12),
    0 18px 40px rgba(51, 39, 28, 0.08);
}

#dat-lich-hen .booking-center-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1.5px dashed var(--gk-kraft-border, #B3966E);
}

#dat-lich-hen .booking-center-head .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background-color: #FBD9C7;
  color: var(--gk-ink, #33271C);
  border: 1px solid rgba(51, 39, 28, 0.16);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 2px 2px 0 rgba(51, 39, 28, 0.45);
}

#dat-lich-hen .booking-center-head h2 {
  margin: 2px 0 8px;
  color: var(--gk-ink, #33271C);
  font-weight: 800;
  letter-spacing: -0.02em;
}

#dat-lich-hen .booking-center-head p {
  color: var(--gk-ink-muted, #594636);
  font-size: 14.5px;
  line-height: 1.6;
}

#dat-lich-hen .booking-center-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1.5px dashed var(--gk-kraft-border, #B3966E);
}

#dat-lich-hen .booking-center-actions .form-note a {
  color: var(--gk-orange-dark, #D2553A);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form Controls (Clean Paper Contrast) */
#dat-lich-hen .field label,
#dat-lich-hen .booking-field-label {
  color: var(--gk-ink, #33271C);
  font-size: 13.5px;
  font-weight: 700;
}

#dat-lich-hen .field input,
#dat-lich-hen .field select,
#dat-lich-hen .field textarea,
#dat-lich-hen .booking-text-input,
#dat-lich-hen .booking-date-input,
#dat-lich-hen .booking-time-display-btn,
#dat-lich-hen .booking-therapist-textarea {
  background-color: #FFFFFF;
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 6px;
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen .field input:focus,
#dat-lich-hen .field select:focus,
#dat-lich-hen .field textarea:focus,
#dat-lich-hen .booking-text-input:focus,
#dat-lich-hen .booking-date-input:focus,
#dat-lich-hen .booking-time-display-btn:focus,
#dat-lich-hen .booking-therapist-textarea:focus {
  border-color: var(--gk-ink, #33271C);
  box-shadow: 0 0 0 3px rgba(236, 106, 78, 0.18);
}

#panel-home .field input:focus,
#panel-home .field select:focus,
#panel-home .field textarea:focus,
#panel-home .booking-text-input:focus,
#panel-home .booking-date-input:focus,
#panel-home .booking-time-display-btn:focus,
#panel-home .booking-therapist-textarea:focus {
  border-color: var(--gk-ink, #33271C);
  box-shadow: 0 0 0 3px rgba(76, 122, 90, 0.18);
}

/* Custom Dropdowns */
#dat-lich-hen .booking-custom-select-trigger {
  background-color: #FFFFFF;
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 6px;
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen .booking-custom-select-trigger:hover {
  border-color: var(--gk-ink, #33271C);
  background-color: var(--gk-ivory-card, #FCF9F2);
}

#dat-lich-hen .booking-custom-select-wrap.is-open .booking-custom-select-trigger {
  border-color: var(--gk-ink, #33271C);
  box-shadow: 0 0 0 3px rgba(236, 106, 78, 0.16);
}

#dat-lich-hen .booking-custom-select-menu {
  background-color: var(--gk-ivory-card, #FCF9F2);
  border: 1.5px solid var(--gk-ink, #33271C);
  border-radius: 8px;
  box-shadow:
    4px 5px 0 rgba(51, 39, 28, 0.18),
    0 14px 30px rgba(51, 39, 28, 0.12);
}

#dat-lich-hen .booking-select-option {
  border-radius: 6px;
}

#dat-lich-hen .booking-select-option:hover {
  background-color: var(--gk-ivory, #F8F3E9);
}

#dat-lich-hen .booking-select-option.is-selected {
  background-color: var(--gk-yellow-soft, #FBEDC0);
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen .center-services-menu .booking-select-option.is-selected strong {
  color: var(--gk-ink, #33271C);
}

/* Home Care Steps Sidebar */
#dat-lich-hen .booking-steps-card {
  padding: 16px;
  background-color: var(--gk-ivory-card, #FCF9F2);
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 8px;
  box-shadow: 4px 5px 0 rgba(51, 39, 28, 0.10);
}

#dat-lich-hen .booking-step-item {
  border: 1.5px solid transparent;
  border-radius: 6px;
  color: var(--gk-ink-muted, #594636);
}

#dat-lich-hen .booking-step-item:hover {
  background-color: var(--gk-ivory, #F8F3E9);
  border-color: var(--gk-kraft-border, #B3966E);
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen .booking-step-icon {
  border-radius: 6px;
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  background-color: #FFFFFF;
  color: var(--gk-ink-muted, #594636);
}

#dat-lich-hen .booking-step-item.is-active {
  background-color: var(--gk-yellow-soft, #FBEDC0);
  border-color: var(--gk-ink, #33271C);
  color: var(--gk-ink, #33271C);
  font-weight: 800;
  box-shadow: 2px 3px 0 rgba(51, 39, 28, 0.65);
}

#dat-lich-hen .booking-step-item.is-active .booking-step-icon {
  border-color: var(--gk-ink, #33271C);
  background-color: var(--gk-green, #4C7A5A);
  color: #FFFFFF;
}

#dat-lich-hen .booking-step-item.is-completed .booking-step-icon {
  border-color: var(--gk-green, #4C7A5A);
  background-color: #E3E9DA;
  color: var(--gk-green-dark, #3B6247);
}

/* Home Care Category Pills & Service Cards */
#dat-lich-hen .booking-section-label {
  color: var(--gk-ink, #33271C);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

#dat-lich-hen .booking-multi-hint {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--gk-ivory, #F8F3E9);
  border: 1px solid var(--gk-kraft-border, #B3966E);
  border-radius: 4px;
  color: var(--gk-ink-muted, #594636);
  font-size: 12px;
  font-weight: 700;
}

#dat-lich-hen .booking-category-pill {
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 6px;
  background-color: #FFFFFF;
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen .booking-category-pill:hover {
  border-color: var(--gk-ink, #33271C);
  background-color: var(--gk-ivory, #F8F3E9);
}

#dat-lich-hen .booking-category-pill.is-active {
  border-color: var(--gk-ink, #33271C);
  background-color: #E3E9DA;
  color: var(--gk-ink, #33271C);
  box-shadow: 2px 2px 0 rgba(51, 39, 28, 0.55);
}

#dat-lich-hen .booking-pill-check {
  background-color: var(--gk-green, #4C7A5A);
}

#dat-lich-hen .booking-service-card {
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 8px;
  background-color: #FFFFFF;
}

#dat-lich-hen .booking-service-card:hover {
  border-color: var(--gk-ink, #33271C);
  background-color: var(--gk-ivory-card, #FCF9F2);
  box-shadow: 3px 3px 0 rgba(51, 39, 28, 0.20);
  transform: translate(-1px, -1px);
}

#dat-lich-hen .booking-service-card.is-selected {
  border: 2px solid var(--gk-ink, #33271C);
  background-color: color-mix(in srgb, var(--gk-yellow-soft, #FBEDC0) 45%, var(--gk-ivory-card, #FCF9F2));
  box-shadow: 4px 4px 0 rgba(51, 39, 28, 0.68);
}

#dat-lich-hen .booking-service-thumb {
  border-radius: 6px;
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
}

#dat-lich-hen .booking-service-check {
  background-color: var(--gk-green, #4C7A5A);
}

#dat-lich-hen .booking-service-tag {
  background-color: var(--gk-ivory, #F8F3E9);
  border: 1px solid var(--gk-kraft-border, #B3966E);
  border-radius: 4px;
  color: var(--gk-ink-muted, #594636);
}

#dat-lich-hen .booking-person-badge {
  background-color: var(--gk-green, #4C7A5A);
  border-radius: 4px;
}

#dat-lich-hen .booking-service-price {
  color: var(--gk-orange-dark, #D2553A);
}

/* Person Drawer, Therapist Card, Step 3 Form Sections & Summary Cards */
#dat-lich-hen .booking-person-drawer,
#dat-lich-hen .booking-therapist-card,
#dat-lich-hen .booking-form-section {
  background-color: var(--gk-ivory, #F8F3E9);
  border: 1.5px dashed var(--gk-kraft-border, #B3966E);
  border-radius: 8px;
  box-shadow: none;
}

#dat-lich-hen .booking-person-count-card,
#dat-lich-hen .booking-form-subtitle,
#dat-lich-hen .booking-summary-service-list {
  border-bottom: 1.5px dashed var(--gk-kraft-border, #B3966E);
}

#dat-lich-hen .booking-person-label i,
#dat-lich-hen .booking-form-subtitle i,
#dat-lich-hen .booking-summary-card-title i,
#dat-lich-hen .booking-upload-label i {
  color: var(--gk-green, #4C7A5A);
}

#dat-lich-hen .booking-chip-tag {
  background-color: #FFFFFF;
  border: 1px solid var(--gk-kraft-border, #B3966E);
  border-radius: 5px;
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen .booking-chip-tag:hover {
  background-color: var(--gk-yellow-soft, #FBEDC0);
  border-color: var(--gk-ink, #33271C);
  color: var(--gk-ink, #33271C);
}

/* Calendar & Time Popovers */
#dat-lich-hen .booking-calendar-popover,
#dat-lich-hen .booking-time-popover {
  background-color: var(--gk-ivory-card, #FCF9F2);
  border: 1.5px solid var(--gk-ink, #33271C);
  border-radius: 8px;
  box-shadow:
    4px 5px 0 rgba(51, 39, 28, 0.18),
    0 14px 30px rgba(51, 39, 28, 0.12);
}

#dat-lich-hen .booking-cal-day.is-selected,
#dat-lich-hen .booking-time-slot.is-selected {
  background-color: var(--gk-green, #4C7A5A);
  border-color: var(--gk-ink, #33271C);
  color: #FFFFFF;
}

#dat-lich-hen .booking-cal-day:hover:not(:disabled):not(.is-selected),
#dat-lich-hen .booking-time-slot:hover:not(:disabled):not(.is-selected) {
  background-color: var(--gk-yellow-soft, #FBEDC0);
  border-color: var(--gk-ink, #33271C);
  color: var(--gk-ink, #33271C);
}

/* Choice Cards & Checkbox Cards */
#dat-lich-hen .booking-choice-card,
#dat-lich-hen .booking-checkbox-card {
  background-color: #FFFFFF;
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 6px;
}

#dat-lich-hen .booking-choice-card:hover,
#dat-lich-hen .booking-checkbox-card:hover {
  border-color: var(--gk-ink, #33271C);
  background-color: var(--gk-ivory-card, #FCF9F2);
}

#dat-lich-hen .booking-choice-card.is-selected,
#dat-lich-hen .booking-checkbox-card.is-checked,
#dat-lich-hen .booking-checkbox-card:has(input:checked) {
  border-color: var(--gk-ink, #33271C);
  background-color: color-mix(in srgb, var(--gk-yellow-soft, #FBEDC0) 45%, var(--gk-ivory-card, #FCF9F2));
  box-shadow: 2px 3px 0 rgba(51, 39, 28, 0.55);
}

#dat-lich-hen .booking-checkbox-card.is-checked .booking-checkbox-custom,
#dat-lich-hen .booking-checkbox-card:has(input:checked) .booking-checkbox-custom {
  border-color: var(--gk-ink, #33271C);
  background-color: var(--gk-green, #4C7A5A);
  color: #FFFFFF;
}

#dat-lich-hen .booking-checkbox-card.is-checked .booking-checkbox-label,
#dat-lich-hen .booking-checkbox-card:has(input:checked) .booking-checkbox-label {
  color: var(--gk-ink, #33271C);
}

/* Upload Dropzone */
#dat-lich-hen .booking-dropzone {
  background-color: #FFFFFF;
  border: 1.5px dashed var(--gk-kraft-border, #B3966E);
  border-radius: 8px;
}

#dat-lich-hen .booking-dropzone:hover,
#dat-lich-hen .booking-dropzone.is-dragover {
  border-color: var(--gk-ink, #33271C);
  background-color: color-mix(in srgb, var(--gk-yellow-soft, #FBEDC0) 45%, var(--gk-ivory-card, #FCF9F2));
}

#dat-lich-hen .booking-dropzone-icon {
  background-color: var(--gk-ivory, #F8F3E9);
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  color: var(--gk-green, #4C7A5A);
  box-shadow: none;
}

#dat-lich-hen .dropzone-browse-btn {
  color: var(--gk-green-dark, #3B6247);
}

/* Step 4 Summary Cards */
#dat-lich-hen .booking-summary-card {
  background-color: #FFFFFF;
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 8px;
}

#dat-lich-hen .booking-summary-card-head {
  background-color: var(--gk-ivory, #F8F3E9);
  border-bottom: 1.5px dashed var(--gk-kraft-border, #B3966E);
}

#dat-lich-hen .booking-summary-edit-btn {
  background-color: var(--gk-yellow-soft, #FBEDC0);
  border: 1px solid rgba(51, 39, 28, 0.35);
  border-radius: 5px;
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen .booking-summary-edit-btn:hover {
  background-color: var(--gk-yellow, #F0B429);
  border-color: var(--gk-ink, #33271C);
}

#dat-lich-hen .booking-summary-service-item {
  background-color: var(--gk-ivory, #F8F3E9);
  border: 1px solid rgba(179, 150, 110, 0.45);
  border-radius: 6px;
}

/* Panel Footer */
#dat-lich-hen .booking-panel-footer {
  background-color: var(--gk-ivory, #F8F3E9);
  border-top: 1.5px dashed var(--gk-kraft-border, #B3966E);
}

/* Tactile Editorial Buttons (Matching Homepage Header CTA & Cards) */
#dat-lich-hen .button-primary {
  background-color: var(--gk-orange, #EC6A4E);
  border: 1.5px solid var(--gk-ink, #33271C);
  border-radius: 6px;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(51, 39, 28, 0.78);
}

#dat-lich-hen .button-primary:hover:not(:disabled) {
  background-color: var(--gk-orange-dark, #D2553A);
  border-color: var(--gk-ink, #33271C);
  color: #FFFFFF;
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0 rgba(51, 39, 28, 0.85) !important;
}

#panel-home .button-primary {
  background-color: var(--gk-green, #4C7A5A);
}

#panel-home .button-primary:hover:not(:disabled) {
  background-color: var(--gk-green-dark, #3B6247);
}

#dat-lich-hen .button-primary:disabled {
  opacity: 0.5;
  box-shadow: none !important;
  transform: none !important;
  cursor: not-allowed;
}

#dat-lich-hen .button-outline,
#dat-lich-hen .button-ghost {
  background-color: var(--gk-ivory-card, #FCF9F2);
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 6px;
  color: var(--gk-ink, #33271C);
  font-weight: 700;
}

#dat-lich-hen .button-outline:hover:not(:disabled),
#dat-lich-hen .button-ghost:hover:not(:disabled) {
  background-color: var(--gk-yellow-soft, #FBEDC0);
  border-color: var(--gk-ink, #33271C);
  color: var(--gk-ink, #33271C);
  transform: none !important;
  box-shadow: 2px 2px 0 rgba(51, 39, 28, 0.55) !important;
}

@media (max-width: 768px) {
  #dat-lich-hen.booking-page {
    padding: 18px 0 52px;
    background-color: var(--gk-ivory, #F8F3E9);
  }

  #dat-lich-hen .booking-hero-card {
    padding: 22px 16px 20px;
    margin-bottom: 16px;
  }

  #dat-lich-hen .booking-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 6px;
    padding: 5px;
    margin-top: 16px;
  }

  #dat-lich-hen .booking-tab {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13px;
    justify-content: center;
    gap: 6px;
  }

  #dat-lich-hen .booking-hero-card,
  #dat-lich-hen .booking-center-card,
  #dat-lich-hen .booking-steps-card,
  #dat-lich-hen .booking-form-section,
  #dat-lich-hen .booking-panel-footer {
    background-color: var(--gk-ivory-card, #FCF9F2) !important;
    border: 1.5px solid var(--gk-kraft-border, #B3966E) !important;
    border-radius: 8px !important;
    box-shadow: 3px 4px 0 rgba(51, 39, 28, 0.10) !important;
  }

  #dat-lich-hen .booking-panel-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #dat-lich-hen .booking-panel-footer .button[data-next-step],
  #dat-lich-hen .booking-panel-footer button[type="submit"],
  #dat-lich-hen .booking-panel-footer .button[data-prev-step] {
    border-radius: 6px !important;
  }
}

@media (max-width: 420px) {
  #dat-lich-hen .booking-tab {
    padding: 9px 4px;
    font-size: 12px;
    gap: 4px;
  }
}

/* Booking Success State Card (sau khi đặt lịch thành công — ẩn form chọn dịch vụ) */
#dat-lich-hen .booking-success-card {
  max-width: 680px;
  margin: 24px auto 40px;
  padding: 44px 36px 40px;
  text-align: center;
  background-color: var(--gk-ivory-card, #FCF9F2);
  border: 1.5px solid var(--gk-kraft-border, #B3966E);
  border-radius: 8px;
  box-shadow:
    5px 6px 0 rgba(51, 39, 28, 0.12),
    0 18px 40px rgba(51, 39, 28, 0.08);
}

#dat-lich-hen .booking-success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--gk-green-soft, #E3E9DA);
  border: 1.5px solid var(--gk-green, #4C7A5A);
  color: var(--gk-green, #4C7A5A);
  font-size: 28px;
  box-shadow: 3px 3px 0 rgba(51, 39, 28, 0.18);
}

#dat-lich-hen .booking-success-card .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  background-color: var(--gk-green-soft, #E3E9DA);
  color: var(--gk-ink, #33271C);
  border: 1px solid rgba(51, 39, 28, 0.18);
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  box-shadow: 2px 2px 0 rgba(51, 39, 28, 0.45);
}

#dat-lich-hen .booking-success-card h1 {
  margin: 0 0 14px;
  color: var(--gk-blue, #2C4A8C);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.22;
}

#dat-lich-hen .booking-success-message {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  background-color: var(--gk-green-soft, #E3E9DA);
  border: 1.5px dashed var(--gk-green, #4C7A5A);
  border-radius: 6px;
  color: var(--gk-ink, #33271C);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
}

#dat-lich-hen .booking-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

#dat-lich-hen .booking-success-cta {
  padding: 12px 24px;
  min-height: 48px;
  font-size: 15px;
}

@media (max-width: 600px) {
  #dat-lich-hen .booking-success-card {
    margin: 12px auto 24px;
    padding: 30px 18px 28px;
  }

  #dat-lich-hen .booking-success-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #dat-lich-hen .booking-success-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   LONG-STRING OVERFLOW PROTECTION & STEP 3 INVALID FIELD FEEDBACK
   ========================================================================== */
.booking-summary-field,
.booking-summary-service-info,
.booking-file-info {
  min-width: 0;
}

.booking-summary-value,
.booking-summary-service-title,
.booking-selection-chip,
.booking-file-summary-badge,
.booking-file-summary-badge span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.booking-form-section .field input.is-invalid,
.booking-form-section .field textarea.is-invalid {
  border-color: #c93b2b !important;
  background-color: #fff8f7;
  box-shadow: 0 0 0 3px rgba(201, 59, 43, 0.12);
}

/* Dynamic Preferred Call Time Dropdown (Home Care Step 3) */
#dat-lich-hen .booking-custom-select-menu.call-time-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  z-index: 60;
}

#dat-lich-hen .call-time-select-menu .booking-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  text-align: left;
}

#dat-lich-hen .call-time-select-menu .booking-select-option i:not(.option-check-icon) {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--gk-green-soft, #E3E9DA);
  color: var(--gk-green, #4C7A5A);
  font-size: 13px;
  flex-shrink: 0;
}

#dat-lich-hen .call-time-select-menu .booking-select-option.is-selected {
  background-color: var(--gk-green-soft, #E3E9DA);
}

#dat-lich-hen .call-time-select-menu .booking-select-option.is-selected i:not(.option-check-icon) {
  background: var(--gk-green, #4C7A5A);
  color: #ffffff;
}

#dat-lich-hen .call-time-select-menu .booking-select-option .option-text {
  flex: 1;
  min-width: 0;
}

#dat-lich-hen .call-time-select-menu .booking-select-option strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gk-ink, #33271C);
}

#dat-lich-hen .call-time-select-menu .booking-select-option.is-selected strong {
  font-weight: 700;
}

#dat-lich-hen .call-time-select-menu .booking-select-option .option-check-icon {
  font-size: 13px;
  color: var(--gk-green, #4C7A5A);
  opacity: 0;
  flex-shrink: 0;
}

#dat-lich-hen .call-time-select-menu .booking-select-option.is-selected .option-check-icon {
  opacity: 1;
}

#dat-lich-hen [data-call-time-select-wrap] .select-value-icon {
  color: var(--gk-green, #4C7A5A);
}

#dat-lich-hen [data-call-time-select-wrap].is-open .booking-custom-select-trigger {
  border-color: var(--gk-green, #4C7A5A);
  box-shadow: 0 0 0 3px rgba(76, 122, 90, 0.18);
}

#dat-lich-hen [data-call-time-select-wrap].is-open .select-chevron-icon {
  color: var(--gk-green, #4C7A5A);
}
