/* /jak-se-objednat (Story #15624, Task #15633) — the booking guide for patients.
   Soft public style (doc/ui-public-conventions.md), scoped under .guide-page so Tailwind
   utilities, the header and the footer keep winning. Colour tokens are the shared :root set
   of public.css; sizes are larger than on the HP because seniors read this page. */

.guide-page {
  --shadow-card: 0 10px 30px -12px rgba(17, 24, 39, .18);
  --shadow-phone: 0 20px 44px -18px rgba(17, 24, 39, .35);
  --tint: #f0fbf9;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.6;
}

.guide-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.guide-wrap--narrow { max-width: 1000px; }
.guide-wrap--text { max-width: 820px; }

.guide-page h1,
.guide-page h2,
.guide-page h3 { font-family: 'Alata', sans-serif; font-weight: 400; color: var(--ink); margin: 0; }
.guide-page h2 { text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.15; }
.guide-page strong { font-family: 'Poppins', sans-serif; font-weight: 600; }
.guide-page p { margin: 0; }
.guide-page p a { color: var(--teal-ink); }
.guide-page p a:hover { color: var(--teal-deep); }

.guide-lead { margin: 14px auto 0 !important; max-width: 36em; text-align: center; font-size: 1.19rem; color: var(--ink-2); }

.guide-page .ms {
  font-family: 'Material Symbols Sharp';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-size: 24px;
}

/* Circular gradient badge with a white glyph, like the HP .hp-who icons. */
.guide-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid !important;
  place-items: center;
  color: #fff;
  font-size: 28px !important;
  background-image: linear-gradient(135deg, var(--teal-icon) 0%, var(--blue-deep) 100%);
  box-shadow: 0 10px 20px -10px rgba(31, 158, 148, .7);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 48;
}

/* Patient button: .btn-patient (turquoise, dark ink, .5rem radius) sized for a big tap target. */
.guide-page a.guide-book {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.19rem;
  text-decoration: none;
}
.guide-page a.guide-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 26px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
}

/* Hero with the gradient bubbles */
.guide-hero { position: relative; overflow: hidden; padding: clamp(48px, 6.5vw, 72px) 0 clamp(56px, 7vw, 80px); }
.guide-bubble { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .15; pointer-events: none; }
.guide-bubble--1 { width: 420px; height: 420px; background: var(--teal); top: -80px; left: -60px; }
.guide-bubble--2 { width: 380px; height: 380px; background: var(--blue); top: 120px; right: -40px; }
.guide-bubble--3 { width: 300px; height: 300px; background: var(--green); opacity: .12; bottom: -120px; left: 38%; }
.guide-hero__grid { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.guide-hero__text { flex: 1 1 440px; min-width: 0; }
.guide-kicker {
  margin: 0 0 14px !important;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.guide-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; max-width: 15ch; text-wrap: balance; }
.guide-hero__lead { margin-top: 22px !important; font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.guide-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.guide-hero__note { margin-top: 22px !important; font-size: 1rem; color: var(--muted); max-width: 36em; }

/* Screenshot in a white rounded phone frame */
.guide-phone { flex: 0 0 auto; width: 220px; margin: 0 auto; padding: 7px; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-phone); }
.guide-phone img { display: block; width: 100%; height: auto; border-radius: 21px; }
.guide-phone--hero { width: 250px; padding: 8px; border-radius: 30px; box-shadow: 0 24px 50px -18px rgba(17, 24, 39, .35); }
.guide-phone--hero img { border-radius: 22px; }

/* The four parts at a glance */
.guide-parts { padding: 0 0 clamp(48px, 6.5vw, 72px); }
.guide-parts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.guide-page a.guide-part {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease;
}
.guide-page a.guide-part:hover { transform: translateY(-2px); }
.guide-part .ms { flex: 0 0 42px; height: 42px; border-radius: 50%; background: #e6f7f5; color: var(--teal-deep); display: grid; place-items: center; font-size: 22px; }
.guide-part__text { display: flex; flex-direction: column; }
.guide-part__title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.06rem; }
.guide-part__sub { font-family: 'Roboto Slab', serif; font-size: .94rem; color: var(--ink-2); line-height: 1.45; }

/* Card grids: what you need, when plans change */
.guide-need,
.guide-changes { background: var(--ground); padding: clamp(56px, 7vw, 80px) 0; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 40px; }
.guide-cards--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide-card { padding: 26px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-card); }
.guide-card h3 { margin: 16px 0 6px; font-size: 1.4rem; }
.guide-card p { color: #374151; }
.guide-changes .guide-badge { width: 52px; height: 52px; font-size: 26px !important; }

.guide-tip { display: flex; gap: 18px; align-items: flex-start; margin-top: 24px; padding: 22px 26px; border-radius: 16px; background: var(--tint); }
.guide-tip .ms { color: var(--teal-icon); font-size: 32px; }

/* Steps */
.guide-steps { padding: clamp(56px, 7.5vw, 88px) 0 40px; }
.guide-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.guide-step:last-child { border-bottom: 0; }
.guide-step--reverse { flex-direction: row-reverse; }
.guide-step__body { flex: 1 1 360px; min-width: 0; display: flex; gap: 20px; align-items: flex-start; }
.guide-step__number {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  background-image: var(--btn-grad);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.375rem;
  display: grid;
  place-items: center;
}
.guide-step h3 { margin: 4px 0 12px; font-size: 1.75rem; line-height: 1.2; }
.guide-step p { font-size: 1.19rem; color: #374151; }
.guide-step p.guide-step__note { margin-top: 12px; font-size: 1.06rem; color: var(--ink-2); }
.guide-step .guide-phone { margin: 0; }

.guide-alert { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: #fef2f2; }
.guide-alert .ms { color: #b91c1c; font-size: 22px; margin-top: 3px; }
.guide-step .guide-alert p { font-size: 1.06rem; color: var(--ink); }
.guide-step p.guide-fee { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: #fffbeb; font-size: 1.06rem; color: #374151; }

/* FAQ */
.guide-faq { padding: clamp(56px, 7vw, 80px) 0; }
.guide-faq__list { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.guide-faq details { padding: 20px 24px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-card); scroll-margin-top: 80px; }
.guide-faq summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary .ms { color: var(--teal-icon); transition: transform .2s; }
.guide-faq details[open] summary .ms { transform: rotate(180deg); }
.guide-faq details p { margin-top: 10px; color: #374151; }
.guide-faq details:target { box-shadow: 0 0 0 3px var(--teal-icon), var(--shadow-card); }

/* Closing CTA — the patient's button on a light tint, not a gradient band */
.guide-final { background: var(--tint); padding: clamp(56px, 7vw, 72px) 0; text-align: center; }
.guide-final .guide-lead { margin-bottom: 28px !important; }

@media (max-width: 640px) {
  .guide-step { gap: 28px; padding: 40px 0; }
  .guide-step__body { gap: 14px; }
  .guide-step__number { flex-basis: 44px; height: 44px; font-size: 1.2rem; }
  .guide-step h3 { font-size: 1.5rem; }
  .guide-hero__grid { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-page a.guide-part,
  .guide-faq summary .ms { transition: none; }
  .guide-page a.guide-part:hover { transform: none; }
}

/* Print version (Task #15634) — A4 portrait for the waiting room. The QR header shows only on paper;
   "Vytisknout návod" sits next to the final "Objednat se". guide_print_controller.js opens every FAQ
   answer before printing. Header, footer and other layout chrome sit outside .guide-page, so they are
   hidden through the body classes the public layout sets (public pages patient_guide). */
.guide-print-header { display: none; }
.guide-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.guide-page a.guide-print-link { gap: 10px; }

/* /vase-udaje (Story #15624, Task #15636) — the plain-language privacy page reuses the guide's cards and tips. */
.privacy-section { padding: clamp(56px, 7vw, 80px) 0; scroll-margin-top: 80px; }
.privacy-section--ground { background: var(--ground); }
.privacy-section .guide-tip { margin-top: 32px; }
.privacy-note { margin-top: 24px !important; color: var(--ink-2); max-width: 46em; }

@media print {
  @page { size: A4 portrait; margin: 14mm 14mm 16mm; }

  body.public.patient_guide > :not(main),
  body.public.patient_guide main > :not(.guide-page) { display: none !important; }
  body.public.patient_guide { background: #fff; }

  .guide-page { font-size: 12pt; line-height: 1.45; color: #000; }
  .guide-page * { box-shadow: none !important; }
  .guide-wrap { max-width: none; padding: 0; }

  .guide-bubble,
  .guide-parts,
  .guide-hero__actions,
  .guide-hero .guide-phone,
  .guide-final__actions,
  .guide-page a.guide-book,
  .guide-page .btn-secondary,
  .guide-faq summary .ms { display: none !important; }

  .guide-print-header { display: flex; gap: 6mm; align-items: center; padding-bottom: 5mm; margin-bottom: 5mm; border-bottom: 1px solid #9ca3af; break-inside: avoid; }
  .guide-print-header__qr { width: 32mm; height: 32mm; flex: 0 0 auto; }
  .guide-print-header__scan { font-size: 12pt; }
  .guide-print-header__url { margin-top: 2mm !important; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16pt; }

  .guide-page h1 { font-size: 24pt; max-width: none; }
  .guide-page h2 { font-size: 18pt; break-after: avoid; }
  .guide-page h3 { font-size: 14pt; break-after: avoid; }
  .guide-lead,
  .guide-hero__lead,
  .guide-step p,
  .guide-faq details p { font-size: 12pt !important; color: #000 !important; }
  .guide-hero__note,
  .guide-step p.guide-step__note,
  .guide-card p,
  .guide-part__sub { font-size: 12pt; color: #1f2937; }

  .guide-hero,
  .guide-need,
  .guide-changes,
  .guide-steps,
  .guide-faq,
  .guide-final { padding: 6mm 0; background: none; overflow: visible; }
  .guide-steps { break-before: page; }

  .guide-cards { display: block; margin-top: 4mm; }
  .guide-card { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4mm; padding: 3mm 0; border-radius: 0; break-inside: avoid; }
  .guide-card h3 { margin: 0; }
  .guide-card p { flex: 1 0 100%; }
  .guide-badge { width: 10mm; height: 10mm; font-size: 16pt !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .guide-tip { padding: 3mm 4mm; border: 1px solid #9ca3af; background: none; break-inside: avoid; }

  /* Each step on one piece of paper: text on the left, the screenshot about 5 cm wide on the right. */
  .guide-step,
  .guide-step--reverse { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 6mm; padding: 5mm 0; break-inside: avoid; page-break-inside: avoid; }
  .guide-step__number { flex: 0 0 10mm; height: 10mm; font-size: 13pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .guide-step .guide-phone { flex: 0 0 50mm; width: 50mm; padding: 0; border: 1px solid #d1d5db; border-radius: 4mm; }
  .guide-step .guide-phone img { border-radius: 4mm; }

  /* The red acute box and the yellow fee box keep their colours on paper. */
  .guide-alert,
  .guide-step p.guide-fee { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .guide-alert { border: 1px solid #fca5a5; }
  .guide-step p.guide-fee { border: 1px solid #fcd34d; }

  .guide-faq__list { gap: 3mm; margin-top: 4mm; }
  .guide-faq details { padding: 0; border-radius: 0; break-inside: avoid; }
  .guide-faq summary { font-size: 12pt; }
  .guide-page p a { color: #000; text-decoration: underline; }
}
