/* ========================================
   Contact Page - New High-Conversion Layout
   ======================================== */

/* ----- Page Layout ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ----- Left Column ----- */
.contact-left {
  position: sticky;
  top: 100px;
}

.trust-header {
  margin-bottom: 28px;
}

.trust-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-heading-dark, #0F172A);
  line-height: 1.2;
  margin-bottom: 6px;
}

.trust-subtitle {
  font-size: 15px;
  color: var(--c-cyan, #00E5FF);
  font-weight: 600;
}

/* ----- Stats Row ----- */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--c-border, #334155);
}

.stat-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--c-accent, #00BFFF);
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-heading-dark, #0F172A);
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--c-text-dim, #94a3b8);
  margin-top: 2px;
}

/* ----- Case Section ----- */
.case-section {
  margin-bottom: 28px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-dim, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.case-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-sm, 6px);
  border-left: 3px solid var(--c-accent, #00BFFF);
}

.case-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-accent, #00BFFF);
}

.case-text {
  font-size: 13px;
  color: var(--c-text, #cbd5e1);
  line-height: 1.4;
}

/* ----- Contact List ----- */
.contact-list-section {
  margin-bottom: 0;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm, 6px);
  transition: background 0.2s ease;
}

.contact-list-item:hover {
  background: var(--c-bg-card, #1e293b);
}

.contact-list-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-accent, #00BFFF);
}

.contact-list-label {
  font-size: 11px;
  color: var(--c-text-dim, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-list-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-heading-dark, #0F172A);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list-value:hover {
  color: var(--c-accent, #00BFFF);
}

/* ----- Right Column ----- */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-card {
  background: var(--c-bg-card, #1e293b);
  border-radius: var(--r-md, 8px);
  border: 1px solid var(--c-border, #334155);
  padding: 32px;
}

/* ----- Form Header ----- */
.form-header {
  margin-bottom: 16px;
}

.form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-heading-dark, #0F172A);
  margin-bottom: 8px;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--c-accent, #00E5FF);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* ----- Guarantee ----- */
.form-guarantee {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: rgba(0, 229, 255, 0.04);
  border-radius: var(--r-sm, 6px);
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text, #cbd5e1);
}

.guarantee-item svg {
  flex-shrink: 0;
}

/* ----- Form Styles ----- */
.rfq-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-heading-dark, #0F172A);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-priority {
  color: var(--c-accent, #00BFFF);
  font-size: 11px;
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border, #334155);
  border-radius: var(--r-sm, 6px);
  background: var(--c-bg-light, #0f172a);
  color: var(--c-text, #cbd5e1);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: var(--c-text-dim, #64748b);
}

.form-input:focus {
  outline: none;
  border-color: var(--c-accent, #00BFFF);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

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

/* ----- Urgency Options ----- */
.urgency-options {
  display: flex;
  gap: 10px;
}

.urgency-option {
  cursor: pointer;
}

.urgency-option input[type="radio"] {
  display: none;
}

.urgency-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--c-border, #334155);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text, #cbd5e1);
  background: var(--c-bg-light, #0f172a);
  transition: all 0.2s ease;
}

.urgency-option input[type="radio"]:checked + .urgency-btn {
  background: var(--c-accent, #00BFFF);
  border-color: var(--c-accent, #00BFFF);
  color: #fff;
}

.urgency-btn.urgency-urgent {
  border-color: #ef4444;
  color: #ef4444;
}

.urgency-option input[type="radio"]:checked + .urgency-urgent {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* ----- Submit Button ----- */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #00BFFF, #0080FF);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-sm, 6px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ----- Form Message ----- */
.form-msg {
  padding: 12px 16px;
  border-radius: var(--r-sm, 6px);
  font-size: 13px;
  line-height: 1.5;
}

/* ----- Trust Badges (below button) ----- */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border, #334155);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--c-text-dim, #94a3b8);
}

.trust-badge svg {
  flex-shrink: 0;
  color: var(--c-accent, #00BFFF);
}

/* ----- Alt Contact (bottom CTA) ----- */
.alt-contact {
  background: var(--c-bg-card, #1e293b);
  border: 1px solid var(--c-border, #334155);
  border-radius: var(--r-md, 8px);
  padding: 24px;
  text-align: center;
}

.alt-contact-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-dim, #94a3b8);
  margin-bottom: 14px;
}

.alt-contact-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-alt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--c-border, #334155);
  border-radius: var(--r-sm, 6px);
  background: var(--c-bg-light, #0f172a);
  color: var(--c-text, #cbd5e1);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-alt:hover {
  border-color: var(--c-accent, #00BFFF);
  color: var(--c-accent, #00BFFF);
}

.btn-alt-wa {
  border-color: #25D366;
  color: #25D366;
}

.btn-alt-wa:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

/* ----- WhatsApp Floating Button ----- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.wa-float-text {
  display: inline;
}

/* ----- Mobile Styles ----- */
@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-left {
    position: static;
  }

  /* 移动端表单优先显示：order 控制 */
  .contact-right {
    order: -1;
  }

  .contact-left {
    order: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .trust-title {
    font-size: 22px;
  }

  .form-card {
    padding: 20px;
  }

  .form-title {
    font-size: 20px;
  }

  /* 移动端输入框放大 */
  .form-input {
    padding: 14px 16px;
    font-size: 16px; /* 防止 iOS 缩放 */
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 10px 12px;
  }

  .trust-badges {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .alt-contact-btns {
    flex-direction: column;
  }

  /* WhatsApp 按钮移动端强化 */
  .wa-float {
    bottom: 16px;
    right: 16px;
    padding: 14px 18px;
  }

  .wa-float-text {
    display: none; /* 移动端只显示图标 */
  }
}

@media (max-width: 480px) {
  .contact-grid {
    gap: 24px;
  }

  .form-card {
    padding: 16px;
  }

  .urgency-options {
    flex-direction: column;
  }

  .urgency-btn {
    text-align: center;
  }
}
