.booking-layout {
  display: block;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.booking-card,
.info-card,
.work-gallery {
  padding: 22px;
  background: var(--card-bg);
}

.booking-card {
  overflow: visible;
  opacity: 1;
  transition: opacity 360ms ease 120ms;
}

.site-footer {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms ease 180ms,
    transform 360ms ease 180ms;
}

body.is-loading .hero-panel {
  opacity: 0;
  transform: translateY(6px);
}

body.is-loading .booking-card,
body.is-loading .work-gallery,
body.is-loading .site-footer {
  opacity: 0;
  pointer-events: none;
}

body.is-revealed .booking-step--active .option-card,
body.is-revealed .booking-step--active .service-card,
body.is-revealed .booking-step--active .time-slot {
  animation: card-reveal 360ms ease both;
}

body.is-revealed .booking-step--active[data-step-panel="4"],
body.is-revealed .booking-step--active[data-step-panel="5"] {
  animation: step-reveal 280ms ease both;
}

body.is-revealed .booking-step--active .option-card:nth-child(2),
body.is-revealed .booking-step--active .service-card:nth-child(2),
body.is-revealed .booking-step--active .time-slot:nth-child(2) {
  animation-delay: 45ms;
}

body.is-revealed .booking-step--active .option-card:nth-child(3),
body.is-revealed .booking-step--active .service-card:nth-child(3),
body.is-revealed .booking-step--active .time-slot:nth-child(3) {
  animation-delay: 90ms;
}

body.is-revealed .booking-step--active .option-card:nth-child(4),
body.is-revealed .booking-step--active .service-card:nth-child(4),
body.is-revealed .booking-step--active .time-slot:nth-child(4) {
  animation-delay: 135ms;
}

body.is-revealed .booking-step--active .option-card:nth-child(n + 5),
body.is-revealed .booking-step--active .service-card:nth-child(n + 5),
body.is-revealed .booking-step--active .time-slot:nth-child(n + 5) {
  animation-delay: 180ms;
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes step-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.booking-start-choice {
  display: grid;
  gap: 18px;
}

.booking-start-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.booking-start-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--item-bg);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.booking-start-card:hover {
  transform: translateY(-2px);
  border-color: var(--selected-border);
  background: var(--selected-bg);
  box-shadow: var(--selected-shadow, var(--shadow));
}

.booking-start-card__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--text);
  background:
    radial-gradient(circle at 32% 24%, color-mix(in srgb, white 42%, transparent), transparent 36%),
    color-mix(in srgb, var(--accent) 24%, var(--item-bg));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    0 10px 22px color-mix(in srgb, var(--text) 13%, transparent);
}

.booking-start-card__icon-image {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: var(--service-icon-filter);
}

.booking-start-card__icon-image[data-product-image] {
  display: none;
}

body[data-product-type="barbershop"] .booking-start-card__icon-image[data-product-image="barbershop"],
body[data-product-type="beauty"] .booking-start-card__icon-image[data-product-image="beauty"] {
  display: block;
}

.booking-start-card__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.booking-start-card strong {
  display: block;
  font-size: 1.14rem;
  line-height: 1.18;
}

.booking-start-card__body > span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.36;
}

.booking-start-card__chevron {
  color: var(--muted);
  font-size: 1.9rem;
  line-height: 1;
  opacity: 0.62;
  transform: translateY(-1px);
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.booking-start-card:hover .booking-start-card__chevron {
  color: var(--selected-border);
  opacity: 1;
  transform: translate(2px, -1px);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  margin: -8px -8px 14px;
  list-style: none;
  border: 1px solid var(--stepper-shell-border);
  border-radius: 22px;
  background: var(--stepper-shell-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--stepper-shell-shadow);
}

.stepper__item {
  min-height: 54px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 0.84rem;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.stepper__item::selection,
.stepper__item *::selection {
  background: transparent;
}

.stepper__item--active,
.stepper__item--done {
  color: var(--text);
  border-color: var(--selected-border);
  box-shadow: var(--selected-control-shadow, none);
}

.stepper__item--active {
  background: var(--selected-bg-strong);
}

.stepper__item--done {
  background: var(--step-done-bg);
}

.stepper__item--clickable {
  cursor: pointer;
}

.booking-step {
  display: none;
  scroll-margin-top: var(--step-scroll-offset);
}

.booking-step--active {
  display: block;
}

.step-header {
  margin-bottom: 18px;
}

.step-header h3 {
  font-size: 1.35rem;
}

.step-header p {
  margin: 8px 0 0;
}

.option-grid,
.service-grid,
.time-grid {
  display: grid;
  gap: 12px;
}

.option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card,
.service-card {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 22px;
  background: var(--item-bg);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.option-card::selection,
.service-card::selection,
.option-card *::selection,
.service-card *::selection {
  background: transparent;
}

.service-card {
  min-height: 108px;
}

.option-card:hover,
.service-card:hover,
.time-slot:hover {
  transform: translateY(-2px);
}

.option-card.is-selected,
.service-card.is-selected,
.time-slot.is-selected {
  border-color: var(--selected-border);
  background: var(--selected-bg);
  box-shadow: var(--selected-shadow, var(--shadow));
}

.option-card__top,
.service-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.option-card strong,
.service-card strong,
.summary-list dt,
.summary-card strong {
  display: block;
  color: var(--text);
}

.service-card__name {
  font-size: 1.08rem;
  line-height: 1.24;
}

.service-card__price {
  font-size: 1.14rem;
  line-height: 1;
}

.service-card__side {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-width: 72px;
  padding-right: 6px;
}

.service-card__icon-slot {
  width: 74px;
  min-height: 74px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.service-card__icon-slot.is-empty {
  visibility: hidden;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0;
  filter: var(--service-icon-filter);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 200ms ease;
}

.service-card__icon[src$=".png"] {
  width: 74px;
  height: 74px;
  padding: 0;
  object-fit: contain;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: var(--service-png-filter);
  mix-blend-mode: var(--service-png-blend);
  transform: scale(1.46);
  transform-origin: center;
}

.service-card__icon.is-loaded {
  opacity: 0.92;
}

.service-card__icon[src$=".png"].is-loaded {
  transform: scale(1.46);
}

.barber-card__content {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 10px;
  align-content: start;
}

.barber-card__content strong {
  font-size: clamp(1.28rem, 3.4vw, 1.7rem);
  line-height: 1.08;
}

.barber-card__specialty {
  margin: 0;
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.42;
  color: var(--muted);
}

.barber-card__image {
  width: 92px;
  min-width: 92px;
  height: 108px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--image-frame-border);
  background: var(--image-frame-bg);
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.barber-card__media {
  position: relative;
  display: grid;
  justify-items: end;
}

.barber-card__instagram {
  position: static;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  margin-top: 8px;
  width: fit-content;
  font-size: 0.96rem;
  line-height: 1.35;
}

.barber-card__phone {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  line-height: 1.35;
}

.barber-card__phone:hover {
  color: var(--text);
}

.barber-card__instagram svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  fill: currentColor;
}

.barber-card__instagram:hover {
  color: var(--text);
}

.barber-card__image.is-loaded {
  opacity: 1;
  transform: none;
}

.meta {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.field-stack {
  display: grid;
  gap: 14px;
}

.name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--input-bg);
  padding: 14px 15px;
  color: var(--text);
  font: inherit;
}

input[type="date"] {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}

.booking-date-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.date-picker-toggle,
.date-picker {
  width: min(100%, 620px);
  max-width: 620px;
}

.date-picker-toggle {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.date-picker-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--selected-border);
}

.date-picker-toggle__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.date-picker-toggle[aria-expanded="true"] .date-picker-toggle__icon {
  transform: rotate(180deg);
}

.date-picker {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--input-bg);
}

.date-picker[hidden] {
  display: none;
}

.date-picker__header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.date-picker__month {
  text-align: center;
  color: var(--text);
  font-size: 1.02rem;
}

.date-picker__nav,
.date-picker__day {
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.date-picker__nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--button-ghost-bg);
}

.date-picker__nav span {
  transform: translateY(-1px);
  font-size: 1.45rem;
  line-height: 1;
}

.date-picker__nav:hover:not(:disabled),
.date-picker__day:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--selected-border);
}

.date-picker__nav:disabled,
.date-picker__day:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.date-picker__weekdays,
.date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.date-picker__weekday {
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.date-picker__empty,
.date-picker__day {
  min-height: 44px;
}

.date-picker__day {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--item-bg);
}

.date-picker__day.is-selected {
  border-color: var(--selected-border);
  background: var(--selected-bg-strong);
  box-shadow: inset 0 0 0 1px var(--selected-border);
}

.date-picker__day.is-today:not(.is-selected) {
  border-color: var(--focus-ring);
}

.date-picker__day.is-unavailable {
  background: var(--surface-soft);
  color: var(--muted);
}

textarea {
  resize: vertical;
  min-height: 108px;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

input:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.option-card:focus-visible,
.service-card:focus-visible,
.time-slot:focus-visible,
.date-picker-toggle:focus-visible,
.date-picker__nav:focus-visible,
.date-picker__day:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.time-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.time-grid__title {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
}

.time-slot {
  position: relative;
  min-height: 72px;
  padding: 14px 10px;
  border-radius: 18px;
  background: var(--item-bg);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.time-slot strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1;
}

.time-slot span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.time-slot.is-selected::after {
  content: "✓";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--button-text);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.time-slot[disabled] {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.summary-card,
.result-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--item-bg-soft);
}

.summary-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.summary-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider-line);
}

.summary-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.summary-list dd {
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.service-sticky-cta {
  display: none;
}

.confirmation-sticky-actions {
  display: none;
}

.service-sticky-cta__summary {
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.25;
}

.button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  cursor: pointer;
  color: var(--button-text);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.button::selection,
.button *::selection {
  background: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.button--ghost {
  color: var(--text);
  background: var(--button-ghost-bg);
  border: 1px solid var(--button-ghost-border);
}

.button--accent {
  background: var(--button-success-bg);
}

.button[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

.live-summary {
  display: grid;
  gap: 12px;
}

.live-summary__empty {
  margin: 0;
}

.live-summary__card {
  padding: 16px;
  border-radius: 20px;
  background: var(--item-bg-soft);
  border: 1px solid var(--line);
}

.live-summary__card strong {
  display: block;
  margin-bottom: 4px;
}

.result-card {
  margin-top: 18px;
  background: var(--result-bg);
}

.result-card__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(43, 142, 93, 0.14);
  border: 1px solid rgba(43, 142, 93, 0.2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-card h3 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  margin-top: 14px;
}

.result-card p {
  margin: 12px 0 0;
}

.result-card__details {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-card__detail {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.result-card__detail span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.result-card__detail strong {
  display: block;
  color: var(--text);
  line-height: 1.45;
}

.result-card__message {
  max-width: 48ch;
  color: var(--hero-copy);
}

.notification-status {
  white-space: pre-line;
}

#new-booking-button {
  margin-top: 18px;
}
