/* Primowheels moving-form visual theme.
   Appended as /our-service/theme/primo-form-theme.css — delete the link+script pair to revert.
   Does not change form fields, texts, logic, address autocomplete, back links, or SEO tags. */

#primo-form-theme-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #0b1220;
}

#primo-form-theme-bg .primo-form-theme-bg__slide {
  position: absolute;
  inset: 0;
  background-color: #0b1220;
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

#primo-form-theme-bg .primo-form-theme-bg__slide.is-active {
  opacity: 1;
}

/* Calmer, slightly darker veil than the catalog theme. Photos show in the
   margins around the solid form panel; body text never sits on the photo. */
#primo-form-theme-bg .primo-form-theme-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.70) 0%,
    rgba(8, 12, 20, 0.78) 100%
  );
}

body.primo-form-theme-on {
  background-color: #0b1220;
  padding-top: 28px;
  padding-bottom: 72px;
}

body.primo-form-theme-on > *:not(#primo-form-theme-bg) {
  position: relative;
  z-index: 1;
}

/* Near-opaque panel: every label, input, type switch, dropdown and button
   sits on a solid dark surface so contrast stays ≥4.5:1 over any photo. */
body.primo-form-theme-on .container {
  background: rgba(10, 22, 40, 0.97);
  border-radius: 20px;
  padding: 22px 18px 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

body.primo-form-theme-on .card {
  background: #132238;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.primo-form-theme-on .type-switch {
  background: #102033;
  border-color: rgba(245, 158, 11, 0.75);
}

body.primo-form-theme-on input[type="text"],
body.primo-form-theme-on input[type="date"],
body.primo-form-theme-on input[type="tel"],
body.primo-form-theme-on input[type="time"],
body.primo-form-theme-on textarea {
  background: #0a1628;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body.primo-form-theme-on input::placeholder,
body.primo-form-theme-on textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* Raise only the focused address box so its suggestions sit above the next field.
   A z-index on every .addr-box would let "Adres końcowy" paint over the open list. */
body.primo-form-theme-on .addr-box {
  position: relative;
  z-index: auto;
}
body.primo-form-theme-on .addr-box:focus-within {
  z-index: 20;
}
body.primo-form-theme-on .addr-suggest {
  background: #0d1a2d;
  color: #ffffff;
  z-index: 80;
  border: 1px solid rgba(245, 158, 11, 0.55);
}
body.primo-form-theme-on .addr-suggest button {
  color: #ffffff;
  background: #0d1a2d;
}
body.primo-form-theme-on .addr-suggest button[aria-selected="true"],
body.primo-form-theme-on .addr-suggest button:hover,
body.primo-form-theme-on .addr-suggest button:focus {
  background: #1a2c45;
  color: #ffffff;
}
body.primo-form-theme-on .addr-suggest-msg {
  color: #94a3b8;
}

/* White on #25d366 is only 1.98:1. Same darker green as Our Service (≥4.5:1). */
body.primo-form-theme-on .btn,
body.primo-form-theme-on .type-switch button.active {
  background: #0f7a3e;
  border-color: #0f7a3e;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 122, 62, 0.35);
}
body.primo-form-theme-on .btn:hover,
body.primo-form-theme-on .type-switch button.active:hover {
  background: #0d6b38;
  border-color: #0d6b38;
  color: #ffffff;
}

/* WhatsApp number picker (inline styles after submit) — same contrast fix. */
body.primo-form-theme-on #waPanel a[href*="wa.me"] {
  background: #0f7a3e !important;
  color: #ffffff !important;
}

@media (prefers-reduced-motion: reduce) {
  #primo-form-theme-bg .primo-form-theme-bg__slide {
    transition: none;
  }
  body.primo-form-theme-on .type-hint::after {
    animation: none;
  }
}
