/* Quote configurator (typeform-style stepper) — matches site tokens: bg #050505/#030303, accent #bfeeff, Inter + Playfair italic, glass-card language. */

body.qc-lock-scroll { overflow: hidden; }

#qcOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#qcOverlay[hidden] { display: none; }

.qc-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(191,238,255,.06), transparent 55%), rgba(3,3,3,.86);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .45s cubic-bezier(.16,1,.3,1);
}

#qcOverlay.qc-open .qc-backdrop { opacity: 1; }

.qc-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), #0a0a0a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 40px 140px rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}

#qcOverlay.qc-open .qc-panel { opacity: 1; transform: translateY(0) scale(1); }

.qc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.qc-progressbar {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}

.qc-progressbar > span {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #bfeeff, #eafbff);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.qc-step-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  white-space: nowrap;
}

.qc-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}

.qc-close:hover { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); }

.qc-body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 30px 28px 10px;
}

.qc-step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}

.qc-step[hidden] { display: none; }
.qc-step.qc-leaving-back { transform: translateY(-16px); }
.qc-step.is-active { opacity: 1; transform: translateY(0); }

.qc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #bfeeff;
  margin: 0 0 10px;
}

.qc-question {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #fff;
}

.qc-question em {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
}

.qc-hint {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  margin: 0 0 24px;
}

/* Site-type / maintenance / social — big single-select cards */
.qc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.qc-card {
  text-align: left;
  cursor: pointer;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  padding: 18px 20px;
  color: #fff;
  transition: border-color .35s ease, background .35s ease, transform .35s cubic-bezier(.16,1,.3,1);
}

.qc-card:hover { border-color: rgba(191,238,255,.35); transform: translateY(-2px); }

.qc-card[aria-pressed="true"] {
  border-color: #bfeeff;
  background: linear-gradient(160deg, rgba(191,238,255,.14), rgba(191,238,255,.03));
  box-shadow: 0 0 0 1px rgba(191,238,255,.4) inset;
}

.qc-card-title { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.qc-card-desc { display: block; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.5); }
.qc-card-price { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: #bfeeff; }

/* Additional services — chip grid, multi-select */
.qc-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}

.qc-chip .qc-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  transition: background .3s ease, box-shadow .3s ease;
  flex-shrink: 0;
}

.qc-chip:hover { border-color: rgba(191,238,255,.4); }

.qc-chip[aria-pressed="true"] {
  border-color: #bfeeff;
  background: rgba(191,238,255,.1);
  color: #fff;
}

.qc-chip[aria-pressed="true"] .qc-chip-dot {
  background: #bfeeff;
  box-shadow: 0 0 8px rgba(191,238,255,.6);
}

.qc-chip-price { font-size: 11px; color: rgba(255,255,255,.4); }
.qc-chip[aria-pressed="true"] .qc-chip-price { color: #bfeeff; }

/* Free-text (site-type "Inne", notes) */
.qc-textarea,
.qc-input {
  width: 100%;
  border-radius: .9rem;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  transition: border-color .3s ease, background .3s ease;
}

.qc-textarea::placeholder,
.qc-input::placeholder { color: rgba(255,255,255,.35); }

.qc-textarea:focus,
.qc-input:focus {
  outline: none;
  border-color: #bfeeff;
  background: rgba(191,238,255,.05);
}

.qc-textarea { resize: vertical; min-height: 90px; }

.qc-field { margin-top: 14px; }
.qc-field[hidden] { display: none; }

.qc-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}

.qc-field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #ff9c9c;
  min-height: 15px;
}

.qc-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .qc-fields-grid { grid-template-columns: 1fr; }
}

/* Honeypot — visually and structurally hidden, still tab-avoidable */
.qc-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  opacity: 0;
  pointer-events: none;
}

/* Summary step */
.qc-summary-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(ellipse at 50% 0%, rgba(191,238,255,.08), transparent 60%), rgba(255,255,255,.025);
  padding: 24px;
}

.qc-summary-price {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(26px, 5vw, 40px);
  color: #fff;
  margin: 0 0 6px;
}

.qc-summary-recurring {
  font-size: 14px;
  color: #bfeeff;
  margin: 0 0 14px;
}

.qc-summary-disclaimer {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.5);
  margin: 0;
}

.qc-summary-list {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.qc-summary-list li strong { color: #fff; font-weight: 600; }

/* Success view */
.qc-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 0 10px;
}

.qc-success iconify-icon { color: #bfeeff; }

/* Footer / nav buttons */
.qc-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.qc-btn {
  cursor: pointer;
  border: none;
  font: inherit;
}

.qc-btn-primary {
  border-radius: 999px;
  background: #fff;
  color: #000;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.qc-btn-primary:hover { transform: scale(1.03); background: #effbff; box-shadow: 0 10px 30px rgba(191,238,255,.25); }
.qc-btn-primary:active { transform: scale(.97); }
.qc-btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.qc-btn-secondary {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: #fff;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .3s ease, background .3s ease;
}

.qc-btn-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.qc-btn-secondary[hidden] { display: none; }

.qc-submit-error {
  font-size: 12.5px;
  color: #ff9c9c;
  margin: 12px 0 0;
  min-height: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .qc-backdrop,
  .qc-panel,
  .qc-step,
  .qc-progressbar > span,
  .qc-card,
  .qc-chip,
  .qc-btn-primary { transition: none !important; transform: none !important; }
}

@media (max-width: 640px) {
  .qc-panel { max-height: 100vh; height: 100%; border-radius: 0; }
  #qcOverlay { padding: 0; }
  .qc-head { padding: 18px 18px 14px; }
  .qc-body { padding: 24px 18px 10px; }
  .qc-footer { padding: 16px 18px 20px; }
}

/* ───────────────────────────────────────────────────────────────────────
   Contact modal (#kcOverlay). Reuses every qc-* component class inside the
   panel (cards, inputs, footer, success view) so the two forms share one
   visual language. Only the overlay wrapper + its open state are kc-scoped,
   leaving the configurator's #qcOverlay rules untouched.
   ─────────────────────────────────────────────────────────────────────── */
body.kc-lock-scroll { overflow: hidden; }

#kcOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#kcOverlay[hidden] { display: none; }

#kcOverlay.kc-open .qc-backdrop { opacity: 1; }
#kcOverlay.kc-open .qc-panel { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 640px) {
  #kcOverlay { padding: 0; }
}

/* Story cards as contact triggers — klik otwiera modal kontaktu.
   Hover = wyraźny stan „do kliknięcia": cyan glow, zoom zdjęcia, biała pill CTA. */
.story-card[data-open-kontakt] { cursor: pointer; }

.story-card[data-open-kontakt]:hover,
.story-card[data-open-kontakt]:focus-visible {
  border-color: rgba(191, 238, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22),
              0 60px 150px rgba(0, 0, 0, .78),
              0 0 0 1px rgba(191, 238, 255, .2),
              0 0 80px rgba(191, 238, 255, .26);
}

.story-card[data-open-kontakt]:focus-visible {
  outline: 2px solid #bfeeff;
  outline-offset: 4px;
}

.story-card[data-open-kontakt]:hover .story-card-img,
.story-card[data-open-kontakt]:focus-visible .story-card-img {
  transform: scale(1.26);
  filter: saturate(1.24) contrast(1.16) brightness(1.06);
}

/* Biała pill CTA — wysoki kontrast, pojawia się na hoverze. */
.story-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #050505;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(191, 238, 255, .32);
  opacity: 0;
  transform: translateY(12px) scale(.92);
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1);
}

.story-card-cta iconify-icon {
  color: #0a7a99;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.story-card[data-open-kontakt]:hover .story-card-cta,
.story-card[data-open-kontakt]:focus-visible .story-card-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-card[data-open-kontakt]:hover .story-card-cta iconify-icon {
  transform: translateX(4px);
}

@media (hover: none) {
  /* Touch: brak hoveru — pill zawsze widoczna. */
  .story-card-cta { opacity: 1; transform: none; }
}
