/* Contact us page (frame 8313:15196). Hero shell comes from legal.css (.legal-hero). */

:root {
  --ct-error: #f87171; /* Website color/status/error (Tailwind red/400) */
}

/* 01 Hero — Intro row (8313:15198): headline left, support bottom-right */
.ct-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 84px;
  overflow: hidden;
}
.ct-intro__title {
  flex-shrink: 0;
  width: 424px;
  height: 100%;
}
.ct-intro__support {
  flex-shrink: 0;
  width: 486px;
}

/* 02 Contact (8313:15200) */
.ct .wrap {
  display: flex;
  align-items: flex-start;
  gap: var(--gutter);
  padding-bottom: var(--sp-10);
}

/* Other ways to reach us (8313:15201) */
.ct-ways {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  width: 282px;
  flex-shrink: 0;
  padding-top: var(--sp-8);
}
.ct-way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}
.ct-way__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: 100%;
}
.ct-way__lines {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

/* Form column (8313:15206) */
.ct-form-col {
  flex: 1 0 0;
  min-width: 1px;
  padding-top: var(--sp-8);
}

/* Contact form card (8311:58607) */
.ct-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--sp-6);
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
}
.ct-form__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.ct-form__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  white-space: nowrap;
}
.ct-form__row {
  display: flex;
  align-items: flex-start;
  gap: var(--gutter);
}
.ct-form__row .ct-field {
  flex: 1 0 0;
  min-width: 1px;
}

/* Form field (8311:15181) */
.ct-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.ct-field__label {
  padding: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.ct-field__input {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: var(--sp-1) var(--sp-4);
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text-primary);
  caret-color: var(--text-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  outline: none;
}
.ct-field__input--multi {
  height: 144px;
  padding: var(--sp-4);
  resize: none;
}
.ct-field__input::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}
/* State=Focus: 2px Signal Blue stroke outside + caret */
.ct-field__input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--text-accent);
}
/* State=Error */
.ct-field.is-error .ct-field__input {
  border-color: var(--ct-error);
}
.ct-field.is-error .ct-field__input:focus {
  border-color: var(--ct-error);
  box-shadow: none;
}
.ct-field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  color: var(--ct-error);
  font-size: 14px;
  line-height: 22px;
}
.ct-field__error[hidden] { display: none; }
.ct-field__error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 22px;
}
.ct-field__error-icon img { width: 16px; height: 16px; }

/* Topic chips (8311:15189) */
.ct-chips {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  width: 100%;
}
.ct-chip {
  position: relative;
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-width: 1px;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.ct-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ct-chip__label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.ct-chip__check {
  position: relative;
  display: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  overflow: hidden;
}
/* icon/check: group inset 25% 16.67% 29.17%, image bleeds 9.09% / 6.25% */
.ct-chip__check img {
  position: absolute;
  left: 2px;
  top: 3.333px;
  width: 12px;
  height: 8.667px;
}
.ct-chip.is-selected {
  background: var(--surface-selected);
  border-color: var(--text-primary);
}
.ct-chip.is-selected .ct-chip__check { display: block; }
.ct-chip.is-selected .ct-chip__label { color: var(--text-primary); }
.ct-chip:has(input:focus-visible) {
  outline: 2px solid var(--text-accent);
  outline-offset: 2px;
}

/* Footer row: privacy note + Send message. The page instance (I8313:15449;8311:15220)
   overrides the component's space-between with packed-start alignment. */
.ct-form__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-5);
}
.ct-form__privacy {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}
.ct-form__privacy span { color: var(--blue-400); }

/* State=Sent (8311:58593): same 894 x 622 card, content centred */
.ct-form[data-state="sent"] {
  height: 622px;
  justify-content: center;
}
.ct-form__sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}
.ct-form__sent[hidden],
.ct-form__main[hidden] { display: none; }
.ct-sent__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--accent-tint);
  overflow: hidden;
}
.ct-sent__icon {
  position: relative;
  width: 28px;
  height: 28px;
  overflow: hidden;
}
.ct-sent__icon img {
  position: absolute;
  left: 3.667px;
  top: 6px;
  width: 20.6667px;
  height: 14.8333px;
}
.ct-sent__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  white-space: nowrap;
}

/* Prototype transitions: Filled -> Sent and Sent -> Empty dissolve 200ms */
.ct-form.is-dissolving > :not([hidden]) {
  animation: ct-dissolve 0.2s ease-out;
}
@keyframes ct-dissolve {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Responsive reflow (below 1440 only) ---------- */
@media (max-width: 1279px) {
  .ct-ways { width: 240px; }
  .ct-chips { flex-wrap: wrap; }
  .ct-chip { flex: 0 0 auto; }
}
@media (max-width: 1023px) {
  .ct-intro {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    overflow: visible;
  }
  .ct-intro__title,
  .ct-intro__support { width: 100%; max-width: 486px; height: auto; }
  .ct .wrap {
    flex-direction: column;
    gap: 0;
    padding-bottom: var(--sp-9);
  }
  .ct-ways {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
    width: 100%;
    padding-top: var(--sp-7);
  }
  .ct-form-col { flex: none; width: 100%; padding-top: var(--sp-7); }
  .ct-form[data-state="sent"] { height: auto; min-height: 622px; }
}
@media (max-width: 767px) {
  .ct .wrap { padding-bottom: var(--sp-8); }
  .ct-ways { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding-top: var(--sp-6); }
  .ct-way { padding-top: var(--sp-5); }
  .ct-form-col { padding-top: var(--sp-6); }
  .ct-form { padding: var(--sp-5) var(--sp-4); border-radius: var(--r-lg); }
  .ct-form__main { gap: var(--sp-5); }
  .ct-form__head { white-space: normal; }
  .ct-form__row { flex-direction: column; gap: var(--sp-5); }
  .ct-form__row .ct-field { flex: none; width: 100%; }
  .ct-form__foot { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .ct-form__privacy { white-space: normal; }
  .ct-form[data-state="sent"] { min-height: 480px; }
  .ct-sent__copy { white-space: normal; }
  .ct-sent__copy p { overflow-wrap: anywhere; }
}
