/* Appily thirtyone — Orchard Fruit Desk contact */

.page-contact-desk {
  --cd-purple: #6a1b9a;
  --cd-purple-deep: #4a148c;
  --cd-purple-soft: rgba(106, 27, 154, 0.08);
  --cd-gold: #ffea00;
  --cd-gold-deep: #f5c518;
  --cd-coral: #ff6d00;
  --cd-peach: #ffab91;
  --cd-sky: #e3f2fd;
  --cd-mint: #c8e6c9;
  --cd-paper: #fffaf5;
  --cd-cream: #fff8e1;
  --cd-ink: #1c1c1c;
  --cd-muted: #5f6368;
  --cd-line: rgba(106, 27, 154, 0.12);
  --cd-glow: rgba(106, 27, 154, 0.14);
  --cd-green: #43a047;
  --cd-red: #ef5350;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 234, 0, 0.1), transparent 55%),
    linear-gradient(180deg, #faf5ff 0%, #fff8f0 320px, #fff 100%);
}

.page-contact-desk .page-main {
  padding-top: 0;
}

.a31-tube {
  padding: 0 0 3.75rem;
}

/* ── Hero ── */
.a31-tube-station {
  position: relative;
  padding: 2.65rem 0 2.85rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 90% at 0% 0%, rgba(255, 234, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 80% at 100% 20%, rgba(255, 109, 0, 0.2), transparent 50%),
    linear-gradient(135deg, var(--cd-purple-deep) 0%, var(--cd-purple) 42%, #7b1fa2 100%);
}

.a31-tube-station::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cd-gold), var(--cd-coral), var(--cd-gold));
  background-size: 200% 100%;
  animation: a31DeskStripe 6s linear infinite;
}

@keyframes a31DeskStripe {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.a31-tube-network {
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  opacity: 0.4;
  pointer-events: none;
}

.a31-tube-pipes {
  width: 100%;
  height: 100%;
  display: block;
}

.a31-tube-pipe {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 10;
  stroke-linecap: round;
}

.a31-tube-capsule {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 38%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  animation: a31DeskOrbRun 7s linear infinite;
}

.a31-tube-capsule-a {
  background: linear-gradient(135deg, var(--cd-gold), var(--cd-gold-deep));
}

.a31-tube-capsule-b {
  background: linear-gradient(135deg, var(--cd-coral), #ff8f00);
  top: 62%;
  animation-duration: 9s;
  animation-delay: -2s;
}

.a31-tube-capsule-c {
  background: linear-gradient(135deg, #fff, var(--cd-peach));
  top: 48%;
  width: 14px;
  height: 14px;
  animation-duration: 11s;
  animation-delay: -4s;
}

@keyframes a31DeskOrbRun {
  0% { left: -3%; opacity: 0; transform: scale(0.8); }
  5% { opacity: 1; transform: scale(1); }
  95% { opacity: 1; }
  100% { left: 103%; opacity: 0; transform: scale(0.8); }
}

.page-contact-desk-sent .a31-tube-capsule {
  animation-duration: 3.5s;
}

.a31-tube-station-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.a31-tube-kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.a31-tube-station h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.a31-tube-station h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--cd-gold), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.a31-tube-lede {
  margin: 0 0 0.95rem;
  max-width: 50ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.a31-tube-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.a31-tube-routes li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.a31-tube-routes li span {
  color: var(--cd-gold);
  font-size: 0.62rem;
  font-weight: 800;
}

.a31-tube-valve {
  text-align: center;
  min-width: 8rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.a31-tube-valve-gauge {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background:
    conic-gradient(from 200deg, var(--cd-green) 0deg, var(--cd-gold) 220deg, rgba(255, 255, 255, 0.15) 220deg);
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 16px rgba(67, 160, 71, 0.4);
  position: relative;
  animation: a31DeskGaugePulse 2.5s ease-in-out infinite;
}

@keyframes a31DeskGaugePulse {
  0%, 100% { box-shadow: 0 0 16px rgba(67, 160, 71, 0.4); }
  50% { box-shadow: 0 0 24px rgba(255, 234, 0, 0.35); }
}

.a31-tube-valve-gauge::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(74, 20, 140, 0.85);
}

.a31-tube-valve-readout strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cd-gold);
  margin-bottom: 0.18rem;
}

.a31-tube-valve-readout span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Stage layout ── */
.a31-tube-stage {
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}

.a31-tube-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 1.5rem;
  align-items: start;
}

/* Contact form */
.a31-tube-sender {
  background: #fff;
  border: 1px solid var(--cd-line);
  border-radius: 22px;
  box-shadow: 0 20px 52px var(--cd-glow);
  overflow: hidden;
}

.a31-tube-sender-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(90deg, rgba(106, 27, 154, 0.06), rgba(255, 234, 0, 0.08));
  border-bottom: 1px solid var(--cd-line);
}

.a31-tube-sender-port {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cd-green);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(67, 160, 71, 0.7);
  animation: a31DeskPortBlink 2.2s ease-in-out infinite;
}

@keyframes a31DeskPortBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.a31-tube-sender-tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cd-coral);
}

.a31-tube-sender-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cd-purple);
}

.a31-tube-sender-ref {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--cd-line);
  border-radius: 999px;
  color: var(--cd-muted);
  background: var(--cd-paper);
}

.a31-tube-sender-body {
  padding: 1.25rem 1.2rem 1.45rem;
}

.a31-tube-sender-lede {
  margin: 0 0 1.05rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--cd-muted);
}

.a31-tube-notice {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1.05rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 0.84rem;
}

.a31-tube-notice-capsule {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.a31-tube-notice.is-success {
  background: rgba(67, 160, 71, 0.08);
  border-left: 4px solid var(--cd-green);
  color: #2e7d32;
}

.a31-tube-notice.is-success .a31-tube-notice-capsule {
  background: var(--cd-green);
  box-shadow: 0 0 10px rgba(67, 160, 71, 0.5);
  animation: a31DeskNoticePop 0.8s ease-out;
}

@keyframes a31DeskNoticePop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.a31-tube-notice.is-error {
  background: rgba(229, 57, 53, 0.08);
  border-left: 4px solid var(--cd-red);
  color: #c62828;
}

.a31-tube-notice.is-error .a31-tube-notice-capsule {
  background: var(--cd-red);
}

.a31-tube-notice strong {
  display: block;
  font-weight: 800;
  margin-bottom: 0.18rem;
}

.a31-tube-notice p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.a31-tube-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.05rem;
}

.a31-tube-slot-wide {
  grid-column: 1 / -1;
}

.a31-tube-slot > span:first-child {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cd-muted);
  margin-bottom: 0.3rem;
}

.a31-tube-slot-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cd-line);
  transition: background 0.2s, box-shadow 0.2s;
}

.a31-tube-slot:focus-within .a31-tube-slot-led {
  background: var(--cd-purple);
  box-shadow: 0 0 8px rgba(106, 27, 154, 0.45);
}

.a31-tube-slot input,
.a31-tube-slot textarea {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 2px solid var(--cd-line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.a31-tube-slot input:focus,
.a31-tube-slot textarea:focus {
  outline: none;
  border-color: var(--cd-purple);
  box-shadow: 0 0 0 4px var(--cd-purple-soft);
}

.a31-tube-launch {
  width: 100%;
  font-weight: 800 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--cd-purple), #9c27b0 55%, var(--cd-coral)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 28px rgba(106, 27, 154, 0.35);
  position: relative;
  overflow: hidden;
}

.a31-tube-launch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.55s;
}

.a31-tube-launch:hover::after {
  transform: translateX(100%);
}

/* Contact info sidebar */
.a31-tube-rack {
  background: #fff;
  border: 1px solid var(--cd-line);
  border-radius: 22px;
  box-shadow: 0 16px 44px var(--cd-glow);
  position: sticky;
  top: 1rem;
  overflow: hidden;
}

.a31-tube-rack-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(90deg, rgba(255, 109, 0, 0.08), rgba(106, 27, 154, 0.06));
  border-bottom: 1px solid var(--cd-line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cd-purple);
}

.a31-tube-rack-pipe {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cd-coral);
  position: relative;
  animation: a31DeskRackBlink 2s ease-in-out infinite;
}

@keyframes a31DeskRackBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 109, 0, 0.5); }
  50% { opacity: 0.5; box-shadow: none; }
}

.a31-tube-rack-pipe::after {
  display: none;
}

.a31-tube-rack-body {
  padding: 0.85rem 0.9rem 1.05rem;
  display: grid;
  gap: 0.55rem;
}

.a31-tube-terminal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.65rem 0.7rem;
  background: var(--cd-paper);
  border: 1px solid var(--cd-line);
  border-radius: 14px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.a31-tube-terminal:hover {
  box-shadow: 0 8px 22px var(--cd-glow);
  transform: translateY(-2px);
}

.a31-tube-terminal::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cd-purple), var(--cd-coral));
  border-radius: 14px 0 0 14px;
  opacity: 0.7;
}

.a31-tube-terminal-port {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--cd-purple), #9c27b0);
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--cd-gold);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(106, 27, 154, 0.25);
}

.a31-tube-terminal-copy strong {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cd-muted);
  margin-bottom: 0.18rem;
}

.a31-tube-terminal-copy p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--cd-ink);
}

.a31-tube-terminal-copy a {
  color: var(--cd-purple);
  font-weight: 600;
  word-break: break-all;
}

@media (max-width: 900px) {
  .a31-tube-station-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .a31-tube-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .a31-tube-routes {
    justify-content: center;
  }

  .a31-tube-valve {
    justify-self: center;
  }

  .a31-tube-layout {
    grid-template-columns: 1fr;
  }

  .a31-tube-rack {
    position: static;
  }

  .a31-tube-slots {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a31-tube-station::after,
  .a31-tube-capsule,
  .a31-tube-valve-gauge,
  .a31-tube-sender-port,
  .a31-tube-rack-pipe,
  .a31-tube-notice.is-success .a31-tube-notice-capsule {
    animation: none !important;
  }

  .a31-tube-terminal:hover {
    transform: none;
  }
}
