/* 定制产品页 */
.nh-custom-product-page {
  min-height: 60vh;
  background: #fff;
  color: var(--gray-800, #1f2937);
}

.custom-product-shell {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.custom-product-breadcrumb {
  display: flex;
  gap: 8px;
  padding: 14px max(20px, calc((100% - 1120px) / 2));
  margin-top: var(--navbar-height);
  background: #fff;
  border-bottom: 1px solid var(--gray-200, #edf0f5);
  color: var(--gray-500, #6b7280);
  font-size: 13px;
}

.custom-product-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.custom-product-breadcrumb a:hover,
.custom-product-breadcrumb a:focus-visible {
  color: var(--blue-500, #2b6cb0);
}


.custom-product-form-section {
  padding: clamp(64px, 8vw, 112px) 0;
  background: #f7f9fc;
}

.custom-product-form-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1fr);
  gap: clamp(48px, 8vw, 124px);
  align-items: center;
}

.custom-product-form-intro h2 {
  max-width: 420px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.25;
}

.custom-product-form-description {
  max-width: 470px;
  margin: 22px 0 0;
  color: var(--gray-600, #4b5563);
  font-size: 15px;
  line-height: 1.9;
}

.custom-product-highlights {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.custom-product-highlight {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.custom-product-highlight > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(43, 108, 176, 0.25);
  border-radius: 50%;
  color: var(--blue-500, #2b6cb0);
  font-size: 11px;
  font-weight: 700;
}

.custom-product-highlight h3 {
  margin: 1px 0 5px;
  color: #1f2937;
  font-size: 15px;
}

.custom-product-highlight p {
  margin: 0;
  color: var(--gray-500, #6b7280);
  font-size: 13px;
  line-height: 1.7;
}

.custom-product-form-card {
  position: relative;
}

.custom-product-form-card::before {
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: 16px;
  left: 16px;
  z-index: 0;
  border: 1px solid rgba(43, 108, 176, 0.12);
  content: '';
}

.custom-product-form-card .sfs-form-wrapper {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--gray-200, #edf0f5);
  border-radius: 0;
  box-shadow: 0 20px 48px rgba(31, 41, 55, 0.08);
}

.custom-product-form-card .sfs-form {
  gap: 18px;
}

.custom-product-form-card .sfs-field {
  gap: 8px;
}

.custom-product-form-card .sfs-field label {
  color: var(--gray-700, #374151);
  font-size: 14px;
  font-weight: 600;
}

.custom-product-form-card .sfs-field input[type="text"],
.custom-product-form-card .sfs-field input[type="tel"],
.custom-product-form-card .sfs-field textarea {
  box-sizing: border-box;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--gray-200, #edf0f5);
  border-radius: 0;
  color: var(--gray-800, #1f2937);
  font-size: 14px;
}

.custom-product-form-card .sfs-field input[type="text"]:focus,
.custom-product-form-card .sfs-field input[type="tel"]:focus,
.custom-product-form-card .sfs-field textarea:focus {
  background: #fff;
  outline: none;
  border-color: var(--blue-500, #2b6cb0);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.12);
}

.custom-product-form-card .sfs-field textarea {
  min-height: 132px;
}

.custom-product-form-card .sfs-button {
  min-width: 136px;
  padding: 13px 30px;
  background: var(--blue-500, #2b6cb0);
  border-radius: 0;
  color: #fff;
  box-shadow: none;
}

.custom-product-form-card .sfs-button:hover {
  background: var(--blue-600, #1f5b99);
  box-shadow: none;
}

.custom-product-form-card .sfs-message {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 0;
  font-size: 14px;
}

.custom-product-form-card .sfs-message.sfs-error {
  border-color: #e53e3e;
  background: #fff5f5;
  color: #c53030;
}

.custom-product-form-card .sfs-message.sfs-success {
  border-color: #38a169;
  background: #f0fff4;
  color: #276749;
}

.custom-product-form-unavailable {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 24px;
  border: 1px solid #fed7d7;
  border-radius: 0;
  background: #fff5f5;
  color: #c53030;
}

@media (max-width: 767px) {
  .custom-product-shell {
    width: min(100% - 32px, 1120px);
  }

  .custom-product-breadcrumb {
    padding: 10px 16px;
    font-size: 12px;
  }


  .custom-product-form-section {
    padding: 56px 0 68px;
  }

  .custom-product-form-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .custom-product-form-intro h2 {
    font-size: 30px;
  }

  .custom-product-highlights {
    margin-top: 30px;
  }

  .custom-product-form-card::before {
    top: -10px;
    right: -10px;
    bottom: 10px;
    left: 10px;
  }
}
