/* ==========================================================================
   联系我们页面（版式参考 ipcrossark/contact_us：标题区 + 联系渠道/表单双栏 +
   办公室卡片 + 流程三步 + FAQ 折叠）
   主题色沿用全站 #241ce8
   ========================================================================== */

.contact-page {
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   标题区
   -------------------------------------------------------------------------- */
.contact-hero {
  padding: 72px var(--content-padding) 64px;
  background: #f5f5ff;
}

.contact-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.contact-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #241ce8;
}

.contact-hero__title {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  color: #111111;
  margin: 0 0 20px;
}

.contact-hero__desc {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.75;
  color: #4b5563;
}

.contact-hero__note {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #241ce8;
}

/* --------------------------------------------------------------------------
   通用标题
   -------------------------------------------------------------------------- */
.contact-section-title {
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
  margin: 0 0 18px;
}

.contact-lead {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.8;
  color: #4b5563;
}

/* --------------------------------------------------------------------------
   联系渠道 + 表单
   -------------------------------------------------------------------------- */
.contact-main {
  padding: 80px var(--content-padding);
}

.contact-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
  max-width: 1120px;
  margin: 0 auto;
  scroll-margin-top: 120px;
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.contact-channel {
  position: relative;
  padding: 20px 22px;
  border: 1px solid #ebebf5;
  border-radius: 8px;
  background: #ffffff;
}

.contact-channel__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8aa3;
}

.contact-channel__value {
  display: block;
  padding-right: 64px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #111111;
  word-break: break-word;
}

a.contact-channel__value:hover {
  color: #241ce8;
}

.contact-copy {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 12px;
  border: 1px solid #241ce8;
  border-radius: 100px;
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
  color: #241ce8;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-copy:hover {
  background: #241ce8;
  color: #ffffff;
}

.contact-hint {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.75;
  color: #6b7280;
}

.contact-note {
  padding: 20px 24px;
  border-left: 3px solid #241ce8;
  border-radius: 0 8px 8px 0;
  background: #f7f8fa;
}

.contact-note__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111111;
}

.contact-note__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #4b5563;
}

/* 留言表单（livewire/message 的结构） */
.contact-form-panel .content-section {
  margin: 0;
}

.contact-form-panel .section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.contact-form-panel .section-indicator {
  flex-shrink: 0;
  width: 4px;
  height: 26px;
  background: #241ce8;
}

.contact-form-panel .section-title {
  margin: 0;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
}

.contact-form-panel .section-lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.contact-form {
  padding: 32px;
  border-radius: 8px;
  background: #f7f8fa;
}

.contact-form .lawyer-contact-form {
  margin: 0;
}

.contact-form .lawyer-contact-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form .lawyer-contact-form .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.contact-form .lawyer-contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .lawyer-contact-form .form-group.full-width {
  margin-bottom: 24px;
}

.contact-form .lawyer-contact-form .form-group .form-input,
.contact-form .lawyer-contact-form .form-group .form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: #ffffff;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 14px;
  color: #495057;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.contact-form .lawyer-contact-form .form-group .form-input:focus,
.contact-form .lawyer-contact-form .form-group .form-textarea:focus {
  outline: none;
  border-color: #241ce8;
}

.contact-form .lawyer-contact-form .form-group .form-input::placeholder,
.contact-form .lawyer-contact-form .form-group .form-textarea::placeholder {
  color: #9aa0a6;
}

.contact-form .lawyer-contact-form .form-group .form-textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .lawyer-contact-form .form-submit {
  padding: 15px 34px;
  border: none;
  border-radius: 4px;
  background: #241ce8;
  font-family: 'Alibaba-PuHuiTi', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .lawyer-contact-form .form-submit:hover {
  background: #1a15c4;
}

/* --------------------------------------------------------------------------
   办公室
   -------------------------------------------------------------------------- */
.contact-offices {
  padding: 0 var(--content-padding) 80px;
}

.contact-offices__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.contact-offices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.office-card {
  padding: 26px 28px;
  border: 1px solid #ebebf5;
  border-radius: 8px;
  background: #ffffff;
}

.office-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.office-card__pin {
  width: 34px;
  height: auto;
}

.office-card__flag {
  width: 48px;
  height: 30px;
  border-radius: 3px;
  object-fit: cover;
}

.office-card__list {
  margin: 0;
}

.office-card__list dt {
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8aa3;
}

.office-card__list dd {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

.office-card__list dd:last-child {
  margin-bottom: 0;
}

.office-card__list dd a {
  color: #241ce8;
}

/* --------------------------------------------------------------------------
   流程三步
   -------------------------------------------------------------------------- */
.contact-steps {
  padding: 0 var(--content-padding) 80px;
}

.contact-steps__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 56px;
  border-top: 1px solid #e9ecef;
}

.contact-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-item__num {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #241ce8;
}

.step-item__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #111111;
}

.step-item__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.contact-faq {
  padding: 0 var(--content-padding) 100px;
}

.contact-faq__inner {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 56px;
  border-top: 1px solid #e9ecef;
}

.contact-faq__list {
  margin-top: 8px;
}

.faq-item {
  border-bottom: 1px solid #e9ecef;
}

.faq-item__q {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #111111;
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: #241ce8;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-item__q::after {
  content: '−';
}

.faq-item__a {
  margin: 0;
  padding: 0 40px 22px 0;
  font-size: 15px;
  line-height: 1.85;
  color: #4b5563;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .contact-hero {
    padding: 56px var(--content-padding) 48px;
  }

  .contact-hero__title {
    font-size: 42px;
  }

  .contact-main {
    padding: 56px var(--content-padding);
  }

  .contact-main__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-offices__grid,
  .contact-steps__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-offices {
    padding-bottom: 56px;
  }

  .contact-steps,
  .contact-faq {
    padding-bottom: 56px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 40px var(--content-padding) 36px;
  }

  .contact-hero__title {
    font-size: 32px;
  }

  .contact-hero__desc {
    font-size: 15px;
  }

  .contact-section-title,
  .contact-form-panel .section-title {
    font-size: 22px;
  }

  .contact-main {
    padding: 40px var(--content-padding) 48px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .contact-form .lawyer-contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form .lawyer-contact-form .form-row .form-group {
    margin-bottom: 16px;
  }

  .contact-steps__inner,
  .contact-faq__inner {
    padding-top: 40px;
  }

  .office-card {
    padding: 22px 20px;
  }

  .faq-item__q {
    font-size: 15px;
  }

  .faq-item__a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .contact-hero__title {
    font-size: 27px;
  }

  .contact-channel {
    padding: 18px;
  }

  .contact-channel__value {
    padding-right: 0;
    font-size: 15px;
  }

  .contact-copy {
    position: static;
    margin-top: 12px;
  }

  .contact-form .lawyer-contact-form .form-submit {
    width: 100%;
  }
}
