/* ===================================================================
   AlleDoctor Booking — Product Page Calendar CSS
   Colors: alledoctor.pl site palette
   Primary: #5A5E5D | Accent: #F2F47C | Bg: #F6F7F7 | Border: #DFE4E2
   =================================================================== */

/* ── Container ────────────────────────────────────────────────────── */
.adb-product-booking {
  margin-top: 40px;
  font-family: 'Rethink Sans', 'Segoe UI', Arial, sans-serif;
}

/* Section title */
.adb-product-booking__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.adb-product-booking__title-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #5A5E5D 0%, #747877 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(90,94,93,0.22);
}
.adb-product-booking__title-icon svg {
  width: 24px; height: 24px; stroke: #F2F47C;
}
.adb-product-booking__title h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #222 !important;
  margin: 0 0 3px !important;
  line-height: 1.2 !important;
}
.adb-product-booking__title p {
  font-size: 14px !important;
  color: #666b68 !important;
  margin: 0 !important;
}

/* ── Steps ────────────────────────────────────────────────────────── */
.adb-steps {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.adb-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #666b68;
  white-space: nowrap;
}
.adb-step__num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #f0f1f1; color: #5A5E5D;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
  border: 1.5px solid #DFE4E2;
}
.adb-step.active .adb-step__num { background: #5A5E5D; color: #fff; border-color: #5A5E5D; }
.adb-step.done   .adb-step__num { background: #10b981; color: #fff; border-color: #10b981; }
.adb-step.active { color: #5A5E5D; }
.adb-step.done   { color: #10b981; }
.adb-step-line {
  flex: 1; height: 2px; background: #DFE4E2; margin: 0 8px; min-width: 20px;
}
.adb-step-line.done { background: #10b981; }

/* ── Layout: 1-col (since container is 50% width) ───────────────── */
.adb-product-booking__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
/* Force theme SVG fill reset */
.adb-product-booking svg,
.adb-checkout-wrap svg {
  fill: none !important;
}

/* ── Calendar card ────────────────────────────────────────────────── */
.adb-product-booking__calendar-card {
  background: #fff;
  border: 1px solid #DFE4E2;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(90,94,93,0.07);
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.adb-product-booking__sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Doctor card */
.adb-pp-doctor-card {
  background: #fff;
  border: 1px solid #DFE4E2;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(90,94,93,0.06);
}
.adb-pp-doctor-card__photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #5A5E5D;
  flex-shrink: 0;
}
.adb-pp-doctor-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0f1f1 0%, #F2F47C 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  border: 2.5px solid #5A5E5D;
}
.adb-pp-doctor-card__info strong {
  display: block; font-size: 14px; font-weight: 700; color: #222;
}
.adb-pp-doctor-card__info span {
  font-size: 13px; color: #666b68;
}
.adb-pp-doctor-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #d1fae5; color: #065f46;
  padding: 2px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700;
  margin-top: 5px;
}
.adb-pp-doctor-badge::before { content: '●'; font-size: 7px; }

/* Info card */
.adb-pp-info-card {
  background: #F6F7F7;
  border: 1px solid #DFE4E2;
  border-radius: 14px;
  padding: 18px;
}
.adb-pp-info-card h4 {
  font-size: 13px; font-weight: 700;
  color: #222; margin: 0 0 12px;
}
.adb-pp-info-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; font-size: 13px; color: #444;
}
.adb-pp-info-row:last-child { margin-bottom: 0; }
.adb-pp-info-row__icon {
  width: 30px; height: 30px;
  background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(90,94,93,0.08);
}
.adb-pp-info-row__icon svg { width: 16px; height: 16px; stroke: #5A5E5D; }
.adb-pp-info-row__text strong { display: block; font-weight: 700; color: #222; }
.adb-pp-info-row__text span   { font-size: 12px; color: #666b68; }

/* CTA card */
.adb-pp-cta-card {
  background: linear-gradient(135deg, #5A5E5D 0%, #747877 100%);
  border-radius: 14px;
  padding: 20px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 20px rgba(90,94,93,0.28);
}
.adb-pp-cta-card p {
  font-size: 13px; opacity: 0.85; margin: 0 0 12px; line-height: 1.5;
}
.adb-pp-cta-selection {
  background: rgba(255,255,255,0.15);
  border-radius: 10px; padding: 10px;
  margin-bottom: 12px; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  display: none;
}
.adb-pp-cta-selection.visible { display: block; }
.adb-pp-cta-selection strong { display: block; font-size: 15px; font-weight: 800; }
.adb-pp-cta-hint {
  font-size: 12px; opacity: 0.75;
  margin-bottom: 14px;
}

/* "Umów wizytę" button */
.adb-pp-go-btn {
  display: block; width: 100%;
  background: #F2F47C;
  color: #5A5E5D;
  border: none; border-radius: 12px;
  padding: 14px;
  font-size: 15px; font-weight: 800;
  cursor: pointer; transition: 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  font-family: 'Rethink Sans', Arial, sans-serif;
  letter-spacing: 0.3px;
}
.adb-pp-go-btn:hover {
  background: #d4d640 !important;
  transform: translateY(-2px);
}
.adb-pp-go-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

/* --- RECIPE QUESTIONNAIRE --- */
.adb-recipe-q {
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.adb-recipe-q__head {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--p-ultra);
  color: var(--p);
  transition: background 0.2s;
}
.adb-recipe-q__head:hover {
  background: #eef2ff;
}
.adb-recipe-q__head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--p);
}
.adb-recipe-q__head .adb-chevron {
  transition: transform 0.3s ease;
}
.adb-recipe-q.open .adb-chevron {
  transform: rotate(180deg);
}
.adb-recipe-q__body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.adb-recipe-q.open .adb-recipe-q__body {
  padding: 16px;
  max-height: 2000px;
}
.adb-field {
  margin-bottom: 12px;
}
.adb-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.adb-field input[type="text"],
.adb-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  transition: 0.2s;
}
.adb-field input[type="text"]:focus,
.adb-field textarea:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px var(--p-ultra);
}

/* --- RESPONSIVE --- */
/* ── Time slots ───────────────────────────────────────────────────── */
.adb-product-booking .adb-timeslots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.adb-product-booking .adb-timeslot {
  padding: 10px 18px;
  font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
/* Tablet */
@media (max-width: 1024px) {
  .adb-product-booking__grid {
    grid-template-columns: 1fr;
  }
  .adb-product-booking__sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .adb-pp-cta-card { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  .adb-product-booking { margin-top: 28px; }
  .adb-product-booking__calendar-card { padding: 14px; border-radius: 12px; }
  .adb-product-booking__title h3 { font-size: 17px !important; }
  .adb-product-booking__sidebar { grid-template-columns: 1fr; }
  .adb-steps { gap: 0; }
  .adb-step-line { min-width: 16px; }
  .adb-product-booking .adb-timeslot { padding: 8px 13px; font-size: 13px; }
}

/* Very small */
@media (max-width: 375px) {
  .adb-product-booking__calendar-card { padding: 10px; }
  .adb-step span { display: none; }
  .adb-product-booking .adb-day { font-size: 11px; }
}
