/* Customer four-step reservation flow */
.reservation-progress.compact-progress {
  --dot: 18px;
  --progress-fill: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: min(230px, 78%);
  gap: 0;
  margin: 16px auto 2px;
  padding: 0;
  overflow: visible;
}

.reservation-progress.compact-progress::before {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2);
  right: calc(var(--dot) / 2);
  top: calc(var(--dot) / 2);
  height: 2px;
  background: linear-gradient(90deg, var(--pink) 0 var(--progress-fill), #ffd3e2 var(--progress-fill) 100%);
  opacity: 1;
  transform: translateY(-50%);
  transition: background .22s ease;
}

.reservation-progress.compact-progress::after {
  content: none;
}

.reservation-progress.compact-progress li {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.reservation-progress.compact-progress em {
  display: none !important;
}

.reservation-progress.compact-progress span {
  position: relative;
  display: block;
  width: var(--dot);
  height: var(--dot);
  border: 2px solid #ffd3e2;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0;
  box-shadow: 0 3px 10px rgba(239, 63, 134, .08);
}

.reservation-progress.compact-progress li.active span,
.reservation-progress.compact-progress li.done span {
  border-color: var(--pink);
  background: var(--pink);
  box-shadow: 0 7px 18px rgba(239, 63, 134, .24);
}

.reservation-progress.compact-progress li.done span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -58%) rotate(45deg);
}

.start-progress.compact-progress {
  display: none !important;
}

.form-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  width: min(560px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 0;
}

.form-topbar .tiny-logo {
  justify-self: end;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.wizard-top-title {
  min-width: 0;
  text-align: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-back-button,
.form-topbar .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--pink-line);
  border-radius: 50%;
  background: #fff0f6;
  color: var(--pink);
  box-shadow: 0 8px 18px rgba(239, 63, 134, .08);
  font-size: 0;
  line-height: 0;
}

.wizard-back-button svg,
.form-topbar .text-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-topbar .text-button::before {
  content: "‹";
  display: block;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-1px);
}

.wizard-back-button:hover,
.form-topbar .text-button:hover {
  background: #ffe4ee;
  color: var(--pink-dark);
}

.form-topbar .text-button[data-action="back-to-start"] {
  display: none !important;
}

.reservation-flow {
  gap: 16px;
}

.step-block {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--pink-line);
  border-radius: 18px;
  background: #fff;
}

.step-block + .step-block {
  margin-top: 2px;
}

.step-block h4,
.success-detail-title {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.step-head {
  justify-items: center;
  gap: 4px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 16px;
}

.step-head p {
  margin: 0;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
}

.step-head h3 {
  display: none !important;
}

.step-head span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.step-4 .price-summary {
  margin-top: 12px;
}

.step-4 .submit-button {
  margin-top: 10px;
}

.step-4 .step-nav {
  grid-template-columns: minmax(0, 220px);
  justify-content: center;
}

.step-4 .step-nav .secondary-button {
  width: 100%;
}

.review-total-grid .summary-total,
.success-detail-grid .summary-total {
  padding: 10px 0 0;
}

.success-card {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.success-card > img.brand-logo.small {
  display: none !important;
}

.success-burst {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 35%, #fff0f6 36%, #ffd3e2 70%, transparent 71%);
  animation: successPulse .72s ease-out both;
}

.success-burst::before {
  content: "";
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 10px 24px rgba(239, 63, 134, .22);
  animation: successCheckBg .46s cubic-bezier(.2, .95, .25, 1.25) both;
}

.success-burst::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 14px;
  height: 25px;
  border: solid #fff;
  border-width: 0 4px 4px 0;
  transform: translate(-50%, -58%) rotate(45deg);
  animation: successCheck .42s ease-out .18s both;
}

.success-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  opacity: .9;
  animation: successDotOnce .78s ease-out both;
}

.success-burst span:nth-child(1) { --x: -38px; --y: -30px; animation-delay: .05s; }
.success-burst span:nth-child(2) { --x: 38px; --y: -24px; animation-delay: .12s; }
.success-burst span:nth-child(3) { --x: -42px; --y: 18px; animation-delay: .18s; }
.success-burst span:nth-child(4) { --x: 42px; --y: 18px; animation-delay: .24s; }
.success-burst span:nth-child(5) { --x: -8px; --y: -44px; animation-delay: .3s; }
.success-burst span:nth-child(6) { --x: 8px; --y: 42px; animation-delay: .36s; }

.success-summary {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
  text-align: left;
}

.success-detail-grid,
.success-detail-treatments {
  box-shadow: 0 8px 20px rgba(239, 63, 134, .045);
}

.success-card .button-grid {
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 12px;
}

.success-card .button-grid [data-action="copy-wa"] {
  order: 1;
}

.success-card .social-actions {
  order: 2;
  display: block !important;
}

.success-card .button-grid [data-action="print-invoice"] {
  order: 3;
}

.success-card .social-actions a:not(#waChatLink) {
  display: none !important;
}

.success-card #waChatLink {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
}

.success-card #waChatLink svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.success-card #waChatLink::after {
  content: none;
}

.success-chat-label {
  line-height: 1.2;
}

.success-copy-source {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@keyframes successPulse {
  0% { transform: scale(.82); opacity: .2; }
  55% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes successCheckBg {
  0% { transform: scale(.4); opacity: .2; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes successCheck {
  0% {
    opacity: 0;
    transform: translate(-50%, -58%) rotate(45deg) scale(.65);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -58%) rotate(45deg) scale(1);
  }
}

@keyframes successDotOnce {
  0% {
    transform: translate(-50%, -50%) scale(.75);
    opacity: 0;
  }
  35% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.55);
    opacity: 0;
  }
}

@media (max-width: 430px) {
  .reservation-progress.compact-progress {
    grid-template-columns: repeat(3, 1fr);
    width: min(220px, 82%);
    padding-bottom: 0;
  }

  .reservation-progress.compact-progress span {
    width: 18px;
    height: 18px;
  }

  .step-nav {
    grid-template-columns: 1fr 1fr;
  }

  .success-burst {
    width: 72px;
    height: 72px;
  }

  .success-burst::before {
    inset: 17px;
  }
}
