/* SellerGrid Contact — dedicated contact page */

.contact-page {
  --ct-blue: #2563eb;
  --ct-blue-soft: rgba(37, 99, 235, 0.08);
  --ct-blue-border: rgba(37, 99, 235, 0.14);
  --ct-accent: #0891b2;
  --ct-ink: #0f172a;
  --ct-muted: #64748b;
  --ct-radius: 24px;
  --ct-section-y: 120px;
  --ct-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --ct-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(37, 99, 235, 0.06);
  --ct-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-page .ct-section {
  padding: var(--ct-section-y) 0;
}

@media (max-width: 767px) {
  .contact-page .ct-section {
    padding: 80px 0;
  }
}

.contact-page .ct-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* —— Hero —— */

.ct-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem) 0 var(--ct-section-y);
  background: #fff;
}

.ct-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ct-hero__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: min(50rem, 70vw);
  height: 36rem;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.08) 0%, transparent 65%);
  filter: blur(16px);
}

.ct-hero__grid {
  position: relative;
  z-index: 1;
  align-items: center;
}

.ct-hero__copy {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .ct-hero__copy {
    grid-column: 1 / 7;
  }

  .ct-hero__visual {
    grid-column: 7 / -1;
  }
}

.ct-hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.65rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ct-blue);
  background: var(--ct-blue-soft);
  border: 1px solid var(--ct-blue-border);
  border-radius: 999px;
}

.ct-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ct-ink);
}

.ct-hero__lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ct-muted);
}

.ct-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ct-hero__visual {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero illustration */

.ct-illustration {
  position: relative;
  width: min(100%, 28rem);
  aspect-ratio: 1 / 0.92;
}

.ct-illustration__card {
  position: absolute;
  border-radius: var(--ct-radius);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  box-shadow: var(--ct-shadow-lg);
}

.ct-illustration__dash {
  inset: 8% 12% 22% 0;
  padding: 1.25rem;
  z-index: 1;
}

.ct-illustration__dash-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.ct-illustration__dash-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.ct-illustration__dash-brand {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ct-ink);
}

.ct-illustration__dash-tag {
  font-size: 0.6875rem;
  color: var(--ct-muted);
}

.ct-illustration__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ct-illustration__metric {
  padding: 0.75rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.ct-illustration__metric span {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ct-muted);
  margin-bottom: 0.25rem;
}

.ct-illustration__metric strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ct-ink);
}

.ct-illustration__chart {
  width: 100%;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, transparent 100%);
}

.ct-illustration__chat {
  right: 0;
  bottom: 0;
  left: 18%;
  padding: 1rem 1.125rem;
  z-index: 2;
}

.ct-illustration__chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ct-illustration__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee 0%, #818cf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.ct-illustration__chat-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ct-ink);
}

.ct-illustration__chat-status {
  font-size: 0.6875rem;
  color: #16a34a;
}

.ct-illustration__bubble {
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem 0.875rem 0.875rem 0.25rem;
  background: var(--ct-blue-soft);
  border: 1px solid var(--ct-blue-border);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ct-ink);
  margin-bottom: 0.5rem;
}

.ct-illustration__bubble--reply {
  margin-left: 1.5rem;
  border-radius: 0.875rem 0.875rem 0.25rem 0.875rem;
  background: #fff;
}

.ct-illustration__orbit {
  position: absolute;
  top: 0;
  right: 5%;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--ct-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ct-accent);
  z-index: 3;
  animation: ct-orbit-float 4s var(--ct-ease) infinite alternate;
}

@keyframes ct-orbit-float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* —— Reveal animations —— */

.ct-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ct-ease), transform 0.6s var(--ct-ease);
}

.ct-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ct-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ct-illustration__orbit {
    animation: none;
  }
}

/* —— Contact main section —— */

.ct-contact {
  background: var(--off-white);
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.ct-contact__form-wrap {
  grid-column: 2 / 12;
  max-width: 44rem;
  margin-inline: auto;
  width: 100%;
}

@media (max-width: 767px) {
  .ct-contact__form-wrap {
    grid-column: 1 / -1;
  }
}

/* Contact page form overrides */

/* Form must stay visible — do not rely on scroll reveal for the only CTA */
.contact-page .contact-reveal {
  opacity: 1;
  transform: none;
}

.contact-page .contact-section.is-visible .contact-reveal,
.contact-page .ct-contact .contact-reveal {
  opacity: 1;
  transform: none;
}

.contact-page .contact-form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.contact-page .contact-section__title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
}

.contact-page .nav-link.is-active {
  color: var(--ct-accent);
}
