/**
 * Appily Forty — Orchard Contact Hub
 * Layout: hero + info sidebar + form panel
 */

.page-contact-forty.a40-contact-forty {
  background: var(--a40-warm);
}
.page-contact-forty .page-main { padding-top: 0; }

.a40-ct { padding-bottom: 3.5rem; }

/* Reveal */
.a40-ct-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.a40-ct-reveal.is-visible { opacity: 1; transform: none; }

/* Hero */
.a40-ct-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 2.75rem) 0 1.75rem;
  background: var(--a40-hero-gradient);
  margin-bottom: 1.75rem;
}
.a40-ct-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.a40-ct-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.45;
  animation: a40-ct-blob 14s ease-in-out infinite;
}
.a40-ct-blob--1 { width: 280px; height: 280px; top: -10%; right: 6%; background: var(--a40-blob-warm); }
.a40-ct-blob--2 { width: 220px; height: 220px; bottom: -12%; left: 2%; background: var(--a40-blob-cool); animation-delay: -5s; }
.a40-ct-ring {
  position: absolute;
  top: 50%;
  right: 10%;
  width: min(200px, 26vw);
  aspect-ratio: 1;
  border: 2px dashed rgba(45, 106, 79, 0.14);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: a40-ct-spin 24s linear infinite;
}
@keyframes a40-ct-blob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -6px); }
}
@keyframes a40-ct-spin { to { transform: translateY(-50%) rotate(360deg); } }

.a40-ct-hero-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}
.a40-ct-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a40-orange);
}
.a40-ct-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--a40-ink);
}
.a40-ct-hero h1 span {
  color: var(--a40-orange); -webkit-text-fill-color: var(--a40-orange); background: none;
}
.a40-ct-lede {
  margin: 0 0 1rem;
  max-width: 48ch;
  font-size: 0.92rem;
  color: var(--a40-muted);
  line-height: 1.6;
}

.a40-ct-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.a40-ct-topics li {
  padding: 0.35rem 0.75rem;
  background: var(--a40-surface);
  border: 1px solid var(--a40-border);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--a40-green-dark);
}

.a40-ct-status-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: var(--a40-surface);
  border: 2px solid rgba(64, 145, 108, 0.25);
  box-shadow: 0 10px 32px rgba(33, 37, 41, 0.08);
  text-align: center;
  flex-shrink: 0;
}
.a40-ct-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a40-mint);
  margin-bottom: 0.4rem;
  animation: a40-ct-pulse 2s ease-in-out infinite;
}
@keyframes a40-ct-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
.a40-ct-status-badge strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--a40-green-dark);
}
.a40-ct-status-badge span:last-child {
  margin-top: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--a40-muted);
  letter-spacing: 0.04em;
}

/* Layout — info left, form right */
.a40-ct-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Info sidebar */
.a40-ct-info {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.a40-ct-info-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a40-muted);
}
.a40-ct-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.a40-ct-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  background: var(--a40-surface);
  border: 1px solid var(--a40-border);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(33, 37, 41, 0.04);
  transition: transform 0.2s, border-color 0.2s;
}
.a40-ct-card:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 145, 108, 0.3);
}
.a40-ct-card-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(64, 145, 108, 0.1);
}
.a40-ct-card strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--a40-muted);
  margin-bottom: 0.2rem;
}
.a40-ct-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--a40-ink);
  line-height: 1.45;
  word-break: break-word;
}
.a40-ct-card a {
  color: var(--a40-orange);
  font-weight: 600;
  text-decoration: none !important;
}
.a40-ct-card a:hover { text-decoration: underline !important; }

.a40-ct-quick {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--a40-border);
}
.a40-ct-quick a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--a40-muted);
  text-decoration: none !important;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.a40-ct-quick a:hover { color: var(--a40-orange); }

/* Form panel */
.a40-ct-form-wrap {
  background: var(--a40-surface);
  border: 1px solid var(--a40-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(33, 37, 41, 0.06);
}
.a40-ct-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.4rem;
  background: var(--a40-cream);
  border-bottom: 1px solid var(--a40-border);
}
.a40-ct-form-tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a40-mint);
  margin-bottom: 0.2rem;
}
.a40-ct-form-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--a40-ink);
}
.a40-ct-form-ref {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(64, 145, 108, 0.1);
  color: var(--a40-green-dark);
}

.a40-ct-form-lede {
  margin: 0;
  padding: 1rem 1.4rem 0;
  font-size: 0.88rem;
  color: var(--a40-muted);
  line-height: 1.55;
}

/* Notices */
.a40-ct-notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1rem 1.4rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.86rem;
}
.a40-ct-notice.is-success {
  border: 1px solid rgba(64, 145, 108, 0.3);
  background: rgba(64, 145, 108, 0.08);
  color: var(--a40-green-dark);
}
.a40-ct-notice.is-error {
  border: 1px solid rgba(193, 18, 31, 0.3);
  background: rgba(193, 18, 31, 0.08);
  color: var(--a40-berry);
}
.a40-ct-notice-icon {
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}
.a40-ct-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}
.a40-ct-notice p { margin: 0; line-height: 1.45; opacity: 0.9; }

/* Form fields */
.a40-ct-form {
  padding: 1.15rem 1.4rem 1.4rem;
}
.a40-ct-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.a40-ct-field-wide { grid-column: 1 / -1; }
.a40-ct-field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a40-muted);
}
.a40-ct-field input,
.a40-ct-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--a40-border);
  border-radius: 10px;
  background: var(--a40-cream);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.a40-ct-field input:focus,
.a40-ct-field textarea:focus {
  border-color: var(--a40-mint);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.15);
}
.a40-ct-field textarea { resize: vertical; min-height: 120px; }

.a40-ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.a40-ct-btn--primary {
  background: var(--a40-ink);
  color: #fff;
}
.a40-ct-btn--primary:hover {
  background: var(--a40-green-dark);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .a40-ct-hero-top { grid-template-columns: 1fr; }
  .a40-ct-status-badge { justify-self: start; }
  .a40-ct-layout { grid-template-columns: 1fr; }
  .a40-ct-info { position: static; }
  .a40-ct-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .a40-ct-fields { grid-template-columns: 1fr; }
  .a40-ct-cards { grid-template-columns: 1fr; }
  .a40-ct-form { padding: 1rem; }
  .a40-ct-form-lede { padding: 1rem 1rem 0; }
  .a40-ct-notice { margin: 1rem 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .a40-ct-reveal { transition: none; opacity: 1; transform: none; }
  .a40-ct-blob, .a40-ct-ring, .a40-ct-status-dot { animation: none !important; }
}
