@font-face {
  font-family: "Outfit";
  src: url("../fonts/6825c6b56040cadc47d10fac_outfit-regular.woff2")
    format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}
#app {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
}
body {
  overflow-x: hidden;
  width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  color: #262626;
  font-family: "Outfit";
}
.questionnaire-container {
  position: relative;
  width: 860px;
  margin: 0 auto;
  padding-top: 48px;
  background-color: #fff;
}
.questionnaire-wrap {
  margin: 0 auto;
  border-radius: 12px;
  position: relative;
}
.questionnaire-wrap::before {
  content: "";
  width: 100%;
  height: 8px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #673ab7;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.questionnaire-wrap .toptitle {
  padding: 40px 0px 12px;
  width: 100%;
  color: #1ea0fa;
}
.questionnaire-wrap .toptitle h1 {
  font-size: 42px;
  line-height: 42px;
  font-weight: 200;
  margin: 0;
  padding: 0;
  text-align: left;
  color: #333;
}
.questionnaire-header {
  padding: 20px 40px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 30px;
}
.questionnaire-header .description {
  /* font-size: 18px; */
  /* color: #666; */
  /* line-height: 24px; */
  margin: 16px 0;
}

.el-form-item {
  margin-bottom: 0 !important;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px;
}
/* MODIFIED: 移除 el-form-item 的边框和内边距 */
.el-form-item {
  border: none !important;
  border-radius: 0;
  padding: 0 !important;
  line-height: 1;
  padding-top: 4px;
}
.el-form-item__label {
  display: block !important;
  float: none !important;
  text-align: left !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  font-size: 18px !important;
}
.el-form-item__content {
  margin-left: 0 !important;
  padding-top: 0 !important;
}
.el-radio-group,
.el-checkbox-group {
  display: flex;
  flex-direction: column !important;
  gap: 8px;
  margin-left: 10px;
}
.el-radio.is-bordered,
.el-checkbox.is-bordered {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.el-radio__inner {
  vertical-align: middle;
}
#submit-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 20px;
}
#submit-wrap button {
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  width: 180px;
  height: 44px;
  padding: 0;
  line-height: 44px;
  font-weight: 400;
  border-radius: 2px;
  color: #fff;
  border: none;
  background-color: #0095ff;
}
.other-input-container {
  display: flex;
  align-items: baseline;
  margin-left: 10px;
}

.other-input-container .other-label {
  line-height: normal !important;
}

.other-input-container .el-input .el-input__inner {
  height: auto;
  line-height: normal !important;
  padding: 0 4px 1px;
}

.other-label {
  margin-right: 1px;
  white-space: nowrap;
  line-height: normal;
}

.underline-input .el-input__inner {
  width: 20%;
  border: none;
  border-bottom: 1px solid #dcdfe6;
  border-radius: 0;
  padding-left: 0;
}

.underline-input .el-input__inner:focus {
  border-bottom-color: #409eff;
}

/* NEW: 为新的区域组容器添加样式 */
.section-group {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
}

/* NEW: 区域标题块的样式 */
.section-block {
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  margin-bottom: 14px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.section-description {
  font-size: 16px;
  color: #666;
  margin: 8px 0 0;
}

/* NEW: 错误信息的样式 */
.error-message {
  color: #f56c6c;
  font-size: 12px;
  line-height: 1;
  padding-top: 4px;
}

.option-with-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-with-input-wrapper .required-optional-label {
  font-size: 14px;
  color: #262626;
}

.inline-input-container {
  width: 100px;
}

.inline-input .el-input__inner {
  border: none;
  border-bottom: 1px solid #dcdfe6;
  border-radius: 0;
  padding-left: 0;
  height: 32px;
  line-height: 32px;
}

.inline-input .el-input__inner:focus {
  border-bottom-color: #409eff;
}

.questionnaire-conclusion {
  font-size: 20px;
  font-weight: 500;
}

.other-input-container {
  display: flex;
  align-items: baseline;
  gap: 8px; /* Adjust the gap as needed */
}

/* Quill Read-only Content Styles Override */
.description .ql-editor,
.conclusion-text .ql-editor {
  padding: 0;
  border: none;
  min-height: auto;
  line-height: inherit;
}

.description .ql-editor > *,
.conclusion-text .ql-editor > * {
  cursor: default; /* Reset cursor for content elements */
}

#questionnaire_form .el-form-item {
  margin-bottom: 22px !important;
}

#questionnaire_form .option-with-input-wrapper .inline-input .el-input__inner {
  height: auto;
  line-height: normal !important;
  padding: 0 4px 1px;
}

.sub-option-item {
  display: flex;
}

.sub-options-container .el-radio-group.sub-options-list {
  margin-left: 22px;
}

.sub-option-item label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-right: 8px;
}

/* .option-with-input-wrapper.has-sub-options {
  border: 1px dashed #dcdfe6;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.sub-options-container {
  margin-top: 10px;
  padding-left: 20px;
  border-left: 2px solid #ebeef5;
} */

.option-with-input-wrapper.has-sub-options {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 10px;
}
