/* Formularze, FAQ, przygotowanie, cookies, pływający telefon */

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.topbar-item { color: inherit; transition: color 0.2s ease; }
a.topbar-item:hover { color: var(--blue); }

/* ── Formularze ── */
.form-page-section { padding: 20px 0 90px; background: #fff; }
.form-page-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}
.form-aside {
  background: var(--blue-light);
  border: 1px solid rgba(111, 175, 207, 0.25);
  border-radius: 24px;
  padding: 36px 32px;
}
.form-aside h2 { font-size: 1.35rem; margin-bottom: 18px; color: var(--ink); }
.form-aside-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.form-aside-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.form-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.form-aside-note { font-size: 13px; color: var(--ink-dim); margin: 0; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(111, 175, 207, 0.08);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 8px; color: var(--ink); }
.form-lead { font-size: 14px; color: var(--ink-dim); margin-bottom: 24px; line-height: 1.65; }

.site-form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field span,
.form-fieldset legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(111, 175, 207, 0.15);
}
.form-fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  margin: 0;
}
.form-fieldset legend { padding: 0 6px; margin-bottom: 12px; }
.form-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
}
.form-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--blue); }
.form-check a { color: var(--blue); font-weight: 600; }
.form-submit { align-self: flex-start; border: none; cursor: pointer; }
.form-alert {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 500;
}
.form-alert-success { background: rgba(111, 175, 207, 0.14); color: var(--ink); border: 1px solid rgba(111, 175, 207, 0.35); }
.form-alert-error { background: rgba(224, 85, 79, 0.08); color: #b33a35; border: 1px solid rgba(224, 85, 79, 0.25); }

.contact-quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-map-section { padding: 0 0 90px; background: #fff; }
.contact-map-section .contact-map { min-height: 380px; }

/* ── FAQ ── */
.faq-section { padding: 20px 0 90px; background: #fff; }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: rgba(111, 175, 207, 0.35);
  box-shadow: 0 12px 32px rgba(111, 175, 207, 0.1);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  translate: 0 -50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--blue);
  color: #fff;
}
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { font-size: 14px; line-height: 1.75; color: var(--ink-dim); margin: 0; }
.faq-answer a { color: var(--blue); font-weight: 600; }
.faq-cta { text-align: center; }
.faq-cta p { margin-bottom: 16px; color: var(--ink-dim); font-weight: 500; }
.faq-cta .hero-actions { justify-content: center; }

/* ── Przygotowanie — hero + animacje ── */
.page-prep { background: #fff; }
.prep-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: #fff;
}
.prep-hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.prep-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.prep-hero-inner h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.prep-hero-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-dim);
  margin-bottom: 28px;
  max-width: 36em;
}

.prep-cards-section { padding: 20px 0 70px; background: #fff; }
.prep-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.prep-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 8px 28px rgba(31, 31, 31, 0.04);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.prep-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(111, 175, 207, 0.14);
  border-color: rgba(111, 175, 207, 0.3);
}
.prep-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-light);
  margin-bottom: 16px;
  position: relative;
  animation: prepIconPulse 3s ease-in-out infinite;
}
.prep-card:nth-child(2) .prep-card-icon { animation-delay: -0.6s; }
.prep-card:nth-child(3) .prep-card-icon { animation-delay: -1.2s; }
.prep-card:nth-child(4) .prep-card-icon { animation-delay: -1.8s; }
.prep-card:nth-child(5) .prep-card-icon { animation-delay: -2.4s; }
@keyframes prepIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.prep-icon-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); font-size: 18px; }
.prep-icon-doc::after { content: "📄"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; }
.prep-icon-list::after { content: "☰"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); font-size: 20px; font-weight: 700; }
.prep-icon-mic::after { content: "🎙"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; }
.prep-icon-chat::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); font-size: 22px; font-weight: 700; }
.prep-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.prep-card p { font-size: 13.5px; line-height: 1.65; color: var(--ink-dim); margin: 0; }

.prep-timeline-section {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, #fff 0%, rgba(111, 175, 207, 0.06) 100%);
}
.prep-timeline {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}
.prep-timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(111, 175, 207, 0.15));
  transform-origin: top;
  animation: prepLineGrow 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes prepLineGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.prep-timeline-item {
  display: flex;
  gap: 20px;
  padding: 0 0 32px;
  position: relative;
}
.prep-timeline-item:last-child { padding-bottom: 0; }
.prep-timeline-num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(111, 175, 207, 0.18);
  z-index: 1;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.prep-timeline-item.in-view .prep-timeline-num,
.prep-timeline-item:hover .prep-timeline-num {
  background: var(--blue);
  color: #fff;
  transform: scale(1.08);
}
.prep-timeline-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  flex: 1;
  box-shadow: 0 8px 24px rgba(31, 31, 31, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.prep-timeline-item.in-view .prep-timeline-body,
.prep-timeline-item:hover .prep-timeline-body {
  transform: translateX(4px);
  box-shadow: 0 14px 32px rgba(111, 175, 207, 0.12);
}
.prep-timeline-body h3 { font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.prep-timeline-body p { font-size: 14px; line-height: 1.65; color: var(--ink-dim); margin: 0; }

.prep-tip-band {
  padding: 48px 0;
  background: #fff;
}
.prep-tip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  background: var(--blue-light);
  border: 1px solid rgba(111, 175, 207, 0.25);
  border-radius: 24px;
  padding: 32px 36px;
}
.prep-tip-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(111, 175, 207, 0.18);
  color: var(--blue);
}
.prep-tip-icon svg { width: 26px; height: 26px; }
.prep-tip-inner h2 { font-size: 1.25rem; margin-bottom: 8px; color: var(--ink); }
.prep-tip-inner p { font-size: 14px; line-height: 1.7; color: var(--ink-dim); margin: 0; }

.cta-band-btn-alt {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
}
.cta-band-btn-alt:hover { background: rgba(255, 255, 255, 0.12) !important; }

/* ── Promo na stronie głównej ── */
.prep-promo-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(135deg, rgba(111, 175, 207, 0.08) 0%, #fff 60%);
}
.prep-promo-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(111, 175, 207, 0.22);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px rgba(111, 175, 207, 0.12);
}
.prep-promo-card h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 10px; }
.prep-promo-card p { font-size: 14px; color: var(--ink-dim); line-height: 1.65; margin: 0; max-width: 46em; }
.prep-promo-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ── Legal ── */
.legal-section { padding: 20px 0 90px; background: #fff; }
.legal-prose { max-width: 760px; margin: 0 auto; }
.legal-prose h2 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--ink); }
.legal-prose p, .legal-prose li { font-size: 14px; line-height: 1.75; color: var(--ink-dim); }
.legal-prose ul { padding-left: 1.2rem; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.legal-prose a { color: var(--blue); font-weight: 600; }
.legal-updated { margin-top: 32px; font-size: 13px; color: var(--ink-dim); }

.footer-legal a { color: var(--ink-dim); }
.footer-legal a:hover { color: var(--blue); }

/* ── Pływający przycisk telefonu ── */
.float-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-call {
  position: static;
  right: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(111, 175, 207, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: floatCallIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.float-call svg { width: 20px; height: 20px; }
.float-call:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(111, 175, 207, 0.5);
  background: var(--blue-dark);
  color: #fff;
}
@keyframes floatCallIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Pływający przycisk dostępności ── */
.float-a11y {
  position: relative;
}
.float-a11y-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(111, 175, 207, 0.45);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: floatCallIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.float-a11y-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.float-a11y-toggle:hover,
.float-a11y-toggle[aria-expanded="true"] {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(111, 175, 207, 0.5);
  background: var(--blue-dark);
  color: #fff;
}
.float-a11y-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.float-a11y-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 95;
  min-width: 300px;
}
.float-a11y-panel[hidden] {
  display: none !important;
}
.float-a11y-panel-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line-blue);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(31, 31, 31, 0.16);
}
.a11y-btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.a11y-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.a11y-btn[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.a11y-btn-reset {
  font-weight: 500;
  color: var(--ink-dim);
}
.a11y-btn-reset:hover {
  color: var(--ink);
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 560px;
  margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 48px rgba(31, 31, 31, 0.14);
}
.cookie-banner p {
  flex: 1 1 220px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}
.cookie-banner a { color: var(--blue); font-weight: 600; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-accept { border: none; cursor: pointer; white-space: nowrap; padding: 11px 20px; font-size: 13px; }
.cookie-reject {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-dim);
  cursor: pointer;
  white-space: nowrap;
  padding: 11px 16px;
  font-size: 13px;
  border-radius: 999px;
  font-family: inherit;
}
.cookie-reject:hover { color: var(--ink); border-color: var(--ink-dim); }

@media (max-width: 900px) {
  .form-page-grid { grid-template-columns: 1fr; }
  .prep-cards-grid { grid-template-columns: 1fr 1fr; }
  .prep-promo-card { grid-template-columns: 1fr; }
  .prep-promo-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .form-row, .form-check-grid { grid-template-columns: 1fr; }
  .prep-cards-grid { grid-template-columns: 1fr; }
  .prep-tip-inner { flex-direction: column; text-align: center; }
  .float-dock { right: 16px; bottom: 16px; gap: 10px; max-width: calc(100% - 32px); }
  .float-call span,
  .float-a11y-toggle span { display: none; }
  .float-call,
  .float-a11y-toggle { padding: 16px; border-radius: 50%; flex-shrink: 0; }
  .float-a11y-panel { right: 0; left: auto; min-width: min(300px, calc(100vw - 32px)); }
  .cookie-banner { bottom: 78px; left: 12px; right: 12px; }
  .cookie-banner-inner { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .prep-card-icon, .prep-tip-icon, .float-call { animation: none !important; }
  .prep-timeline::before { animation: none; transform: scaleY(1); }
}
