.contact-us .conten-box {
  max-width: 16.78rem;
  margin: 0 auto;
  padding: 60px 20px;
}

.contact-form {
  width: 100%;
}

.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
}

.form-left-column,
.form-right-column {
  display: flex;
  flex-direction: column;
}
.title-box{
  display: flex;
  flex-direction: column;
}
.form-title {
  font-size: var(--font-size-60);
  color: var(--primary-color);
  font-weight: normal;
  
  line-height: 1.2;
}
.form-title::after{
  display: block;
  content: '';
  height: 7px;
  width:1.65rem;
  background: var(--lightblue-color);
  margin-top: 0.36rem;
  margin-bottom: 0.36rem;
}

.form-subtitle {
  font-size: var(--font-size-30);
  line-height: 1.6;
  color: var(--text-gray);
  font-weight: normal;
  margin-bottom: 0.3rem;
}


.form-field {
  margin-bottom: 30px;
  position: relative;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.35rem 0;
  font-size: var(--font-size-20);
  color: var(--text-gray);
  background: transparent;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--text-gray);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23231e1e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 0.3rem;
}

.form-field select option {
  color: var(--text-gray);
  background: #fff;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-light-gray);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  margin-top: 0.1rem;
  gap: 0.1rem;
  margin-bottom: 0.8rem;
}

.privacy-checkbox input[type="checkbox"] {
  margin-top: 0.03rem;
  flex-shrink: 0;
  width: 0.2rem;
  height: 0.2rem;
  cursor: pointer;
}

.privacy-checkbox input[type="checkbox"]:checked {
  accent-color: var(--primary-color);
}

.privacy-checkbox label {
  font-size: var(--font-size-20);
  color: var(--text-gray);
  line-height: 1.5;
  cursor: pointer;
}

.form-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 0.4rem;
}

.send-button {
  width: 1.45rem;
  height: 0.38rem;
  font-size: var(--font-size-16);
  color: var(--text-gray);
  background: transparent;
  border: 1px solid #d0d0d0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  letter-spacing: 1px;
  border-radius: 0.05rem;
}

.send-button:hover {
  border-color: var(--text-gray);
  background: var(--primary-color);
  color: #fff;
}

.send-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-button:disabled:hover {
  border-color: #d0d0d0;
  background: transparent;
  color: var(--text-gray);
}

/* 错误状态样式 */
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-bottom-color: #e74c3c;
}

.privacy-checkbox.error {
  color: #e74c3c;
}

.error-message {
  display: none;
  color: #e74c3c;
  font-size: var(--font-size-14);
  margin-top: 0.1rem;
  line-height: 1.4;
}

.error-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 表单消息提示 */
.form-message {
  padding: 0.3rem 0.4rem;
  margin-bottom: 0.4rem;
  border-radius: 0.05rem;
  font-size: var(--font-size-18);
  text-align: center;
  animation: slideDown 0.3s ease;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message-global {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 手机版样式 */
@media (max-width: 768px) {
  .contact-us .conten-box {
    padding: 0.4rem 0.2rem;
    max-width: 100%;
  }

  .title-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .form-title {
    font-size: var(--font-size-40);
    line-height: 1.3;
  }

  .form-subtitle {
    font-size: var(--font-size-20);
    line-height: 1.5;
    margin-bottom: 0.4rem;
  }

  .contact-form-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-left-column,
  .form-right-column {
    width: 100%;
  }

  .form-field {
    margin-bottom: 0.3rem;
  }


  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: var(--font-size-18);
    padding: 0.25rem 0;
  }

  .form-field textarea {
    min-height: 1.2rem;
  }

  .privacy-checkbox {
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    gap: 0.1rem;
    align-items: baseline;
  }

  .privacy-checkbox input[type="checkbox"] {
    width: 0.2rem;
    height: 0.2rem;
    margin-top: 0.05rem;
    flex-shrink: 0;
  }

  .privacy-checkbox label {
    font-size: var(--font-size-16);
    line-height: 1.5;
  }

  .form-submit-wrapper {
    margin-top: 0.3rem;
  }

  .send-button {
    width: 100%;
    height: 0.5rem;
    font-size: var(--font-size-18);
    letter-spacing: 0.5px;
  }

  .error-message {
    font-size: var(--font-size-14);
    margin-top: 0.08rem;
  }

  .form-message {
    padding: 0.25rem 0.3rem;
    margin-bottom: 0.3rem;
    font-size: var(--font-size-16);
  }
}
