/* ============================================================
 * Appointment (预约咨询) form.
 * Two-column row layout on desktop, stacks on mobile.
 * ============================================================ */

.appointment-page .appointment-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-1);
}

.appointment-form .form-section {
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.appointment-form .form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}
.appointment-form .form-section-title {
  font-size: var(--fs-lg);
  color: var(--text-1);
  font-weight: var(--fw-semibold);
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  line-height: 1.2;
}
.appointment-form .form-section-desc {
  margin: 0 0 16px;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.appointment-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.appointment-form .form-group {
  margin-bottom: 16px;
}
.appointment-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  color: var(--text-1);
  font-weight: var(--fw-medium);
}
.appointment-form .form-label .required {
  color: #d0433a;
  margin-left: 4px;
}

.appointment-form .form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  color: var(--text-1);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.6;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.appointment-form .form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26, 84, 144, .12);
}
.appointment-form textarea.form-control {
  resize: vertical;
  min-height: 96px;
}

/* ---- radio groups (qualified-investor questionnaire) ---- */
.appointment-form .radio-group .form-label {
  margin-bottom: 10px;
}
.appointment-form .form-radio-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.appointment-form .form-radio-row.vertical {
  flex-direction: column;
  gap: 12px;
}
.appointment-form .form-radio {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-1);
}
.appointment-form .form-radio input[type="radio"] {
  accent-color: var(--primary);
}

/* ---- captcha ---- */
.appointment-form .form-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: stretch;
}
.appointment-form .form-captcha-refresh {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.appointment-form .form-captcha-refresh:hover {
  border-color: var(--primary-light);
  background: var(--bg-3);
}
.appointment-form .form-captcha-refresh img {
  max-width: 100%;
  max-height: 36px;
  display: block;
}
.appointment-form .form-captcha-refresh img[src=""] {
  display: none;
}
.appointment-form .form-captcha-hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* ---- agreement checkbox ---- */
.appointment-form .form-agreement {
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
}
.appointment-form .form-check {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin: 0;
}
.appointment-form .form-check input[type="checkbox"] {
  accent-color: var(--primary);
  margin: 0;
}

/* ---- actions & footer note ---- */
.appointment-form .form-actions {
  text-align: center;
  margin-top: 24px;
}
.appointment-form .form-actions .btn {
  min-width: 200px;
}
.appointment-form .form-footer-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* ---- invalid state hook (set by JS) ---- */
.appointment-form .form-control.is-invalid {
  border-color: #d0433a;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .appointment-page .appointment-wrap {
    padding: 24px 20px;
  }
  .appointment-form .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .appointment-form .form-captcha {
    grid-template-columns: minmax(0, 1fr) 120px;
  }
  .appointment-form .form-actions .btn {
    width: 100%;
  }
}
