/* =============================================================
   Contact page
   ============================================================= */

/* Hero with hex motif backdrop */
.ct-hero {
  padding: 88px 0 56px;
}
@media (min-width: 768px) { .ct-hero { padding: 112px 0 72px; } }
.ct-hero__inner { max-width: 760px; }
.ct-hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-4);
  color: var(--dh-navy);
}
.ct-hero p {
  font-size: var(--fs-20);
  color: var(--fg-2);
  max-width: 580px;
  margin: 0;
}

/* Decorative hex clusters in hero — three sizes, brand colors */
.ct-hex {
  position: absolute;
  pointer-events: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.ct-hex--a { width: 88px;  height: 100px; background: var(--dh-orange); opacity: 0.92; top: 22%; right: 12%; }
.ct-hex--b { width: 56px;  height: 64px;  background: var(--dh-yellow); opacity: 0.9;  top: 50%; right: 6%;  }
.ct-hex--c { width: 36px;  height: 42px;  background: var(--dh-navy);   opacity: 0.18; top: 76%; right: 22%; }
.ct-hex--d { width: 28px;  height: 32px;  background: var(--dh-orange); opacity: 0.18; top: 16%; right: 28%; }

/* ============ Main contact form + side rail ============ */
.ct-main { padding: var(--space-8) 0 var(--space-8); }
@media (min-width: 768px) { .ct-main { padding: 96px 0; } }
.ct-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .ct-grid { grid-template-columns: 1fr 1.15fr; gap: 80px; }
}

/* ============ "How we can help" list (left rail) ============ */
.ct-help .eyebrow { margin-bottom: var(--space-3); }
.ct-help h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  color: var(--dh-navy);
}
.ct-help__lede {
  font-size: var(--fs-16);
  color: var(--fg-2);
  margin: 0 0 var(--space-6);
  max-width: 42ch;
  line-height: 1.55;
}
.ct-help__list {
  display: grid;
  gap: 2px;
}
.ct-help-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-2);
  align-items: start;
}
.ct-help-item:last-child { border-bottom: 0; }
.ct-help-item__ico {
  width: 44px; height: 50px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--dh-grey-50);
  color: var(--dh-navy);
  display: grid; place-items: center;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.ct-help-item:nth-child(even) .ct-help-item__ico { color: var(--dh-orange); }
.ct-help-item__title {
  font-size: var(--fs-16);
  font-weight: var(--fw-bold);
  color: var(--dh-navy);
  margin: 2px 0 3px;
  letter-spacing: -0.01em;
}
.ct-help-item__desc {
  font-size: var(--fs-14);
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}

/* ============ Form ============ */
.ct-form {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 8px 28px rgba(25,51,89,0.06);
}
.ct-form__head { margin-bottom: var(--space-5); }
.ct-form__head h3 {
  font-size: var(--fs-24);
  margin: 0 0 var(--space-2);
  color: var(--dh-navy);
}
.ct-form__head p {
  color: var(--fg-2);
  font-size: var(--fs-14);
  margin: 0;
}
.ct-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}
@media (min-width: 640px) { .ct-row--2 { grid-template-columns: 1fr 1fr; } }
.ct-field { display: grid; gap: 6px; }
.ct-field label {
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--dh-navy);
  font-weight: var(--fw-bold);
}
.ct-field input,
.ct-field textarea,
.ct-field select {
  font: inherit;
  font-size: var(--fs-14);
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  color: var(--dh-navy);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.ct-field input:focus,
.ct-field textarea:focus,
.ct-field select:focus {
  border-color: var(--dh-navy);
  box-shadow: 0 0 0 4px rgba(25,51,89,0.06);
}
.ct-field textarea { resize: vertical; min-height: 110px; }

/* Tool chips — multi-select */
.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ct-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  font-size: var(--fs-13, 13px);
  font-weight: var(--fw-medium);
  color: var(--dh-navy);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  user-select: none;
}
.ct-chip input { display: none; }
.ct-chip:hover { border-color: var(--dh-navy); }
.ct-chip.is-on,
.ct-chip:has(input:checked) {
  background: var(--dh-navy);
  border-color: var(--dh-navy);
  color: #fff;
}
.ct-chip.is-on .dot,
.ct-chip:has(input:checked) .dot {
  background: var(--dh-yellow);
}
.ct-chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dh-grey-light);
}

.ct-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-2);
}
.ct-submit--stack {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}
.ct-submit--stack .btn { justify-content: center; }

/* ============ Consent checkbox ============ */
.ct-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: var(--space-2);
  cursor: pointer;
}
.ct-consent input {
  appearance: none;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--border-1);
  border-radius: 5px;
  background: var(--bg-1);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.ct-consent input:checked {
  background: var(--dh-navy);
  border-color: var(--dh-navy);
}
.ct-consent input:checked::after {
  content: "";
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.ct-consent span {
  font-size: var(--fs-13, 13px);
  color: var(--fg-2);
  line-height: 1.5;
}
.ct-consent a { color: var(--dh-navy); border-bottom: 1px solid var(--border-1); }
.ct-consent a:hover { color: var(--dh-orange); border-color: var(--dh-orange); }

/* ============ Book a demo CTA band ============ */
.pr-cta {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  background: var(--dh-navy);
  color: #fff;
}
@media (min-width: 768px) { .pr-cta { padding: 56px 0; } }
.pr-cta__motif {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 52'><polygon points='30,1 59,17 59,35 30,51 1,35 1,17' fill='none' stroke='%23ffffff' stroke-width='0.4' stroke-opacity='0.06'/></svg>");
  background-size: 60px 52px;
  pointer-events: none;
}
.pr-cta .container { position: relative; z-index: 1; }

.pr-cta__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .pr-cta__grid { grid-template-columns: 1fr auto; gap: 48px; }
}

.pr-cta__copy { max-width: 620px; }
.pr-cta__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--dh-yellow);
  margin-bottom: var(--space-3);
}
.pr-cta h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  color: #fff;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
  font-weight: var(--fw-bold);
  line-height: 1.15;
}
.pr-cta p {
  font-size: var(--fs-16);
  color: rgba(255,255,255,0.78);
  margin: 0 0 var(--space-5);
  line-height: 1.55;
  max-width: 58ch;
}
.pr-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.pr-cta .btn--accent {
  background: var(--dh-orange);
  color: #fff;
  border: 1px solid var(--dh-orange);
}
.pr-cta .btn--accent:hover { background: #E0801C; border-color: #E0801C; }
.pr-cta .btn--accent .arrow { transition: transform var(--dur-base) var(--ease-out); }
.pr-cta .btn--accent:hover .arrow { transform: translateX(3px); }

/* ----- connect-with-us diagram ----- */
.pr-cta__art {
  display: none;
}
@media (min-width: 720px) {
  .pr-cta__art {
    display: block;
    position: relative;
    width: 300px;
    height: 280px;
    flex-shrink: 0;
  }
}
.pr-cta__art .cc-diagram { width: 100%; height: 100%; overflow: visible; }

/* ============ Three-card band (reach out / FAQ / support) ============ */
.ct-cards {
  padding: var(--space-8) 0 96px;
  border-top: 1px solid var(--border-2);
}
.ct-cards__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .ct-cards__grid { grid-template-columns: repeat(3, 1fr); }
}
.ct-card {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-6);
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(25,51,89,0.05);
  text-decoration: none;
  border-bottom: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.ct-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25,51,89,0.15);
  box-shadow: 0 16px 36px rgba(25,51,89,0.10);
}
.ct-card__hex {
  width: 52px; height: 60px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: var(--space-2);
}
.ct-card--direct .ct-card__hex { background: var(--dh-navy); }
.ct-card--faq .ct-card__hex { background: var(--dh-orange); }
.ct-card--support .ct-card__hex { background: var(--dh-yellow); color: var(--dh-navy); }
.ct-card__label {
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-3);
  font-weight: var(--fw-bold);
  margin: 0;
}
.ct-card h3 {
  font-size: var(--fs-20);
  margin: 0;
  color: var(--dh-navy);
  letter-spacing: -0.01em;
}
.ct-card p {
  font-size: var(--fs-14);
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}
.ct-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-2);
  font-size: var(--fs-15, 15px);
  font-weight: var(--fw-bold);
  color: var(--dh-navy);
}
.ct-card__action svg { color: var(--dh-orange); transition: transform var(--dur-base) var(--ease-out); }
.ct-card:hover .ct-card__action svg,
.ct-card__action a:hover svg { transform: translate(2px, -2px); }
.ct-card__action a {
  color: var(--dh-navy);
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ct-card__action a:hover { color: var(--dh-orange); }
/* Hovering anywhere on a card turns its bottom link/action orange */
.ct-card:hover .ct-card__action,
.ct-card:hover .ct-card__action a { color: var(--dh-orange); }

/* Form error message */
.ct-form__error {
  color: var(--danger, #c0392b);
  font-size: var(--fs-14);
  margin: 0 0 var(--space-3);
}

@media (hover: none) {
  .ct-card:hover { transform: none; }
  .ct-card:hover .ct-card__action svg { transform: none; }
}
