/* VDR 英文：联系销售弹窗（MasterGo 客户信息收集页） */

.contact-sales-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-sales-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.contact-sales-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 40, 0.45);
}

.contact-sales-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: min(90vh, 880px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-sales-modal-head {
  display: flex;
  align-items: flex-start;
  /* gap: 12px; */
  padding: 20px 20px 0 20px;
  flex-shrink: 0;
}

.contact-sales-modal-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-sales-modal-head-text {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
  flex-direction: row;
  display: flex;
  justify-content: flex-start;
  gap:12px;
}

.contact-sales-modal-head-text h2 {
  /* margin: 0 0 8px; */
  font-size: 22px;
  font-weight: 600;
  color: #101C2F;
  /* line-height: 1.35; */
}

.contact-sales-modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #191B1F;
  line-height: 1.6;
  padding: 8px 20px 0 20px;
}

.contact-sales-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -4px -4px 0 0;
  transition: color 0.2s, background 0.2s;
}

.contact-sales-modal-close:hover {
  color: #101C2F;
  background: #f3f4f6;
}

.contact-sales-modal .contact-card-divider {
  margin: 16px 0 0;
  flex-shrink: 0;
  border: none;
  border-top: 1px solid #e5e7eb;
  height: 0;
}

.contact-sales-modal-scroll {
  overflow-y: auto;
  padding: 24px 24px;
  -webkit-overflow-scrolling: touch;
}

.contact-sales-modal-scroll .contact-form {
  padding-bottom: 4px;
}

/* body.contact-sales-modal-open：滚动锁定改由 contact.js（position:fixed + 记录 scrollY）实现，避免 overflow:hidden 把视口滚回顶部 */

@media (max-width: 640px) {
  .contact-sales-modal-panel {
    max-height: 92vh;
  }

  .contact-sales-modal-scroll {
    padding: 16px 16px 20px;
  }

  .contact-sales-modal-head-text h2 {
    font-size: 16px;
  }
}
