.bbw-overlay {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12px;
}

.bbw-overlay.bbw-hero {
  justify-content: center;
}

.bbw-card {
  max-width: 1120px;
  width: 100%;
  margin: 28px auto;
  padding: 34px 46px 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(252, 250, 247, 0.97), rgba(240, 235, 229, 0.95));
  box-shadow: 0 22px 58px rgba(38, 32, 26, 0.14);
  backdrop-filter: blur(16px);
}

.bbw-header h2 {
  margin: 0 0 8px;
  color: #171717;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3.4vw, 43px);
  font-weight: 700;
  line-height: 1.14;
  text-align: center;
}

.bbw-subtitle {
  margin: 0 0 32px;
  color: #7b736c;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  text-align: center;
}

.bbw-form label,
.bbw-therapist-picker h4 {
  display: block;
  margin: 0 0 10px;
  color: #2d2925;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 700;
}

.bbw-form select,
.bbw-form input,
.bbw-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(66, 56, 48, 0.1);
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.86);
  color: #34302b;
  font-size: 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bbw-form select:focus,
.bbw-form input:focus,
.bbw-form textarea:focus {
  border-color: rgba(31, 31, 33, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 31, 33, 0.07);
}

.bbw-form textarea {
  border-radius: 16px !important;
}

.bbw-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.bbw-hero .bbw-form select,
.bbw-hero .bbw-form input {
  flex: 1 1 180px;
}

.bbw-hero-submit {
  flex: 0 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.bbw-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  max-width: 940px;
  margin: 0 auto 24px;
  font-size: 13px;
}

.bbw-step {
  min-height: 36px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #8a837b;
  text-align: center;
  white-space: nowrap;
}

.bbw-step.current {
  background: #252525;
  color: #fff;
  box-shadow: 0 9px 20px rgba(37, 37, 37, 0.18);
}

.bbw-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.bbw-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bbw-btn:hover {
  transform: translateY(-1px);
}

.bbw-btn.primary {
  background: #252525;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 37, 37, 0.18);
}

.bbw-btn.ghost {
  border: 1px solid rgba(37, 37, 37, 0.28);
  background: rgba(255, 255, 255, 0.62);
  color: #252525;
}

.bbw-btn.link {
  background: transparent;
  color: #252525;
  padding: 0;
  border-radius: 0;
  text-decoration: underline;
  box-shadow: none;
}

.bbw-review-summary p {
  margin: 4px 0;
}

.bbw-confirmation {
  text-align: center;
  padding: 40px 20px;
}

.bbw-therapist-picker {
  margin: 4px 0 28px;
}

.bbw-therapist-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.bbw-therapist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 390px;
  padding: 26px 22px 22px;
  border: 1px solid rgba(53, 48, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: #3d372f;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(34, 28, 22, 0.045);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.bbw-therapist-card:hover,
.bbw-therapist-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 37, 37, 0.22);
  box-shadow: 0 18px 36px rgba(34, 28, 22, 0.08);
  outline: none;
}

.bbw-therapist-card.selected {
  border-color: #252525;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(34, 28, 22, 0.1);
}

.bbw-selected-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #252525;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.bbw-therapist-card.selected .bbw-selected-check {
  display: flex;
}

.bbw-therapist-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bbw-therapist-avatar,
.bbw-therapist-fallback-avatar {
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  overflow: hidden;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c3141, #9f855b);
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  line-height: 150px;
  text-align: center;
}

.bbw-therapist-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.bbw-therapist-name {
  display: block;
  margin-bottom: 8px;
  color: #2d2925;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.bbw-therapist-summary {
  display: block;
  min-height: 66px;
  color: #827a72;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.42;
}

.bbw-profile-toggle {
  margin-top: auto;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
  color: #3a352f;
  cursor: pointer;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 700;
}

.bbw-profile-toggle:hover,
.bbw-profile-toggle:focus-visible {
  text-decoration: underline;
  outline: none;
}

.bbw-therapist-full {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(53, 48, 42, 0.1);
  color: #5c554d;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.bbw-therapist-card.profile-open .bbw-therapist-full {
  display: block;
}

.bbw-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 6px;
}

.bbw-field label {
  margin-bottom: 8px;
}

.bbw-availability-message {
  margin-top: 10px;
  font-size: 14px;
}

.bbw-availability-message.ok {
  color: #1e7e34;
}

.bbw-availability-message.error {
  color: #c82333;
}

@media (max-width: 1024px) {
  .bbw-card {
    max-width: 900px;
    padding: 30px 28px;
  }

  .bbw-therapist-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .bbw-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .bbw-card {
    margin: 10px auto 18px;
    padding: 22px 16px;
    border-radius: 18px;
  }

  .bbw-header h2 {
    font-size: 44px;
  }

  .bbw-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .bbw-steps {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    font-size: 0;
  }

  .bbw-step {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
  }

  .bbw-step::before {
    content: attr(data-step);
    font-size: 13px;
    font-weight: 700;
  }

  .bbw-hero-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bbw-hero .bbw-form select,
  .bbw-hero .bbw-form input,
  .bbw-hero-submit {
    flex: 1 1 100%;
    width: 100%;
  }

  .bbw-therapist-list,
  .bbw-schedule-grid {
    grid-template-columns: 1fr;
  }

  .bbw-therapist-card {
    min-height: auto;
  }

  .bbw-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .bbw-actions .bbw-btn {
    width: 100%;
    text-align: center;
  }
}
/* Keep profile action as a text link, isolated from theme button styles. */
.bbw-card .bbw-therapist-card button.bbw-profile-toggle,
.bbw-card .bbw-therapist-card .bbw-profile-toggle {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: auto auto 0 !important;
  padding: 10px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #3b352f !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
}

.bbw-card .bbw-therapist-card button.bbw-profile-toggle span,
.bbw-card .bbw-therapist-card .bbw-profile-toggle span {
  display: none !important;
}

.bbw-card .bbw-therapist-card button.bbw-profile-toggle::after,
.bbw-card .bbw-therapist-card .bbw-profile-toggle::after {
  content: '->';
  display: inline-block;
  margin-left: 2px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1;
  transform: translateY(1px);
}

.bbw-card .bbw-therapist-card.profile-open button.bbw-profile-toggle::after,
.bbw-card .bbw-therapist-card.profile-open .bbw-profile-toggle::after {
  content: '^';
}

.bbw-card .bbw-therapist-card button.bbw-profile-toggle:hover,
.bbw-card .bbw-therapist-card button.bbw-profile-toggle:focus-visible {
  background: transparent !important;
  color: #171717 !important;
  text-decoration: underline !important;
  outline: none !important;
}
.bbw-card .bbw-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 14px;
  fill: currentColor;
  vertical-align: -2px;
}

.bbw-card .bbw-selected-check .bbw-icon-check {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.bbw-card .bbw-therapist-card button.bbw-profile-toggle::after,
.bbw-card .bbw-therapist-card .bbw-profile-toggle::after,
.bbw-card .bbw-therapist-card.profile-open button.bbw-profile-toggle::after,
.bbw-card .bbw-therapist-card.profile-open .bbw-profile-toggle::after {
  content: none !important;
}

.bbw-card .bbw-therapist-card button.bbw-profile-toggle svg,
.bbw-card .bbw-therapist-card .bbw-profile-toggle svg {
  margin-left: 2px;
}
.bbw-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bbw-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.58);
  backdrop-filter: blur(4px);
}

.bbw-profile-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(252, 250, 247, 0.98), rgba(241, 236, 230, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  color: #302b26;
}

.bbw-profile-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #252525;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bbw-profile-head {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-right: 38px;
  margin-bottom: 22px;
}

.bbw-profile-photo {
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c3141, #9f855b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
}

.bbw-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bbw-profile-head h3 {
  margin: 0 0 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  line-height: 1.1;
  color: #1c1a18;
}

.bbw-profile-experience {
  margin: 0;
  color: #8a6f3c;
  font-weight: 700;
}

.bbw-profile-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(55, 48, 42, 0.12);
}

.bbw-profile-section h4 {
  margin: 0 0 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: #24201c;
}

.bbw-profile-section p {
  margin: 0;
  color: #5b544d;
  line-height: 1.65;
}

.bbw-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bbw-profile-tags span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(55, 48, 42, 0.1);
  color: #4d463f;
  font-size: 13px;
  font-weight: 700;
}

.bbw-profile-reviews {
  margin: 0;
  padding-left: 20px;
  color: #5b544d;
}

.bbw-profile-reviews li {
  margin: 0 0 8px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .bbw-profile-dialog {
    padding: 24px 18px;
  }

  .bbw-profile-head {
    display: block;
    padding-right: 36px;
  }

  .bbw-profile-photo {
    width: 108px;
    height: 108px;
    margin-bottom: 14px;
  }

  .bbw-profile-head h3 {
    font-size: 28px;
  }
}
.bbw-profile-dialog button.bbw-profile-close {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(37, 37, 37, 0.9) !important;
  background-image: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
  color: #fff !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.bbw-profile-dialog button.bbw-profile-close:hover,
.bbw-profile-dialog button.bbw-profile-close:focus-visible {
  background: #171717 !important;
  transform: translateY(-1px);
  outline: none !important;
}

.bbw-profile-dialog button.bbw-profile-close svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.bbw-review-stars { color: #b28b35; letter-spacing: 1px; font-size: 13px; }
