	 body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 20px;
  padding: 0;
}

/* Formularz */
form#ankieta {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 25px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Nagłówki */
h1, h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.2em;
  text-align: center;
}

h2 {
  font-size: 1.6em;
  margin-top: 40px;
  border-bottom: 2px solid #2980b9;
  padding-bottom: 5px;
}

/* Paragrafy */
p {
  line-height: 1.5;
  margin-bottom: 12px;
  font-size: 1em;
}

/* Pytania */
div[id^="pytanie_"] {
  margin-bottom: 25px;
}

/* Listy z opcjami */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 8px;
}

/* Styl dla inputów radio i checkbox */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
  vertical-align: middle;
  cursor: pointer;
}

/* Styl dla inputów range*/
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%; 
    height: 8px; 
    background: #d3d3d3; 
    border-radius: 4px; 
}

/* Zmiana przezroczystości przy najechaniu myszą */
input[type="range"]:hover {
    opacity: 1;
}

/* Label dla inputów */
label {
  cursor: pointer;
  font-size: 1em;
  vertical-align: middle;
}

/* Inputy tekstowe i numeryczne */
input[type="number"],
input[type="text"] {
  padding: 8px 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 150px;
  transition: border-color 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus {
  border-color: #2980b9;
  outline: none;
}

/* Input tekstowy przy polu 'Inne' */
input[type="text"][name="cele_oszczedzania_inne"] {
  width: calc(100% - 140px);
  margin-left: 10px;
}

/* Responsywność */
@media (max-width: 600px) {
  form#ankieta {
    padding: 20px;
    margin: 10px;
  }
  
  input[type="number"],
  input[type="text"] {
    width: 100%;
    box-sizing: border-box;
  }
  
  input[type="text"][name="cele_oszczedzania_inne"] {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
}
