
.form-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #051243;
  padding-bottom: 20px;
}

.form-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(500px, 60vw, 894px);
  background-image: url('../../images/about/img-form-hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.form-title {
  position: relative;
  padding: clamp(100px, 13.89vw, 200px) clamp(20px, 8.33vw, 120px) clamp(40px, 5.56vw, 80px) clamp(150px, 20.83vw, 300px);
  color: #FFF;
  font-size: clamp(28px, 4.17vw, 60px);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  z-index: 1;
}

.contact-form {
  position: relative;
  margin: 50px clamp(20px, 8.33vw, 120px) 0;
  background: #FFF;
  border-radius: clamp(24px, 4vw, 48px);
  box-shadow: 0 0 20px 0 rgba(83, 85, 86, 0.10);
  overflow: hidden;
  z-index: 1;
}


#footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
}


.form-main {
  padding: clamp(24px, 3.33vw, 48px);
}

.main-title {
  padding-bottom: clamp(20px, 2.78vw, 40px);
  color: #051243;
  font-size: clamp(16px, 1.67vw, 24px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.33;
}



.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(20px, 4vw, 48px);
}


.form-group {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  flex: 1 1 100%;
  margin-bottom: 40px;
}

.form-group.full-width textarea {
  height: 80px;
  min-height: 80px;
}


label {
  margin-bottom: 4px;
  color:  #051243;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

label .required {
  color: #C03;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px; /* 1.5 */
}


input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  padding: 10px;
  border: 1px solid #E5F0F8;
  background:  #FFF;
  border-radius: 2px;
  font-size: 14px;
  width: 100%;
  color: #1A1A1A;
}


input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color:  #7C8190;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}


select {
  color:  #7C8190;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

select option {
  color: #1A1A1A;
}

textarea {
  min-height: 80px;
  resize: vertical;
}


.contact-column {
  display: flex;
  flex-direction: column;
}

.contact-column .contact-preference {
  margin-top: 12px;
}

.contact-preference {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-preference input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.contact-preference label {
  margin-bottom: 0;
  cursor: pointer;
}

.captcha-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.captcha-row input[type="text"] {
  flex: 1;
  max-width: 522px;
  min-width: 200px;
}

#captchaImage {
  width: 120px;
  height: 44px;
  border: 1px solid #cce5ff;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  background: #fff5f5;
}


.privacy-notice {
  font-size: 16px;
  line-height: 24px;
  color:  #051243;
  margin: 40px 0 12px 0;
  font-style: normal;
  font-weight: 400;
}

.privacy-notice a {
  color:  #0032D6;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-underline-position: from-font;
}

.privacy-notice a:hover {
  text-decoration: underline;
}


.agree-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.agree-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.agree-checkbox label {
  margin-bottom: 0;
  cursor: pointer;
  color:  #051243;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}


button[type="submit"].form-submit {
border-radius: 100px;
background: linear-gradient(265deg, #1892EE 5.11%, #0032D6 93.64%);
width: 175px;
height: 48px;
border: none;
cursor: pointer;
display: flex;
justify-content: space-between;
padding: 12px 16px;
align-items: center;
color:  #FFF;
font-size: 16px;
font-weight: 400;
transition: opacity 0.3s ease;
}

button[type="submit"].form-submit:hover {
  opacity: 0.9;
}

/* 提交状态 */
.forminput {
  display: block;
}

.success {
  display: none;
  padding: 100px 20px;
  text-align: center;
  font-size: 24px;
  color: #051243;
  font-weight: 600;
}

/* 校验标红 */
input.error, select.error, textarea.error {
  border-color: #d32f2f !important;
}

.agree-checkbox.error label {
  color: #d32f2f;
}

button[type="submit"].form-submit img {
  width: 16px;
  height: 16px;
}


body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}


@media (max-width: 768px) {
  .form-page::before {
    height: 400px;
  }
  .form-title {
    padding: 80px 20px 30px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
  .captcha-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .captcha-row input[type="text"] {
    max-width: none;
  }
  .captcha-img {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .form-page::before {
    height: 300px;
  }
  .form-title {
    font-size: 24px;
    padding: 60px 16px 20px 16px;
  }
  .contact-form {
    margin: 30px 16px 0;
    border-radius: 24px;
  }
  .form-main {
    padding: 16px;
  }
  .privacy-notice {
    font-size: 14px;
    line-height: 20px;
  }
  button[type="submit"].form-submit {
    width: 100%;
  }
}