/* ========================================
   表单样式 - 2026分步式升级版
   ======================================== */

/* 分步指示器 */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 20px 0;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e5e7eb;
  color: #9ca3af;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* 激活状态 */
.step-dot.active .step-number,
.step-dot.completed .step-number {
  background: linear-gradient(135deg, #003DA5 0%, #1E5AA8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 61, 165, 0.3);
}

.step-dot.active .step-label {
  color: #003DA5;
  font-weight: 600;
}

.step-dot.completed .step-label {
  color: #374151;
}

.step-dot.completed .step-number::after {
  content: '\2713';
  font-size: 1rem;
}

/* 连接线 */
.step-line {
  width: 60px;
  height: 2px;
  background-color: #e5e7eb;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.step-line.active {
  background: linear-gradient(90deg, #003DA5 0%, #1E5AA8 100%);
}

/* 步骤容器 */
.form-step {
  animation: stepFadeIn 0.35s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 第三步提示框 */
.step3-tip-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #1e40af;
  line-height: 1.6;
}
.step3-tip-box svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* 步骤按钮组 */
.form-actions-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
}

.form-actions-split .btn-prev {
  padding: 12px 24px;
}

/* 抖动动画（校验失败时） */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* 提交按钮加载动画 */
.spin {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 响应式 - 分步表单 */
@media (max-width: 640px) {
  .step-indicator {
    gap: 4px;
    padding: 16px 0;
    margin-bottom: 24px;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.8125rem;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .step-line {
    width: 36px;
  }

  /* 手机端隐藏步骤标签，只显示数字 */
  .step-dot .step-label {
    display: none;
  }

  .form-actions-split {
    flex-direction: column-reverse;
  }

  .form-actions-split .btn-prev,
  .form-actions-split .btn-next,
  .form-actions-split .btn-submit {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* 预约表单 */
.booking-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-section {
  border: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #003DA5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-label.required::after {
  content: ' *';
  color: #003DA5;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  color: #1f2937;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #003DA5;
  box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 32px;
  text-align: center;
}

.form-actions .btn {
  min-width: 200px;
}

.form-tip {
  margin-top: 16px;
  font-size: 0.875rem;
  color: #6b7280;
}

/* 预约须知 */
.booking-notice {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 90px;
}

.booking-notice h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.booking-notice ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-notice li {
  display: flex;
  gap: 14px;
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.booking-notice strong {
  display: block;
  font-size: 0.9375rem;
  color: #1f2937;
  margin-bottom: 4px;
}

.booking-notice p {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}

.hotline-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #003DA5 0%, #002B5C 100%);
  border-radius: 12px;
  color: #fff;
}

.hotline-icon {
  font-size: 2rem;
}

.hotline-label {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.hotline-number {
  font-size: 1.75rem;
  font-weight: 700;
}

/* 流程步骤 */
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: #003DA5;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.5rem;
  color: #d1d5db;
  padding-top: 16px;
}