/* Strona Kontakt ZapMedia – styl spójny ze stroną główną (ciemne tło, zdjęcie, kolory ikon). */

:root {
  color-scheme: dark;
  --tlo: #141414;
  --panel: rgba(18, 18, 18, 0.9);
  --tekst: #f2f2f2;
  --tekst-2: #cdcdcd;
  --podpowiedz: #9e9e9e;
  --linia: rgba(255, 255, 255, 0.24);
  --pole: rgba(255, 255, 255, 0.06);
  --akcent: #c50c6d;
  --akcent-ciemny: #781345;
  --fokus: #ee801e;
  --blad: #ff7a7a;
  --tecza: linear-gradient(
    90deg,
    #781345,
    #c50c6d,
    #d70505,
    #ee801e,
    #8fd810,
    #058718,
    #1f80c4,
    #024c98
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--tlo);
  color: var(--tekst);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Zdjęcie tła jak na stronie głównej, mocniej przyciemnione dla czytelności formularza. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-image: linear-gradient(
      90deg,
      rgba(20, 20, 20, 0.94) 30%,
      rgba(20, 20, 20, 0.72)
    ),
    url("../assets/tlo-2560.jpg");
  background-position: center, right center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 2px;
}

a[href^="tel:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 3px;
}

.strona {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
}

/* Nagłówek: logo + ikony */

.naglowek {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo {
  display: block;
}

.logo img {
  display: block;
  width: 11.5rem;
  max-width: 100%;
  height: auto;
}

.spolecznosc {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spolecznosc a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--linia);
  border-radius: 50%;
  color: var(--tekst);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.spolecznosc svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

.spolecznosc .fb:hover {
  color: #c50c6d;
  border-color: #c50c6d;
}

.spolecznosc .ig:hover {
  color: #ee801e;
  border-color: #ee801e;
}

.spolecznosc .tel:hover {
  color: #8fd810;
  border-color: #8fd810;
}

/* Panel z treścią */

.panel {
  position: relative;
  background-color: var(--panel);
  padding: 2rem 1.25rem 2.25rem;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: var(--tecza);
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kreska {
  width: 4rem;
  height: 2px;
  margin: 1rem 0 1.25rem;
  border: 0;
  background-color: #ffffff;
}

.wstep {
  margin: 0 0 1.75rem;
  color: var(--tekst-2);
}

/* Formularz */

.formularz {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem 1.25rem;
}

.pole label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wymagane {
  color: var(--fokus);
}

.formularz input,
.formularz select,
.formularz textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--linia);
  border-radius: 2px;
  background-color: var(--pole);
  color: var(--tekst);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.formularz textarea {
  min-height: 9rem;
  resize: vertical;
}

/* Lista wyboru w tym samym stylu co pola tekstowe, z własną strzałką. */
.formularz select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f2f2f2' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.75rem auto;
  cursor: pointer;
}

/* Dopóki nic nie wybrano, tekst wygląda jak podpowiedź w pozostałych polach. */
.formularz select:invalid {
  color: var(--podpowiedz);
}

.formularz select option {
  background-color: #1c1c1c;
  color: var(--tekst);
}

.formularz input::placeholder,
.formularz textarea::placeholder {
  color: var(--podpowiedz);
  opacity: 1;
}

.formularz input:hover,
.formularz select:hover,
.formularz textarea:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.formularz input:focus,
.formularz select:focus,
.formularz textarea:focus {
  border-color: #ffffff;
}

.formularz input:user-invalid,
.formularz select:user-invalid,
.formularz textarea:user-invalid {
  border-color: var(--blad);
}

.uwaga {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tekst-2);
}

.przycisk {
  justify-self: start;
  padding: 0.9rem 2rem;
  border: 0;
  border-radius: 2px;
  background-color: var(--akcent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.przycisk:hover {
  background-color: var(--akcent-ciemny);
}

.przycisk:disabled {
  cursor: progress;
  opacity: 0.7;
}

/* Pole-pułapka na boty: niewidoczne dla ludzi i czytników ekranu. */
.pulapka {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Informacja o danych osobowych */

.rodo {
  font-size: 0.875rem;
  color: var(--tekst-2);
}

.rodo p {
  margin: 0 0 0.5rem;
}

.rodo details {
  margin-top: 0.25rem;
}

.rodo summary {
  cursor: pointer;
  color: var(--tekst);
  text-decoration: underline;
}

.rodo ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.rodo li + li {
  margin-top: 0.4rem;
}

/* Kontakt alternatywny */

.inne {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linia);
}

.inne p {
  margin: 0;
}

/* Komunikaty (strona błędu i podziękowania) */

.komunikat {
  margin: 0 0 1.5rem;
}

.lista-bledow {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem 0.9rem 2rem;
  border-left: 3px solid var(--blad);
  background-color: rgba(255, 122, 122, 0.08);
}

.akcje {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* Stopka */

.stopka {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--tekst-2);
}

@media (min-width: 40rem) {
  .strona {
    padding-top: 3rem;
  }

  .panel {
    padding: 2.5rem 2.5rem 2.75rem;
  }

  .formularz {
    grid-template-columns: 1fr 1fr;
  }

  .pole--pelne,
  .formularz .uwaga,
  .formularz .przycisk,
  .formularz .rodo {
    grid-column: 1 / -1;
  }
}

/* Telefony i tablety: lżejsze zdjęcie 1280 px, na ekranach o wysokiej gęstości 2560 px
   (to samo co na stronie głównej, więc przeglądarka ma je już w pamięci). */
@media (max-width: 61.25rem) {
  body::before {
    background-image: linear-gradient(90deg, rgba(20, 20, 20, 0.94) 30%, rgba(20, 20, 20, 0.72)),
      url("../assets/tlo-1280.jpg");
    background-image: linear-gradient(90deg, rgba(20, 20, 20, 0.94) 30%, rgba(20, 20, 20, 0.72)),
      -webkit-image-set(url("../assets/tlo-1280.jpg") 1x, url("../assets/tlo-2560.jpg") 2x);
    background-image: linear-gradient(90deg, rgba(20, 20, 20, 0.94) 30%, rgba(20, 20, 20, 0.72)),
      image-set(url("../assets/tlo-1280.jpg") 1x, url("../assets/tlo-2560.jpg") 2x);
  }
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.75rem;
  }

  .logo img {
    width: 9.5rem;
  }

  .przycisk {
    justify-self: stretch;
  }
}
