.pm-appointment-modal[hidden] {
  display: none;
}

.pm-appointment-page-hero {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: clamp(1.75rem, 3.5vw, 2.8rem) 0 clamp(0.8rem, 2vw, 1.25rem);
  text-align: center;
}

.pm-appointment-page-hero__kicker,
.pm-appointment-page-hero__title,
.pm-appointment-page-hero__lead {
  margin: 0;
}

.pm-appointment-page-hero__kicker {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pm-appointment-page-hero__title {
  margin-top: 0.7rem;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
}

.pm-appointment-page-hero__lead {
  max-width: 43rem;
  margin: 0.85rem auto 0;
  color: #475569;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.55;
}

.pm-appointment-page-shell {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.pm-appointment-page-booking {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(2.2rem, 4vw, 4.6rem);
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.08);
}

.pm-appointment-page-booking:not(.has-selection) {
  width: min(100%, 760px);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.pm-appointment-page-booking:not(.has-selection) .pm-appointment-page-booking__control-grid {
  grid-template-columns: 1fr;
}

.pm-appointment-page-booking[hidden],
.pm-appointment-page-booking [hidden] {
  display: none !important;
}

.pm-appointment-page-booking__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(2.2rem, 4vw, 4.2rem);
}

.pm-appointment-page-booking__doctor {
  min-width: 0;
}

.pm-appointment-page-booking__photo-wrap {
  overflow: hidden;
  border-radius: 1rem;
  background: #f1f3f7;
  aspect-ratio: 1.62 / 1;
}

.pm-appointment-page-booking__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.pm-appointment-page-booking__doctor-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  margin-top: clamp(1.8rem, 3vw, 2.7rem);
  align-items: start;
}

.pm-appointment-page-booking__doctor-name,
.pm-appointment-page-booking__doctor-specialty,
.pm-appointment-page-booking__doctor-place,
.pm-appointment-page-calendar__title,
.pm-appointment-page-slots__head h2,
.pm-appointment-page-slots__head p,
.pm-appointment-page-slots__kicker,
.pm-appointment-page-checkout__head h2,
.pm-appointment-page-checkout__head p,
.pm-appointment-page-success h2,
.pm-appointment-page-success p {
  margin: 0;
}

.pm-appointment-page-booking__doctor-name {
  color: #0f172a;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 900;
  line-height: 1.18;
}

.pm-appointment-page-booking__doctor-specialty {
  margin-top: 1.25rem;
  color: #a8afbd;
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.pm-appointment-page-booking__doctor-place {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  border-radius: 0.5rem;
  background: #e8f2ff;
  color: #1761d1;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.25;
}

.pm-appointment-page-booking__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.2rem;
  white-space: nowrap;
}

.pm-appointment-page-booking__rating span {
  color: #ffc107;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: 0.03em;
}

.pm-appointment-page-booking__rating strong {
  color: #0f172a;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
}

.pm-appointment-page-calendar {
  min-width: 0;
  padding: clamp(1.35rem, 2.6vw, 2.15rem);
  border-radius: 0.35rem;
  background: #f3f5f9;
}

.pm-appointment-page-calendar__head {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem;
  gap: 0.6rem;
  align-items: center;
}

.pm-appointment-page-calendar__title {
  color: #1f2933;
  text-align: center;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
}

.pm-appointment-page-calendar__nav {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
}

.pm-appointment-page-calendar__nav:disabled {
  color: #c7cbd3;
  cursor: default;
}

.pm-appointment-page-calendar__weekdays,
.pm-appointment-page-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pm-appointment-page-calendar__weekdays {
  gap: 0.35rem;
  margin-top: 1.35rem;
}

.pm-appointment-page-calendar__weekdays span {
  color: #24272d;
  text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 900;
}

.pm-appointment-page-calendar__days {
  gap: 0.55rem 0.38rem;
  margin-top: 1.2rem;
}

.pm-appointment-page-calendar__day {
  display: inline-flex;
  width: clamp(2.35rem, 4vw, 3.25rem);
  height: clamp(2.35rem, 4vw, 3.25rem);
  align-items: center;
  justify-content: center;
  justify-self: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: #b4bac4;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
}

.pm-appointment-page-calendar__day.is-current-month {
  color: #9fa6b2;
}

.pm-appointment-page-calendar__day.has-slots {
  background: #dceafa;
  color: #4b5563;
  cursor: pointer;
}

.pm-appointment-page-calendar__day.is-selected {
  background: #2f6bed;
  color: #ffffff;
}

.pm-appointment-page-calendar__day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 2px rgba(47, 107, 237, 0.35);
}

.pm-appointment-page-booking__controls {
  margin-top: 0;
}

.pm-appointment-page-booking:not(.has-selection) .pm-appointment-page-booking__grid,
.pm-appointment-page-booking.has-doctor-results .pm-appointment-page-booking__grid {
  display: none;
}

.pm-appointment-page-booking__switch {
  display: inline-grid;
  width: min(100%, 24rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #dfeafa;
}

.pm-appointment-page-booking__switch-btn {
  min-height: 2.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #34435a;
  font-weight: 800;
  cursor: pointer;
}

.pm-appointment-page-booking__switch-btn.is-active {
  background: #2f6bed;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 107, 237, 0.22);
}

.pm-appointment-page-booking__control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.15rem;
}

.pm-appointment-page-booking__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.42rem;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 800;
}

.pm-appointment-page-booking__field--full,
.pm-appointment-page-booking__field[data-appointment-page-service-field] {
  grid-column: 1 / -1;
}

.pm-appointment-page-booking__field input,
.pm-appointment-page-booking__field select,
.pm-appointment-page-booking__field textarea {
  width: 100%;
  min-height: 4rem;
  border: 0;
  border-radius: 0.9rem;
  background: #f1f3f7;
  color: #0f172a;
  font: inherit;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  font-weight: 700;
  outline: none;
  padding: 0 1.2rem;
}

.pm-appointment-page-booking__field textarea {
  min-height: 7rem;
  padding-top: 1rem;
  resize: vertical;
}

.pm-appointment-page-booking__field input:focus,
.pm-appointment-page-booking__field select:focus,
.pm-appointment-page-booking__field textarea:focus {
  box-shadow: 0 0 0 4px rgba(47, 107, 237, 0.12);
}

.pm-appointment-page-booking__field small,
.pm-appointment-page-form small {
  color: #dc2626;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pm-appointment-page-slots {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: #f8fbff;
}

.pm-appointment-page-slots__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.pm-appointment-page-slots__kicker {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pm-appointment-page-slots__head h2 {
  margin-top: 0.3rem;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 900;
}

.pm-appointment-page-slots__head p {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

.pm-appointment-page-slots__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.pm-appointment-page-slot {
  display: flex;
  min-height: 3.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.8rem;
  background: #dceafa;
  color: #105bd8;
  font-weight: 900;
  cursor: pointer;
}

.pm-appointment-page-slot.is-selected {
  background: #2f6bed;
  color: #ffffff;
}

.pm-appointment-page-slot small {
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.pm-appointment-page-doctor-results {
  margin-top: clamp(1.4rem, 3vw, 2rem);
}

.pm-appointment-page-doctor-results__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.pm-appointment-page-doctor-results__head h2,
.pm-appointment-page-doctor-results__head p,
.pm-appointment-page-doctor-card__name,
.pm-appointment-page-doctor-card__specialty,
.pm-appointment-page-doctor-card__place,
.pm-appointment-page-doctor-card__slots-head span,
.pm-appointment-page-doctor-card__slots-head strong {
  margin: 0;
}

.pm-appointment-page-doctor-results__head h2 {
  margin-top: 0.3rem;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.15;
}

.pm-appointment-page-doctor-results__head > p {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.pm-appointment-page-doctor-results__list {
  display: grid;
  gap: 1rem;
}

.pm-appointment-page-doctor-results__empty {
  padding: 1.2rem;
  border-radius: 0.9rem;
  background: #f8fbff;
  color: #475569;
  font-weight: 800;
  line-height: 1.45;
}

.pm-appointment-page-doctor-card {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.pm-appointment-page-doctor-card.is-active {
  border-color: #b9d4ff;
  box-shadow: 0 18px 42px rgba(47, 107, 237, 0.11);
}

.pm-appointment-page-doctor-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.85fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: start;
}

.pm-appointment-page-doctor-card__person {
  min-width: 0;
}

.pm-appointment-page-doctor-card__photo-wrap {
  overflow: hidden;
  border-radius: 0.9rem;
  background: #f1f3f7;
  aspect-ratio: 1.7 / 1;
}

.pm-appointment-page-doctor-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.pm-appointment-page-doctor-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 1rem;
  align-items: start;
  margin-top: 1rem;
}

.pm-appointment-page-doctor-card__name {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.18;
}

.pm-appointment-page-doctor-card__specialty {
  margin-top: 0.55rem;
  color: #8f98a8;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}

.pm-appointment-page-doctor-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.pm-appointment-page-doctor-card__rating span {
  color: #ffc107;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.pm-appointment-page-doctor-card__rating strong {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.pm-appointment-page-doctor-card__place {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  padding: 0.42rem 0.7rem;
  border-radius: 0.5rem;
  background: #e8f2ff;
  color: #1761d1;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.pm-appointment-page-doctor-card__calendar {
  padding: 1rem;
  border-radius: 0.85rem;
}

.pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__head {
  grid-template-columns: 2.1rem minmax(0, 1fr) 2.1rem;
}

.pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__title {
  font-size: 1.25rem;
}

.pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__nav {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.7rem;
}

.pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__weekdays {
  gap: 0.25rem;
  margin-top: 1rem;
}

.pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__weekdays span {
  font-size: 0.92rem;
}

.pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__days {
  gap: 0.38rem 0.22rem;
  margin-top: 0.85rem;
}

.pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__day {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.95rem;
}

.pm-appointment-page-doctor-card__slots {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #f8fbff;
}

.pm-appointment-page-doctor-card__slots-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.pm-appointment-page-doctor-card__slots-head span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pm-appointment-page-doctor-card__slots-head strong {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 900;
}

.pm-appointment-page-doctor-card__slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.pm-appointment-page-checkout {
  margin-top: 2rem;
}

.pm-appointment-page-checkout__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pm-appointment-page-checkout__back {
  min-height: 2.7rem;
  border: 0;
  border-radius: 999px;
  background: #e8f2ff;
  color: #1761d1;
  font-weight: 900;
  padding: 0 1rem;
  cursor: pointer;
}

.pm-appointment-page-checkout__head h2,
.pm-appointment-page-success h2 {
  margin-top: 0.3rem;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 900;
}

.pm-appointment-page-checkout__head p,
.pm-appointment-page-success p {
  margin-top: 0.25rem;
  color: #64748b;
  font-weight: 700;
}

.pm-appointment-page-checkout__doctor {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #f8fbff;
}

.pm-appointment-page-booking__field-label {
  margin: 0 0 0.8rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 900;
}

.pm-appointment-page-checkout__doctor-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.pm-appointment-page-checkout__doctor-card {
  display: grid;
  min-width: 13rem;
  max-width: 15rem;
  grid-template-rows: 9rem auto;
  gap: 0.65rem;
  border: 1px solid #c7dcff;
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.55rem;
  text-align: left;
  cursor: pointer;
}

.pm-appointment-page-checkout__doctor-card.is-selected {
  border-color: #2f6bed;
  box-shadow: 0 0 0 2px rgba(47, 107, 237, 0.12);
}

.pm-appointment-page-checkout__doctor-card img {
  width: 100%;
  height: 100%;
  border-radius: 0.7rem;
  object-fit: cover;
  object-position: center top;
  background: #f1f3f7;
}

.pm-appointment-page-checkout__doctor-card h3,
.pm-appointment-page-checkout__doctor-card p {
  margin: 0;
}

.pm-appointment-page-checkout__doctor-card h3 {
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.15;
}

.pm-appointment-page-checkout__doctor-card p {
  margin-top: 0.25rem;
  color: #1761d1;
  font-size: 0.78rem;
  font-weight: 800;
}

.pm-appointment-page-form {
  margin-top: 1.3rem;
}

.pm-appointment-page-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.pm-appointment-page-form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  color: #334155;
  font-weight: 700;
  line-height: 1.35;
}

.pm-appointment-page-form__consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
}

.pm-appointment-page-form__submit {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  border: 0;
  border-radius: 999px;
  background: #2f6bed;
  color: #ffffff;
  font-weight: 900;
  padding: 0 1.8rem;
  cursor: pointer;
}

.pm-appointment-page-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pm-appointment-page-success {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border-radius: 1rem;
  background: #f0fdf4;
}

/* Rebuilt appointment page workspace. */
.pm-appointment-page-hero {
  display: grid;
  width: min(100% - 2rem, 1640px);
  min-height: auto;
  align-content: center;
  margin: 0 auto;
  padding: clamp(1.7rem, 3vw, 3rem) 0 clamp(1rem, 2vw, 1.6rem);
  text-align: left;
}

.pm-appointment-page-hero__title {
  font-size: clamp(2.25rem, 3.4vw, 3.35rem);
}

.pm-appointment-page-hero__lead {
  margin-left: 0;
}

.pm-appointment-page-shell {
  width: min(100% - 2rem, 1640px);
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 7vw, 5rem);
}

.pm-appointment-page-booking,
.pm-appointment-page-booking:not(.has-selection) {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pm-appointment-page-workspace {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.7fr) minmax(20rem, 0.76fr);
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  align-items: start;
}

.pm-appointment-page-filter,
.pm-appointment-page-stage,
.pm-appointment-page-side {
  min-width: 0;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.07);
}

.pm-appointment-page-filter,
.pm-appointment-page-side {
  position: sticky;
  top: 5.75rem;
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.pm-appointment-page-stage {
  padding: clamp(1rem, 1.8vw, 1.5rem);
}

.pm-appointment-page-filter__head,
.pm-appointment-page-side__empty,
.pm-appointment-page-stage-empty {
  min-width: 0;
}

.pm-appointment-page-filter__head h2,
.pm-appointment-page-side__empty h2,
.pm-appointment-page-stage-empty h2,
.pm-appointment-page-side__empty p,
.pm-appointment-page-stage-empty p {
  margin: 0;
}

.pm-appointment-page-filter__head h2,
.pm-appointment-page-side__empty h2,
.pm-appointment-page-stage-empty h2 {
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.12;
}

.pm-appointment-page-booking__controls {
  margin-top: 1rem;
}

.pm-appointment-page-booking__switch {
  width: 100%;
}

.pm-appointment-page-booking__control-grid,
.pm-appointment-page-booking:not(.has-selection) .pm-appointment-page-booking__control-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.pm-appointment-page-booking__field input,
.pm-appointment-page-booking__field select,
.pm-appointment-page-booking__field textarea {
  min-height: 3.35rem;
  border-radius: 0.8rem;
  font-size: 1rem;
}

.pm-appointment-page-stage-empty {
  display: flex;
  min-height: clamp(22rem, 42vw, 34rem);
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px dashed rgba(147, 197, 253, 0.82);
  border-radius: 0.95rem;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(236, 254, 255, 0.72)),
    #f8fbff;
}

.pm-appointment-page-booking.has-selection .pm-appointment-page-stage-empty {
  display: none;
}

.pm-appointment-page-stage-empty__mark {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background:
    linear-gradient(90deg, rgba(47, 107, 237, 0.95) 0 35%, transparent 35% 100%),
    linear-gradient(180deg, #dbeafe, #eff6ff);
  box-shadow: 0 16px 34px rgba(47, 107, 237, 0.22);
}

.pm-appointment-page-stage-empty > p:last-child,
.pm-appointment-page-side__empty > p:last-child {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.pm-appointment-page-booking__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.86fr);
  gap: clamp(1rem, 1.8vw, 1.35rem);
  margin-top: 0;
  padding: 0;
  border: 0;
}

.pm-appointment-page-booking__doctor,
.pm-appointment-page-calendar {
  border-radius: 0.95rem;
}

.pm-appointment-page-booking__photo-wrap {
  aspect-ratio: 1.48 / 1;
  border-radius: 0.85rem;
}

.pm-appointment-page-booking__doctor-info {
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.pm-appointment-page-booking__doctor-name {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.pm-appointment-page-booking__doctor-specialty {
  margin-top: 0.6rem;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.pm-appointment-page-booking__doctor-place {
  font-size: 0.92rem;
}

.pm-appointment-page-calendar {
  padding: clamp(1rem, 1.6vw, 1.25rem);
}

.pm-appointment-page-calendar__title {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.pm-appointment-page-calendar__weekdays {
  margin-top: 1rem;
}

.pm-appointment-page-calendar__weekdays span {
  font-size: 0.95rem;
}

.pm-appointment-page-calendar__days {
  gap: 0.42rem 0.24rem;
  margin-top: 0.9rem;
}

.pm-appointment-page-calendar__day {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.98rem;
}

.pm-appointment-page-doctor-results {
  margin-top: 0;
}

.pm-appointment-page-doctor-results__head {
  margin-bottom: 0.85rem;
  padding: 0 0.1rem;
}

.pm-appointment-page-doctor-results__list {
  gap: 0.85rem;
}

.pm-appointment-page-doctor-card {
  padding: 0.85rem;
  border-radius: 0.95rem;
  box-shadow: none;
}

.pm-appointment-page-doctor-card__grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.82fr);
  gap: 1rem;
}

.pm-appointment-page-doctor-card__photo-wrap {
  aspect-ratio: 1.78 / 1;
  border-radius: 0.78rem;
}

.pm-appointment-page-doctor-card__body {
  gap: 0.55rem 0.85rem;
  margin-top: 0.8rem;
}

.pm-appointment-page-doctor-card__name {
  font-size: 1.18rem;
}

.pm-appointment-page-doctor-card__specialty {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.pm-appointment-page-doctor-card__place {
  font-size: 0.82rem;
}

.pm-appointment-page-doctor-card__calendar {
  padding: 0.85rem;
}

.pm-appointment-page-doctor-card__slots {
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.pm-appointment-page-slots {
  margin-top: 1rem;
}

.pm-appointment-page-side__empty {
  padding: 0.1rem;
}

.pm-appointment-page-booking.has-checkout .pm-appointment-page-side__empty {
  display: none;
}

.pm-appointment-page-checkout {
  margin-top: 0;
}

.pm-appointment-page-checkout__head {
  grid-template-columns: 1fr;
}

.pm-appointment-page-checkout__back {
  width: fit-content;
}

.pm-appointment-page-checkout__head h2,
.pm-appointment-page-success h2 {
  font-size: 1.45rem;
}

.pm-appointment-page-checkout__doctor-list {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
}

.pm-appointment-page-checkout__doctor-card {
  max-width: none;
  min-width: 0;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
}

.pm-appointment-page-checkout__doctor-card img {
  aspect-ratio: 1 / 1;
}

.pm-appointment-page-form__grid {
  grid-template-columns: 1fr;
}

.pm-appointment-page-form__submit {
  width: 100%;
}

@media (max-width: 1320px) {
  .pm-appointment-page-workspace {
    grid-template-columns: minmax(17rem, 0.82fr) minmax(0, 1.55fr);
  }

  .pm-appointment-page-side {
    position: static;
    grid-column: 1 / -1;
  }

  .pm-appointment-page-checkout__head,
  .pm-appointment-page-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-appointment-page-checkout__back,
  .pm-appointment-page-booking__field--full,
  .pm-appointment-page-form__consent,
  .pm-appointment-page-form__submit,
  .pm-appointment-page-checkout [data-appointment-page-error="consent"],
  .pm-appointment-page-checkout [data-appointment-page-error="__all__"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1040px) {
  .pm-appointment-page-hero {
    min-height: auto;
    text-align: center;
  }

  .pm-appointment-page-hero__lead {
    margin-left: auto;
  }

  .pm-appointment-page-workspace,
  .pm-appointment-page-booking__grid,
  .pm-appointment-page-doctor-card__grid,
  .pm-appointment-page-checkout__head,
  .pm-appointment-page-form__grid {
    grid-template-columns: 1fr;
  }

  .pm-appointment-page-filter {
    position: static;
  }
}

@media (max-width: 640px) {
  .pm-appointment-page-hero,
  .pm-appointment-page-shell {
    width: min(100% - 1rem, 1640px);
  }

  .pm-appointment-page-filter,
  .pm-appointment-page-stage,
  .pm-appointment-page-side {
    border-radius: 0.85rem;
    padding: 0.85rem;
  }

  .pm-appointment-page-stage-empty {
    min-height: 18rem;
    padding: 1rem;
  }

  .pm-appointment-page-calendar__day,
  .pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__day {
    width: 2rem;
    height: 2rem;
    font-size: 0.88rem;
  }
}

.pm-appointment-modal [hidden] {
  display: none !important;
}

.pm-appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pm-appointment-modal--page {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  padding: 0;
}

.pm-appointment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
}

.pm-appointment-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1320px);
  max-width: 1320px;
  height: min(88vh, 820px);
  max-height: 820px;
  margin: 0;
  border: 1px solid rgba(191, 219, 254, 0.65);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.pm-appointment-modal--page .pm-appointment-modal__dialog {
  width: min(100%, 1180px);
  max-width: none;
  height: auto;
  min-height: clamp(42rem, 72vh, 56rem);
  max-height: none;
  margin: 0 auto;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.08);
}

.pm-appointment-modal--page.is-checkout .pm-appointment-modal__dialog {
  min-height: 0;
}

.pm-appointment-modal--page:not(.has-schedule-scope) .pm-appointment-modal__dialog {
  width: min(100%, 900px);
  min-height: 0;
}

.pm-appointment-modal--page .pm-appointment-modal__layout {
  min-height: clamp(34rem, 60vh, 46rem);
}

.pm-appointment-modal--page:not(.has-schedule-scope) .pm-appointment-modal__layout {
  grid-template-columns: 1fr;
  min-height: 0;
}

.pm-appointment-modal--page .pm-appointment-modal__checkout {
  min-height: 0;
}

.pm-appointment-modal--page .pm-appointment-modal__route {
  display: none;
}

.pm-appointment-modal--page .pm-appointment-modal__layout {
  grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
}

.pm-appointment-modal--page:not(.has-schedule-scope) .pm-appointment-modal__layout {
  grid-template-columns: 1fr;
}

.pm-appointment-modal--page .pm-appointment-modal__panel {
  padding: 1.4rem 1.45rem;
}

.pm-appointment-modal--page:not(.has-schedule-scope) .pm-appointment-modal__panel {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.pm-appointment-modal--page .pm-appointment-modal__panel--schedule {
  border-left: 1px solid #e5edf8;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}

.pm-appointment-modal--page:not(.has-schedule-scope) .pm-appointment-modal__panel--schedule {
  display: none;
}

.pm-appointment-modal--page .pm-appointment-modal__kicker,
.pm-appointment-modal--page .pm-appointment-modal__section-label {
  color: #2563eb;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.pm-appointment-modal--page .pm-appointment-modal__title {
  margin-top: 0.55rem;
  font-size: 1.28rem;
  line-height: 1.12;
}

.pm-appointment-modal--page .pm-appointment-modal__copy {
  margin-top: 0.55rem;
  color: #475569;
  font-size: 0.86rem;
}

.pm-appointment-modal--page .pm-appointment-modal__switch,
.pm-appointment-modal--page .pm-appointment-modal__selectors {
  margin-top: 1.25rem;
}

.pm-appointment-modal--page:not(.has-schedule-scope) .pm-appointment-modal__selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 30rem;
}

.pm-appointment-modal--page .pm-appointment-modal__search-input,
.pm-appointment-modal--page .pm-appointment-modal__select {
  height: 3.25rem;
  border: 0;
  border-radius: 0.72rem;
  background-color: #f1f3f7;
  font-size: 0.94rem;
}

.pm-appointment-modal--page .pm-appointment-modal__schedule-header {
  padding-right: 0;
}

.pm-appointment-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.pm-appointment-modal__close span {
  position: absolute;
  top: 1.02rem;
  left: 0.5rem;
  width: 1.05rem;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.pm-appointment-modal__close span:first-child {
  transform: rotate(45deg);
}

.pm-appointment-modal__close span:last-child {
  transform: rotate(-45deg);
}

.pm-appointment-modal__layout {
  display: grid;
  grid-template-columns: minmax(15.5rem, 17rem) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.pm-appointment-modal__route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 1rem 1.05rem 0;
  background: rgba(248, 251, 255, 0.92);
}

.pm-appointment-modal__route-card {
  min-width: 0;
  min-height: 6.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(191, 219, 254, 0.82);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.pm-appointment-modal__route-card.is-active {
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.pm-appointment-modal__route-card.is-complete {
  border-color: rgba(34, 197, 94, 0.42);
}

.pm-appointment-modal__route-label,
.pm-appointment-modal__route-card h3,
.pm-appointment-modal__route-card p {
  margin: 0;
}

.pm-appointment-modal__route-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.pm-appointment-modal__route-card h3 {
  display: -webkit-box;
  margin-top: 0.35rem;
  overflow: hidden;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-appointment-modal__route-card p:not(.pm-appointment-modal__route-label) {
  display: -webkit-box;
  margin-top: 0.32rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-appointment-modal__checkout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem 1.15rem 1.15rem;
  overflow: hidden;
}

.pm-appointment-modal__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.05rem;
  overflow: hidden;
}

.pm-appointment-modal__panel--schedule {
  border-left: 1px solid rgba(203, 213, 225, 0.7);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.72) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.pm-appointment-modal__kicker,
.pm-appointment-modal__section-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.pm-appointment-modal__title,
.pm-appointment-modal__selected-item,
.pm-appointment-modal__selection-text {
  margin: 0;
  color: #0f172a;
}

.pm-appointment-modal__title {
  margin-top: 0.4rem;
  font-size: clamp(1.12rem, 1.45vw, 1.5rem);
  line-height: 1.06;
}

.pm-appointment-modal__copy {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.35;
}

.pm-appointment-modal__switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  margin-top: 0.8rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(191, 219, 254, 0.42);
}

.pm-appointment-modal__switch-btn {
  min-width: 5rem;
  padding: 0.5rem 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #33506f;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.pm-appointment-modal__switch-btn.is-active {
  background: #2563eb;
  color: white;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.pm-appointment-modal__search {
  display: block;
  margin-top: 1rem;
}

.pm-appointment-modal__selectors {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.pm-appointment-modal__doctor-preview {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  cursor: pointer;
}

.pm-appointment-modal__doctor-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.95);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.pm-appointment-modal__doctor-photo {
  width: 4.2rem;
  height: 4.8rem;
  border-radius: 0.85rem;
  object-fit: cover;
  background: rgba(226, 232, 240, 0.9);
}

.pm-appointment-modal__doctor-body {
  min-width: 0;
}

.pm-appointment-modal__doctor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pm-appointment-modal__doctor-brand {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
  object-fit: contain;
}

.pm-appointment-modal__doctor-label,
.pm-appointment-modal__doctor-name,
.pm-appointment-modal__doctor-specialty,
.pm-appointment-modal__doctor-meta,
.pm-appointment-modal__doctor-summary {
  margin: 0;
}

.pm-appointment-modal__doctor-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}

.pm-appointment-modal__doctor-name {
  margin-top: 0.18rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.pm-appointment-modal__doctor-specialty {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: #2563eb;
  line-height: 1.25;
}

.pm-appointment-modal__doctor-meta {
  margin-top: 0.28rem;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.25;
}

.pm-appointment-modal__doctor-summary {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #334155;
}

.pm-appointment-modal__doctor-preview--checkout .pm-appointment-modal__doctor-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.pm-appointment-modal__selector-group {
  display: flex;
  flex-direction: column;
}

.pm-appointment-modal__selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.pm-appointment-modal__selector-head .pm-appointment-modal__search-label {
  margin-bottom: 0;
}

.pm-appointment-modal__search-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.pm-appointment-modal__carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}

.pm-appointment-modal__carousel-btn {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  cursor: pointer;
  font-size: 0.88rem;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.pm-appointment-modal__carousel-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.1);
}

.pm-appointment-modal__carousel-btn:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.pm-appointment-modal__carousel-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.pm-appointment-modal__search-input,
.pm-appointment-modal__select {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  outline: none;
  font-size: 0.85rem;
}

.pm-appointment-modal__search-input:focus,
.pm-appointment-modal__select:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.pm-appointment-modal__select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #2563eb 50%),
    linear-gradient(135deg, #2563eb 50%, transparent 50%);
  background-position:
    calc(100% - 0.98rem) calc(50% - 0.12rem),
    calc(100% - 0.7rem) calc(50% - 0.12rem);
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.pm-appointment-modal__select:disabled {
  cursor: default;
  color: #94a3b8;
  background-color: rgba(248, 250, 252, 0.9);
}

.pm-appointment-modal__doctor-scroller {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.42rem;
  padding: 0.08rem 0.08rem 0.62rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.38) transparent;
}

.pm-appointment-modal__doctor-scroller::-webkit-scrollbar {
  height: 0.42rem;
}

.pm-appointment-modal__doctor-scroller::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.28);
}

.pm-appointment-modal__doctor-choice,
.pm-appointment-modal__doctor-choice-empty {
  flex: 0 0 min(12rem, 82%);
  min-width: 0;
  border-radius: 1rem;
}

.pm-appointment-modal__doctor-choice {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.94) 100%);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.pm-appointment-modal__doctor-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 32px rgba(148, 163, 184, 0.16);
}

.pm-appointment-modal__doctor-choice:focus-visible {
  outline: 4px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.pm-appointment-modal__doctor-choice.is-selected {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 18px 32px rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.82) 100%);
}

.pm-appointment-modal__doctor-choice-photo {
  width: 100%;
  height: 9rem;
  border-radius: 0.9rem;
  object-fit: cover;
  background: rgba(226, 232, 240, 0.9);
}

.pm-appointment-modal__doctor-choice-body {
  min-width: 0;
}

.pm-appointment-modal__doctor-choice-name,
.pm-appointment-modal__doctor-choice-specialty,
.pm-appointment-modal__doctor-choice-meta,
.pm-appointment-modal__doctor-choice-summary,
.pm-appointment-modal__doctor-choice-empty-title,
.pm-appointment-modal__doctor-choice-empty-copy,
.pm-appointment-modal__picker-hint {
  margin: 0;
}

.pm-appointment-modal__doctor-choice-name {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.pm-appointment-modal__doctor-choice-specialty {
  margin-top: 0.18rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #2563eb;
}

.pm-appointment-modal__doctor-choice-meta {
  margin-top: 0.26rem;
  font-size: 0.73rem;
  line-height: 1.3;
  color: #64748b;
}

.pm-appointment-modal__doctor-choice-summary {
  display: -webkit-box;
  margin-top: 0.38rem;
  overflow: hidden;
  color: #334155;
  font-size: 0.72rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pm-appointment-modal__doctor-choice-empty {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px dashed rgba(147, 197, 253, 0.8);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(239, 246, 255, 0.88) 100%);
}

.pm-appointment-modal__doctor-choice-empty-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__doctor-choice-empty-copy,
.pm-appointment-modal__picker-hint {
  font-size: 0.73rem;
  line-height: 1.35;
  color: #64748b;
}

.pm-appointment-modal__picker-hint {
  margin-top: 0.28rem;
}

.pm-appointment-modal__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
  align-content: start;
}

.pm-appointment-modal__options.is-doctor-flow {
  display: block;
}

.pm-appointment-modal__flow-stage {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pm-appointment-modal__flow-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pm-appointment-modal__flow-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__flow-copy {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.pm-appointment-modal__flow-back {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.pm-appointment-modal__specialties,
.pm-appointment-modal__doctor-list {
  display: grid;
  gap: 0.55rem;
}

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

.pm-appointment-modal__doctor-list {
  grid-template-columns: 1fr;
}

.pm-appointment-modal__specialty {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 4.8rem;
  padding: 0.78rem 0.82rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pm-appointment-modal__specialty:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 32px rgba(148, 163, 184, 0.16);
}

.pm-appointment-modal__specialty-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.pm-appointment-modal__specialty-count {
  font-size: 0.78rem;
  color: #64748b;
}

.pm-appointment-modal__option,
.pm-appointment-modal__option-empty {
  padding: 0.82rem 0.86rem 0.9rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.pm-appointment-modal__option {
  min-height: 5.2rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pm-appointment-modal__option:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 18px 32px rgba(148, 163, 184, 0.16);
}

.pm-appointment-modal__option--doctor {
  min-height: auto;
  padding: 0.76rem 0.82rem;
}

.pm-appointment-modal__option.is-selected {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 18px 32px rgba(37, 99, 235, 0.1);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.pm-appointment-modal__option-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.pm-appointment-modal__option-subtitle,
.pm-appointment-modal__option-meta,
.pm-appointment-modal__option-empty {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.35;
}

.pm-appointment-modal__option-subtitle,
.pm-appointment-modal__option-meta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pm-appointment-modal__schedule-header {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  padding-right: 2.8rem;
}

.pm-appointment-modal__selected-item {
  margin-top: 0.22rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.pm-appointment-modal__week-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pm-appointment-modal__week-label {
  min-width: 8.6rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.pm-appointment-modal__nav-btn {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  cursor: pointer;
  font-size: 0.88rem;
}

.pm-appointment-modal__nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pm-appointment-modal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
  color: #475569;
  font-size: 0.74rem;
}

.pm-appointment-modal__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pm-appointment-modal__legend i {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.pm-appointment-modal__legend .is-free {
  background: #2563eb;
}

.pm-appointment-modal__legend .is-occupied {
  background: #cbd5e1;
}

.pm-appointment-modal__week {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.4rem;
  margin-top: 0.7rem;
  overflow: visible;
}

.pm-appointment-modal__day {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0.58rem 0.42rem 0.62rem;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.88);
}

.pm-appointment-modal__day.is-today {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.pm-appointment-modal__day.is-empty {
  background: rgba(248, 250, 252, 0.82);
}

.pm-appointment-modal__day-head {
  margin-bottom: 0.42rem;
}

.pm-appointment-modal__day-weekday {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}

.pm-appointment-modal__day-date {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__slot-list {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.22rem;
}

.pm-appointment-modal__empty-state {
  grid-column: 1 / -1;
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem;
  border: 1px dashed rgba(147, 197, 253, 0.8);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 246, 255, 0.88) 100%);
  text-align: center;
}

.pm-appointment-modal__empty-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.pm-appointment-modal__empty-title,
.pm-appointment-modal__empty-copy {
  margin: 0;
}

.pm-appointment-modal__empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__empty-copy {
  max-width: 22rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #64748b;
}

.pm-appointment-modal__slot,
.pm-appointment-modal__slot-empty {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  min-height: 1.9rem;
  padding: 0.18rem 0.16rem;
  border-radius: 0.6rem;
  font-size: 0.7rem;
  line-height: 1.08;
}

.pm-appointment-modal__slot-time {
  font-weight: 800;
}

.pm-appointment-modal__slot-caption {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: currentColor;
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.12;
  opacity: 0.82;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-appointment-modal__slot {
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.pm-appointment-modal__slot:hover:not(:disabled) {
  transform: translateY(-1px);
}

.pm-appointment-modal__slot.is-free {
  background: rgba(219, 234, 254, 0.78);
  color: #1d4ed8;
}

.pm-appointment-modal__slot.is-free.is-selected {
  background: #2563eb;
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.pm-appointment-modal__slot.is-occupied {
  background: rgba(226, 232, 240, 0.9);
  color: #94a3b8;
  cursor: not-allowed;
}

.pm-appointment-modal--page .pm-appointment-modal__slot-list {
  grid-template-columns: 1fr;
}

.pm-appointment-modal--page .pm-appointment-modal__slot {
  min-height: 2.45rem;
  padding: 0.26rem 0.24rem;
}

.pm-appointment-modal--page .pm-appointment-modal__slot-caption {
  font-size: 0.6rem;
}

.pm-appointment-modal__slot-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: #94a3b8;
}

.pm-appointment-modal__selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0;
  padding: 0.7rem 0.82rem;
  border: 1px solid rgba(147, 197, 253, 0.7);
  border-radius: 0.9rem;
  background: rgba(239, 246, 255, 0.86);
}

.pm-appointment-modal__selection-text {
  margin-top: 0.22rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.pm-appointment-modal__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.pm-appointment-modal__back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(147, 197, 253, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.pm-appointment-modal__checkout-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.pm-appointment-modal__checkout-top {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.7rem;
  align-items: stretch;
  justify-content: start;
}

.pm-appointment-modal__checkout-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(147, 197, 253, 0.7);
  border-radius: 0.9rem;
  background: rgba(239, 246, 255, 0.86);
}

.pm-appointment-modal__checkout-slot-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.pm-appointment-modal__checkout-slot-back:hover {
  text-decoration: underline;
}

.pm-appointment-modal__checkout-doctor {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  width: 100%;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
}

.pm-appointment-modal__checkout-doctor-empty {
  display: flex;
  min-height: 8.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.85rem;
  border: 1px dashed rgba(147, 197, 253, 0.8);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(239, 246, 255, 0.88) 100%);
  text-align: center;
}

.pm-appointment-modal__checkout-doctor-empty-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.pm-appointment-modal__checkout-doctor-empty-title,
.pm-appointment-modal__checkout-doctor-empty-copy {
  margin: 0;
}

.pm-appointment-modal__checkout-doctor-empty-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.pm-appointment-modal__checkout-doctor-empty-copy {
  max-width: 19rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #64748b;
}

.pm-appointment-modal__doctor-preview--checkout {
  margin-top: 0.1rem;
}

.pm-appointment-modal__form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.72rem;
  min-height: 0;
}

.pm-appointment-modal__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.pm-appointment-modal__form-field--full {
  grid-column: 1 / -1;
}

.pm-appointment-modal__textarea {
  min-height: 4.6rem;
  padding-top: 0.72rem;
  resize: none;
}

.pm-appointment-modal__checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pm-appointment-modal__checkbox input {
  position: absolute;
  opacity: 0;
  inset: 0.02rem auto auto 0;
  width: 1.1rem;
  height: 1.1rem;
}

.pm-appointment-modal__checkbox-mark {
  position: relative;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.02rem;
  border: 1.5px solid #93c5fd;
  border-radius: 0.34rem;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.pm-appointment-modal__checkbox-mark::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.1rem;
  width: 0.24rem;
  height: 0.52rem;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) scale(0.82);
  opacity: 0;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pm-appointment-modal__checkbox input:checked + .pm-appointment-modal__checkbox-mark {
  border-color: #2563eb;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 22px -14px rgba(37, 99, 235, 0.48);
}

.pm-appointment-modal__checkbox input:checked + .pm-appointment-modal__checkbox-mark::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.pm-appointment-modal__checkbox input:focus-visible + .pm-appointment-modal__checkbox-mark {
  outline: 4px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

.pm-appointment-modal__checkbox-label {
  flex: 1;
  min-width: 0;
}

.pm-appointment-modal__field-error {
  margin: 0.22rem 0 0;
  color: #dc2626;
  font-size: 0.74rem;
  line-height: 1.35;
}

.pm-appointment-modal__form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.35rem;
}

.pm-appointment-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.pm-appointment-modal__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pm-appointment-modal__success {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 40rem;
}

@media (max-width: 960px) {
  .pm-appointment-modal {
    padding: 0;
  }

  .pm-appointment-modal--page {
    padding: 0;
  }

  .pm-appointment-modal__dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: auto;
  }

  .pm-appointment-modal--page .pm-appointment-modal__dialog {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 1.15rem;
  }

  .pm-appointment-modal--page .pm-appointment-modal__layout,
  .pm-appointment-modal--page .pm-appointment-modal__checkout {
    min-height: 0;
  }

  .pm-appointment-page-hero {
    width: min(100% - 2rem, 1180px);
    padding-top: 2rem;
  }

  .pm-appointment-page-shell {
    padding-bottom: 3rem;
  }

  .pm-appointment-page-booking {
    width: min(100% - 2rem, 1180px);
    padding: 1.1rem;
    border-radius: 1rem;
  }

  .pm-appointment-page-booking__grid,
  .pm-appointment-page-booking__doctor-info,
  .pm-appointment-page-booking__control-grid,
  .pm-appointment-page-doctor-card__grid,
  .pm-appointment-page-doctor-card__body,
  .pm-appointment-page-form__grid,
  .pm-appointment-page-checkout__head {
    grid-template-columns: 1fr;
  }

  .pm-appointment-page-booking__grid {
    gap: 1.25rem;
  }

  .pm-appointment-page-booking__photo-wrap {
    aspect-ratio: 1.12 / 1;
  }

  .pm-appointment-page-booking__doctor-info {
    margin-top: 1.1rem;
  }

  .pm-appointment-page-booking__rating {
    padding-top: 0;
  }

  .pm-appointment-page-calendar {
    padding: 1rem;
  }

  .pm-appointment-page-calendar__days {
    gap: 0.42rem 0.22rem;
  }

  .pm-appointment-page-calendar__day {
    width: 2.35rem;
    height: 2.35rem;
  }

  .pm-appointment-page-booking__switch {
    width: 100%;
  }

  .pm-appointment-page-slots__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pm-appointment-page-slots__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-appointment-page-doctor-results__head,
  .pm-appointment-page-doctor-card__slots-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pm-appointment-page-doctor-results__head > p {
    text-align: left;
  }

  .pm-appointment-page-doctor-card__photo-wrap {
    aspect-ratio: 1.18 / 1;
  }

  .pm-appointment-page-doctor-card__rating {
    justify-self: start;
  }

  .pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__day {
    width: 2rem;
    height: 2rem;
    font-size: 0.88rem;
  }

  .pm-appointment-page-doctor-card__slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-appointment-modal__layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .pm-appointment-modal--page .pm-appointment-modal__layout {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__route {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 0;
  }

  .pm-appointment-modal__route-card {
    min-height: auto;
  }

  .pm-appointment-modal__panel {
    padding: 1rem;
    overflow: visible;
  }

  .pm-appointment-modal__checkout {
    height: auto;
    padding: 1rem;
    overflow: visible;
  }

  .pm-appointment-modal__panel--schedule {
    border-left: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
  }

  .pm-appointment-modal__selector-head {
    align-items: flex-start;
  }

  .pm-appointment-modal__doctor-choice,
  .pm-appointment-modal__doctor-choice-empty {
    flex-basis: min(14rem, 78vw);
  }

  .pm-appointment-modal__doctor-choice-photo {
    height: 10rem;
  }

  .pm-appointment-modal__options {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__specialties {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__week {
    --pm-appointment-day-height: 22rem;
    flex: initial;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: var(--pm-appointment-day-height);
  }

  .pm-appointment-modal__day {
    height: var(--pm-appointment-day-height);
  }

  .pm-appointment-modal__checkout-head,
  .pm-appointment-modal__form-grid {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__checkout-top {
    grid-template-columns: 1fr;
  }

  .pm-appointment-modal__schedule-header,
  .pm-appointment-modal__selection {
    flex-direction: column;
    align-items: stretch;
  }

  .pm-appointment-modal__week-nav {
    justify-content: space-between;
  }
}

@media (max-width: 960px) {
  .pm-appointment-page-booking,
  .pm-appointment-page-booking:not(.has-selection) {
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .pm-appointment-page-booking__controls {
    margin-top: 1rem;
  }

  .pm-appointment-page-workspace,
  .pm-appointment-page-booking__grid,
  .pm-appointment-page-doctor-card__grid,
  .pm-appointment-page-form__grid {
    grid-template-columns: 1fr;
  }

  .pm-appointment-page-filter,
  .pm-appointment-page-stage,
  .pm-appointment-page-side {
    position: static;
  }
}

/* Appointment page: public route rebuild. */
.pm-appointment-brand-hero {
  width: min(100% - clamp(1rem, 3vw, 2.5rem), 1680px);
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.5rem) 0 clamp(1rem, 2.5vw, 1.75rem);
}

.pm-appointment-brand-hero__card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.72fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
  min-height: clamp(14rem, 22vw, 19rem);
  padding: clamp(1.35rem, 2.7vw, 2.35rem);
  border: 1px solid rgba(185, 210, 245, 0.9);
  border-radius: 1.6rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.92)),
    #ffffff;
  box-shadow: 0 28px 72px rgba(22, 58, 112, 0.08);
}

.pm-appointment-brand-hero__heading {
  align-items: center;
}

.pm-appointment-brand-hero__mark {
  flex: 0 0 auto;
}

.pm-appointment-brand-hero__title {
  margin: 0;
}

.pm-appointment-brand-hero__title .styles-module-scss-module__3PyzfW__secondary {
  font-size: clamp(1.45rem, 2.25vw, 2.05rem);
  line-height: 1.05;
}

.pm-appointment-brand-hero__title .styles-module-scss-module__3PyzfW__primary {
  font-size: clamp(2.8rem, 4.35vw, 4.45rem);
  line-height: 0.95;
}

.pm-appointment-brand-hero__summary {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.pm-appointment-brand-hero__summary .styles-module-scss-module__3PyzfW__description {
  max-width: 42rem;
  margin: 0;
}

.pm-appointment-brand-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pm-appointment-brand-hero__chips span {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  border: 1px solid rgba(47, 107, 237, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #23456e;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.45rem 0.8rem;
}

.pm-appointment-page-shell {
  width: min(100% - clamp(1rem, 3vw, 2.5rem), 1680px);
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 7vw, 5rem);
}

.pm-appointment-page-booking,
.pm-appointment-page-booking:not(.has-selection) {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pm-appointment-page-workspace {
  display: grid;
  grid-template-columns: minmax(17.5rem, 18rem) minmax(0, 1fr) minmax(17.5rem, 18rem);
  gap: clamp(0.9rem, 1.7vw, 1.35rem);
  align-items: start;
}

.pm-appointment-page-filter,
.pm-appointment-page-stage,
.pm-appointment-page-side {
  min-width: 0;
  border: 1px solid rgba(199, 219, 255, 0.9);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 52px rgba(24, 62, 112, 0.07);
}

.pm-appointment-page-filter,
.pm-appointment-page-side {
  position: sticky;
  top: 5.7rem;
  padding: clamp(1rem, 1.55vw, 1.35rem);
}

.pm-appointment-page-stage {
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.pm-appointment-page-filter__head h2,
.pm-appointment-page-filter__head p,
.pm-appointment-page-side__empty h2,
.pm-appointment-page-side__empty p,
.pm-appointment-page-stage-empty h2,
.pm-appointment-page-stage-empty p {
  margin: 0;
}

.pm-appointment-page-filter__head h2,
.pm-appointment-page-side__empty h2,
.pm-appointment-page-stage-empty h2 {
  margin-top: 0.3rem;
  color: #101828;
  font-size: clamp(1.22rem, 1.6vw, 1.55rem);
  font-weight: 900;
  line-height: 1.12;
}

.pm-appointment-page-filter__head > p:last-child {
  margin-top: 0.6rem;
  color: #667085;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.pm-appointment-page-booking__controls {
  margin-top: 1.1rem;
}

.pm-appointment-page-booking__switch {
  width: 100%;
  border-radius: 0.85rem;
  background: #edf4ff;
}

.pm-appointment-page-booking__switch-btn {
  min-height: 2.8rem;
  border-radius: 0.65rem;
  color: #36506f;
  font-size: 0.92rem;
}

.pm-appointment-page-booking__switch-btn.is-active {
  background: #235fcf;
  box-shadow: 0 12px 24px rgba(35, 95, 207, 0.2);
}

.pm-appointment-page-booking__control-grid,
.pm-appointment-page-booking:not(.has-selection) .pm-appointment-page-booking__control-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.pm-appointment-page-booking__field {
  gap: 0.42rem;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 800;
}

.pm-appointment-page-booking__field input,
.pm-appointment-page-booking__field select,
.pm-appointment-page-booking__field textarea {
  min-height: 3.35rem;
  border: 1px solid rgba(210, 222, 240, 0.95);
  border-radius: 0.85rem;
  background: #f8fbff;
  color: #101828;
  font-size: 0.98rem;
  font-weight: 750;
  padding: 0 1rem;
}

.pm-appointment-page-booking__field textarea {
  padding-top: 0.9rem;
}

.pm-appointment-page-route {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.pm-appointment-page-route li {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(218, 230, 247, 0.95);
  border-radius: 0.9rem;
  background: #fbfdff;
  padding: 0.78rem 0.85rem;
}

.pm-appointment-page-route strong {
  color: #101828;
  font-size: 0.88rem;
}

.pm-appointment-page-route span {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.pm-appointment-page-stage-empty {
  display: grid;
  min-height: clamp(20rem, 33vw, 30rem);
  align-content: center;
  justify-items: start;
  border: 1px dashed rgba(147, 197, 253, 0.95);
  border-radius: 1.05rem;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.9)),
    #ffffff;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.pm-appointment-page-booking.has-selection .pm-appointment-page-stage-empty {
  display: none;
}

.pm-appointment-page-stage-empty__mark {
  width: 3.7rem;
  height: 3.7rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background:
    linear-gradient(90deg, #235fcf 0 38%, transparent 38%),
    linear-gradient(180deg, #dbeafe, #eff6ff);
  box-shadow: 0 16px 34px rgba(35, 95, 207, 0.18);
}

.pm-appointment-page-stage-empty > p:last-child,
.pm-appointment-page-side__empty > p:last-child {
  margin-top: 0.75rem;
  color: #667085;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
}

.pm-appointment-page-booking__grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
  gap: clamp(0.95rem, 1.8vw, 1.35rem);
  margin-top: 0;
}

.pm-appointment-page-booking__doctor,
.pm-appointment-page-calendar {
  border: 1px solid rgba(218, 230, 247, 0.95);
  border-radius: 1.05rem;
  background: #ffffff;
}

.pm-appointment-page-booking__doctor {
  padding: clamp(0.85rem, 1.5vw, 1.1rem);
}

.pm-appointment-page-booking__photo-wrap {
  aspect-ratio: 7 / 5;
  border-radius: 0.95rem;
  background: #eef4fb;
}

.pm-appointment-page-booking__photo {
  object-position: center 35%;
}

.pm-appointment-page-booking__doctor-info {
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.pm-appointment-page-booking__doctor-name {
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
}

.pm-appointment-page-booking__doctor-specialty {
  margin-top: 0.45rem;
  color: #667085;
  font-size: 1rem;
}

.pm-appointment-page-booking__doctor-summary {
  margin: 0.75rem 0 0;
  color: #475467;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.5;
}

.pm-appointment-page-booking__doctor-place {
  border: 1px solid rgba(47, 107, 237, 0.12);
  border-radius: 0.65rem;
  background: #eaf3ff;
  color: #1959bd;
  font-size: 0.86rem;
}

.pm-appointment-page-booking__doctor-link,
.pm-appointment-page-doctor-card__link {
  width: fit-content;
  color: #235fcf;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.pm-appointment-page-booking__rating {
  justify-self: start;
  padding-top: 0;
}

.pm-appointment-page-booking__doctor-link:hover,
.pm-appointment-page-doctor-card__link:hover {
  text-decoration: underline;
}

.pm-appointment-page-calendar {
  padding: clamp(0.95rem, 1.5vw, 1.15rem);
  background: #f5f8fc;
}

.pm-appointment-page-calendar__head {
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
}

.pm-appointment-page-calendar__title {
  color: #101828;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.pm-appointment-page-calendar__nav {
  width: 2.25rem;
  height: 2.25rem;
  color: #12345f;
  font-size: 1.8rem;
}

.pm-appointment-page-calendar__weekdays {
  gap: 0.25rem;
  margin-top: 0.9rem;
}

.pm-appointment-page-calendar__weekdays span {
  color: #344054;
  font-size: 0.84rem;
}

.pm-appointment-page-calendar__days {
  gap: 0.34rem 0.22rem;
  margin-top: 0.75rem;
}

.pm-appointment-page-calendar__day {
  width: 2.15rem;
  height: 2.15rem;
  background: rgba(255, 255, 255, 0.62);
  color: #a7b0bf;
  font-size: 0.88rem;
}

.pm-appointment-page-calendar__day.has-slots {
  background: #dfeeff;
  color: #344054;
}

.pm-appointment-page-calendar__day.is-selected {
  background: #235fcf;
  color: #ffffff;
}

.pm-appointment-page-doctor-results {
  margin-top: 0;
}

.pm-appointment-page-doctor-results__head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.9rem;
  margin-bottom: 0.95rem;
  padding: 0 0.1rem;
}

.pm-appointment-page-doctor-results__head h2 {
  color: #101828;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.pm-appointment-page-doctor-results__head > p {
  color: #667085;
  font-size: 0.9rem;
  font-weight: 800;
}

.pm-appointment-page-doctor-results__list {
  gap: 0.95rem;
}

.pm-appointment-page-doctor-results__empty {
  border: 1px dashed rgba(147, 197, 253, 0.95);
  border-radius: 1rem;
  background: #f8fbff;
}

.pm-appointment-page-doctor-card {
  padding: clamp(0.85rem, 1.5vw, 1.05rem);
  border: 1px solid rgba(199, 219, 255, 0.95);
  border-radius: 1.05rem;
  background: #ffffff;
  box-shadow: none;
}

.pm-appointment-page-doctor-card.is-active {
  border-color: rgba(35, 95, 207, 0.42);
  box-shadow: 0 18px 42px rgba(35, 95, 207, 0.1);
}

.pm-appointment-page-doctor-card__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(17.5rem, 0.78fr);
  gap: clamp(0.85rem, 1.5vw, 1rem);
}

.pm-appointment-page-doctor-card__photo-wrap {
  aspect-ratio: 7 / 5;
  border-radius: 0.95rem;
  background: #eef4fb;
}

.pm-appointment-page-doctor-card__photo {
  object-position: center 35%;
}

.pm-appointment-page-doctor-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.85rem;
  margin-top: 0.8rem;
}

.pm-appointment-page-doctor-card__name {
  color: #101828;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.pm-appointment-page-doctor-card__specialty {
  margin-top: 0.28rem;
  color: #667085;
  font-size: 0.88rem;
}

.pm-appointment-page-doctor-card__summary {
  grid-column: 1 / -1;
  margin: 0;
  color: #475467;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.pm-appointment-page-doctor-card__rating {
  align-items: flex-start;
  gap: 0.45rem;
}

.pm-appointment-page-doctor-card__rating span {
  color: #ffc107;
  font-size: 0.95rem;
}

.pm-appointment-page-doctor-card__rating strong {
  color: #101828;
  font-size: 0.96rem;
}

.pm-appointment-page-doctor-card__place {
  border-radius: 0.65rem;
  background: #eaf3ff;
  color: #1959bd;
  font-size: 0.8rem;
}

.pm-appointment-page-doctor-card__link {
  grid-column: 1 / -1;
}

.pm-appointment-page-doctor-card__calendar {
  padding: 0.82rem;
}

.pm-appointment-page-doctor-card__slots {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #f8fbff;
}

.pm-appointment-page-doctor-card__slot-list,
.pm-appointment-page-slots__list {
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.45rem;
}

.pm-appointment-page-slot {
  min-height: 3rem;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #12345f;
}

.pm-appointment-page-slot.is-selected {
  background: #235fcf;
}

.pm-appointment-page-slots {
  margin-top: 1rem;
  border-radius: 1rem;
  background: #f8fbff;
}

.pm-appointment-page-side__empty {
  padding: 0.1rem;
}

.pm-appointment-page-booking.has-checkout .pm-appointment-page-side__empty {
  display: none;
}

.pm-appointment-page-checkout {
  margin-top: 0;
  padding: 0;
  background: transparent;
}

.pm-appointment-page-checkout__head {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.pm-appointment-page-checkout__back {
  width: fit-content;
  border-radius: 999px;
}

.pm-appointment-page-checkout__head h2,
.pm-appointment-page-success h2 {
  color: #101828;
  font-size: 1.35rem;
}

.pm-appointment-page-checkout__head p,
.pm-appointment-page-success p {
  color: #667085;
  font-size: 0.9rem;
}

.pm-appointment-page-checkout__doctor-list {
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
}

.pm-appointment-page-checkout__doctor-card {
  max-width: none;
  min-width: 0;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: center;
  border-radius: 0.9rem;
}

.pm-appointment-page-checkout__doctor-card img {
  aspect-ratio: 1 / 1;
}

.pm-appointment-page-form {
  margin-top: 1rem;
}

.pm-appointment-page-form__grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.pm-appointment-page-form__consent {
  align-items: flex-start;
  border-radius: 0.85rem;
}

.pm-appointment-page-form__submit {
  width: 100%;
  min-height: 3.2rem;
  border-radius: 0.85rem;
  background: #5b4636;
}

@media (max-width: 1320px) {
  .pm-appointment-page-workspace {
    grid-template-columns: minmax(17rem, 0.74fr) minmax(0, 1.5fr);
  }

  .pm-appointment-page-side {
    position: static;
    grid-column: 1 / -1;
  }

  .pm-appointment-page-checkout__head,
  .pm-appointment-page-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-appointment-page-checkout__back,
  .pm-appointment-page-booking__field--full,
  .pm-appointment-page-form__consent,
  .pm-appointment-page-form__submit,
  .pm-appointment-page-checkout [data-appointment-page-error="consent"],
  .pm-appointment-page-checkout [data-appointment-page-error="__all__"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1040px) {
  .pm-appointment-brand-hero__card,
  .pm-appointment-page-workspace,
  .pm-appointment-page-booking__grid,
  .pm-appointment-page-doctor-card__grid,
  .pm-appointment-page-checkout__head,
  .pm-appointment-page-form__grid {
    grid-template-columns: 1fr;
  }

  .pm-appointment-brand-hero__card {
    min-height: auto;
  }

  .pm-appointment-page-filter,
  .pm-appointment-page-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .pm-appointment-brand-hero,
  .pm-appointment-page-shell {
    width: min(100% - 1rem, 1680px);
  }

  .pm-appointment-brand-hero__card,
  .pm-appointment-page-filter,
  .pm-appointment-page-stage,
  .pm-appointment-page-side {
    border-radius: 1rem;
    padding: 0.9rem;
  }

  .pm-appointment-brand-hero__chips span {
    width: 100%;
  }

  .pm-appointment-page-stage-empty {
    min-height: 18rem;
    padding: 1rem;
  }

  .pm-appointment-page-calendar__day,
  .pm-appointment-page-doctor-card__calendar .pm-appointment-page-calendar__day {
    width: 1.95rem;
    height: 1.95rem;
    font-size: 0.82rem;
  }

  .pm-appointment-page-doctor-card__body,
  .pm-appointment-page-booking__doctor-info {
    grid-template-columns: 1fr;
  }

  .pm-appointment-page-doctor-card__rating {
    justify-content: flex-start;
  }
}
