/* V54 — unified consultation copy and contact hierarchy. */

#contact {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.contact-panel-multi {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 2.7vw, 38px);
  border-color: rgba(121, 145, 183, .22);
  background:
    radial-gradient(circle at 100% 0, rgba(91, 132, 255, .11), transparent 38%),
    linear-gradient(155deg, rgba(18, 23, 32, .98), rgba(11, 14, 19, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .2);
}

.contact-panel-multi::before {
  position: absolute;
  top: 0;
  right: 38px;
  left: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 145, 255, .7), transparent);
  content: "";
}

.contact-eyebrow {
  color: #d5ba80;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.contact-panel-head h2,
.final-contact-panel .conversion-copy h2 {
  margin: 12px 0 14px;
  color: var(--text);
  font-size: clamp(32px, 2.7vw, 42px);
  font-weight: 660;
  line-height: 1.16;
  letter-spacing: -.045em;
}

.contact-panel-head > p:last-child {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.contact-channel {
  position: relative;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(121, 145, 183, .18);
  border-radius: 12px;
  background: rgba(7, 10, 14, .66);
}

.contact-channel.is-primary {
  border-color: rgba(91, 132, 255, .34);
  background: linear-gradient(160deg, rgba(91, 132, 255, .075), rgba(7, 10, 14, .74) 52%);
}

.contact-channel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.contact-channel-title > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.contact-channel-title span {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid rgba(91, 132, 255, .28);
  border-radius: 4px;
  color: #8daaff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
}

.contact-channel-title b {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-channel-title > small {
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-qr {
  display: block;
  width: min(100%, 184px);
  margin: 18px auto 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
  transition: border-color .2s ease, transform .2s ease;
}

.contact-qr:hover,
.contact-qr:focus-visible {
  border-color: rgba(91, 132, 255, .85);
  outline: none;
  transform: translateY(-2px);
}

.contact-qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.contact-channel-foot,
.contact-id-line {
  min-height: 31px;
  margin-top: 13px;
}

.contact-channel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-soft);
  font-size: 11px;
}

.contact-channel-foot small {
  color: var(--faint);
  font-size: 9px;
}

.contact-id-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.contact-id-line > span {
  color: var(--faint);
  font-size: 9px;
}

.contact-id-line code {
  overflow: hidden;
  color: var(--text-soft);
  font: 700 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .035em;
  text-overflow: ellipsis;
}

.copy-button-compact {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 10px;
}

.qq-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(121, 145, 183, .18);
  border-radius: 10px;
  background: rgba(7, 10, 14, .58);
}

.qq-contact-row span,
.qq-contact-row b {
  display: block;
}

.qq-contact-row span {
  color: var(--faint);
  font-size: 10px;
}

.qq-contact-row b {
  margin-top: 6px;
  color: var(--text);
  font: 700 16px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .04em;
}

.contact-scan-note {
  position: relative;
  margin-top: 15px;
  padding: 14px 0 0 18px;
  border-top: 1px solid rgba(121, 145, 183, .14);
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.contact-scan-note::before {
  position: absolute;
  top: 17px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f94ff;
  box-shadow: 0 0 12px rgba(91, 132, 255, .7);
  content: "";
}

.final-contact-panel {
  grid-template-columns: minmax(0, 1fr) minmax(430px, 478px);
  gap: clamp(44px, 5vw, 76px);
  align-items: start;
  padding: clamp(36px, 4vw, 54px);
  border-color: rgba(121, 145, 183, .2);
  background:
    radial-gradient(circle at 100% 0, rgba(91, 132, 255, .09), transparent 35%),
    var(--surface);
}

.final-contact-panel .contact-channel-grid {
  margin-top: 0;
}

.final-contact-panel .contact-channel {
  padding: 15px;
}

.final-contact-panel .contact-qr {
  width: min(100%, 176px);
}

.version-policy {
  margin-top: 12px;
  padding-left: 18px;
  border-left: 1px solid rgba(213, 186, 128, .52);
  color: var(--faint);
  font-size: 11px;
  line-height: 1.7;
}

.mobile-conversion-bar a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .final-contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    width: min(100%, 540px);
  }
}

@media (max-width: 560px) {
  .contact-panel-multi {
    padding: 28px 20px 22px;
  }

  .contact-panel-head h2,
  .final-contact-panel .conversion-copy h2 {
    font-size: 34px;
  }

  .contact-channel-grid {
    grid-template-columns: 1fr;
  }

  .contact-channel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(148px, 176px);
    grid-template-rows: auto 1fr;
    column-gap: 17px;
    align-items: center;
    padding: 16px;
  }

  .contact-channel-title {
    display: block;
    align-self: end;
  }

  .contact-channel-title > div {
    flex-wrap: wrap;
  }

  .contact-channel-title > small {
    display: block;
    margin-top: 9px;
    white-space: normal;
  }

  .contact-qr,
  .final-contact-panel .contact-qr {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 100%;
    margin: 0;
  }

  .contact-channel-foot,
  .contact-id-line {
    grid-column: 1;
    align-self: start;
    margin-top: 14px;
  }

  .contact-channel-foot {
    display: block;
  }

  .contact-channel-foot small {
    display: block;
    margin-top: 6px;
  }

  .contact-id-line {
    grid-template-columns: 1fr auto;
  }

  .contact-id-line > span {
    grid-column: 1 / -1;
  }

  .qq-contact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .qq-contact-row .copy-button {
    width: 100%;
  }

  .final-contact-panel {
    padding: 30px 20px;
  }
}

@media (max-width: 400px) {
  .contact-channel {
    grid-template-columns: minmax(0, 1fr) 136px;
    column-gap: 13px;
  }

  .contact-channel-title b {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-qr {
    transition: none;
  }
}
