/* General Body Styles */
body {
  margin: 0;
  font-family: "PingFang SC", sans-serif;
  background-color: #eceeef;
}

/* Main container */
.form-container {
  position: relative;
  width: 100%;
  background-color: #eceeef;
  padding: 6vw 0;
}

.form-background {
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;
  height: 90px;
  background: url("../../common/img/backgrand-header.png") no-repeat;
  background-size: cover;
}

.form-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  padding: 0 20px 40px 20px;
  box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .form-container {
    padding: 100px 0;
  }

  .form-wrapper {
    padding: 0 15px 30px 15px;
  }

  .form-header h1 {
    font-size: 24px;
  }

  .form-header p {
    font-size: 13px;
  }

  .form-section {
    padding: 15px;
  }

  .form-group {
    margin-top: 15px;
  }

  .form-group input[type="text"],
  .form-group input[type="number"] {
    width: 100%;
  }

  .budget-group {
    display: flex;
    align-items: center;
    flex-direction: row;
  }

  .budget-group input {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-left: 0;
  }

  .submit-btn {
    padding: 15px 40px;
    font-size: 16px;
  }
}

/* Header */
.form-header {
  padding: 20px 0;
}

.form-header h1 {
  font-family: "PingFang SC", sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #2b2a3d;
  margin: 0;
  /* padding-top: 80px; */
}

.form-header p {
  font-family: "PingFang SC", sans-serif;
  font-size: 14px;
  color: #888888;
  line-height: 1.8;
  margin-top: 20px;
}

/* Section Styles */
.form-section {
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-top: 30px;
  position: relative;
}

.section-title {
  font-family: "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #e84e4e;
  position: absolute;
  top: -10px;
  left: 10px;
  background-color: white;
  padding: 0 10px;
}

/* Form Group Styles */
.form-group {
  margin-top: 20px;
  position: relative;
}

.form-group label {
  font-family: "PingFang SC", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #333333;
  display: block;
  margin-bottom: 10px;
}

.form-group label.readonly-label {
  color: #aaaaaa;
}

.form-group .readonly-value {
  font-family: "PingFang SC", sans-serif;
  font-weight: bold;
  font-size: 14px;
  color: #000000;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  display: block;
}

.form-group label .required {
  color: #e84e4e;
}

.form-group input[type="text"],
.form-group input[type="number"] {
  width: 80%;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  font-size: 14px;
  outline: none;
}

.form-group input::placeholder {
  color: #aaaaaa;
}

.budget-group {
  display: flex;
  align-items: center;
}
.budget-group input {
  width: 200px;
  margin-right: 10px;
}

/* Radio Button Styles */
.radio-group {
  margin: auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #000000;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
}

/* File Upload Styles */
.file-upload-container {
  margin-top: 10px;
}
.file-upload-btn {
  background-color: #000000;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  align-items: center;
  font-size: 14px;
  position: relative;
}
.file-upload-btn input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-upload-btn span {
  color: #888888;
}

/* Textarea Styles */
.form-group textarea {
  width: 100%;
  height: 180px;
  border: 1px solid #efefef;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  border-bottom: none;
}

.form-group .textarea-description {
  font-size: 14px;
  color: #888888;
  margin-top: 10px;
}

/* Upload Button Positioning in Textarea */

.form-group .file-upload-box {
  border: 1px solid #e0e0e0;
  border-top: none;
  position: relative;
  padding-top: 10px;
}

.form-group .file-upload-container {
  /* margin: 10px;
  width: 60px;
  margin-top: 0;
  border: 1px solid;
  border-radius: 10px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center; */
}

.form-group .file-upload-container .file-upload-btn {
  height: 80px;
  background: none;
  padding: 0 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center; */
}

.form-group .file-upload-container .file-upload-btn span {
  /* display: none; */
}

.form-group .file-upload-container .file-upload-btn img {
  /* content: "";
  display: inline-block;
  width: 60px;
  height: 60px;
  background-image: url("../../common/img/up_grey.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer; */
  width: 60px;
  height: 60px;
  background: #eee;
  border-radius: 10px;
  padding: 5px;
}

/* Submit Button */
.submit-btn-container {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  background-color: #e84e4e;
  color: white;
  border: none;
  padding: 20px 60px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}
/* Override layui default green theme with current theme color (#e84e4e) */
.layui-form-radioed:hover i,
.layui-form-radioed i {
  color: #e84e4e;
}

.layui-form-radio:hover i,
.layui-form-radio i,
.layui-form-radio:hover *,
.layui-form-radioed,
.layui-form-radioed > i {
  color: #e84e4e;
}

.layui-form-select dl dd.layui-this {
  background-color: #e84e4e;
}

.layui-form-select dl dd:hover {
  background-color: #ffebeb;
}

.layui-form-checked[lay-skin="primary"] i {
  border-color: #e84e4e;
  background-color: #e84e4e;
}

.layui-form-checked[lay-skin="primary"]:hover i {
  border-color: #e84e4e;
  background-color: #e84e4e;
}

.layui-form-radio {
  color: #333;
}

.layui-form-radio:hover {
  color: #e84e4e;
}

.layui-form-radioed {
  color: #e84e4e;
}

.desc-wrapper p {
  /* //首行缩进 */
  text-indent: 2em;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0;
  padding: 5px 0;
}
.desc-wrapper h4,
.desc-wrapper h5 {
  padding: 8px 0;
}
