.survey-page { background: #fff; }
.survey-wrap { max-width: 1270px; margin: 0 auto; padding: 40px 15px 80px; }
.survey-card { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); border-radius: 3px; padding: 30px 30px 40px; }

.survey-title { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; font-size: 33px; font-weight: 700; text-transform: uppercase; color: var(--text); }
.survey-title::before, .survey-title::after { content: ""; flex: 1; border-top: 1px solid #ddd; }

.survey-form { font-size: 16px; color: #000; }
.field { margin-bottom: 20px; }
.field-label { display: block; font-size: 18px; color: var(--text); margin-bottom: 8px; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sub-label { display: block; margin-top: 4px; font-size: 11.2px; font-weight: 700; }
.survey-form input[type="text"],
.survey-form input[type="email"] {
  width: 100%;
  height: 38px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: #fff;
}
.survey-form input::placeholder { color: #555; }
.survey-form input:focus { outline: none; border-color: #999; }

.survey-group { border: 1px solid #ddd; border-radius: 3px; padding: 20px 20px 10px; margin: 0 0 20px; }
.survey-group legend { float: left; width: 100%; font-size: 30px; font-weight: 400; color: var(--ink-strong); margin-bottom: 25px; padding: 0; }
.question { clear: both; margin-bottom: 25px; }
.question-text { font-size: 18px; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.req { color: #cc0101; }

.options { display: grid; gap: 15px 20px; }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.options.cols-2 { grid-template-columns: repeat(2, 1fr); }
.options label { position: relative; display: block; cursor: pointer; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options span {
  display: block;
  padding: 0 15px;
  line-height: 34px;
  border: 1px solid #aaa;
  border-radius: 20px;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.options label:hover span { border-color: #999; }
.options input:checked + span { background: var(--dark); border-color: var(--dark); color: #fff; }
.options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.options-scale { display: flex; flex-wrap: wrap; gap: 10px; }
.options-scale span { padding: 0 11px; }
.question.invalid .question-text,
.field.invalid input { color: #cc0101; border-color: #cc0101; }
.field.invalid input::placeholder { color: #cc0101; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin: 0 0 15px; color: #cc0101; font-size: 16px; }
.survey-submit {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f0f0f0;
  font: inherit;
  font-size: 14px;
  color: #363636;
  cursor: pointer;
}
.survey-submit:hover { background: #e2e2e2; }
.survey-submit[disabled] { opacity: .6; cursor: wait; }
.survey-thanks { padding: 40px 0; text-align: center; font-size: 20px; color: var(--text); }

@media (max-width: 767px) {
  .survey-wrap { padding: 20px 10px 40px; }
  .survey-card { padding: 20px 15px 30px; }
  .survey-title { font-size: 26px; }
  .name-row, .options.cols-3, .options.cols-2 { grid-template-columns: 1fr; gap: 10px; }
  .survey-group { padding: 15px 12px 5px; }
  .survey-group legend { font-size: 24px; margin-bottom: 15px; }
}
