/* Survey page layout overrides */
.survey-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.survey-layout-card,
.survey-summary-card {
  width: min(100%, 920px);
  margin: 0 auto;
}

.survey-main .survey-card {
  background:
    linear-gradient(#fafafa, #fafafa) padding-box,
    linear-gradient(90deg, #ebcf0b 0%, #f55880 33.33%, #2098f5 66.66%, #00f78e 100%) border-box;
  border-color: transparent;
}

.survey-layout-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.survey-header-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding-right: 0;
  align-items: flex-start;
  text-align: left;
}

.survey-header-block .card-title {
  font-size: 24px;
}

.survey-header-block .card-copy {
  margin-top: 0;
  max-width: none;
}

.survey-form-panel {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  display: flex;
  justify-content: flex-start;
}

.survey-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

.survey-form-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  max-width: 100%;
}

.survey-form-field {
  width: 100%;
  min-width: 0;
}

.survey-form-field-wide {
  width: 100%;
}

.survey-form-row-wide {
  align-items: stretch;
}

.survey-form-row label {
  font-size: 12px;
  font-weight: 400;
  display: block;
}

.survey-form input,
.survey-form select,
.survey-form textarea {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  padding: 0 8px;
  background-color: #ffffff;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  display: block;
}

.survey-form textarea {
  min-height: 74px;
  padding: 8px;
  resize: vertical;
}

.survey-form input.survey-readonly {
  background-color: #ececec;
  color: #5a5a5a;
  border-color: #c7c7c7;
  cursor: not-allowed;
}

.survey-form-consent-row {
  margin-top: 2px;
}

.survey-consent-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
}

.survey-consent-control input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin: 0;
}

.survey-consent-control span {
  font-size: 12px;
  line-height: 1.3;
}

.survey-form-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

@media (max-width: 900px) {
  .survey-layout-card,
  .survey-summary-card {
    width: 100%;
  }

  .survey-form-actions {
    justify-content: flex-start;
  }
}
