/* ================================================================
   APPOINTMENT BOOKING POPUP — Heal Physio & Wellness
   All classes prefixed with bk- (no conflicts with existing styles)
   ================================================================ */

/* ── Overlay ── */
.bk-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.bk-overlay.bk-open {
  opacity: 1;
  visibility: visible;
}

/* ── Modal ── */
.bk-modal {
  width: 100%;
  max-width: 620px;
  max-height: 94vh;
  background: #0098c1;
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.40);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.86) translateY(28px);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.30s ease;
}
.bk-overlay.bk-open .bk-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ── Header ── */
.bk-header {
  background: rgba(0, 0, 0, 0.16);
  padding: 20px 26px 0;
  flex-shrink: 0;
}
.bk-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.bk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bk-brand i {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
}
.bk-brand__text strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.bk-brand__text small {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 0.03em;
}
.bk-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}
.bk-close:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(90deg);
}

/* ── Step Progress ── */
.bk-progress {
  padding-bottom: 0;
}
.bk-progress__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}
.bk-progress__fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 25%;
  transition: width 0.5s ease;
}
.bk-steps {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
}
.bk-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}
.bk-step::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.20);
}
.bk-step:last-child::after { display: none; }
.bk-step__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.bk-step span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}
.bk-step.bk-active .bk-step__dot {
  background: #fff;
  border-color: #fff;
  color: #0098c1;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
}
.bk-step.bk-active span {
  color: #fff;
  font-weight: 700;
}
.bk-step.bk-done .bk-step__dot {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.80);
  color: #fff;
}
.bk-step.bk-done span {
  color: rgba(255, 255, 255, 0.72);
}

/* ── Body (scrollable) ── */
.bk-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 26px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.bk-body::-webkit-scrollbar { width: 4px; }
.bk-body::-webkit-scrollbar-track { background: transparent; }
.bk-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
}

/* ── Step Panels ── */
.bk-step-panel { display: none; }
.bk-step-panel.bk-active {
  display: block;
  animation: bkFadeSlide 0.34s ease;
}
.bk-step-panel.bk-going-back {
  animation: bkFadeSlideBack 0.34s ease;
}
@keyframes bkFadeSlide {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bkFadeSlideBack {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Step Header ── */
.bk-step-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.bk-step-title i { font-size: 17px; opacity: 0.85; }
.bk-step-sub {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 20px;
}

/* ── Fields ── */
.bk-field { margin-bottom: 14px; }
.bk-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bk-field label {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 6px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.bk-req { color: #ffd166; margin-left: 2px; }

.bk-field input,
.bk-field select,
.bk-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.bk-field input::placeholder,
.bk-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.09);
}
.bk-field input.bk-invalid,
.bk-field select.bk-invalid,
.bk-field textarea.bk-invalid {
  border-color: #ff6b7a !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.18) !important;
}

/* Custom select arrow */
.bk-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.65)' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}
.bk-field select option { background: #007a9e; color: #fff; }

/* Date picker icon white */
.bk-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.65;
  cursor: pointer;
}

.bk-field textarea {
  resize: vertical;
  min-height: 78px;
}

/* Input with icon prefix */
.bk-input-wrap { position: relative; }
.bk-input-wrap i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.50);
  font-size: 13px;
  pointer-events: none;
}
.bk-input-wrap input { padding-left: 36px; }

/* Validation error */
.bk-err {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  color: #ffb3bc;
  margin-top: 4px;
  min-height: 15px;
}

/* ── Consultation Type (Radio Cards) ── */
.bk-consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.bk-radio-card { cursor: pointer; display: block; }
.bk-radio-card input[type="radio"] { display: none; }
.bk-radio-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.20);
  border-radius: 10px;
  text-align: center;
  transition: all 0.25s ease;
}
.bk-radio-card__body i {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
}
.bk-radio-card__body strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: block;
}
.bk-radio-card__body small {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
.bk-radio-card input:checked + .bk-radio-card__body {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}
.bk-radio-card input:checked + .bk-radio-card__body i { color: #fff; }

/* ── Consent Checkboxes ── */
.bk-consent-wrap { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 6px; }
.bk-check-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.55;
}
.bk-check-label input[type="checkbox"] { display: none; }
.bk-checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  margin-top: 1px;
}
.bk-checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid transparent;
  border-left: none;
  border-top: none;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
  margin-top: -2px;
}
.bk-check-label input:checked + .bk-checkmark {
  background: #fff;
  border-color: #fff;
}
.bk-check-label input:checked + .bk-checkmark::after {
  border-color: #0098c1;
  transform: rotate(45deg) scale(1);
}
.bk-policy-link {
  color: #ffd166;
  text-decoration: underline;
  transition: opacity 0.2s;
}
.bk-policy-link:hover { opacity: 0.80; color: #ffd166; }

/* ── Summary Box ── */
.bk-summary {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.bk-summary-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.bk-summary-row:last-child { margin-bottom: 0; }
.bk-summary-row dt {
  color: rgba(255, 255, 255, 0.52);
  min-width: 110px;
  flex-shrink: 0;
  font-weight: 500;
}
.bk-summary-row dd {
  color: #fff;
  font-weight: 600;
  margin: 0;
}

/* ── Footer Bar (nav buttons) ── */
.bk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ── Buttons ── */
.bk-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s ease;
  text-decoration: none;
}
.bk-btn--next,
.bk-btn--submit {
  background: #fff;
  color: #0098c1;
}
.bk-btn--next:hover,
.bk-btn--submit:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.bk-btn--back {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.bk-btn--back:hover { background: rgba(255, 255, 255, 0.22); }

/* ── Success Screen ── */
.bk-success {
  display: none;
  text-align: center;
  padding: 16px 12px 8px;
}
.bk-success.bk-active {
  display: block;
  animation: bkFadeSlide 0.4s ease;
}
.bk-success__icon {
  font-size: 70px;
  color: #b6ffd8;
  margin-bottom: 14px;
  display: block;
  animation: bkIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes bkIconPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.bk-success h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.bk-success p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.72;
  max-width: 380px;
  margin: 0 auto 24px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .bk-modal { border-radius: 16px; max-height: 96vh; }
  .bk-header { padding: 16px 18px 0; }
  .bk-body { padding: 18px; }
  .bk-step span { font-size: 10px; }
  .bk-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .bk-step-title { font-size: 17px; }
  .bk-btn { padding: 9px 18px; font-size: 13px; }
  .bk-consult-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .bk-step span { display: none; }
  .bk-step__dot { width: 30px; height: 30px; font-size: 11px; }
}
