/* booking.css — Hollneck booking form, pixel-perfect port of the static reference.
 * All selectors scoped under #booking-app so the form can be embedded on any host page
 * without leaking styles. Reference CSS (578 lines) copied verbatim, then prefixed.
 *
 * Removed (not rendered in dynamic version):
 *   - .trust-bottom* .partner* .trust-badge  (user: "Partner logo entfernen")
 *   - .sub-options / .sub-opt* (no drip sub-options in our flat service model)
 */

#booking-app *, #booking-app *::before, #booking-app *::after { box-sizing: border-box; margin: 0; padding: 0; }

#booking-app {
  --green:    #ACD04A;
  --teal:     #29D682;
  --dark:     #0F7A68;
  --bg:       #FBF9F7;
  --ink:      #181716;
  --deep:     #06241F;
  --muted:    #7A9490;
  --card-bg:  #FFFFFF;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(6,36,31,.09);

  font-family: 'Open Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

/* ── HEADER (nicht gerendert — Regeln für Rückwärtskompatibilität behalten) ── */
#booking-app header { display: none; }
#booking-app header img.logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}

/* ── TRUST BLOCK ── */
#booking-app .trust-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 24px;
}
#booking-app .trust-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
#booking-app .trust-text {}
#booking-app .trust-text strong {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--deep);
  display: block;
  font-weight: 500;
}
#booking-app .trust-text span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
  display: block;
  margin-top: 2px;
}
#booking-app .trust-stars { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
#booking-app .trust-stars-icons { color: var(--green); font-size: 13px; letter-spacing: 1px; }
#booking-app .trust-stars-label { font-size: 11px; color: var(--muted); font-weight: 400; }


/* ── SSL BADGES ── */
#booking-app .ssl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  padding: 10px 0 2px;
}
#booking-app .ssl-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
#booking-app .ssl-badge svg { flex-shrink: 0; }

/* ── WRAPPER ── */
#booking-app .wrapper {
  width: 100%;
  max-width: 760px;
  padding: 0 16px 48px;
  flex: 1;
}
@media (max-width: 600px) {
  #booking-app .wrapper { max-width: 480px; }
}

/* ── PROGRESS ── */
#booking-app .progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 0 24px;
}
#booking-app .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #D8D4CF;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #D8D4CF;
  transition: all .3s ease;
  position: relative;
  z-index: 1;
}
#booking-app .step-dot.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--deep);
}
#booking-app .step-dot.done {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}
#booking-app .step-dot.done::after {
  content: '\2713';
  font-size: 13px;
}
#booking-app .step-dot.done span { display: none; }
#booking-app .step-line {
  flex: 1;
  height: 2px;
  background: #D8D4CF;
  max-width: 56px;
  transition: background .3s ease;
}
#booking-app .step-line.done { background: var(--dark); }
#booking-app .step-line.filled { background: var(--dark); }

/* ── STEP LABEL ── */
#booking-app .step-label {
  text-align: center;
  margin-bottom: 24px;
}
#booking-app .step-label h2 {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 6px;
}
#booking-app .step-label p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
}

/* ── PANELS ── */
#booking-app .panel { display: none; animation: fadeUp .35s ease; }
#booking-app .panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SERVICE CARDS ── */
#booking-app .service-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#booking-app .service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
#booking-app .service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6,36,31,.13);
}
#booking-app .service-card.selected {
  border-color: var(--green);
  background: #FAFFF0;
}
#booking-app .service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--deep) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
#booking-app .service-info { flex: 1; }
#booking-app .service-info h3 {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 5px;
}
#booking-app .service-info p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}
#booking-app .service-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  background: #E8F7F0;
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-block;
  margin-top: 8px;
  letter-spacing: .3px;
}
#booking-app .service-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #D8D4CF;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
#booking-app .service-card.selected .service-check {
  background: var(--green);
  border-color: var(--green);
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
}
#booking-app .service-card.selected .service-check::after { content: '\2713'; }

/* ── CALENDAR ── */
#booking-app .calendar-wrap { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
#booking-app .cal-header {
  background: var(--deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
#booking-app .cal-header h3 { font-family: 'Lora', serif; font-size: 17px; font-weight: 500; color: #fff; }
#booking-app .cal-nav {
  background: none;
  border: none;
  color: #fff;
  opacity: .7;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: opacity .2s;
}
#booking-app .cal-nav:hover { opacity: 1; }
#booking-app .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 16px;
  gap: 4px;
}
#booking-app .cal-day-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .5px;
  padding-bottom: 8px;
}
#booking-app .cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  color: var(--ink);
}
#booking-app .cal-day:empty { cursor: default; }
#booking-app .cal-day.other { color: #D0CBC5; cursor: default; }
#booking-app .cal-day.today { font-weight: 700; color: var(--dark); }
#booking-app .cal-day.available:hover { background: #EEF9E6; color: var(--deep); }
#booking-app .cal-day.selected { background: var(--green); color: var(--deep); font-weight: 700; }
#booking-app .cal-day.past { color: #D0CBC5; cursor: default; }
#booking-app .cal-day.unavailable { color: #D0CBC5; cursor: default; }

/* ── TIME SLOTS ── */
#booking-app .time-section {
  margin-top: 20px;
}
#booking-app .time-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
#booking-app .time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
#booking-app .time-slot {
  padding: 11px 8px;
  border-radius: 10px;
  border: 2px solid #E5E0DA;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
  background: var(--card-bg);
}
#booking-app .time-slot:hover { border-color: var(--green); color: var(--dark); }
#booking-app .time-slot.selected { background: var(--green); border-color: var(--green); color: var(--deep); }
#booking-app .time-slot.booked { color: #C5C0BA; background: #F5F3F0; cursor: not-allowed; border-color: transparent; text-decoration: line-through; }

/* ── FORM FIELDS ── */
#booking-app .fields { display: flex; flex-direction: column; gap: 14px; }
#booking-app .field-group { display: flex; gap: 12px; }
#booking-app .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
#booking-app .field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}
#booking-app .field input, #booking-app .field select, #booking-app .field textarea {
  background: var(--card-bg);
  border: 2px solid #E5E0DA;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px; /* prevent iOS zoom */
  font-family: 'Open Sans', sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  width: 100%;
  -webkit-appearance: none;
}
#booking-app .field textarea {
  min-height: 92px;
  resize: vertical;
}
#booking-app .field input:focus, #booking-app .field select:focus, #booking-app .field textarea:focus { border-color: var(--green); }
#booking-app .field input::placeholder, #booking-app .field textarea::placeholder { color: #C5C0BA; }

#booking-app .toggle-group {
  display: flex;
  gap: 10px;
}
#booking-app .toggle-btn {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  border: 2px solid #E5E0DA;
  background: var(--card-bg);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
#booking-app .toggle-btn.active { border-color: var(--green); background: #FAFFF0; color: var(--deep); }

/* ── SUMMARY CARD ── */
#booking-app .summary-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 20px;
}
#booking-app .summary-card h4 {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--deep);
  margin-bottom: 14px;
}
#booking-app .summary-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F0ECE6;
}
#booking-app .summary-row:last-child { border-bottom: none; padding-bottom: 0; }
#booking-app .summary-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
#booking-app .summary-text { flex: 1; }
#booking-app .summary-text strong { font-size: 14px; color: var(--deep); display: block; }
#booking-app .summary-text span { font-size: 13px; color: var(--muted); font-weight: 300; }

#booking-app .consent {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  padding: 0 8px;
}
#booking-app .consent a { color: var(--dark); text-decoration: underline; }

/* ── SUCCESS ── */
#booking-app .success-panel {
  text-align: center;
  padding: 32px 0;
}
#booking-app .success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}
#booking-app .success-panel h2 {
  font-family: 'Lora', serif;
  font-size: 24px;
  color: var(--deep);
  margin-bottom: 10px;
}
#booking-app .success-panel p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
  text-wrap: balance;
}
#booking-app .success-detail {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

/* ── BUTTONS ── */
#booking-app .btn-primary {
  width: 100%;
  padding: 17px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green) 0%, #97C230 100%);
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--deep);
  cursor: pointer;
  margin-top: 24px;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 4px 16px rgba(172,208,74,.4);
}
#booking-app .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(172,208,74,.5); }
#booking-app .btn-primary:active { transform: translateY(0); }
#booking-app .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#booking-app .btn-back {
  background: none;
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px auto 0;
  padding: 8px;
}
#booking-app .btn-back:hover { color: var(--dark); }

/* ── NOTICE ── */
#booking-app .notice {
  background: #EDF9F4;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--dark);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
}
#booking-app .notice-icon { flex-shrink: 0; font-size: 16px; }

/* ── NO DATE SELECTED ── */
#booking-app .pick-hint {
  text-align: center;
  padding: 28px 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

/* ── ASYNC STATES (Loading / Empty / Error placeholders inside .time-slots) ── */
#booking-app .time-empty,
#booking-app .time-loading,
#booking-app .time-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px;
  font-size: 13px;
}
#booking-app .time-empty,
#booking-app .time-loading { color: var(--muted); }
#booking-app .time-error { color: #b91c1c; }

/* ── BOOT/ERROR PLACEHOLDER (initial fetch failure) ── */
#booking-app .boot-error {
  text-align: center;
  padding: 40px 16px;
  color: #b91c1c;
  font-size: 14px;
}

/* ── STORNIERUNGSBEDINGUNGEN-CHECKBOX (Panel 3, vor btn3) ── */
#booking-app .terms-row {
  margin: 22px 0 14px;
  padding: 16px 18px;
  background: #FFF9E8;            /* warmes Gelb — sticht heraus */
  border: 2px solid #F0C24A;      /* Akzent-Border, signalisiert „bitte ansehen" */
  border-radius: 12px;
  transition: background .2s, border-color .2s;
}
/* Erfüllt → ruhiger Grünton, damit Patient sieht: erledigt */
#booking-app .terms-row.is-checked {
  background: #ECFDF5;
  border-color: #29D682;
}
#booking-app .terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.5;
}
#booking-app .terms-label input[type="checkbox"] {
  margin: 1px 0 0 0;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--brand-color3, #0F7A68);
  cursor: pointer;
}
#booking-app .terms-label a {
  color: var(--brand-color3, #0F7A68);
  text-decoration: underline;
  font-weight: 600;
}
#booking-app .terms-label a:hover {
  text-decoration: none;
}

/* Hint unter dem Submit-Button — erscheint nur wenn Button disabled UND
   alle Standard-Pflichtfelder erscheinen befüllt → Patient findet die
   Checkbox schneller. Sichtbarkeit per .is-blocked-by-terms-Klasse. */
#booking-app .terms-hint {
  display: none;
  margin: -2px 0 14px;
  padding: 8px 12px;
  font-size: 13px;
  color: #92400E;
  background: #FEF3C7;
  border-left: 3px solid #F0C24A;
  border-radius: 4px;
  text-align: center;
}
#booking-app .terms-hint.is-active {
  display: block;
}
