/* ============================================================
   Staffino — Contact page (/contact)
   ============================================================ */

body.landing.contact-page {
  --ct-ink: #07111f;
  --ct-line: rgba(29, 111, 216, 0.12);
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(29, 111, 216, 0.12), transparent 58%),
    radial-gradient(700px 360px at -8% 18%, rgba(77, 142, 224, 0.08), transparent 55%),
    linear-gradient(180deg, #f5f9ff 0%, #eef4fb 40%, #f7f9fc 100%);
}

/* ---------- Hero ---------- */
.ct-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.2rem) 0 2rem;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(29, 111, 216, 0.16), transparent 60%),
    linear-gradient(160deg, #e8f1fc 0%, #f3f8fd 55%, #fff 100%);
  border-bottom: 1px solid var(--ct-line);
}

.ct-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: center;
}

.ct-hero__brand {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 0.65rem;
  background: linear-gradient(115deg, var(--brand-darker), var(--brand) 50%, #4d8ee0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ct-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--ct-ink);
  line-height: 1.4;
}

.ct-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.ct-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ct-quick__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(29, 111, 216, 0.14);
  color: var(--ct-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15, 42, 80, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-quick__item:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 111, 216, 0.35);
  box-shadow: 0 12px 28px rgba(21, 87, 176, 0.12);
}

.ct-quick__item svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex: 0 0 auto;
}

.ct-hero__art {
  justify-self: center;
  width: min(100%, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.ct-hero__glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 111, 216, 0.28), transparent 70%);
  filter: blur(8px);
}

.ct-hero__octo {
  position: relative;
  z-index: 1;
  width: 72%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(21, 87, 176, 0.22));
  animation: ctOcto 6s ease-in-out infinite;
}

@keyframes ctOcto {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Paths ---------- */
.ct-paths-wrap {
  padding: 2.25rem 0 0.5rem;
}

.ct-paths-wrap__head {
  margin-bottom: 1.15rem;
}

.ct-paths-wrap__kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.3rem;
}

.ct-paths-wrap__head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 900;
  color: var(--ct-ink);
}

.ct-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.ct-path {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1.2rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(29, 111, 216, 0.1);
  box-shadow: 0 10px 32px rgba(15, 42, 80, 0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ct-path:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 111, 216, 0.28);
  box-shadow: 0 18px 40px rgba(21, 87, 176, 0.12);
}

.ct-path__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-light);
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.ct-path__icon svg {
  width: 18px;
  height: 18px;
}

.ct-path h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--ct-ink);
}

.ct-path p {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.ct-path__cta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand);
}

.ct-path--org { background: linear-gradient(160deg, #fff 0%, #eef5ff 100%); }
.ct-path--supplier { background: linear-gradient(160deg, #fff 0%, #f3f8fd 100%); }
.ct-path--support { background: linear-gradient(160deg, #fff 0%, #f7fbff 100%); }
.ct-path--message { background: linear-gradient(160deg, #fff 0%, #f8fafc 100%); }

/* ---------- Body layout ---------- */
.ct-body {
  padding: 2rem 0 2.5rem;
}

.ct-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}

.ct-form-card,
.ct-aside-card {
  background: #fff;
  border: 1px solid rgba(29, 111, 216, 0.1);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(15, 42, 80, 0.06);
}

.ct-form-card {
  padding: 1.5rem 1.45rem 1.55rem;
}

.ct-form-card__head h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ct-ink);
}

.ct-form-card__head p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.ct-topic-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef5ff, #f7fbff);
  border: 1px solid rgba(29, 111, 216, 0.16);
}

.ct-topic-callout[hidden] {
  display: none !important;
}

.ct-topic-callout p {
  margin: 0;
  flex: 1;
  min-width: 12rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.ct-topic-callout .btn {
  flex: 0 0 auto;
}

.contact-page .contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-page .contact-field {
  margin-bottom: 0.85rem;
}

.contact-page .contact-field[hidden] {
  display: none !important;
}

.contact-page .contact-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ct-ink);
}

.contact-page .contact-field label .req {
  color: #d14343;
}

.contact-page .contact-field input,
.contact-page .contact-field textarea,
.contact-page .contact-field select {
  width: 100%;
  border: 1px solid rgba(29, 111, 216, 0.16);
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ct-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-page .contact-field input:focus,
.contact-page .contact-field textarea:focus,
.contact-page .contact-field select:focus {
  outline: none;
  border-color: rgba(29, 111, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 111, 216, 0.12);
}

.contact-page .contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-page .contact-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.contact-page .contact-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-page .contact-form__privacy {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
}

.ct-aside {
  display: grid;
  gap: 1rem;
}

.ct-aside-card {
  padding: 1.35rem 1.25rem;
}

.ct-aside-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--ct-ink);
}

.ct-channels {
  display: grid;
  gap: 0.65rem;
}

.ct-channel {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px solid rgba(29, 111, 216, 0.08);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}

a.ct-channel:hover {
  background: #eef5ff;
  border-color: rgba(29, 111, 216, 0.2);
}

.ct-channel__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand);
  flex: 0 0 auto;
  border: 1px solid rgba(29, 111, 216, 0.1);
}

.ct-channel__icon svg {
  width: 16px;
  height: 16px;
}

.ct-channel strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ct-ink);
  margin-bottom: 0.15rem;
}

.ct-channel span span {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ct-office__address {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.ct-office__postal {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.ct-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
}

.ct-map-link:hover {
  text-decoration: underline;
}

.ct-side-links {
  display: grid;
  gap: 0.55rem;
}

.ct-side-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(29, 111, 216, 0.1);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ct-side-link:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 111, 216, 0.28);
}

.ct-side-link strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ct-ink);
}

.ct-side-link span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Reveal ---------- */
.js-ct-reveal .ct-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ri, 0) * 50ms);
}

.js-ct-reveal .ct-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ct-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ct-hero__inner {
    grid-template-columns: 1fr;
  }

  .ct-hero__art {
    order: -1;
    width: min(100%, 200px);
  }
}

@media (max-width: 560px) {
  .ct-paths {
    grid-template-columns: 1fr;
  }

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

  .ct-hero {
    padding-top: calc(var(--header-h) + 1.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-hero__octo {
    animation: none;
  }

  .js-ct-reveal .ct-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
