/* ==========================================================================
   CONTACT US PAGE (Figma: Final Designs / Contact Us)
   Loaded after internal-base.css and internal-pages.css; reuses their hero,
   Research Methods, CTA banner and footer styles.
   ========================================================================== */

.contact-page-body {
  --c-ink: #0d0e10;
  --c-paper: #f8faf9;
  --c-cream: #f7f6f2;
  --c-muted: #4f5052;
  --c-line: #c5c6c8;
  --c-dim: #818284;
  --c-panel: #272727;
  --c-error: #b42318;
}

.contact-page-body [hidden] {
  display: none !important;
}

.contact-wrap {
  max-width: 1352px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.contact-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 2.7vw, 38.4px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0 0 18px;
}

.contact-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #545454;
  margin: 0;
}

.contact-h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 21.9px;
  line-height: 1.25;
  color: var(--c-ink);
  margin: 0;
}

.contact-glyph {
  font-family: 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'Segoe UI Symbol', sans-serif;
  font-size: 29.5px;
  line-height: 1;
  display: inline-block;
}

/* ---------- HERO ----------
   Background, height, title/description sizes and image size all come from the shared
   .professionals-hero-* / .about-hero-* rules, so this hero matches the Professional Audiences page. */

/* The contact visual is a transparent cut-out PNG: keep the shared size (same box as pro-hero-img.png,
   657x415) but drop the frame, shadow and greyscale that suit a rectangular photo. */
.contact-hero-img {
  aspect-ratio: 657 / 415;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

/* ---------- STRIP ---------- */
.contact-strip {
  background: #fff;
  padding: 46px 24px;
}

.contact-strip-list {
    list-style: none;
    margin: 0;
    padding: 32px 0;
    border-top: 2px solid #b9b9b9;
    border-bottom: 2px solid #b9b9b9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 39px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: clamp(17px, 1.52vw, 21.92px);
    line-height: 1.25;
    color: #000;
}

.contact-strip-list li {
  display: flex;
  align-items: center;
  gap: 39px;
}

.contact-strip-list li + li::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  flex-shrink: 0;
}

/* The full-bleed lines in the design: let the bordered list run edge to edge */
.contact-strip {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- ROUTING CARDS ---------- */
.contact-route-section {
  background: var(--c-cream);
  padding: 82px 0;
}

.contact-route-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-top: 48px;
}

.contact-route-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 268px;
  padding: 22px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #999494;
  border-radius: 15px;
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.contact-route-card .contact-h3 {
  margin-top: 6px;
}

.contact-route-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-muted);
  margin: 0;
  transition: color 0.25s ease;
}

.contact-route-arrow {
  margin-top: auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-paper);
  border: 1px solid #e3e4e5;
  color: var(--c-ink);
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 17.86px;
  transition: transform 0.25s ease;
}

.contact-route-card.is-featured,
.contact-route-card:hover,
.contact-route-card:focus-visible {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-paper);
}

.contact-route-card.is-featured .contact-h3,
.contact-route-card:hover .contact-h3,
.contact-route-card:focus-visible .contact-h3 {
  color: var(--c-paper);
}

.contact-route-card.is-featured p,
.contact-route-card:hover p,
.contact-route-card:focus-visible p {
  color: var(--c-line);
}

.contact-route-card:hover {
  transform: translateY(-4px);
}

.contact-route-card:hover .contact-route-arrow {
  transform: translateX(4px);
}

.contact-route-card:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* ---------- RESEARCH INQUIRY ---------- */
.contact-inquiry-section {
  background: var(--c-panel);
  padding: 68px 0 82px;
  scroll-margin-top: 0;
}

.contact-inquiry-section .contact-h2 {
  color: var(--c-paper);
}

.contact-inquiry-section .contact-sub {
  color: var(--c-line);
}

.ci-stepper {
  list-style: none;
  margin: 39px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 62px;
}

.ci-stepper li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-dim);
}

.ci-step-num {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.115px solid var(--c-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.4px;
  color: var(--c-dim);
  box-sizing: border-box;
}

.ci-stepper li.is-active,
.ci-stepper li.is-done {
  color: var(--c-paper);
}

.ci-stepper li.is-active .ci-step-num {
  background: var(--c-paper);
  border-color: var(--c-paper);
  color: var(--c-ink);
}

.ci-stepper li.is-done .ci-step-num {
  border-color: var(--c-paper);
  color: var(--c-paper);
}

.ci-layout {
  display: grid;
  grid-template-columns: minmax(0, 852fr) minmax(0, 414fr);
  gap: 36px;
  align-items: start;
}

.ci-card {
  background: var(--c-paper);
  padding: 36px;
  box-sizing: border-box;
}

.ci-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.ci-step-title {
  float: none;
  width: auto;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 21.9px;
  line-height: 1.25;
  color: var(--c-ink);
  margin: 0;
}

.ci-step-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-muted);
  margin: 4px 0 28px;
}

.ci-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 27px;
}

.ci-span-2 {
  grid-column: 1 / -1;
}

.ci-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ci-field > label,
.ci-label {
  float: none;
  width: auto;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-ink);
  margin: 0 0 7px;
}

.ci-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  box-sizing: border-box;
  background: var(--c-paper);
  border: 1.115px solid var(--c-line);
  border-radius: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ci-input::placeholder {
  color: rgba(13, 14, 16, 0.5);
}

.ci-input:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(13, 14, 16, 0.12);
}

.ci-input.is-invalid {
  border-color: var(--c-error);
}

.ci-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%230d0e10' stroke-width='1.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}

.ci-textarea {
  height: auto;
  min-height: 96px;
  padding: 13px 14px;
  resize: vertical;
}

.ci-error {
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--c-error);
  margin-top: 5px;
}

.ci-error:empty {
  display: none;
}

.ci-radios {
  display: flex;
  gap: 27px;
  margin-top: 10px;
}

.ci-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--c-ink);
  cursor: pointer;
}

.ci-radio input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.ci-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ci-chip {
  position: relative;
  cursor: pointer;
}

.ci-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ci-chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1.115px solid var(--c-line);
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  line-height: 18px;
  color: var(--c-ink);
  background: var(--c-paper);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ci-chip:hover span {
  border-color: var(--c-ink);
}

.ci-chip input:checked + span {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-paper);
}

.ci-chip input:focus-visible + span {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}

.ci-note {
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 14px 0 0;
}

.ci-note a {
  color: var(--c-ink);
  text-decoration: underline;
}

.ci-alert {
  margin-top: 22px;
  padding: 12px 14px;
  background: #fdecea;
  border-left: 3px solid var(--c-error);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--c-error);
}

.ci-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 27px;
}

.ci-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ci-btn-dark {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.ci-btn-dark:hover {
  background: #262626;
  transform: translateY(-1px);
}

.ci-btn-dark:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.ci-btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-ink);
}

.ci-btn-ghost:hover {
  background: var(--c-ink);
  color: var(--c-paper);
}

#ciBack {
  margin-right: auto;
}

.ci-btn:focus-visible {
  outline: 3px solid #0075ff;
  outline-offset: 2px;
}

.ci-success {
  text-align: center;
  padding: 48px 12px;
  outline: none;
}

.ci-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 22px;
}

.ci-success .ci-step-desc {
  margin-bottom: 24px;
}

.ci-aside-img {
  aspect-ratio: 414 / 259;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.ci-aside-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ci-aside-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 21.9px;
  line-height: 1.25;
  color: var(--c-paper);
  margin: 27px 0 18px;
}

.ci-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ci-aside-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(248, 250, 249, 0.12);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-paper);
}

.ci-aside-list li:last-child {
  border-bottom: 1px solid rgba(248, 250, 249, 0.12);
}

.ci-aside-list .contact-glyph {
  width: 39px;
  flex-shrink: 0;
  text-align: center;
  font-size: 19.6px;
}

/* ---------- RESEARCH SOLUTIONS ---------- */
.contact-solutions-section {
  background: var(--c-cream);
  padding: 82px 0 40px;
}

.contact-solutions-intro {
  display: flex;
  align-items: flex-end;
  gap: 62px;
}

.contact-solutions-text {
  flex: 0 1 571px;
}

.contact-solutions-text .contact-h2 {
  color: var(--c-ink);
}

.contact-solutions-text .contact-sub {
  color: var(--c-muted);
  max-width: 485px;
}

.contact-solutions-img {
  flex: 1 1 659px;
  min-width: 0;
}

.contact-solutions-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 659 / 304;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 82px;
}

.contact-method-card {
  min-height: 188px;
  padding: 21px;
  box-sizing: border-box;
  background: var(--c-cream);
  border: 1px solid #cecece;
  color: var(--c-ink);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.contact-method-card:hover {
  background: #fff;
  transform: translateY(-3px);
}

.contact-method-card .contact-h3 {
  margin: 14px 0 6px;
}

.contact-method-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--c-muted);
  margin: 0;
}

/* ---------- AUDIENCE COVERAGE BANNER ---------- */
.contact-coverage-section {
  background: #000;
  padding: 78px 0;
}

.contact-coverage-card {
  display: flex;
  align-items: center;
  gap: 63px;
  padding: 30px 24px;
  border-radius: 24px;
  background: #000;
}

.contact-coverage-text {
  flex: 1 1 632px;
  min-width: 0;
}

.contact-coverage-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 2.7vw, 38.4px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 18px;
}

.contact-coverage-text p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  margin: 0;
  max-width: 511px;
}

.contact-coverage-text hr {
  border: 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 40px 0;
}

.contact-coverage-panel {
  flex: 0 1 585px;
  min-height: 276px;
  padding: 54px 49px 27px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.contact-coverage-slide {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 2.22vw, 32px);
  line-height: 1.25;
  color: var(--c-cream);
  max-width: 461px;
  margin: 0;
  display: none;
}

.contact-coverage-slide.is-active {
  display: block;
  animation: contactFadeIn 0.35s ease;
}

@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.contact-coverage-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.contact-coverage-btn {
  width: 89px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #000;
  background: #000;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-coverage-btn.is-next {
  background: #ccc;
  border-color: #fff;
  color: #000;
}

.contact-coverage-btn:hover {
  background: #fff;
  color: #000;
}

.contact-coverage-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- FOOTER (support email + social, same as the home page) ---------- */
.contact-page-body .site-footer-bottom { flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.contact-page-body .footer-connect { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.contact-page-body .footer-email { font-family: 'Roboto', sans-serif; font-size: 15px; color: #545454; text-decoration: none; }
.contact-page-body .footer-email:hover { color: #000; }
.contact-page-body .footer-email i { margin-right: 6px; }
.contact-page-body .footer-social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.contact-page-body .footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid #E5E7EB; border-radius: 50%; color: #1f2937; text-decoration: none; font-size: 16px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.contact-page-body .footer-social a:hover,
.contact-page-body .footer-social a:focus { background: #000; color: #fff; border-color: #000; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1199.98px) {
  .contact-route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-route-card {
    min-height: 240px;
  }

  .contact-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-coverage-card {
    gap: 40px;
  }
}

@media (max-width: 991.98px) {

  .ci-layout {
    grid-template-columns: 1fr;
  }

  .ci-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }

  .ci-aside-img {
    grid-row: span 2;
  }

  .ci-aside-title {
    margin-top: 0;
  }

  .contact-solutions-intro,
  .contact-coverage-card {
    flex-direction: column;
    align-items: stretch;
  }

  /* Stacked: the desktop flex-basis widths would otherwise become heights */
  .contact-solutions-text,
  .contact-solutions-img,
  .contact-coverage-text {
    flex-basis: auto;
  }

  .contact-coverage-card {
    padding: 0;
  }

  .contact-coverage-panel {
    flex-basis: auto;
    min-height: 220px;
    padding: 36px 28px 24px;
  }

  .contact-method-grid {
    margin-top: 48px;
  }
}

@media (max-width: 767.98px) {
  .contact-wrap {
    padding: 0 16px;
  }

  .contact-strip {
    padding: 32px 0;
  }

  .contact-strip-list {
    flex-direction: column;
    gap: 10px;
    padding: 24px 16px;
    text-align: center;
  }

  .contact-strip-list li {
    flex-direction: column;
    gap: 10px;
  }

  .contact-strip-list li + li::before {
    width: 8px;
    height: 8px;
  }

  .contact-route-section,
  .contact-solutions-section {
    padding-top: 56px;
  }

  .contact-route-section {
    padding-bottom: 56px;
  }

  .contact-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
  }

  .contact-route-card {
    min-height: 0;
  }

  .contact-inquiry-section {
    padding: 56px 0;
  }

  .ci-stepper {
    gap: 12px 24px;
    margin: 28px 0;
  }

  .ci-card {
    padding: 24px 18px;
  }

  .ci-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ci-aside {
    display: block;
  }

  .ci-aside-title {
    margin-top: 24px;
  }

  .contact-coverage-section {
    padding: 56px 0;
  }

  .contact-coverage-text hr {
    margin: 28px 0;
  }
}

@media (max-width: 575.98px) {
  .contact-route-grid,
  .contact-method-grid {
    grid-template-columns: 1fr;
  }

  .contact-method-card {
    min-height: 0;
  }

  /* Only the current step keeps its label on small phones */
  .ci-stepper li:not(.is-active) > span:last-child {
    display: none;
  }

  .ci-actions {
    flex-wrap: wrap;
  }

  .ci-actions .ci-btn {
    flex: 1 1 auto;
  }

  .contact-coverage-btn {
    width: 64px;
  }

  #contactCaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-route-card,
  .contact-method-card,
  .contact-route-arrow,
  .ci-btn,
  .contact-coverage-slide.is-active {
    transition: none;
    animation: none;
  }

  .contact-route-card:hover,
  .contact-method-card:hover {
    transform: none;
  }
}
