/*
 * CTPL contact-page interaction layer.
 * Keeps the established visual system and adds lightweight, fixed-position
 * transitions with no cursor-following effects.
 */

.contact-hero .eyebrow,
.contact-hero h1,
.contact-hero .hero-copy,
.contact-hero .hero-actions {
  animation: contact-hero-in .72s cubic-bezier(.2,.75,.25,1) both;
}

.contact-hero h1 { animation-delay: 60ms; }
.contact-hero .hero-copy { animation-delay: 120ms; }
.contact-hero .hero-actions { animation-delay: 180ms; }
.hero-contact-panel {
  animation: contact-panel-in .82s cubic-bezier(.2,.75,.25,1) 100ms both;
}

@keyframes contact-hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes contact-panel-in {
  from { opacity: 0; transform: translate3d(22px,12px,0); }
  to { opacity: 1; transform: none; }
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-label::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(52,227,224,.34);
  animation: contact-status 2.4s ease-out infinite;
}

@keyframes contact-status {
  0% { box-shadow: 0 0 0 0 rgba(52,227,224,.30); }
  65%,100% { box-shadow: 0 0 0 8px rgba(52,227,224,0); }
}

.contact-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}

.contact-row::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg,rgba(52,227,224,.09),rgba(52,227,224,.02) 55%,transparent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .38s cubic-bezier(.2,.75,.25,1);
}

.contact-row:hover,
.contact-row:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(52,227,224,.35);
  outline: none;
}

.contact-row:hover::before,
.contact-row:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.contact-row:hover .contact-icon,
.contact-row:focus-visible .contact-icon {
  color: #041718;
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  box-shadow: 0 9px 24px rgba(52,227,224,.16);
}

.contact-icon,
.row-arrow {
  transition: transform .28s ease, color .28s ease, background .28s ease,
    border-color .28s ease, box-shadow .28s ease;
}

.contact-row:hover .contact-icon,
.contact-row:focus-visible .contact-icon { transform: rotate(-4deg) scale(1.04); }
.contact-row:hover .row-arrow,
.contact-row:focus-visible .row-arrow {
  color: var(--teal-bright);
  transform: translate(3px,-3px);
}

.action-pill,
.console-action,
.submit-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.action-pill::after,
.console-action::after,
.submit-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -25%;
  bottom: -25%;
  left: -42%;
  width: 30%;
  transform: skewX(-22deg);
  background: rgba(255,255,255,.20);
  transition: left .5s ease;
}

.action-pill:hover::after,
.action-pill:focus-visible::after,
.console-action:hover::after,
.console-action:focus-visible::after,
.submit-btn:hover::after,
.submit-btn:focus-visible::after { left: 118%; }

.details-tab:focus-visible,
.copy-detail:focus-visible,
.action-pill:focus-visible,
.console-action:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.details-tab {
  position: relative;
  overflow: hidden;
}

.details-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal-bright);
  transition: left .25s ease,right .25s ease;
}

.details-tab:not(.active):hover::after,
.details-tab:not(.active):focus-visible::after {
  left: 22%;
  right: 22%;
}

.information-card::before,
.support-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(var(--teal-bright),var(--teal));
  transition: height .34s cubic-bezier(.2,.75,.25,1);
}

.information-card:hover::before,
.information-card:focus-within::before,
.support-card:hover::before { height: 100%; }

.information-card {
  transform: translateZ(0);
}

.information-card:hover,
.information-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,.13);
}

.field label {
  transition: color .2s ease, transform .2s ease;
  transform-origin: left center;
}

.field:focus-within label {
  color: var(--teal-bright);
  transform: translateX(3px);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(255,255,255,.24);
}

.contact-copy .detail strong a {
  transition: color .2s ease;
}

.contact-copy .detail strong a:hover,
.contact-copy .detail strong a:focus-visible {
  color: var(--teal-bright);
  outline: none;
}

.support-card {
  position: relative;
  overflow: hidden;
}

.support-card::after {
  content: "↗";
  position: absolute;
  right: 24px;
  top: 24px;
  color: rgba(52,227,224,.38);
  font-size: 1.15rem;
  transform: translate(-5px,5px);
  opacity: 0;
  transition: opacity .25s ease,transform .25s ease;
}

.support-card:hover::after {
  opacity: 1;
  transform: none;
}

.js-enhanced [data-contact-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .68s cubic-bezier(.2,.75,.25,1) var(--reveal-delay,0ms),
    transform .68s cubic-bezier(.2,.75,.25,1) var(--reveal-delay,0ms);
}

.js-enhanced [data-contact-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 700px) {
  .contact-row:hover,
  .contact-row:focus-visible { transform: none; }
  .contact-row::before { display: none; }
  .support-card::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js-enhanced [data-contact-reveal] {
    opacity: 1;
    transform: none;
  }
}
