.service-card {
  --mx: 50%;
  --my: 50%;
  --bx: 50%;
  --by: 50%;
  --bs: cover;
}

.service-card .extra button.button {
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.fz-book {
  grid-area: table;
  width: calc(4 * 220px);
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  color: #1c1a12;
  font-family: Lora, Georgia, serif;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid #6d6556;
  background: #f7f1e8;
  padding: 0.85rem 0.95rem 1.1rem;
}
.fz-stage,
.fz-steps,
.fz-summary,
.fz-when,
.fz-form,
.fz-choice,
.fz-ok {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.fz-stage {
  flex: none;
  min-height: 0;
  overflow: visible;
}

.fz-fade {
  animation: fz-fade 0.22s ease;
}

@keyframes fz-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fz-fade { animation: none; }
}

.fz-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.85rem;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f7f1e8;
  padding: 0.15rem 0 0.45rem;
}

.fz-step-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.45rem;
}

.fz-step-nav {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.fz-why {
  flex-basis: 100%;
  margin: 0;
  text-align: right;
  font-size: 0.86rem;
  color: #3f3a30;
}
.fz-why.is-ok,
.fz-hint.is-ok { color: #145c32; font-weight: 650; }
.fz-hint { margin: 0; color: #3f3a30; }

.fz-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 0;
  color: #1c1a12;
  font-family: "House of cards", serif;
  font-size: 1.05rem;
  padding: 0.15rem 0.2rem;
  min-height: 44px;
  transition: color 0.16s ease;
}

.fz-step:disabled { cursor: default; }
.fz-step:not(:disabled) { cursor: pointer; }
.fz-step.is-current { color: #1c1a12; }
.fz-step:not(.is-current):not(.is-done) { color: #3f3a30; }
.fz-step:not(:disabled):hover i,
.fz-step:not(:disabled):focus-visible i {
  background: #ead5ac;
  border-color: #8a7040;
}

.fz-step i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid #b7a377;
  font-style: normal;
  background: #f7f1e8;
  color: #1c1a12;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.fz-step.is-current i,
.fz-step.is-done i {
  background: linear-gradient(73.9deg, #b7a377 19.48%, #ead5ac 62.26%, #b7a377 105.04%);
  color: #1c1a12;
}

.fz-summary,
.fz-form,
.fz-ok {
  background: #fffdf8;
  border: 1px solid #6d6556;
  color: #1c1a12;
  padding: 0.9rem;
}

.fz-summary {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.fz-choice,
.fz-slots,
.fz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fz-choice button,
.fz-slot,
.fz-back,
.fz-dark,
.fz-gold,
.fz-go {
  min-height: 44px;
  border: 1px solid #2d2910;
  background: #fff;
  color: #1c1a12;
  padding: 0.45rem 0.7rem;
  font: inherit;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.fz-choice button.is-on,
.fz-slot.is-on,
.fz-cal button.is-on {
  background: #2d2910;
  color: #f3ead7;
}

.fz-choice button:not(:disabled):hover,
.fz-slot:not(.is-on):not(:disabled):hover,
.fz-back:not(:disabled):hover {
  background: #ead5ac;
  border-color: #8a7040;
}

.fz-slot.is-on:hover,
.fz-cal button.is-on:hover,
.fz-gold:hover,
.fz-dark:hover {
  background: #3d3820;
  color: #f7f1e8;
}

.fz-go {
  font-family: "House of cards", serif;
  letter-spacing: 0.03em;
  background: #fffdf8;
}
.fz-go.is-next {
  background: #2d2910;
  color: #f7f1e8;
}
.fz-go:not(:disabled):hover {
  background: #ead5ac;
  color: #1c1a12;
  border-color: #8a7040;
  transform: translateY(-1px);
}
.fz-go.is-next:not(:disabled):hover {
  background: #3d3820;
  color: #f7f1e8;
}
.fz-go:disabled,
.fz-slot:disabled {
  background: #e4ddd0;
  color: #3f3a30;
  border-color: #b7b0a4;
  cursor: not-allowed;
  transform: none;
}
.fz-go:focus-visible,
.fz-month-nav:focus-visible,
.fz-cal button:focus-visible,
.fz-slot:focus-visible {
  outline: 2px solid #8a7040;
  outline-offset: 2px;
}

.fz-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.fz-cal .dow {
  text-align: center;
  font-size: 0.78rem;
  color: #3f3a30;
  padding-bottom: 0.15rem;
}

.fz-cal button {
  min-width: 0;
  min-height: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid #2d2910;
  background: #fff;
  color: #1c1a12;
  font: inherit;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.fz-cal button.has:not(:disabled):hover {
  background: #ead5ac;
  border-color: #8a7040;
}

.fz-cal button.has {
  box-shadow: inset 0 -3px 0 #8a7040;
}

.fz-cal button:disabled {
  color: #4a453c;
  border-color: #d5cec2;
  background: #efe8dc;
  box-shadow: none;
  cursor: not-allowed;
}

.fz-gold {
  background: #2d2910;
  color: #f7f1e8;
  border: 0;
  font-family: "House of cards", serif;
  letter-spacing: 0.04em;
}

.fz-dark {
  background: #2d2910;
  color: #f7f1e8;
}

.fz-form {
  display: grid;
  gap: 0.65rem;
}
.fz-form h3,
.fz-ok h3 {
  font-family: "House of cards", serif;
  font-weight: normal;
  font-size: 1.7rem;
  margin: 0;
  color: #1c1a12;
}

.fz-form input,
.fz-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  min-height: 44px;
  background: #fff;
  color: #1c1a12;
  border: 1px solid #3d382c;
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.fz-note { color: #1c1a12; }
.fz-error { color: #8d1d1d; font-weight: 650; }
.fz-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

a.fz-staff-entry {
  color: inherit;
  font-size: 0.72rem;
  margin-left: 0.75rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
a.fz-staff-entry:hover,
a.fz-staff-entry:focus-visible {
  text-decoration: underline;
}

.fz-when {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: start;
}
.fz-cal-card {
  border: 1px solid #2d2910;
  background: #fffdf8;
  padding: 0.55rem;
  max-width: 320px;
}
.fz-month {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  align-items: center;
  gap: 0.2rem;
  background: #2d2910;
  color: #f7f1e8;
  margin: -0.55rem -0.55rem 0.55rem;
  padding: 0.15rem 0.35rem;
}
.fz-month strong {
  font-family: "House of cards", serif;
  font-size: 1.2rem;
  font-weight: normal;
  text-align: center;
  color: #f7f1e8;
}
.fz-month-nav {
  min-height: 2.2rem;
  height: 2.2rem;
  border: 1px solid transparent;
  background: transparent;
  color: #f7f1e8;
  font-size: 1.45rem;
  line-height: 1;
  padding: 0;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.fz-month-nav:not(:disabled):hover,
.fz-month-nav:not(:disabled):focus-visible {
  background: #3d3820;
  border-color: #ead5ac;
  color: #f7f1e8;
}
.fz-month-nav:disabled {
  background: transparent;
  color: #c4bba6;
  border-color: transparent;
  cursor: not-allowed;
  opacity: 1;
}
.fz-times { min-width: 0; }

.fz-choice { display: grid; grid-template-columns: 1fr; }
.fz-any { justify-self: start; }
.fz-barber {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.7rem;
  text-align: left;
  align-items: center;
  height: auto;
  background: #fff;
}
.fz-barber img,
.fz-avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.fz-avatar {
  display: grid;
  place-items: center;
  background: #2d2910;
  color: #f7f1e8;
  font-family: "House of cards", serif;
}
.fz-barber strong { display: block; }
.fz-barber small {
  display: block;
  color: #1c1a12;
  font-size: 0.86rem;
  line-height: 1.35;
}
.fz-barber.is-on,
.fz-any.is-on { background: #2d2910; color: #f7f1e8; }
.fz-barber.is-on small,
.fz-barber.is-on em { color: #f7f1e8; }

.fz-lock {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #6d6556;
  padding: 0.55rem 0.7rem;
  background: #fff;
}
.fz-lock button {
  background: transparent;
  color: #1c1a12;
  border: 1px solid #2d2910;
}
.fz-form input:read-only,
.fz-form textarea:read-only { background: #efe8dc; }
.fz-check { display: flex; gap: 0.5rem; align-items: center; }
.fz-fill {
  display: grid;
  gap: 0.65rem;
}
.fz-fill .fz-go { justify-self: start; }
.fz-login-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.fz-check input { width: 1rem; height: 1rem; min-height: 0; }
.fz-review {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.4rem;
}
.fz-review li {
  display: grid;
  gap: 0.2rem;
  align-content: start;
}
.fz-review li.is-wide { grid-column: 1 / -1; }
.fz-review span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f3a30;
}
.fz-review strong { font-weight: 650; overflow-wrap: anywhere; }
.fz-ok a.fz-dark { display: inline-flex; align-items: center; text-decoration: none; }
.fz-ok .fz-back { margin-top: 0.35rem; }

@media (max-width: 920px) {
  .fz-book { width: calc(3 * 220px); }
}
@media (max-width: 700px) {
  .fz-book { width: calc(2 * 220px); }
}
@media (max-width: 490px) {
  .fz-book { width: 100%; }
}

@media (max-width: 640px) {
  .fz-when,
  .fz-review { grid-template-columns: 1fr; }
  .fz-cal-card { max-width: none; }
  .fz-step-nav { width: 100%; }
  .fz-step-nav .fz-go { flex: 1; }
  .fz-why { text-align: left; }
}
