/* Royal Wyceny: formularz zgloszen klienta [royal_wycena_formularz]. Selektory z .rrw-f, zeby Flatsome nie nadpisal pol. */
.rrw-f {
  --rrw-granat: #03295d;
  --rrw-tlo: #f6f7fa;
  --rrw-ramka: #cfd6e2;
  --rrw-blad: #b3261e;
  max-width: 640px;
  margin: 8px 0 28px;
  padding: 24px;
  background: var(--rrw-tlo);
  border: 1px solid #e3e7ee;
  border-radius: 16px;
  box-sizing: border-box;
}
.rrw-f * { box-sizing: border-box; }
.rrw-f .rrw-f-pole { margin: 0 0 20px; }
.rrw-f .rrw-f-etykieta {
  display: block;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1b1f27;
  line-height: 1.3;
}
.rrw-f .rrw-f-opcja { font-weight: 400; color: #5b6472; }
.rrw-f .rrw-f-podpowiedz { display: block; margin-top: 6px; font-size: 15px; color: #4a5260; line-height: 1.4; }
.rrw-f .rrw-f-zle > .rrw-f-podpowiedz:not(.rrw-f-podpowiedz-gora) { display: none; } /* przy bledzie tylko komunikat bledu */
.rrw-f .rrw-f-podpowiedz-gora { margin: -2px 0 10px; font-size: 15px; }

/* strefa zdjec */
.rrw-f .rrw-f-strefa {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 22px 20px;
  min-height: 96px;
  background: #fff;
  border: 2px dashed var(--rrw-granat);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
  font-weight: 400;
}
.rrw-f .rrw-f-strefa:hover,
.rrw-f .rrw-f-strefa.rrw-f-nad { background: #eef2f9; }
.rrw-f .rrw-f-ikona {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rrw-granat);
  color: #fff;
  font-size: 34px;
  line-height: 50px;
  text-align: center;
  font-weight: 300;
}
.rrw-f .rrw-f-strefa-tekst { display: flex; flex-direction: column; gap: 4px; }
.rrw-f .rrw-f-strefa-tekst strong { font-size: 18px; color: var(--rrw-granat); line-height: 1.25; }
.rrw-f .rrw-f-strefa-tekst small { font-size: 15px; color: #4a5260; line-height: 1.4; }
.rrw-f .rrw-f-strefa.rrw-f-pelna { display: none; }
.rrw-f .rrw-f-dotyk { display: none; }
@media (hover: none) { .rrw-f .rrw-f-dotyk { display: inline; } .rrw-f .rrw-f-mysz { display: none; } } /* telefon: aparat, bez przeciagania */
.rrw-f .rrw-f-nw { white-space: nowrap; }
/* po dodaniu zdjec strefa jest mniejsza: miniatury sa wazniejsze */
.rrw-f.rrw-f-sa-zdjecia .rrw-f-strefa { min-height: 0; padding: 12px 16px; gap: 12px; border-width: 2px; }
.rrw-f.rrw-f-sa-zdjecia .rrw-f-ikona { flex-basis: 40px; width: 40px; height: 40px; font-size: 28px; line-height: 38px; }
.rrw-f.rrw-f-sa-zdjecia .rrw-f-strefa-tekst strong { font-size: 17px; }
/* z JS pole pliku jest ukryte (klika sie strefe); bez JS zostaje zwykle pole */
.rrw-f.rrw-f-js .rrw-f-plik { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rrw-f .rrw-f-pole:has(.rrw-f-plik:focus-visible) .rrw-f-strefa { outline: 3px solid #8fb0e6; outline-offset: 2px; }
.rrw-f:not(.rrw-f-js) .rrw-f-plik { margin-top: 10px; }

.rrw-f .rrw-f-miniatury {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.rrw-f.rrw-f-sa-zdjecia .rrw-f-miniatury { margin-top: 12px; }
.rrw-f .rrw-f-mini {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rrw-ramka);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rrw-f .rrw-f-mini img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.rrw-f .rrw-f-mini-pdf { font-weight: 700; color: var(--rrw-granat); font-size: 18px; }
.rrw-f .rrw-f-mini-nazwa { font-size: 12px; color: #5b6472; padding: 4px 8px; text-align: center; word-break: break-all; line-height: 1.2; max-height: 3.6em; overflow: hidden; }
.rrw-f .rrw-f-usun {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0;
  cursor: pointer;
  box-shadow: none;
}
.rrw-f .rrw-f-usun::before {
  content: "×";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(20, 24, 32, .75);
  font-size: 22px;
  line-height: 29px;
  text-align: center;
}
.rrw-f .rrw-f-usun:hover::before { background: var(--rrw-blad); }
.rrw-f .rrw-f-mini.rrw-f-mini-plik { justify-content: flex-end; padding-bottom: 10px; }

/* pola tekstowe */
.rrw-f .rrw-f-input {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  font-size: 17px; /* >= 16 px: iPhone nie powieksza strony */
  line-height: 1.4;
  color: #1b1f27;
  background: #fff;
  border: 1px solid var(--rrw-ramka);
  border-radius: 10px;
  box-shadow: none;
}
.rrw-f textarea.rrw-f-input { min-height: 112px; resize: vertical; }
.rrw-f .rrw-f-input:focus { border-color: var(--rrw-granat); outline: 3px solid #c9d7ef; outline-offset: 0; box-shadow: none; }
.rrw-f .rrw-f-input::placeholder { color: #8a93a1; opacity: 1; }

.rrw-f .rrw-f-info { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: #4a5260; }
.rrw-f .rrw-f-info strong { color: #1b1f27; }
.rrw-f .rrw-f-stan:not(.rrw-f-blad) { color: #1b1f27; font-weight: 600; }
.rrw-f-ok small { display: block; margin-top: 8px; font-size: 15px; color: #2f4a38; }
.rrw-f .rrw-f-zgoda {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #333a45;
  cursor: pointer;
}
.rrw-f .rrw-f-zgoda input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rrw-granat); }
.rrw-f .rrw-f-zgoda > span { flex: 1 1 0; min-width: 0; }
.rrw-f .rrw-f-zgoda .rrw-f-blad-pola { flex-basis: 100%; }

.rrw-f .rrw-f-wyslij {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 28px;
  border: 0;
  border-radius: 99px;
  background: var(--rrw-granat);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: none;
}
.rrw-f .rrw-f-wyslij:hover { background: #0b3c80; }
.rrw-f .rrw-f-wyslij:disabled { opacity: .8; cursor: progress; }
.rrw-f .rrw-f-stan { margin: 10px 0 0; font-size: 15px; min-height: 0; }
.rrw-f .rrw-f-stan:empty { display: none; }

/* bledy */
.rrw-f .rrw-f-zle .rrw-f-strefa { border-color: var(--rrw-blad); }
.rrw-f .rrw-f-zle .rrw-f-input { border-color: var(--rrw-blad); }
.rrw-f .rrw-f-blad-pola,
.rrw-f .rrw-f-blad,
.rrw-f-blad {
  margin: 8px 0 0;
  color: var(--rrw-blad);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* pulapka na boty: niewidoczna dla ludzi i czytnikow */
.rrw-f .rrw-f-pulapka { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* po wyslaniu */
.rrw-f-ok {
  max-width: 640px;
  margin: 8px 0 28px;
  padding: 22px 24px;
  background: #eaf6ee;
  border: 1px solid #b7dfc4;
  border-radius: 16px;
  font-size: 17px;
  line-height: 1.5;
  color: #1b3a26;
  outline: none;
}
.rrw-f-ok strong { display: block; font-size: 20px; margin-bottom: 4px; }

@media (max-width: 549px) {
  .rrw-f { padding: 18px 16px; border-radius: 14px; }
  .rrw-f .rrw-f-strefa { padding: 18px 16px; gap: 14px; }
  .rrw-f .rrw-f-miniatury { grid-template-columns: repeat(3, 1fr); }
}
.rrw-f-ok a { color: inherit; text-decoration: underline; font-weight: 600; }

/* wzor tapety: wyszukiwarka, wybrany wzor, materialy */
.rrw-f .rrw-f-wyniki { display: grid; gap: 6px; margin-top: 8px; }
.rrw-f .rrw-f-wyniki.rrw-f-laduje { opacity: .55; }
.rrw-f .rrw-f-wynik {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 6px 12px 6px 6px;
  background: #fff; border: 1px solid var(--rrw-ramka); border-radius: 10px; color: #1b1f27; font-size: 16px; font-weight: 600;
  text-align: left; text-transform: none; letter-spacing: 0; line-height: 1.3; cursor: pointer; box-shadow: none;
}
.rrw-f .rrw-f-wynik:focus-visible { border-color: var(--rrw-granat); background: #eef2f9; }
@media (hover: hover) { .rrw-f .rrw-f-wynik:hover { border-color: var(--rrw-granat); background: #eef2f9; } } /* dotyk: bez „przyklejonego” podswietlenia */
.rrw-f .rrw-f-wynik img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 56px; margin: 0; }
.rrw-f .rrw-f-brak { margin: 8px 0 0; font-size: 15px; color: #4a5260; }
.rrw-f .rrw-f-wybrany {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; background: #fff;
  border: 2px solid var(--rrw-granat); border-radius: 12px;
}
.rrw-f .rrw-f-wybrany[hidden], .rrw-f .rrw-f-materialy[hidden], .rrw-f .rrw-f-szukajka[hidden] { display: none; }
.rrw-f .rrw-f-wybrany img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 64px; margin: 0; }
.rrw-f .rrw-f-wybrany-opis { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.rrw-f .rrw-f-wybrany-opis small { font-size: 13px; color: #4a5260; }
.rrw-f .rrw-f-wybrany-opis strong { font-size: 17px; line-height: 1.3; color: #1b1f27; }
.rrw-f .rrw-f-zmien {
  flex: 0 0 auto; min-height: 44px; margin: 0; padding: 8px 16px; background: #fff; border: 1px solid var(--rrw-granat);
  border-radius: 99px; color: var(--rrw-granat); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none;
}
.rrw-f .rrw-f-materialy { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.rrw-f .rrw-f-etykieta-mala { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.rrw-f .rrw-f-material {
  display: flex; flex-direction: column; gap: 2px; position: relative; margin: 0; padding: 10px 12px 10px 38px; min-height: 56px;
  background: #fff; border: 1px solid var(--rrw-ramka); border-radius: 10px; cursor: pointer; font-weight: 400;
}
.rrw-f .rrw-f-material input { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; margin: 0; accent-color: var(--rrw-granat); }
.rrw-f .rrw-f-material:has(input:checked) { border: 2px solid var(--rrw-granat); padding: 9px 11px 9px 37px; background: #eef2f9; }
.rrw-f .rrw-f-material-nazwa { font-size: 15px; font-weight: 700; color: #1b1f27; line-height: 1.3; }
.rrw-f .rrw-f-material-cena { font-size: 14px; color: #4a5260; }
.rrw-f .rrw-f-niewiem { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; min-height: 44px; font-size: 15px; font-weight: 400; color: #333a45; cursor: pointer; }
.rrw-f .rrw-f-niewiem input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; accent-color: var(--rrw-granat); }
.rrw-f .rrw-f-zle .rrw-f-szukajka .rrw-f-input { border-color: var(--rrw-blad); }
.rrw-f .rrw-f-material-opis { font-size: 13px; color: #4a5260; line-height: 1.3; }
.rrw-f .rrw-f-niewiem[hidden] { display: none; }

/* kotwice na stronie wyceny: przyklejony naglowek Flatsome nie zaslania celu */
#formularz, #jak-przygotowac-rysunek, #przyklad { scroll-margin-top: 120px; }
.rrw-f .rrw-f-material[data-rola]:not([data-rola=""])::after { content: attr(data-rola); align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: var(--rrw-granat); color: #fff; font-size: 12px; font-weight: 700; }
.rrw-f .rrw-f-material[data-rola="do porównania"]::after { background: #fff; color: var(--rrw-granat); border: 1px solid var(--rrw-granat); }
