/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/wycena.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 45vh;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 20px;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.05em;
  margin: 0;
}

/* Ogólne style formularza */
.quote-form {
  max-width: 1100px; /* szerzej */
  margin: 0 auto;
  padding: 30px 50px 30px 140px; /* padding-left dla przesunięcia pól */
  color: #222;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

.quote-form h2 {
  text-align: center;
  font-size: 40px; /* większy nagłówek */
  margin-bottom: 20px;
  color: #111;
}

.quote-form .description {
  text-align: center;
  font-size: 18px; /* większy opis */
  margin-bottom: 30px;
  color: #333;
}

/* Style dla sekcji formularza */
fieldset {
  border: none;
  margin-bottom: 25px;
}

legend {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 32px; /* większy nagłówek sekcji */
  color: #111;
  margin-left: -130px; /* wysunięcie na lewo */
  padding-left: 10px;
  background-color: transparent;
  width: auto;
  max-width: 100%;
  position: relative;
  left: 0;
}

label {
  display: block;
  margin-bottom: 9px;
  font-weight: 600;
  color: #222;
  font-size: 17px; /* większe etykiety */
}

input, textarea {
  width: 100%;
  padding: 14px 15px; /* większe pola */
  margin-bottom: 18px;
  border: 1.5px solid #999;
  border-radius: 6px;
  font-size: 17px; /* większy tekst w polach */
  font-family: inherit;
  color: #111;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #12283d;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 140px; /* wyższe pole tekstowe */
}

button {
  width: 100%;
  padding: 16px 0;
  background-color: #12283d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px; /* większy tekst na przycisku */
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
}

button:hover {
  background-color: #0056b3;
}

/* Checkbox + label w jednej linii, wyrównane pionowo */
fieldset:last-of-type label {
  display: flex;
  align-items: center;
  font-weight: 400;
  color: #222;
  cursor: pointer;
  font-size: 17px; /* większy tekst przy checkboxie */
}

fieldset:last-of-type input[type="checkbox"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Dodaj trochę odstępu pod checkboxem */
fieldset:last-of-type {
  margin-bottom: 30px;
}

.data-protection-info {
  max-width: 1100px;
  margin: 30px auto 50px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background-color: #fafafa;
  border-left: 6px solid #12283d; /* żółty pasek */
  padding: 20px 25px 20px 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  border-radius: 6px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.info-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 4px;
}

.data-protection-info p {
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 10px 0;
}

.data-protection-info ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  list-style-type: disc;
  color: #444;
}

.data-protection-info ul li {
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .quote-form {
    padding: 30px 30px;
  }

  legend {
    margin-left: 0;
    padding-left: 0;
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 35vh;
    min-height: 200px;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .quote-form {
    padding: 25px 20px;
  }

  .quote-form h2 {
    font-size: 32px;
  }

  .quote-form .description {
    font-size: 16px;
  }

  label {
    font-size: 16px;
  }

  input,
  textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  button {
    font-size: 18px;
    padding: 14px 0;
  }

  fieldset:last-of-type label {
    font-size: 16px;
  }

  fieldset:last-of-type input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .data-protection-info {
    flex-direction: column;
    padding: 15px;
  }

  .info-icon {
    margin-bottom: 10px;
    margin-top: 0;
  }

  .data-protection-info p {
    font-size: 16px;
  }

  .data-protection-info ul {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 30vh;
    min-height: 160px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .quote-form h2 {
    font-size: 28px;
  }

  legend {
    font-size: 22px;
  }

  .quote-form {
    padding: 20px 15px;
  }

  label {
    font-size: 15px;
  }

  input,
  textarea {
    font-size: 15px;
    padding: 10px 12px;
  }

  button {
    font-size: 16px;
    padding: 12px 0;
  }

  .data-protection-info {
    font-size: 14px;
    border-left: 4px solid #12283d;
  }

  .data-protection-info ul {
    padding-left: 15px;
  }

  .info-icon {
    width: 24px;
    height: 24px;
  }
}