@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&family=Nunito:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #bb2649;
  --schedule-muted: #4a4a4a;
  --card-shadow: 0 4px 10px rgba(15, 15, 15, 0.08);
  --font-heading: "Montserrat", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", "Montserrat", system-ui, sans-serif;
  --vh: 1vh;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.95),
      rgba(250, 245, 242, 0.8) 45%
    ),
    #f7f5f2;
  color: #1f1d1f;
  overscroll-behavior: contain;
  overflow-anchor: none;
}

.schedule-hero h2,
.schedule-card__head h3,
.schedule-card__head p,
.schedule-card__head span,
.schedule-summary strong,
.schedule-summary span,
.status-note,
.summary-chip,
.step-pill {
  font-family: var(--font-heading);
}

.schedule-page {
  min-height: calc(var(--vh, 1vh) * 100);
  padding: 0rem 1rem 3rem;
  display: flex;
  justify-content: center;
}

.schedule-shell {
  width: min(1100px, 100%);
  border-radius: 40px;
  padding: 1.5rem 1.75rem 2rem;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 15, 15, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.schedule-progress-linear {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: -0.5rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.schedule-progress-linear__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.08);
  overflow: hidden;
  position: relative;
}

.schedule-progress-linear__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-color), #bb4368);
  transition: width 0.45s cubic-bezier(0.39, 0.575, 0.565, 1);
  box-shadow: 0 0 12px rgba(187, 38, 73, 0.4);
}

.schedule-progress-linear__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--schedule-muted);
  font-family: var(--font-heading);
}

.schedule-hero {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.schedule-hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.schedule-hero p {
  margin: 0.35rem 0 0;
  color: var(--schedule-muted);
  max-width: 520px;
  line-height: 1.5;
}

.schedule-hero__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.schedule-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
}

.progress-step {
  border-radius: 18px;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.progress-step p {
  margin: 0;
  font-size: 0.8rem;
  color: #444;
}

.progress-step span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
  background: rgba(187, 38, 73, 0.1);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.schedule-layout {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.schedule-steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}

.schedule-summary-wrapper {
  position: relative;
  width: 100%;
}

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1rem 0.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 15px rgba(15, 15, 15, 0.08);
}

.schedule-summary div {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.schedule-summary span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--schedule-muted);
}

.schedule-summary strong {
  margin: 0;
  font-size: 1rem;
  color: #1f1d1f;
}

.summary-panel div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
}

.summary-panel span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--schedule-muted);
}

.summary-panel strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f1d1f;
}

.step-pill {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #444;
  cursor: pointer;
  border-color: transparent;
}

.step-pill span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(187, 38, 73, 0.15);
  display: grid;
  place-items: center;
  color: var(--primary-color);
  font-weight: 700;
}

.step-pill.is-active {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(187, 38, 73, 0.15),
    rgba(255, 255, 255, 1)
  );
}

.schedule-stage {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.schedule-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  min-height: 220px;
}

.stage-content {
  position: relative;
  transition: opacity 0.35s ease;
}

/* Skeleton base (1:1 com layout real) */
.schedule-card .stage-skeleton {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  z-index: 10;
  border-radius: 22px;
}

.schedule-card.is-loading .stage-skeleton {
  display: flex;
}
.schedule-card.is-loading .stage-content {
  opacity: 0;
  pointer-events: none;
}

.sk-line,
.sk-pill,
.sk-card,
.sk-avatar,
.sk-btn {
  border-radius: 999px;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0)
    ),
    #f1ece7;
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.sk-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sk-head--compact {
  margin-top: 0.25rem;
}
.sk-head--center {
  align-items: center;
  text-align: center;
}

.sk-line {
  height: 12px;
  width: 70%;
}
.sk-line--title {
  height: 16px;
  width: 42%;
}
.sk-line--subtitle {
  height: 12px;
  width: 58%;
}
.sk-line--title-sm {
  height: 14px;
  width: 30%;
}
.sk-line--subtitle-sm {
  height: 11px;
  width: 48%;
}
.sk-line--label {
  height: 10px;
  width: 32%;
}

.sk-pill {
  height: 52px;
  width: 100%;
  border-radius: 18px;
}
.sk-pill--input {
  height: 50px;
}
.sk-pill--datepicker {
  height: 52px;
  max-width: 355px;
}
.sk-pill--select {
  height: 54px;
  max-width: 360px;
}

.sk-search {
  margin-top: 0.25rem;
}
.sk-datepicker {
  display: flex;
}
.sk-hours {
  display: flex;
}

.sk-category {
  border-radius: 26px;
  padding: 1.35rem;
  border: 1px solid rgba(187, 38, 73, 0.12);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sk-category__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sk-line--cat {
  width: 35%;
}
.sk-line--count {
  width: 20%;
  height: 10px;
}

.sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.sk-card {
  height: 110px;
  border-radius: 24px;
}

.sk-pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.sk-pro {
  border-radius: 24px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sk-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.sk-line--pro {
  width: 55%;
  height: 12px;
}

.sk-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sk-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sk-review {
  border-radius: 20px;
  border: 1px solid rgba(187, 38, 73, 0.12);
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sk-line--row {
  width: 90%;
  height: 12px;
}
.sk-line--row-short {
  width: 60%;
}

.sk-confirm {
  border-radius: 22px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sk-line--paragraph {
  width: 92%;
  height: 12px;
}

.sk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: auto;
}
.sk-actions--two {
  justify-content: space-between;
}

.sk-btn {
  height: 44px;
  width: 160px;
  border-radius: 999px;
}

.sk-btn--ghost {
  width: 120px;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .schedule-card .stage-skeleton {
    padding-bottom: 5.5rem;
  } /* respeita actions fixas */
  .sk-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}
.schedule-card__head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.schedule-card__head p {
  margin: 0;
  color: var(--schedule-muted);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 20px;
}

.schedule-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thank-you-card {
  background: linear-gradient(
      135deg,
      rgba(187, 38, 73, 0.08),
      rgba(255, 255, 255, 0.8)
    ),
    #fff;
  border-radius: 28px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(187, 38, 73, 0.3);
  box-shadow: 0 25px 45px rgba(187, 38, 73, 0.15);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.thank-you-card__icon {
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: 22px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9),
    rgba(187, 38, 73, 0.2)
  );
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  max-width: 64px;
  margin: 0 auto;
  width: 100%;
}

.thank-you-card__icon svg {
  width: 42px;
  height: 42px;
}

.thank-you-card__text h4 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #1f1d1f;
}

.thank-you-card__text p {
  margin: 0.35rem 0 0;
  color: #2d2a2d;
  line-height: 1.5;
}

.search-field {
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  padding: 0.5rem;
  background: #fafafa;
}

#input-search-service {
  width: 100%;
  border: none;
  font-size: 1rem;
  background: transparent;
  outline: none;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.service-category {
  margin-top: 15px;
}

.service-category__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-category__header strong {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

.service-category__header span {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--schedule-muted);
}

.service-category__grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
}

.service-card {
  border-radius: 20px;
  padding: 0.9rem 0.95rem;
  background: white;
  display: grid;
  gap: 0.35rem;
  box-shadow: 0 2px 10px rgba(15, 15, 15, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.704);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(187, 38, 73, 0.15);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-2px);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(187, 38, 73, 0.25),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--schedule-muted);
}

.service-card__price {
  font-weight: 700;
  color: #1f1d1f;
  font-size: 0.9rem;
}

.service-card__details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-card__details h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.service-card__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary-color);
  font-weight: 600;
}

.service-card__duration {
  color: var(--schedule-muted);
  font-size: 0.7rem;
}

.service-card.plan-item-active .service-card__tag,
.service-card.plan-item-active .service-card__price {
  color: var(--primary-color);
}

.service-card.plan-item-active::after {
  opacity: 1;
}

.service-card.plan-item-active {
  border-color: rgba(187, 38, 73, 0.8);
  box-shadow: 0 20px 45px rgba(187, 38, 73, 0.16);
  background: linear-gradient(135deg, #fff8f5, #fff2ef);
}

.professionals-list {
  list-style: none;
  padding: 5px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.professional-card {
  border-radius: 24px;
  padding: 1rem 1.1rem;
  background-color: white;
  border: 1px solid rgba(165, 165, 165, 0.35);
  box-shadow: 0 2px 8px rgba(15, 15, 15, 0.08);
  display: flex;
  gap: 0.9rem;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.professional-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 80% 10%,
    rgba(255, 255, 255, 0.4),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.professional-card:hover::before {
  opacity: 1;
}

.professional-card .professional-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(15, 15, 15, 0.2);
}

.professional-card .professional-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.professional-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

.professional-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--schedule-muted);
  line-height: 1.3;
}

.professional-card.plan-item-active {
  border-color: rgba(187, 38, 73, 0.9);
  box-shadow: 0 3px 10px rgba(187, 38, 73, 0.25);
  background: linear-gradient(
    150deg,
    rgba(187, 38, 73, 0.12),
    rgba(255, 255, 255, 0.95)
  );
}

.availability-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.availability-panel__header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.availability-panel__header strong {
  font-size: 1rem;
}

.service-category__header strong::before {
  content: "";
  display: flex;
  height: 15px;
  width: 4px;
  background: var(--primary-color);
  border-radius: 30px;
  overflow: hidden;
}

.availability-panel__status {
  font-size: 0.8rem;
  color: var(--schedule-muted);
}

.heatmap-calendar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.heatmap-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.heatmap-calendar__header strong {
  font-size: 0.95rem;
  text-transform: capitalize;
}

.heatmap-calendar__nav {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #1f1d1f;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.heatmap-calendar__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.heatmap-calendar__nav:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 15, 15, 0.1);
}

.heatmap-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--schedule-muted);
}

.heatmap-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.heatmap-day {
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 38px;
  padding: 0.35rem 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f1d1f;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.heatmap-day span {
  pointer-events: none;
}

.heatmap-day.is-outside {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.heatmap-day.is-unavailable {
  cursor: not-allowed;
  opacity: 0.45;
}

.heatmap-day.is-selected {
  outline: solid 2px var(--primary-color);
}

.heatmap-day.is-loading {
  opacity: 0.6;
  cursor: progress;
}

.heatmap-day:hover:not(.is-unavailable):not(.is-outside) {
  transform: translateY(-1px);
}

.heatmap-day:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.heat-0 {
  background: #e6e6e6;
}

.heat-1,
.heat-2,
.heat-3 {
  background: rgba(187, 38, 73, 0.25);
}

.heat-4 {
  background: rgba(187, 38, 73, 0.45);
  color: #fff;
}

.heatmap-calendar__legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--schedule-muted);
}

.heatmap-legend {
  display: grid;
  grid-template-columns: repeat(2, 14px);
  gap: 0.3rem;
}

.heatmap-legend__cell {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.calendar-selector {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.calendar-selector__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.calendar-selector__label label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f1d1f;
}

.calendar-selector__label span {
  font-size: 0.8rem;
  color: var(--schedule-muted);
}

#step3DatePicker {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 18px;
  padding: 13px 0.8rem;
  font-size: 0.95rem;
  color: #1f1d1f;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 355px;
}

#step3DatePicker::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.date-label {
  font-size: 1.2rem;
  font-weight: 600;
}

.free-hours__list {
  width: min(360px, 100%);
  border-radius: 18px;
  padding: 15px 1rem 15px 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-size: 1rem;
  color: #1f1d1f;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 2.5l5.5 4 5.5-4' stroke='%23272B30' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 18px) center;
  cursor: pointer;
}

.free-hours__list:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.hours-chip {
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: #fff;
}

.hours-chip.active {
  border-color: var(--primary-color);
  background: rgba(187, 38, 73, 0.1);
  color: var(--primary-color);
}

.free-hours {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status-note {
  color: var(--schedule-muted);
  font-size: 0.85rem;
}

.schedule-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 20px;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.input-label-row label {
  font-weight: 600;
}

.input-error {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--primary-color);
}

.input-error span {
  display: inline-block;
}

.schedule-form input {
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(187, 38, 73, 0.2);
  padding: 1.3rem;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.85)
  );
  box-shadow: inset 0 0 0 1px rgba(187, 38, 73, 0.05);
}

.review-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.thank-you-card {
  border-radius: 22px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(
    145deg,
    rgba(187, 38, 73, 0.12),
    rgba(255, 255, 255, 0.95)
  );
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 15, 15, 0.12);
  margin-top: 20px;
}

.status-note {
  color: var(--schedule-muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .schedule-page {
    padding: 0rem;
  }

  .schedule-shell {
    padding: 1.5rem;
  }

  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .schedule-timeline {
    order: -1;
  }

  .timeline-step {
    flex-direction: row;
    gap: 0.35rem;
  }

  .timeline-step div {
    display: none;
  }
}

@media (max-width: 720px) {
  .schedule-progress-linear {
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .schedule-summary-wrapper {
    display: none;
  }

  .schedule-stage .step-actions {
    position: fixed;
    bottom: 1rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 1100;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 25px rgba(15, 15, 15, 0.25);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .schedule-stage .step-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .schedule-stage .step-actions .btn + .btn {
    margin-left: 0.5rem;
  }
}

.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 5000;
  pointer-events: none;
}

.toast {
  border-radius: 15px;
  padding: 0.9rem 1.1rem;
  background: rgba(20, 20, 20, 0.92);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 18px 35px rgba(15, 15, 15, 0.3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--error {
  background: linear-gradient(180deg, var(--primary-color), #991d43);
}

@media (max-width: 640px) {
  .schedule-shell {
    padding: 1.25rem;
  }

  .service-category__grid {
    grid-template-columns: 1fr;
  }

  .plan-item {
    padding: 1rem;
  }

  .schedule-timeline {
    padding: 1rem;
  }

  .schedule-card {
    padding: 0rem;
  }

  .schedule-card__body {
    gap: 0.75rem;
  }

  .step-actions {
    justify-content: space-between;
  }

  .schedule-stage {
    gap: 0.75rem;
  }
}

/* ===== LOADING NOVO (sem skeleton) ===== */
.schedule-card {
  position: relative;
}

.stage-loading {
  display: none;
  position: relative;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.4rem auto;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.96),
    rgba(243, 244, 249, 0.98)
  );
  border: 1px solid rgba(187, 38, 73, 0.2);
  box-shadow: 0 4px 15px rgba(15, 15, 15, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  width: min(560px, 100%);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stage-loading::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  background: radial-gradient(
    circle at top right,
    rgba(187, 38, 73, 0.25),
    transparent 55%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.schedule-card.is-busy .stage-loading::before {
  opacity: 1;
}

.schedule-card.is-busy .stage-loading {
  display: flex;
}

.stage-loading__bridge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.stage-loading__line {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.stage-loading__line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  width: 130%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(187, 38, 73, 0.45),
    transparent
  );
  animation: stage-loading-swipe 1.6s ease-in-out infinite;
}

.stage-loading__line--short::after {
  width: 90%;
}

.stage-loading__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(187, 38, 73, 0.15);
  animation: stage-loading-pulse 1.4s ease-in-out infinite;
}

.stage-loading__panel {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  align-items: center;
  padding: 0.15rem 0.5rem;
  flex-direction: column;
}

.stage-loading__spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--primary-color);
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
}

.stage-loading__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stage-loading__text strong {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.stage-loading__text span {
  color: var(--schedule-muted);
  font-size: 0.95rem;
  line-height: 1.3;
}

.stage-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.schedule-card.is-busy .stage-body {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stage-loading-swipe {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes stage-loading-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ===== transição bonita de entrada do conteúdo ===== */
.schedule-card .stage-content {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.schedule-card.is-ready .stage-content {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===== empty state no step 3 ===== */
.empty-state {
  margin-top: 0.85rem;
  border-radius: 18px;
  padding: 1rem;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 460px;
}

.empty-state__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(187, 38, 73, 0.12);
  margin-bottom: 0.35rem;
}

.empty-state strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.empty-state span {
  color: var(--schedule-muted);
  font-size: 0.9rem;
}

/* ===== responsivo ===== */
@media (max-width: 720px) {
  .stage-loading {
    width: 100%;
    margin: 1rem 0;
    padding: 1.2rem;
  }

  .stage-loading__bridge {
    gap: 0.35rem;
  }

  .stage-loading__spinner {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 540px) {
  .stage-loading__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stage-loading__bridge {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .stage-loading__spinner,
  .stage-loading__dot,
  .stage-loading__line::after {
    animation: none;
  }
  .schedule-card .stage-content {
    transition: none;
    filter: none;
    transform: none;
    opacity: 1;
  }
}

/* DESATIVA skeleton antigo completamente */
.schedule-card .stage-skeleton {
  display: none !important;
}
.schedule-card.is-loading .stage-skeleton {
  display: none !important;
}
.schedule-card.is-loading .stage-content {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (max-width: 720px) {
  /* evita que o fixed vire "relativo" a um ancestral com transform/filter */
  .schedule-card .stage-content {
    transform: none !important;
    filter: none !important;
  }

  .schedule-stage .step-actions {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1100;
  }

  /* espaço pro conteúdo não ficar atrás da barra */
  .schedule-card {
    padding-bottom: 6.5rem;
  }
}
