/* ============================================================
   /contact-us.html
   The form is the main path; the side panel holds the alternatives
   (demo booking, support, direct sales, Simba). Field styling comes
   from the shared .contact-form__* rules in sections.css.
   Mobile first: form, then side panel, then the trial band.
   ============================================================ */

.ct-hero { padding-bottom: var(--space-6); }

/* ---- Layout ---------------------------------------------------------- */

.ct-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-8);
}
.ct-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 900px) {
  .ct-body__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-7);
  }
}

/* ---- Form card ------------------------------------------------------- */

/* The form is the page's main path, so the card stands out a little:
   a teal accent along the top, a firmer border and a soft lift. */
.ct-card {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: calc(var(--space-5) + 4px) var(--space-4) var(--space-5);
  box-shadow: 0 1px 2px rgba(10, 31, 61, 0.04), 0 16px 40px -18px rgba(10, 31, 61, 0.22);
}
.ct-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--color-teal-600);
}
@media (min-width: 900px) {
  .ct-card { padding: calc(var(--space-6) + 4px) var(--space-6) var(--space-5); }
}
.ct-card__h {
  margin: 0 0 var(--space-4);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-navy-800);
}

/* Name / email side by side only where there's room for both. */
.ct-form .contact-form__row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
  .ct-form .contact-form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Topic chips: real radio buttons, visually replaced by pills. */
.ct-topics {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ct-topics legend {
  padding: 0;
  margin-bottom: var(--space-2);
}
.ct-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ct-chip {
  position: relative;
  cursor: pointer;
}
.ct-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.ct-chip span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-navy-800);
  background: var(--color-bg);
  border: 0.5px solid var(--color-border);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ct-chip:hover span { border-color: var(--color-navy-600); }
.ct-chip input:checked + span {
  background: var(--color-teal-50);
  border-color: var(--color-teal-600);
  color: var(--color-teal-900);
  font-weight: 500;
}
.ct-chip input:focus-visible + span {
  outline: 2px solid var(--color-teal-600);
  outline-offset: 2px;
}
.ct-topics[data-invalid] .ct-chip span { border-color: var(--color-coral-600); }

.ct-form__submit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-1);
}
.ct-form__btn { padding: 14px 26px; font-size: 15px; }
.ct-form__promise {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.ct-form__promise svg { color: var(--color-teal-600); flex-shrink: 0; }
.ct-form__status:empty { display: none; }
.ct-form__legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-tertiary);
}
.ct-form__legal a { color: var(--color-teal-900); }

/* ---- Side panel ------------------------------------------------------ */

.ct-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ct-side__h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-2);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy-800);
}
.ct-side__p {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.ct-side__link {
  display: block;
  width: fit-content;
  margin-top: var(--space-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-teal-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct-live {
  background: var(--color-navy-800);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.ct-live .ct-side__h { color: var(--color-bg); }
.ct-live .ct-side__h svg { color: var(--color-teal-500); }
.ct-live .ct-side__p { color: var(--color-text-on-navy); }
.ct-live__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy-800);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s;
}
.ct-live__btn:hover { background: var(--color-teal-50); }

.ct-support {
  background: var(--color-bg-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.ct-support .ct-side__h svg { color: var(--color-teal-600); }
.ct-support .ct-side__p { margin-bottom: 0; }

.ct-direct {
  border: var(--border-thin);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}
.ct-direct .ct-side__h { margin-bottom: var(--space-3); }
.ct-direct__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 15px;
  color: var(--color-teal-900);
  text-decoration: none;
}
.ct-direct__row:hover { text-decoration: underline; }
.ct-direct__row svg { color: var(--color-teal-600); flex-shrink: 0; }

.ct-simba {
  margin: var(--space-1) 2px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.ct-simba__btn {
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--color-teal-900);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- Trial band ------------------------------------------------------ */

.ct-trial {
  background: var(--color-bg-soft);
  border-top: var(--border-thin);
}
.ct-trial__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .ct-trial__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.ct-trial__text {
  margin: 0;
  font-size: 17px;
  color: var(--color-text-secondary);
}
.ct-trial__text strong { color: var(--color-navy-800); font-weight: 600; }
.ct-trial__btn { background: var(--color-bg); }
