body {
  background: #f8f8fb;
}

.booking-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.booking-header {
  text-align: center;
  margin-bottom: 18px;
}

.booking-logo {
  display: block;
  width: 340px;
  max-width: 92%;
  height: auto;
  margin: 22px auto 18px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .booking-logo {
    width: 320px;
    max-width: 94%;
    margin: 26px auto 18px;
  }
}
.booking-header h1 {
  margin-bottom: 6px;
}

.booking-header p {
  margin: 0;
  color: #666;
}

.booking-progress {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.booking-progress-item {
  padding: 7px 11px;
  border-radius: 999px;
  background: #ececf3;
  color: #444;
  font-size: 13px;
}

.booking-progress-item.active {
  background: #111;
  color: #fff;
}

.booking-step {
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 16px;
  padding: 16px;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(16, 18, 27, 0.05);
}

.booking-step.hidden {
  display: none !important;
}

.booking-nav {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: 420px;
  margin-top: 14px;
}
.booking-nav #btnBack {
  justify-self: start;
}

.booking-nav #btnNext,
.booking-nav #btnSubmit {
  justify-self: end;
}

.hidden {
  display: none !important;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-secondary {
  background: #ececf3;
  color: #222;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-head {
  margin: 0 auto 14px;
  max-width: 680px;
  text-align: center;
}

.step-head h2 {
  margin: 0 0 6px;
}

.step-head p {
  margin: 0;
  color: #666;
}

.step-note {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

.salon-card,
.details-form,
.confirmation-list,
.payment-choice-box,
.questionnaire-box,
.policy-box,
.services-scroll-box {
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 14px;
  padding: 14px;
}

.policy-box {
  margin-top: 12px;
  line-height: 1.45;
  background: #fafafe;
}

.salon-address {
  margin: 8px 0 8px;
  line-height: 1.45;
}

.salon-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #6b42d1;
  text-decoration: none;
  font-weight: 600;
}

.field,
.questionnaire-head {
  margin-bottom: 12px;
  min-width: 0;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.text-input,
.text-area,
.salon-select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #dcdce7;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
}

.text-area {
  min-height: 110px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 14px;
  align-items: start;
}

.field-full {
  grid-column: 1 / -1;
}

.services-scroll-box {
  max-height: 440px;
  overflow: auto;
}

.service-section + .service-section {
  margin-top: 18px;
}

.service-section-title {
  margin: 0 0 10px;
  font-size: 17px;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-row {
  width: 100%;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.service-row.active {
  border-color: #8fd39a;
  background: #f6fff7;
}

.service-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.service-row-title {
  font-weight: 700;
}

.service-row-price {
  font-weight: 700;
  white-space: nowrap;
}

.service-row-description {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
  margin-bottom: 8px;
}

.service-row-meta {
  font-size: 13px;
  color: #666;
}

.salon-info-block {
  margin-bottom: 14px;
}

.inline-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.inline-toggle-btn:hover {
  opacity: 0.85;
}

.inline-label {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.inline-arrow {
  font-size: 13px;
  color: #444;
  line-height: 1;
}

.schedule-dropdown {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  max-width: 260px;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #ececf3;
  border-radius: 10px;
  background: #fafafe;
  font-size: 14px;
}

.schedule-day {
  font-weight: 600;
}

.schedule-hours {
  color: #555;
}

.recognized-box {
  border-color: #8fd39a;
  background: #f6fff7;
}

.questionnaire-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.questionnaire-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: #666;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #ececf3;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #8fd39a;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.questionnaire-subtext {
  font-size: 13px;
  line-height: 1.4;
  color: #666;
  margin-bottom: 14px;
}

.question-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.single-question-mode .question-item {
  max-width: 100%;
}

.question-item {
  border: 1px solid #ececf3;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.question-counter {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-bottom: 8px;
}

.question-text {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 10px;
}

.question-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dcdce7;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.radio-chip input {
  margin: 0;
}

.radio-chip.active {
  border-color: #8fd39a;
  background: #f6fff7;
}

.confirmation-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.terms-row,
.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* === DATE / TIME STEP === */

.datetime-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.datetime-calendar-col,
.datetime-slots-col {
  display: flex;
  align-items: flex-start;
}

.datetime-slots-col {
  margin-left: 0;
  padding-top: 2px;
}

.compact-calendar-shell,
.calendar-shell {
  margin-top: 6px;
}

.compact-calendar-toolbar,
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.calendar-month-label {
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  text-align: center;
  flex: 1;
}

.calendar-nav-btn {
  border: 1px solid #e7e7ef;
  background: #fff;
  border-radius: 8px;
  min-width: 30px;
  height: 30px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.calendar-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.compact-calendar-grid,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 40px);
  gap: 2px;
  width: max-content;
}

.calendar-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #666;
  padding: 2px 0;
}

.calendar-day,
.calendar-day-empty {
  width: 40px;
  height: 30px;
  border-radius: 5px;
}

.calendar-day {
  border: 1px solid #e7e7ef;
  background: #fff;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.calendar-day:hover {
  border-color: #111;
}

.calendar-day.active {
  border-color: #8fd39a;
  background: #8fd39a;
  color: #fff;
}

.calendar-day.active .calendar-day-number {
  color: #fff;
}

.calendar-day.disabled {
  background: #f7f7f7;
  color: #c8c8c8;
  border-color: #ececec;
  cursor: not-allowed;
}

.calendar-day-number {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.slots-panel {
  border: 1px solid #ececf3;
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  min-width: 145px;
  max-width: 155px;
}

.slots-panel-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.compact-slot-grid,
.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.slot-card {
  border: 1px solid #e7e7ef;
  border-radius: 7px;
  padding: 5px 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  min-width: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slot-card.active {
  border-color: #8fd39a;
  background: #8fd39a;
  color: #fff;
}

.slot-card.occupied {
  background: #ececec;
  color: #999;
  cursor: not-allowed;
  border-color: #dddddd;
}

.slot-card-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.slots-empty-note {
  font-size: 12px;
  color: #666;
  line-height: 1.35;
}

.selection-summary {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f7f7fb;
  border: 1px solid #ececf3;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

/* === TABLET / MOBILE === */

@media (max-width: 900px) {
  .datetime-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    justify-items: center;
  }

  .datetime-calendar-col,
  .datetime-slots-col {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0;
  }

  .slots-panel {
    padding: 8px;
    min-width: 0;
    max-width: fit-content;
  }
}

@media (max-width: 768px) {
  .booking-shell {
    padding: 18px 12px 28px;
  }

  .booking-header {
    margin-bottom: 16px;
  }

  .booking-logo {
    width: 100px;
    margin-bottom: 10px;
  }

  .booking-header h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .booking-header p {
    font-size: 14px;
    line-height: 1.4;
  }

  .booking-step {
    padding: 12px;
    min-height: auto;
    border-radius: 14px;
  }

  .booking-progress {
    gap: 5px;
    margin-bottom: 14px;
    justify-content: center;
  }

  .booking-progress-item {
    padding: 6px 9px;
    font-size: 12px;
  }

  .step-head {
    margin-bottom: 12px;
    max-width: 100%;
    text-align: center;
  }

  .step-head h2 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .step-head p,
  .step-note,
  .selection-summary {
    font-size: 13px;
    line-height: 1.4;
  }

  .booking-nav {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 46px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 12px;
  }

  .service-row-top {
    flex-direction: column;
    gap: 6px;
  }

  .services-scroll-box {
    max-height: 360px;
  }

  .inline-label {
    font-size: 14px;
  }

  .schedule-dropdown {
    max-width: 100%;
  }

  .schedule-item {
    font-size: 13px;
  }

  .question-item {
    padding: 10px;
  }

  .question-text {
    font-size: 13px;
  }

  .radio-chip {
    font-size: 13px;
    padding: 7px 10px;
  }

  .calendar-shell,
  .compact-calendar-shell {
    margin-left: auto;
    margin-right: auto;
  }

  .calendar-grid,
  .compact-calendar-grid {
    grid-template-columns: repeat(7, 34px);
  }

  .calendar-day,
  .calendar-day-empty {
    width: 34px;
    height: 28px;
  }

  .calendar-day-number {
    font-size: 10px;
  }

  .slot-grid,
  .compact-slot-grid {
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
  }

  .slot-card {
    min-width: 68px;
    padding: 5px 7px;
  }

  .slot-card-title {
    font-size: 11px;
  }

  .selection-summary {
    text-align: center;
  }
  .booking-nav {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  column-gap: 0;
  gap: 10px;
  }
}
/* === TEXT CONTAINMENT + TIGHTER STEP WIDTHS === */

.step-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-width: 0;
}

#stepSalon {
  max-width: 760px;
}

#stepService {
  max-width: 760px;
}

#stepDetails {
  max-width: 760px;
}

#stepDateTime {
  max-width: 760px;
}

#stepConfirmation {
  max-width: 680px;
}

.salon-card,
.services-scroll-box,
.details-form,
.questionnaire-box,
.confirmation-list,
.payment-choice-box,
.policy-box,
.service-row,
.question-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.salon-address,
.policy-box,
.service-row-description,
.service-row-title,
.service-row-meta,
.question-text,
.confirmation-list div,
.step-head p,
.step-head h2 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.salon-address {
  max-width: 100%;
  line-height: 1.45;
}

.service-list {
  width: 100%;
  min-width: 0;
}

.service-row {
  overflow: hidden;
}

.service-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
}

.service-row-title {
  min-width: 0;
}

.service-row-price {
  white-space: nowrap;
  justify-self: end;
}

.services-scroll-box {
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
}

.salon-card {
  max-width: 760px;
  margin: 0 auto;
}

.policy-box {
  max-width: 100%;
}

.booking-step {
  overflow: hidden;
}

@media (max-width: 768px) {
  .step-inner,
  #stepSalon,
  #stepService,
  #stepDetails,
  #stepDateTime,
  #stepConfirmation {
    max-width: 100%;
  }

  .service-row-top {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-row-price {
    justify-self: start;
  }

  .services-scroll-box {
    max-height: 360px;
  }
}

/* === STEP 2 / SERVICE CARDS FIX === */

.service-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
}

.service-row.active {
  border-color: #8fd39a;
  background: #f6fff7;
}

.service-select-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.service-select-btn:focus-visible,
.service-more-toggle:focus-visible {
  outline: 2px solid #6b42d1;
  outline-offset: 2px;
  border-radius: 8px;
}

.service-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
}

.service-row-title {
  min-width: 0;
  font-weight: 700;
}

.service-row-price {
  white-space: nowrap;
  justify-self: end;
  font-weight: 700;
}

.service-row-description {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
  margin: 0 0 6px;
  text-align: left;
}

.service-row-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-row-description.expanded {
  display: block;
}

.service-row-meta {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.service-more-toggle {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  margin: -2px 0 2px;
  color: #6b42d1;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
}

.service-more-toggle:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .service-row {
    padding: 11px;
    gap: 8px;
  }

  .service-row-top {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-row-price {
    justify-self: start;
  }

  .service-row-description {
    font-size: 13px;
    line-height: 1.35;
  }

  .service-more-toggle {
    align-self: flex-start;
    text-align: left;
    font-size: 12px;
    margin-top: 0;
  }
}
.service-row-description {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 6px;
  text-align: left;
}

.service-description-teaser {
  display: inline;
}

.service-inline-toggle {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 0 6px;
  color: #6b42d1;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: inherit;
  vertical-align: baseline;
}

.service-inline-toggle:hover {
  text-decoration: underline;
}

.service-inline-toggle:focus-visible {
  outline: 2px solid #6b42d1;
  outline-offset: 2px;
  border-radius: 4px;
}

.service-description-extra.collapsed {
  display: none;
}

.service-description-extra.expanded {
  display: inline;
}

@media (max-width: 768px) {
  .service-row-description {
    font-size: 13px;
    line-height: 1.45;
  }

  .service-inline-toggle {
    font-size: 12px;
  }
}
.service-row {
  cursor: pointer;
}

.service-row-description {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 6px;
  text-align: left;
}

.service-description-teaser {
  display: inline;
}

.service-inline-toggle {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 6px;
  color: #6b42d1;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: inherit;
  vertical-align: baseline;
  text-decoration: none;
}

.service-inline-toggle:hover {
  text-decoration: underline;
}

.service-inline-toggle:focus-visible {
  outline: 2px solid #6b42d1;
  outline-offset: 2px;
  border-radius: 4px;
}

.service-description-extra.collapsed {
  display: none;
}

.service-description-extra.expanded {
  display: inline;
}

@media (max-width: 768px) {
  .service-row-description {
    font-size: 13px;
    line-height: 1.45;
  }

  .service-inline-toggle {
    font-size: 12px;
  }
}
.accordion-section + .accordion-section {
  margin-top: 10px;
}

.service-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e7e7ef;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.service-section-toggle:hover {
  border-color: #d8d8e5;
  background: #fcfcfe;
}

.service-section-toggle:focus-visible {
  outline: 2px solid #6b42d1;
  outline-offset: 2px;
}

.service-section-toggle-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.service-section-toggle-arrow {
  font-size: 13px;
  color: #555;
  line-height: 1;
  flex-shrink: 0;
}

.service-section-panel {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .service-section-toggle {
    padding: 13px 14px;
  }

  .service-section-toggle-label {
    font-size: 15px;
  }

  .service-section-toggle-arrow {
    font-size: 12px;
  }

  .service-section-panel {
    margin-top: 8px;
  }
}
.datetime-layout {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, auto);
  align-items: start;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
}

.datetime-slots-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.calendar-shell,
.compact-calendar-shell {
  margin-top: 0;
}

.calendar-toolbar,
.compact-calendar-toolbar {
  margin-bottom: 10px;
}

.slots-panel {
  border: 1px solid #ececf3;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  min-width: 170px;
  max-width: 190px;
  box-sizing: border-box;
}

.slots-panel-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.selection-summary {
  margin: 0 auto;
  max-width: 520px;
  padding: 10px 12px;
  background: #f7f7fb;
  border: 1px solid #ececf3;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.slots-empty-note {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .datetime-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    justify-items: center;
    margin-bottom: 10px;
  }

  .datetime-calendar-col,
  .datetime-slots-col {
    width: 100%;
  }

  .slots-panel {
    min-width: 0;
    max-width: 320px;
    width: 100%;
  }

  .selection-summary {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .datetime-layout {
    gap: 10px;
  }

  .slots-panel {
    padding: 9px 10px;
  }

  .selection-summary {
    max-width: 100%;
    font-size: 12px;
    padding: 9px 10px;
  }
}
.datetime-layout {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(170px, 190px);
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
}

.datetime-calendar-col,
.datetime-slots-col {
  display: flex;
  align-items: stretch;
}

.calendar-shell,
.compact-calendar-shell,
.slots-panel {
  height: 100%;
}

.calendar-shell,
.compact-calendar-shell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.slots-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 170px;
  max-width: 190px;
  box-sizing: border-box;
}

.slot-grid,
.compact-slot-grid {
  align-content: flex-start;
}

@media (max-width: 900px) {
  .datetime-layout {
    grid-template-columns: 1fr;
    align-items: start;
    width: 100%;
  }

  .datetime-calendar-col,
  .datetime-slots-col {
    align-items: flex-start;
    justify-content: center;
  }

  .calendar-shell,
  .compact-calendar-shell,
  .slots-panel {
    height: auto;
  }

  .slots-panel {
    min-width: 0;
    max-width: 320px;
    width: 100%;
  }
}
#stepDateTime {
  max-width: 760px;
  margin: 0 auto;
}

.datetime-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: start;
  gap: 16px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 12px;
}

.datetime-calendar-col,
.datetime-slots-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.calendar-shell,
.compact-calendar-shell {
  width: 100%;
  margin: 0;
}

.slots-panel {
  width: 100%;
  min-width: 0;
  max-width: 180px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.slots-panel-title {
  font-size: 13px;
  font-weight: 700;
  margin: 2px 0 8px;
}

.slot-grid,
.compact-slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  justify-content: flex-start;
}

.selection-summary {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 14px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.booking-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.booking-nav #btnBack {
  justify-self: start;
}

.booking-nav #btnNext,
.booking-nav #btnSubmit {
  justify-self: end;
}

@media (max-width: 768px) {
  .datetime-layout {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 12px;
  }

  .slots-panel {
    max-width: 320px;
  }

  .selection-summary {
    max-width: 320px;
    margin-bottom: 12px;
  }

  .booking-nav {
    max-width: 320px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .booking-nav #btnBack,
  .booking-nav #btnNext,
  .booking-nav #btnSubmit {
    justify-self: stretch;
  }
}
@media (min-width: 769px) {
  .datetime-layout {
    grid-template-columns: max-content max-content;
    justify-content: center;
    column-gap: 32px;
    max-width: fit-content;
  }

  .datetime-calendar-col {
    justify-content: flex-start;
  }

  .calendar-shell,
  .compact-calendar-shell {
    width: fit-content;
    margin: 0;
  }

  .datetime-slots-col {
    justify-content: flex-end;
    padding-left: 0;
  }

  .slots-panel {
    width: 180px;
    max-width: 180px;
    margin-left: auto;
  }
}
/* === STEP 5 / CONFIRMATION === */

.confirmation-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.confirmation-card-inner {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.confirmation-section {
  display: grid;
  gap: 10px;
}

.confirmation-section + .confirmation-section {
  padding-top: 2px;
  border-top: 1px solid #f0f0f6;
}

.confirmation-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.confirmation-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.confirmation-list div {
  line-height: 1.45;
  color: #333;
}

.payment-choice-box {
  display: grid;
  gap: 10px;
  background: #fafafe;
  border: 1px solid #ececf3;
  border-radius: 12px;
  padding: 12px;
}

.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  line-height: 1.4;
}

.radio-row input {
  margin-top: 2px;
}

.confirmation-note {
  font-size: 13px;
  line-height: 1.45;
  color: #666;
  background: #f7f7fb;
  border: 1px solid #ececf3;
  border-radius: 10px;
  padding: 10px 12px;
}

.onsite-payment-box {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #fafafe;
  border: 1px solid #ececf3;
  border-radius: 12px;
  padding: 12px;
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  line-height: 1.4;
}

.terms-row input {
  margin-top: 3px;
}

#stepConfirmation .salon-link {
  margin: 0;
}

@media (max-width: 768px) {
  .confirmation-card {
    max-width: 100%;
    border-radius: 14px;
  }

  .confirmation-card-inner {
    padding: 14px;
    gap: 16px;
  }

  .confirmation-section-title {
    font-size: 15px;
  }

  .confirmation-list div,
  .onsite-payment-box {
    font-size: 13px;
    line-height: 1.45;
  }

  .confirmation-note {
    font-size: 12px;
  }
}
.confirmation-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.confirmation-list div {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}

/* ----------------------------
   MOBILE SERVICE CARD TEXT FIX
---------------------------- */

@media (max-width: 768px) {
  .service-row-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .service-row-title,
  .service-row-price {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    justify-self: start !important;
  }

  .service-row-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .service-row-price {
    font-size: 16px;
    line-height: 1.3;
  }
}
