.question {
    background-color: #fafafa;
    border-radius: 6px !important;
}

label {
    cursor: pointer;
    font-weight: 200;
    display: block;
    margin-bottom: 2px;
}

fieldset {
    border: 1.5px solid #ccc !important;
    padding: 1em 1em 1em 1em !important;
    margin-bottom: 0.5em !important;
    border-radius: 6px !important;
    background-color: #fafafa !important;
}

legend {
    font-weight: 600 !important;
    padding: 0 5px !important;
    color: #333 !important;
    font-size: 1.0em !important;
    background-color: #fafafa !important;
    border-radius: 3px !important;
	margin-bottom: 5px;

}
p, span {
  cursor: pointer;
  font-weight: 300;
  display: block;
  margin-bottom: 10px;
  margin-top: 10px;
  margin-left: 10px;
  font-size: 0.95em !important;
}
input[type="text"], textarea, select {
    margin-top: 5px;
    padding: 10px 12px;
    font-size: 15px;
    width: 600px;
    max-width: 100%;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    font-family: inherit;
}

input[type="text"]:focus, textarea:focus, select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.4);
    outline: none;
    background-color: #fff;
}

textarea {
    resize: vertical;
    min-height: 80px;
}


/* Добавим плавное появление для ошибок */
#error-message {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
table {    
   border-collapse: collapse;
    margin-bottom: 5px;

    background: #f9f9f9;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(119, 125, 152, 0.05);
	width: 90%;
	border-radius: 6px !important;
	border: 1.5px solid #ccc !important;
	text-align: left;
  }
  th, td {
    padding: 4px 2px  !important;
    text-align: center;
    font-size: 0.9em;
    border-bottom: 1px solid #f4f4f4;
width: 10%;

  }
  th {
    background: #f4f4f4;
    color: #424242;
    font-weight: 500;
}
   tr {
    line-height: 1.0;
  }

  tr:hover {
    background: #f5f9ff;
  }

  td:first-child {
    text-align: left;
    font-weight: 400;
    color: #3d3e41;
    background: #f9f9f9 !important;
	width: 50%;

  }
  input[type="radio"] {
    accent-color: #637dff;
    width: 15px;
    height: 15px;
    vertical-align: middle;
    transition: box-shadow 0.2s;
  }
   
  @media (max-width: 600px) {
    form {
      padding: 10px 4px;
    }
    table th, table td {
      padding: 8px 2px;
      font-size: 0.95em;

    }
    form p {
      font-size: 1em;
    }
  }
  .rating label {
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
  }
  
  .rating input[type="radio"] {
    margin-left: 10px;
    margin-top: -4px;
  }

  .rating-level2 label {
    display: inline-block;
    cursor: pointer;
    margin-right: 0px; 
    margin-left: 25px;  
  }
     
  .level-1 {
  margin-left: 10px;
}

.level-2 {
  margin-left: 40px; 
  margin-bottom: -5px;
  font-size: 0.95em 
}
.hidden {
  display: none;
 }
@media only screen and (max-width: 600px) {
	a.button {
 height: 35px;
font-size: 0.95em;
  padding: 0 30px 10px 30px;
max-width: 100%;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;}
}

@media only screen and (max-width: 400px) {
	a.button {
 height: 35px;
  padding: 0 30px 10px 30px;
max-width: 100%;
    border: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;}
}

.button {
  display: inline-block;
  color: #157fc4; !important;
  margin-bottom: 0;
  font: normal 16px/40px "Open Sans", OpenSans, Arial, sans-serif;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  background: #99ccff;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all ease 0.3s;
  transition: all ease 0.3s;
}
.button:focus {
  outline: 0;
  box-shadow: 0 0 0 2px  rgba(21, 127, 196, 0.5);
}
.button:hover,
.button:focus {
  color: #ffffff;
  background: #157fc4;
  text-decoration: none;
}
.button:active,
.button.active {
  outline: 0;
  background: #106196;
}
.button.disabled,
.button[disabled],
fieldset[disabled] .button {
  cursor: not-allowed;
  pointer-events: none;
  opacity: .65;
}