/* ==========================================================================
   CONTACT PAGE STYLES (出海业务沟通与需求登记 / 聊聊你的出海增长)
   Editorial Growth Consultancy · Google Workspace Restraint
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO / INTRO SECTION
   -------------------------------------------------------------------------- */
.contact-page-hero {
  padding: 130px 0 40px;
  background: radial-gradient(circle at 82% 28%, color-mix(in oklch, var(--rust) 6%, transparent), transparent 42%);
  border-bottom: 1px solid var(--line);
}

.contact-breadcrumbs {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}

.contact-breadcrumbs a:hover {
  color: var(--rust-deep);
}

.contact-breadcrumbs span {
  opacity: .5;
}

.contact-hero-head h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.2;
  color: var(--ink);
}

.contact-hero-lead {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
}

/* 3-Step Process Steps Banner */
.contact-process-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 28px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  margin-top: 24px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-num {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--rust-deep);
}

.step-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.step-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT (FORM + SIDEBAR)
   -------------------------------------------------------------------------- */
.contact-content-section {
  padding: 56px 0 100px;
  background: var(--paper);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Left Form Box */
.contact-form-container {
  background: #fff;
  border: 1px solid var(--line);
  padding: 44px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.form-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-header h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -.03em;
  color: var(--ink);
}

.form-header p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Fieldset Section Titles */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 20px;
  width: 100%;
}

.form-section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--rust-deep);
}

/* Stack and Rows */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.req-star {
  color: var(--rust-deep);
  margin-left: 2px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Form Inputs */
.input-text,
.input-select,
.input-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  box-sizing: border-box;
}

.input-text:focus,
.input-select:focus,
.input-textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 10%, transparent);
}

.input-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.input-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Radio Chips Group */
.radio-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-label {
  cursor: pointer;
  margin: 0;
}

.chip-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.chip-label span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all .2s var(--ease);
  user-select: none;
}

.chip-label:hover span {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.chip-label input[type="radio"]:checked + span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-weight: 600;
}

/* Checkbox */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0 32px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  flex-shrink: 0;
}

/* Submit Actions */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.button-submit-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--rust-deep);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.button-submit-contact:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in oklch, var(--rust-deep) 25%, transparent);
}

.button-submit-contact:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.submit-safe-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Success Box */
.contact-success-box {
  display: none;
  padding: 60px 40px;
  background: color-mix(in oklch, var(--sage) 8%, #fff);
  border: 1px solid var(--sage);
  text-align: center;
}

.contact-success-box.is-active {
  display: block;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--sage);
}

.contact-success-box h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
}

.contact-success-box p {
  max-width: 500px;
  margin: 0 auto 16px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: SIDEBAR (WECHAT QR + CRITERIA + BOUNDARIES + FAQ)
   -------------------------------------------------------------------------- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 96px;
}

/* WeChat QR Card */
.wechat-qr-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.wechat-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--rust-deep);
  text-transform: uppercase;
}

.wechat-qr-head h3 {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}

.wechat-qr-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.wechat-qr-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.qr-card-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 762 / 1137;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: block;
  background: #fff;
}

.wechat-scan-hint {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}

.wechat-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Sidebar Info Cards */
.sidebar-info-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
}

.sidebar-info-card h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-info-card.fit h4::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.sidebar-info-card.principles h4::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust-deep);
}

.sidebar-info-card ul {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* FAQ Box */
.contact-faq-box {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 24px;
}

.contact-faq-box h4 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.contact-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.contact-faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.contact-faq-item summary {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-faq-item summary::-webkit-details-marker {
  display: none;
}

.contact-faq-item summary::after {
  content: "+";
  font-size: 16px;
  color: var(--muted);
  transition: transform .2s var(--ease);
}

.contact-faq-item[open] summary::after {
  content: "−";
  color: var(--rust-deep);
}

.contact-faq-answer {
  padding-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Toast */
.contact-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all .25s var(--ease);
  max-width: 380px;
}

.contact-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-sidebar {
    position: static;
  }

  .contact-process-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-container {
    padding: 32px 24px;
  }

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