/* ===== Contact Page ===== */
.contact-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: url(/public/images/contact/bg.png) center center / cover no-repeat;
  background-color: #e8edf5;
  padding: 120px 24px 80px;
}

/* ===== Card ===== */
.contact-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
  padding: 24px;
  width: 100%;
  max-width: 680px;
}

/* ===== Card Header ===== */
.contact-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.contact-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #101C2F;
  /* margin: 0 0 10px; */
  line-height: 1.4;
}

.contact-card-subtitle {
  font-size: 14px;
    color: #191B1F;
    line-height: 1.6;
    padding: 8px 20px 0 20px;
}

.contact-card-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 20px -24px 24px;
}

/* ===== Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-question {
  margin-bottom: 18px;
}

.form-question:last-of-type {
  margin-bottom: 24px;
}

/* Two-column row for first/last name */
.form-row-half {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.form-row-half .form-question {
  flex: 1;
  margin-bottom: 0;
}

/* ===== Question Labels ===== */
.question-label {
  font-size: 14px;
  font-weight: 500;
  color: #191B1F;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1.4;
}

.question-label-wrap {
  align-items: flex-start;
  flex-wrap: nowrap;
}

.q-required {
  color: #e53e3e;
  font-size: 12px;
  flex-shrink: 0;
  line-height: 1.6;
}

.question-hint {
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 8px;
  line-height: 1.6;
}

/* ===== Inputs ===== */
.form-question input[type="text"],
.form-question input[type="email"],
.form-question input[type="tel"],
.form-question textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  font-size: 14px;
  color: #191B1F;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-question input::placeholder,
.form-question textarea::placeholder {
  color: #bdbdbd;
}

.form-question input:focus,
.form-question textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.form-question input.error,
.form-question textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.10);
}

.form-question textarea {
  resize: vertical;
  min-height: 76px;
}

/* ===== Error Messages ===== */
.form-error {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}

.form-error.show {
  display: block;
}

/* ===== Radio Group ===== */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: #191B1F;
  line-height: 1.4;
}

.radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #002E93;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}
.contact-form .main-btn, .contact-sales-modal .main-btn{
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  width: 100%;

}
 .contact-sales-modal .main-btn .btn-arrow{
  width: 12px;
  height: 12px;
}

/* ===== Submit: 与全站 main-btn 一致（含箭头 hover 动效，见 sections.css） ===== */
.contact-form .main-btn,
.contact-sales-modal .main-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.contact-form .main-btn:disabled,
.contact-sales-modal .main-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.contact-form .main-btn.loading,
.contact-sales-modal .main-btn.loading {
  position: relative;
  pointer-events: none;
}

.contact-form .main-btn.loading > span,
.contact-sales-modal .main-btn.loading > span {
  visibility: hidden;
}

.contact-form .main-btn.loading::after,
.contact-sales-modal .main-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Success State ===== */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  padding: 40px 20px;
}

.success-icon {
  margin-bottom: 24px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}

.success-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .contact-page {
    padding: 90px 12px 48px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .contact-card-divider {
    margin-left: -20px;
    margin-right: -20px;
  }

  .contact-card-title {
    font-size: 18px;
  }

  .form-row-half {
    flex-direction: column;
    gap: 18px;
  }

}
