/* PIEXON standalone overrides — bez OnePage */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.con-kit-component-logo__image,
[data-atom=logo] img {
  max-width: 100%;
  height: auto;
  min-height: 24px;
  display: block;
}
/* Ukryj pasek / elementy edytora OnePage jeśli zostały w markupie */
.one-page-bar,
[class*="one-page-bar"],
.one-kit-not-configured,
[data-kit-organism-padding] .con-builder-site-preview-scale_mobile {
  display: none !important;
}

/* Nawigacja mobilna */
.piexon-burger-btn {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10001;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: rgba(18, 26, 46, 0.92);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.piexon-burger-btn svg {
  width: 24px;
  height: 24px;
}

.piexon-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 26, 46, 0.97);
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 20px;
}

.piexon-mobile-nav.is-open {
  display: flex;
}

.piexon-mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-family: Exo, Roboto, sans-serif;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 992px) {
  .piexon-burger-btn {
    display: flex;
  }
}

/* Formularz kontaktowy (zamiennik quizu OnePage) */
.piexon-contact {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px;
  box-sizing: border-box;
  color: #fff;
  font-family: Exo, Roboto, system-ui, sans-serif;
}

.piexon-contact h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
}

.piexon-contact .piexon-contact-lead {
  margin: 0 0 24px;
  opacity: 0.85;
  font-size: 0.95rem;
}

.piexon-contact label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.piexon-contact label span {
  display: block;
  margin-bottom: 6px;
}

.piexon-contact input,
.piexon-contact select,
.piexon-contact textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(196, 56, 61, 0.55);
  color: #fff;
  font: inherit;
  outline: none;
}

.piexon-contact input:focus,
.piexon-contact select:focus,
.piexon-contact textarea:focus {
  box-shadow: 0 0 0 3px rgba(196, 56, 61, 0.9);
}

.piexon-contact select option {
  color: #111;
}

.piexon-contact button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 8px;
  background: #c4383d;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.piexon-contact button[type="submit"]:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.piexon-contact button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

.piexon-contact-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.piexon-contact-msg.is-ok {
  display: block;
  background: rgba(34, 197, 94, 0.18);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.5);
}

.piexon-contact-msg.is-err {
  display: block;
  background: rgba(239, 68, 68, 0.18);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.5);
}

/* Lokalne odtwarzacze wideo */
.piexon-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border-radius: 8px;
  overflow: hidden;
}

.piexon-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.piexon-video-poster-btn {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #0b1220;
}

.piexon-video-poster-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(196, 56, 61, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.piexon-video.is-playing .piexon-video-poster-btn {
  display: none;
}

/* Flash po sukcesie formularza (?sent=1) */
.piexon-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10050;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #12203a;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-family: Exo, Roboto, sans-serif;
}
