.consultation-booking-page {
  font-family: 'Alexandria', sans-serif;
  overflow: visible;
  max-width: 100%;
}

.profile.general-section:has(.consultation-booking-page) {
  overflow: visible;
}

.consultation-booking-page .box-contain,
.consultation-booking-page .booking-wizard-card,
.consultation-booking-page .booking-summary,
.consultation-booking-page .booking-coupon-panel {
  overflow: visible;
  max-width: 100%;
}

.booking-alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.booking-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.booking-wizard-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.booking-wizard-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #0d0c0d;
  text-align: right;
}

.booking-stepper {
  position: relative;
}

.booking-stepper__track {
  position: absolute;
  right: 34px;
  left: 34px;
  top: 26px;
  height: 4px;
  background: #e1e1e1;
  border-radius: 5px;
  z-index: 0;
}

.booking-stepper__progress {
  height: 100%;
  background: #633479;
  border-radius: 5px;
  transition: width 0.3s ease;
}

.booking-stepper__steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  direction: ltr;
  position: relative;
  z-index: 1;
}

.booking-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92px;
}

.booking-stepper__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f5f5f5;
  background: #ffffff;
}

.booking-stepper__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.booking-stepper__icon--muted {
  background: #ffffff;
  border-color: #f5f5f5;
}

.booking-stepper__icon--active {
  background: #633479;
  border-color: #633479;
}

.booking-stepper__icon--active img {
  filter: brightness(0) invert(1);
}

.booking-stepper__icon--done {
  background: #633479;
  border-color: #633479;
}

.booking-stepper__fallback {
  font-size: 20px;
  line-height: 1;
}

.booking-stepper__label {
  font-size: 16px;
  line-height: 24px;
  color: #8e8e8e;
  text-align: center;
}

.booking-stepper__step.is-active .booking-stepper__label {
  color: #633479;
  font-weight: 600;
}

.booking-stepper__step.is-done .booking-stepper__label {
  color: #8e8e8e;
}

.booking-step-panel {
  display: none;
  flex-direction: column;
  gap: 32px;
}

.booking-step-panel.is-active {
  display: flex;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-field__label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: #000000;
  text-align: right;
}

.booking-chips {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: flex-end; */
  gap: 16px;
}

.booking-chip {
  margin: 0;
  cursor: pointer;
}

.booking-chip input {
  display: none;
}

.booking-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 100px;
  background: #f8f8f8;
  border: 1px solid #eeeeee;
  font-size: 14px;
  color: #4b4b4b;
  line-height: 22px;
  transition: 0.2s ease;
}

.booking-chip input:checked + span {
  background: #d8aeec;
  color: #000000;
  border-color: #d8aeec;
}

.booking-text-input,
.booking-textarea {
  width: 100%;
  border: 0.5px solid #d1d1dd;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 12px;
  text-align: right;
  resize: vertical;
}

.booking-textarea {
  min-height: 120px;
}

.booking-yes-no {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.booking-toggle-group {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.booking-toggle {
  min-width: 73px;
  padding: 8px 32px;
  border: 1px solid #8e8e8e;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 16px;
  color: #4b4b4b;
  cursor: pointer;
}

.booking-toggle.is-selected {
  background: #d8aeec;
  border-color: #d8aeec;
  color: #000000;
}

.booking-date-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f8f8;
  border: 1px solid #eeeeee;
  border-radius: 8px;
}

.booking-date-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  text-align: right;
  color: #4b4b4b;
}

.booking-date-input img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.booking-time-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-time-slots__grid {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: flex-end; */
  gap: 16px;
}

.booking-time-slot {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 140px;
  max-width: 248px;
  padding: 12px 16px;
  border-radius: 100px;
  border: 1px solid #eeeeee;
  background: #f8f8f8;
  font-family: inherit;
  font-size: 14px;
  color: #4b4b4b;
  cursor: pointer;
  text-align: center;
}

.booking-time-slot.is-selected {
  background: #d8aeec;
  color: #633479;
  border-color: #d8aeec;
}

.booking-time-slot:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-time-slots__hint,
.booking-time-slots__empty,
.booking-time-slots__loading {
  margin: 0;
  font-size: 14px;
  color: #8e8e8e;
  text-align: right;
}

.booking-summary {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-summary__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #171717;
  text-align: right;
}

.booking-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #4b4b4b;
}

.booking-summary__row strong {
  font-weight: 400;
  font-size: 16px;
  color: #000000;
}

.booking-summary__row--total span,
.booking-summary__row--total .booking-summary__total {
  color: #633479;
  font-size: 16px;
}

.booking-summary__total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 20px !important;
}

.booking-summary__price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.booking-summary__price img,
.booking-summary__total img {
  width: 14px;
  height: 16px;
}

.booking-summary__divider {
  height: 1px;
  background: #e8e6e9;
}

.booking-summary__coupon {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.booking-coupon-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-coupon-panel__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.booking-coupon-panel__input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e8e6e9;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
}

.booking-coupon-panel__apply {
  display: block !important;
  visibility: visible !important;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #633479;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

.booking-coupon-panel__apply:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.booking-coupon-panel__message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: right;
}

.booking-coupon-panel__message.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
}

.booking-coupon-panel__message.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.booking-summary__price--discount {
  color: #10b981;
}

.booking-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-payment-methods__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-payment-option {
  margin: 0;
  cursor: pointer;
}

.booking-payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-payment-option__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: #ffffff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.booking-payment-option input:checked + .booking-payment-option__box {
  border-color: #633479;
  background: #f9f3fc;
}

.booking-payment-option__title {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

.booking-payment-option__hint {
  font-size: 13px;
  color: #8e8e8e;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.booking-payment-option__hint img {
  width: 14px;
  height: 14px;
}

.booking-payment-methods__warn {
  margin: 0;
  font-size: 13px;
  color: #b42318;
  text-align: right;
}

.booking-payment-methods__warn a {
  color: #633479;
  font-weight: 600;
}

.booking-consultation-types {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-consultation-type {
  margin: 0;
  cursor: pointer;
}

.booking-consultation-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-consultation-type__box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: #ffffff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.booking-consultation-type input:checked + .booking-consultation-type__box {
  border-color: #633479;
  background: #f9f3fc;
}

.booking-consultation-type__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f8f8f8;
  color: #633479;
}

.booking-consultation-type__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.booking-consultation-type input:checked + .booking-consultation-type__box .booking-consultation-type__icon {
  background: #d8aeec;
}

.booking-consultation-type__title {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

.booking-consultation-type__hint {
  font-size: 13px;
  color: #8e8e8e;
}

.booking-login-hint {
  margin: 0;
  font-size: 14px;
  color: #4b4b4b;
  text-align: right;
}

.booking-login-hint a {
  color: #633479;
  font-weight: 600;
}

.booking-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.booking-actions__next {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: #633479;
  color: #ffffff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  cursor: pointer;
}

.booking-actions__back {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border: 1px solid #8e8e8e;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.booking-actions__back img {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.d-none {
  display: none !important;
}

@media (max-width: 768px) {
  .booking-wizard-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .booking-stepper__step {
    width: 72px;
  }

  .booking-stepper__icon {
    width: 44px;
    height: 44px;
  }

  .booking-yes-no {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .booking-time-slot {
    flex: 1 1 100%;
    max-width: none;
  }
}
