.groomai-booking,
.groomai-unavailable {
  --gai-ink: #1d2823;
  --gai-muted: #68736d;
  --gai-line: #dfe7e2;
  --gai-brand: #255b45;
  --gai-brand-dark: #173d2e;
  --gai-soft: #edf5f0;
  --gai-warm: #f3b95f;
  color: var(--gai-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.groomai-booking {
  max-width: 1080px;
  margin: 32px auto;
  border: 1px solid var(--gai-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(29, 40, 35, .10);
  overflow: hidden;
}

.groomai-booking button,
.groomai-booking input,
.groomai-booking select { font: inherit; }

.groomai-booking__loading,
.groomai-booking__error,
.groomai-unavailable {
  min-height: 220px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: left;
}

.groomai-booking__loading {
  flex-direction: column;
  text-align: center;
}

.groomai-booking__loading strong { font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.groomai-booking__loading span:last-child,
.groomai-booking__error p,
.groomai-unavailable p { color: var(--gai-muted); }
.groomai-paw { color: var(--gai-warm); font-size: 30px; animation: groomai-pulse 1.2s ease-in-out infinite; }

.groomai-booking__hero {
  padding: 38px 42px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #f5faf7 0%, #fffaf0 100%);
}
.groomai-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--gai-brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.groomai-booking__hero h2,
.groomai-booking__error h2,
.groomai-unavailable h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.035em;
}
.groomai-booking__hero p { max-width: 650px; margin: 14px 0 0; color: var(--gai-muted); line-height: 1.65; }
.groomai-salon-chip {
  min-width: 190px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(37,91,69,.14);
  border-radius: 15px;
  background: rgba(255,255,255,.78);
}
.groomai-salon-chip span { color: var(--gai-muted); font-size: 11px; }
.groomai-salon-chip strong { font-size: 13px; }

.groomai-progress {
  padding: 22px 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gai-line);
  border-bottom: 1px solid var(--gai-line);
  background: #fff;
}
.groomai-progress span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #95a19b;
  font-size: 12px;
  font-weight: 800;
}
.groomai-progress span::before {
  content: "";
  width: 28px;
  height: 28px;
  position: absolute;
  left: -8px;
  z-index: 0;
  border-radius: 999px;
  background: #f1f4f2;
}
.groomai-progress span.is-active { color: var(--gai-brand); }
.groomai-progress span.is-active::before { background: var(--gai-soft); }
.groomai-progress span.is-complete { color: #5d776a; }
.groomai-progress span.is-complete::before { background: #dcece3; }
.groomai-progress span > * , .groomai-progress span { isolation: isolate; }
.groomai-progress em { font-style: normal; }

.groomai-pet-toggle {
  padding: 26px 42px 8px;
  display: flex;
  gap: 8px;
}
.groomai-pet-toggle button {
  padding: 10px 16px;
  border: 1px solid var(--gai-line);
  border-radius: 999px;
  background: #fff;
  color: var(--gai-muted);
  cursor: pointer;
  font-weight: 800;
}
.groomai-pet-toggle button.is-active { border-color: var(--gai-brand); background: var(--gai-brand); color: white; }
.groomai-pet-accent { width: 24px; height: 24px; vertical-align: -6px; margin-right: 6px; }

.groomai-service-grid {
  padding: 18px 42px 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.groomai-service-card {
  position: relative;
  min-height: 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--gai-line);
  border-radius: 20px;
  background: #fff;
  color: var(--gai-ink);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.groomai-service-card:hover { transform: translateY(-2px); border-color: #b6c9bf; box-shadow: 0 16px 30px rgba(29,40,35,.07); }
.groomai-service-card.is-selected { border: 2px solid var(--gai-brand); background: #fbfefc; box-shadow: 0 0 0 4px rgba(37,91,69,.08); }
.groomai-service-card__check {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gai-line);
  border-radius: 999px;
  color: transparent;
  background: #fff;
  font-size: 12px;
}
.groomai-service-card.is-selected .groomai-service-card__check { border-color: var(--gai-brand); background: var(--gai-brand); color: white; }
.groomai-service-card__art {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 18px 6px;
  background: #f8e9cf;
  color: #8d6128;
  font-size: 25px;
}
.groomai-service-card strong { margin-top: 5px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.2; }
.groomai-service-card > span:not(.groomai-service-card__check):not(.groomai-service-card__art) { color: var(--gai-muted); font-size: 13px; line-height: 1.5; }
.groomai-service-card small { margin-top: auto; color: var(--gai-brand); font-size: 11px; font-weight: 800; }

.groomai-step-panel { padding: 34px 42px 38px; }
.groomai-step-heading { max-width: 760px; }
.groomai-step-heading h3,
.groomai-hold-banner h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -.03em;
}
.groomai-step-heading p,
.groomai-hold-banner p { margin: 12px 0 0; color: var(--gai-muted); line-height: 1.6; }
.groomai-form-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.groomai-form-grid label,
.groomai-date-field { display: grid; gap: 7px; color: var(--gai-ink); font-size: 12px; font-weight: 800; }
.groomai-form-grid input,
.groomai-form-grid select,
.groomai-date-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--gai-line);
  border-radius: 12px;
  background: #fff;
  color: var(--gai-ink);
  outline: none;
}
.groomai-form-grid input:focus,
.groomai-form-grid select:focus,
.groomai-date-field input:focus { border-color: var(--gai-brand); box-shadow: 0 0 0 4px rgba(37,91,69,.08); }
.groomai-time-heading { max-width: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.groomai-time-heading > div { max-width: 720px; }
.groomai-date-field { min-width: 190px; }
.groomai-availability { margin-top: 28px; display: grid; gap: 16px; }
.groomai-groomer-times {
  border: 1px solid var(--gai-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.groomai-groomer-times > header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8faf9;
  border-bottom: 1px solid var(--gai-line);
}
.groomai-groomer-times h4 { margin: 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.groomai-price-summary { display: grid; gap: 3px; text-align: right; }
.groomai-price-summary strong { font-size: 14px; }
.groomai-price-summary span { color: var(--gai-muted); font-size: 11px; }
.groomai-time-grid { padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.groomai-time-grid button {
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid #b8cdc2;
  border-radius: 10px;
  background: #fff;
  color: var(--gai-brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.groomai-time-grid button:hover { background: var(--gai-brand); color: #fff; border-color: var(--gai-brand); }
.groomai-empty-state {
  min-height: 150px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #cbd8d1;
  border-radius: 18px;
  background: #fbfcfb;
  color: var(--gai-muted);
  text-align: center;
}
.groomai-empty-state strong { color: var(--gai-ink); }
.groomai-inline-error {
  padding: 16px 18px;
  border: 1px solid #efd2c8;
  border-radius: 13px;
  background: #fff6f2;
  color: #8b4430;
  font-size: 13px;
  font-weight: 700;
}
.groomai-hold-banner {
  padding: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #cce2d5;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef8f2, #fffaf1);
}
.groomai-hold-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 18px 6px;
  background: var(--gai-brand);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}
.groomai-countdown { min-width: 122px; padding: 13px 15px; display: grid; gap: 4px; border-radius: 14px; background: #fff; text-align: center; }
.groomai-countdown span { color: var(--gai-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.groomai-countdown strong { color: var(--gai-brand-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 24px; }
.groomai-confirmation-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.groomai-confirmation-grid article { min-height: 138px; padding: 18px; display: grid; align-content: start; gap: 8px; border: 1px solid var(--gai-line); border-radius: 16px; }
.groomai-confirmation-grid span { color: var(--gai-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.groomai-confirmation-grid strong { font-family: Georgia, serif; font-size: 19px; font-weight: 500; line-height: 1.25; }
.groomai-confirmation-grid small { margin-top: auto; color: var(--gai-muted); line-height: 1.4; }
.groomai-next-milestone { margin-top: 18px; padding: 17px 18px; display: grid; gap: 4px; border-radius: 14px; background: #f4f6f5; }
.groomai-next-milestone span { color: var(--gai-muted); font-size: 12px; }

.groomai-booking__footer {
  padding: 20px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--gai-line);
  background: #f8faf9;
}
.groomai-booking__footer > div { display: grid; gap: 4px; }
.groomai-booking__footer strong { font-size: 14px; }
.groomai-booking__footer span { max-width: 620px; color: var(--gai-muted); font-size: 11px; }
.groomai-booking__footer button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: var(--gai-brand);
  color: white;
  cursor: pointer;
  font-weight: 850;
}
.groomai-booking__footer button:disabled { cursor: not-allowed; opacity: .38; }
.groomai-booking__footer .groomai-button-secondary { border: 1px solid var(--gai-line); background: #fff; color: var(--gai-ink); }
.groomai-footer-spacer { flex: 1; }

.groomai-booking__error,
.groomai-unavailable {
  max-width: 900px;
  margin: 28px auto;
  border: 1px solid #ead9c1;
  border-radius: 22px;
  background: #fffaf2;
}
.groomai-booking__error h2,
.groomai-unavailable h2 { font-size: 28px; }
.groomai-booking__error p,
.groomai-unavailable p { margin-bottom: 0; }
.groomai-booking__icon,
.groomai-unavailable__mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 17px 17px 17px 6px;
  background: var(--gai-warm);
  color: var(--gai-brand-dark);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
}

@keyframes groomai-pulse { 50% { transform: scale(1.2); opacity: .55; } }

@media (max-width: 900px) {
  .groomai-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .groomai-booking__hero,
  .groomai-time-heading { flex-direction: column; }
  .groomai-salon-chip,
  .groomai-date-field { width: 100%; }
  .groomai-time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .groomai-confirmation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .groomai-booking { margin: 18px 0; border-radius: 20px; }
  .groomai-booking__hero,
  .groomai-pet-toggle,
  .groomai-service-grid,
  .groomai-step-panel,
  .groomai-booking__footer { padding-left: 20px; padding-right: 20px; }
  .groomai-progress { padding: 18px 20px; }
  .groomai-progress em { display: none; }
  .groomai-service-grid,
  .groomai-form-grid { grid-template-columns: 1fr; }
  .groomai-booking__footer { align-items: stretch; flex-direction: column; }
  .groomai-time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .groomai-groomer-times > header,
  .groomai-hold-banner { grid-template-columns: 1fr; align-items: flex-start; }
  .groomai-groomer-times > header { flex-direction: column; }
  .groomai-price-summary { text-align: left; }
  .groomai-countdown { width: 100%; }
  .groomai-footer-spacer { display: none !important; }
}


/* Assisted booking experience */
.groomai-booking-filters {
  padding: 26px 42px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 16px;
}
.groomai-filter-group {
  display: grid;
  gap: 8px;
}
.groomai-filter-group > span {
  color: var(--gai-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.groomai-booking-filters .groomai-pet-toggle {
  padding: 0;
  flex-wrap: wrap;
}
.groomai-size-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.groomai-size-toggle button {
  padding: 10px 14px;
  border: 1px solid var(--gai-line);
  border-radius: 999px;
  background: #fff;
  color: var(--gai-muted);
  cursor: pointer;
  font-weight: 800;
}
.groomai-size-toggle button.is-active {
  border-color: var(--gai-brand);
  background: var(--gai-brand);
  color: #fff;
}
.groomai-assistant-link {
  grid-column: 1 / -1;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d8e4dd;
  border-radius: 15px;
  background: var(--gai-soft);
  color: var(--gai-brand-dark);
  cursor: pointer;
  text-align: left;
}
.groomai-assistant-link strong { font-size: 13px; }
.groomai-assistant-link span {
  color: var(--gai-muted);
  font-size: 12px;
}
.groomai-service-notice {
  margin: 10px 42px 0;
}
.groomai-service-grid--empty {
  grid-template-columns: 1fr;
}
.groomai-nearby-intro {
  padding: 18px 20px;
  display: grid;
  gap: 5px;
  border: 1px solid #d7e5dd;
  border-radius: 16px;
  background: var(--gai-soft);
}
.groomai-nearby-intro span,
.groomai-alternative-date > span,
.groomai-flexible-request span {
  color: var(--gai-muted);
  font-size: 12px;
}
.groomai-alternative-list {
  display: grid;
  gap: 22px;
}
.groomai-alternative-list > section {
  display: grid;
  gap: 10px;
}
.groomai-alternative-date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.groomai-alternative-date strong {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}
.groomai-flexible-request {
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  border: 1px solid #c8dacf;
  border-radius: 15px;
  background: #fffaf0;
  color: var(--gai-brand-dark);
  cursor: pointer;
  text-align: left;
}
.groomai-flexible-request strong { font-size: 13px; }
@media (max-width: 720px) {
  .groomai-booking-filters {
    padding-left: 20px;
    padding-right: 20px;
    grid-template-columns: 1fr;
  }
  .groomai-assistant-link {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: column;
  }
  .groomai-service-notice {
    margin-left: 20px;
    margin-right: 20px;
  }
  .groomai-alternative-date {
    align-items: flex-start;
    flex-direction: column;
  }
}
