.formularz-majstr {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  color: #2f3237;
  font-size: 16px;
  line-height: 1.6;
  border-radius: 25px;
}

.formularz-majstr form {
  background: white;
  width: 100%;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}

.formularz-majstr h2 {
    text-align: start;
    font-size: 2.4rem;
    margin-bottom: 1.5em;
}

.products-heading{
  width:100%;
  text-align:left;
  font-weight:700;
  font-size:20px;
  line-height:1.3;
  margin:24px 0 12px;
}

.formularz-majstr h3 {
  text-align: left;
  color: #444444;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 0.8em;
  margin-top: 1rem;
}

/* Kontener dla każdego pytania */
.formularz-majstr .question-block {
  border: 1px solid #444444;
  border-radius: 25px;
  padding: 20px;
  margin-bottom: 32px;
  min-height: 302px;
  display: flex;
  flex-direction: column;
}

/* Kontener dla opcji odpowiedzi */
.formularz-majstr .options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  flex-grow: 1;
  align-items: flex-start;
  padding-top: 10px;
}

/* Stylowanie pojedynczej opcji */
.formularz-majstr .option-item {
  width: 205px;
  height: 189px;
  border: 2px solid #D2D2D2;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 15px;
  box-sizing: border-box;
  position: relative;
}

.formularz-majstr .option-item:hover {
  border-color: #EE509C;
  background-color: #ee509c42;
}

.formularz-majstr .option-item.selected {
  background-color: #ee509c8f;
  border-color: #EE509C;
}

.formularz-majstr .option-item label {
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  margin: 0;
  color: #333;
  line-height: 1.4;
  display: block;
  width: 100%;
}

.formularz-majstr input[type="checkbox"], 
.formularz-majstr input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.formularz-majstr .checkbox-section .option-item {
  width: 205px;
  height: auto;
  min-height: 189px;
  margin-bottom: 10px;
  padding: 15px 20px;
}

.formularz-majstr button {
    background-color: #983795;
    color: white;
    padding: 12px 55px;
    border: 1px solid #444444;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    margin-top: 1.5em;
    transition: background-color 0.3s, transform 0.1s;
    width: 300px;
}

.formularz-majstr button:hover {
  background-color: #983795;
  transform: translateY(-1px);
}

.formularz-majstr .response {
  background: #f0fff4;
  border: 1px solid #cce6d4;
  padding: 1.5em;
  margin: 2em auto;
  border-radius: 10px;
  max-width: 720px;
  font-size: 18px;
  color: #214c2e;
  white-space: pre-wrap;
}

.formularz-majstr .response h3 {
  margin-top: 1em;
  font-size: 18px;
  color: #1d5f1d;
}

.formularz-majstr .response ul {
  padding-left: 1.5em;
}

.formularz-majstr .response li {
  margin-bottom: 0.5em;
}

/* Responsywność */
@media (max-width: 768px) {
  .formularz-majstr .options-container {
    justify-content: center;
  }
  
  .formularz-majstr .option-item {
    width: 180px;
    height: 160px;
  }
  
  .formularz-majstr .question-block {
    height: auto;
    min-height: 302px;
  }
}

@media (max-width: 480px) {
  .formularz-majstr .option-item {
    width: 100%;
    height: 80px;
  }
  
  .formularz-majstr .options-container {
    flex-direction: column;
  }
}