/* Baiheng product feedback
   Shared by product pages and the company contact route. */

.productFeedbackSection {
  --feedback-accent: 47, 107, 255;
  --feedback-accent-soft: 105, 221, 247;
  padding-top: clamp(68px, 8vw, 112px);
  padding-bottom: clamp(74px, 9vw, 126px);
}

.productFeedbackSection[data-product-key="newslight"] {
  --feedback-accent: 87, 86, 230;
  --feedback-accent-soft: 72, 203, 255;
}

.productFeedbackSection[data-product-key="statuslight"] {
  --feedback-accent: 30, 153, 132;
  --feedback-accent-soft: 105, 221, 247;
}

.productFeedbackPanel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  gap: clamp(30px, 5vw, 76px);
  overflow: hidden;
  padding: clamp(28px, 4.8vw, 66px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: clamp(34px, 4vw, 54px);
  background:
    radial-gradient(circle at 12% 12%, rgba(var(--feedback-accent-soft), .14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(247, 250, 255, .76));
  box-shadow: 0 34px 90px rgba(38, 68, 110, .12), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.productFeedbackPanel::before {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: -130px;
  border-radius: 50%;
  background: rgba(var(--feedback-accent), .07);
  content: "";
  pointer-events: none;
}

.productFeedbackIntro,
.productFeedbackForm {
  position: relative;
  z-index: 1;
}

.feedbackProductTag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 13px 4px 5px;
  border: 1px solid rgba(var(--feedback-accent), .13);
  border-radius: 999px;
  color: rgb(var(--feedback-accent));
  background: rgba(var(--feedback-accent), .065);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.feedbackProductTag b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, rgba(var(--feedback-accent-soft), 1), rgba(var(--feedback-accent), 1));
  box-shadow: 0 7px 16px rgba(var(--feedback-accent), .22);
  font-size: 9px;
  letter-spacing: .02em;
}

.productFeedbackIntro h2 {
  max-width: 560px;
  margin: 20px 0 14px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.productFeedbackIntro > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feedbackDeliveryScene {
  position: relative;
  min-height: 244px;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid rgba(var(--feedback-accent), .1);
  border-radius: 30px;
  background:
    linear-gradient(rgba(var(--feedback-accent), .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--feedback-accent), .035) 1px, transparent 1px),
    linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(var(--feedback-accent), .045));
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96);
  perspective: 700px;
}

.feedbackDeliveryScene.isCompact {
  min-height: 184px;
  margin: 20px 0 22px;
}

.feedbackSceneHeader {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 19px;
  right: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(47, 66, 90, .52);
  font-size: 9px;
  font-weight: 880;
  letter-spacing: .12em;
}

.feedbackSceneHeader b {
  color: rgba(var(--feedback-accent), .78);
  font-size: 9px;
}

.feedbackRouteLine {
  position: absolute;
  z-index: 0;
  left: 13%;
  right: 20%;
  top: 54%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--feedback-accent), .1), rgba(var(--feedback-accent), .52), rgba(var(--feedback-accent-soft), .18));
}

.feedbackRouteLine::before,
.feedbackRouteLine::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  background: rgb(var(--feedback-accent));
  box-shadow: 0 0 0 5px rgba(var(--feedback-accent), .08);
  content: "";
  transform: translateY(-50%);
}

.feedbackRouteLine::before { left: 0; }
.feedbackRouteLine::after { right: 0; }

.feedbackPacketTrack {
  position: absolute;
  z-index: 2;
  left: 12%;
  right: 22%;
  top: 33%;
  height: 90px;
}

.feedbackEnvelope {
  position: absolute;
  left: 0;
  top: 30px;
  width: 58px;
  height: 42px;
  border: 1px solid rgba(var(--feedback-accent), .16);
  border-radius: 9px;
  background: linear-gradient(155deg, #fff, rgba(var(--feedback-accent-soft), .17));
  box-shadow: 0 14px 26px rgba(38, 68, 110, .16), inset 0 1px 0 #fff;
  transform: rotateX(4deg) rotateY(-10deg) rotateZ(-3deg);
  transform-style: preserve-3d;
}

.feedbackEnvelope::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .12) 0 48%, rgba(var(--feedback-accent), .08) 49% 100%);
  clip-path: polygon(0 0, 50% 61%, 100% 0);
  content: "";
}

.feedbackEnvelope::after {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 20px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(var(--feedback-accent));
  box-shadow: 0 4px 10px rgba(var(--feedback-accent), .25);
  content: "";
  transform: translate(-50%, -50%);
}

.feedbackEnvelopeSpark {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: calc(100% + 4px);
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(var(--feedback-accent-soft), .84));
  opacity: 0;
}

.feedbackInbox {
  position: absolute;
  z-index: 2;
  right: 7%;
  top: 50%;
  display: grid;
  width: 116px;
  min-height: 104px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 13px 12px;
  border: 1px solid rgba(var(--feedback-accent), .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 40px rgba(38, 68, 110, .13), inset 0 1px 0 #fff;
  text-align: center;
  transform: translateY(-35%);
}

.feedbackInboxMark {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  color: rgb(var(--feedback-accent));
  background: rgba(var(--feedback-accent), .08);
  box-shadow: inset 0 0 0 1px rgba(var(--feedback-accent), .08);
  font-size: 11px;
  font-weight: 920;
}

.feedbackInboxMark::after {
  position: absolute;
  width: 6px;
  height: 6px;
  right: -2px;
  bottom: -2px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9dafc1;
  content: "";
}

.feedbackInbox span {
  color: rgba(47, 66, 90, .48);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.feedbackInbox b {
  max-width: 96px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedbackDing {
  position: absolute;
  z-index: 4;
  right: 4%;
  top: 27%;
  color: rgb(var(--feedback-accent));
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px) rotate(5deg);
}

.feedbackReceipt {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  bottom: 15px;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(var(--feedback-accent), .1);
  border-radius: 14px;
  color: rgb(var(--feedback-accent));
  background: rgba(255, 255, 255, .88);
  font-size: 11px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(8px);
}

.feedbackReceipt i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgb(var(--feedback-accent));
  font-size: 10px;
  font-style: normal;
}

.feedbackSurface.is-sending .feedbackEnvelope {
  animation: feedbackEnvelopeFlight 1.22s cubic-bezier(.36, .08, .2, 1) forwards;
}

.feedbackSurface.is-sending .feedbackEnvelopeSpark {
  animation: feedbackSparkFlight 1.22s ease-out forwards;
}

.feedbackSurface.is-sending .feedbackRouteLine {
  animation: feedbackRouteGlow .86s ease-in-out infinite alternate;
}

.feedbackSurface.is-success .feedbackEnvelope {
  opacity: 0;
}

.feedbackSurface.is-success .feedbackInboxMark {
  color: #fff;
  background: linear-gradient(145deg, rgba(var(--feedback-accent-soft), 1), rgba(var(--feedback-accent), 1));
  animation: feedbackBeaconArrive .72s cubic-bezier(.22, .84, .28, 1.18) both;
}

.feedbackSurface.is-success .feedbackInboxMark::after {
  background: #48cf93;
  box-shadow: 0 0 0 5px rgba(72, 207, 147, .12);
}

.feedbackSurface.is-success .feedbackDing {
  animation: feedbackDingIn .78s .08s cubic-bezier(.22, .84, .28, 1.18) both;
}

.feedbackSurface.is-success .feedbackReceipt {
  animation: feedbackReceiptIn .48s .16s ease-out both;
}

.feedbackSurface.is-error .feedbackDeliveryScene {
  border-color: rgba(212, 93, 93, .18);
}

.productFeedbackForm {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: clamp(22px, 3.2vw, 34px);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 32px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 20px 56px rgba(38, 68, 110, .08), inset 0 1px 0 #fff;
}

.productFeedbackForm label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.productFeedbackForm input,
.productFeedbackForm select,
.productFeedbackForm textarea {
  border-radius: 17px;
  background: rgba(249, 251, 255, .88);
}

.productFeedbackForm textarea {
  min-height: 154px;
}

.feedbackFieldMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feedbackFieldMeta label {
  flex: 1;
}

.feedbackCharacterCount {
  align-self: end;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.feedbackPrivacyNote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.feedbackPrivacyNote::before {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border-radius: 6px;
  color: rgb(var(--feedback-accent));
  background: rgba(var(--feedback-accent), .08);
  content: "i";
  font-size: 9px;
  font-weight: 900;
}

.feedbackPrivacyNote a {
  flex: 0 0 auto;
  color: rgb(var(--feedback-accent));
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.feedbackPrivacyNote a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feedbackSubmitRow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

.feedbackSubmitButton {
  min-width: 188px;
  justify-content: center;
}

.feedbackSubmitButton::before {
  width: 15px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  content: "";
  transform: rotate(-5deg);
}

.feedbackSubmitButton:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.feedbackFormStatus {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.5;
}

.feedbackFormStatus[data-state="sending"] {
  color: rgb(var(--feedback-accent));
}

.feedbackFormStatus[data-state="success"] {
  color: #1b8b65;
}

.feedbackFormStatus[data-state="error"] {
  color: #b24d4d;
}

.feedbackTrap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.contactFeedbackPrivacy {
  margin: 0;
}

.contactPanel[data-feedback-surface] {
  --feedback-accent: 47, 107, 255;
  --feedback-accent-soft: 105, 221, 247;
}

@keyframes feedbackEnvelopeFlight {
  0% {
    left: 0;
    top: 30px;
    opacity: 1;
    transform: rotateX(4deg) rotateY(-10deg) rotateZ(-3deg) scale(1);
  }
  34% {
    left: 31%;
    top: 2px;
    opacity: 1;
    transform: rotateX(8deg) rotateY(8deg) rotateZ(7deg) scale(.94);
  }
  72% {
    left: 72%;
    top: 13px;
    opacity: 1;
    transform: rotateX(2deg) rotateY(-4deg) rotateZ(-2deg) scale(.78);
  }
  100% {
    left: calc(100% - 34px);
    top: 30px;
    opacity: 0;
    transform: rotateX(0) rotateY(0) rotateZ(0) scale(.46);
  }
}

@keyframes feedbackSparkFlight {
  0%, 10% { opacity: 0; transform: scaleX(.3); }
  28%, 78% { opacity: .9; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(.2); }
}

@keyframes feedbackRouteGlow {
  from { filter: saturate(.8); opacity: .48; }
  to { filter: saturate(1.4); opacity: 1; }
}

@keyframes feedbackBeaconArrive {
  0% { box-shadow: 0 0 0 0 rgba(var(--feedback-accent), 0); transform: scale(.88); }
  52% { box-shadow: 0 0 0 13px rgba(var(--feedback-accent), .1); transform: scale(1.12); }
  100% { box-shadow: 0 0 0 4px rgba(var(--feedback-accent), .08); transform: scale(1); }
}

@keyframes feedbackDingIn {
  0% { opacity: 0; transform: translateY(8px) rotate(5deg) scale(.7); }
  38% { opacity: 1; transform: translateY(-6px) rotate(-4deg) scale(1.08); }
  100% { opacity: 0; transform: translateY(-18px) rotate(-7deg) scale(.96); }
}

@keyframes feedbackReceiptIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .productFeedbackPanel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .productFeedbackIntro h2,
  .productFeedbackIntro > p {
    max-width: none;
  }

  .feedbackDeliveryScene {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .productFeedbackSection {
    padding-top: 54px;
    padding-bottom: 72px;
  }

  .productFeedbackPanel {
    padding: 18px;
    border-radius: 34px;
  }

  .productFeedbackIntro {
    padding: 10px 8px 0;
  }

  .productFeedbackIntro h2 {
    margin-top: 17px;
    font-size: 31px;
  }

  .feedbackDeliveryScene {
    min-height: 208px;
    margin-top: 25px;
    border-radius: 24px;
  }

  .feedbackDeliveryScene.isCompact {
    min-height: 174px;
  }

  .feedbackInbox {
    right: 4%;
    width: 104px;
  }

  .feedbackPacketTrack {
    left: 8%;
    right: 22%;
  }

  .feedbackRouteLine {
    left: 9%;
    right: 20%;
  }

  .productFeedbackForm {
    padding: 20px;
    border-radius: 26px;
  }

  .feedbackSubmitRow {
    display: grid;
    gap: 10px;
  }

  .feedbackSubmitButton {
    width: 100%;
  }

  .feedbackFormStatus {
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedbackSurface.is-sending .feedbackEnvelope,
  .feedbackSurface.is-sending .feedbackEnvelopeSpark,
  .feedbackSurface.is-sending .feedbackRouteLine,
  .feedbackSurface.is-success .feedbackInboxMark,
  .feedbackSurface.is-success .feedbackDing,
  .feedbackSurface.is-success .feedbackReceipt {
    animation: none;
  }

  .feedbackSurface.is-sending .feedbackEnvelope {
    opacity: .38;
  }

  .feedbackSurface.is-success .feedbackInboxMark {
    color: #fff;
    background: rgb(var(--feedback-accent));
  }

  .feedbackSurface.is-success .feedbackReceipt {
    opacity: 1;
    transform: none;
  }
}
