/* ==========================================================================
   contact.css — Trinity DEV v2
   Contacts: directory + inquiry document. No decoration.
   Prefixed .ct- to avoid collisions.
   ========================================================================== */

.ct-title {
  padding: 148px 0 var(--space--space-60);
}

.ct-page {
  background: var(--color--white-colour);
  color: var(--color--dark-blue);
  padding: var(--space--space-80) 0 96px;
}

.ct-page #form {
  scroll-margin-top: 112px;
}

.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1.12fr);
  gap: var(--space--space-80);
  align-items: start;
}

.ct-side {
  position: sticky;
  top: 96px;
}

.ct-intro h1 {
  margin: 0;
}

.ct-lead {
  margin: var(--space--space-20) 0 0;
  color: var(--color--secondary-blue);
}

.ct-dir {
  margin-top: var(--space--space-40);
  border-top: 1px solid rgba(8, 17, 34, 0.1);
}

.ct-dir > a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(8, 17, 34, 0.1);
  color: inherit;
  text-decoration: none;
}

.ct-dir > a:hover,
.ct-dir > a:focus-visible {
  color: var(--color--accent);
}

.ct-dir > a span {
  flex: none;
  font-size: var(--typography--p-03-size);
  line-height: var(--typography--p-03-height);
  color: var(--color--secondary-blue);
}

.ct-dir > a:hover span,
.ct-dir > a:focus-visible span {
  color: inherit;
}

.ct-dir > a b {
  font-size: var(--typography--p-01-size);
  line-height: var(--typography--p-01-height);
  letter-spacing: var(--typography--p-01-space);
  font-weight: var(--weight--weight-500);
  text-align: right;
}

.ct-meta {
  margin: 14px 0 0;
  font-size: var(--typography--p-03-size);
  line-height: var(--typography--p-03-height);
  color: var(--color--secondary-blue);
}

.ct-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0 0;
  padding: 0;
}

.ct-social a {
  font-size: var(--typography--p-03-size);
  line-height: var(--typography--p-03-height);
  font-weight: var(--weight--weight-500);
  color: inherit;
  text-decoration: none;
}

.ct-social a:hover,
.ct-social a:focus-visible {
  color: var(--color--accent);
}

.ct-follow {
  margin-top: var(--space--space-40);
  padding-top: var(--space--space-32);
  border-top: 1px solid rgba(8, 17, 34, 0.1);
}

.ct-next-label {
  margin: 0 0 var(--space--space-16);
  font-size: var(--typography--p-03-size);
  line-height: var(--typography--p-03-height);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color--secondary-blue);
}

.ct-next {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space--space-16);
}

.ct-next li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ct-next li > span {
  font-size: var(--typography--p-03-size);
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--color--secondary-blue);
}

.ct-next .ct-next-name {
  margin: 0;
  font-size: var(--typography--p-02-size);
  line-height: 20px;
  font-weight: var(--weight--weight-500);
}

.ct-next p {
  margin: 2px 0 0;
  font-size: var(--typography--p-03-size);
  line-height: var(--typography--p-03-height);
  color: var(--color--secondary-blue);
}

.ct-sheet {
  background: var(--color--white-colour);
  border: 1px solid rgba(8, 17, 34, 0.06);
  border-radius: var(--space--space-8);
  padding: 32px 40px 40px;
}

.ct-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(8, 17, 34, 0.1);
}

.ct-sheet-title {
  margin: 0;
  font-size: var(--typography--p-03-size);
  line-height: var(--typography--p-03-height);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--weight--weight-500);
}

.ct-sheet-meta {
  margin: 0;
  font-size: var(--typography--p-03-size);
  line-height: var(--typography--p-03-height);
  color: var(--color--secondary-blue);
}

.ct-form {
  display: grid;
  gap: 24px;
}

.ct-block {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ct-label {
  margin: 0;
  font-size: var(--typography--p-03-size);
  line-height: var(--typography--p-03-height);
  font-weight: var(--weight--weight-500);
}

.ct-req,
.ct-opt {
  font-weight: var(--weight--weight-400);
  color: var(--color--secondary-blue);
}

.ct-field,
.ct-select,
.ct-area {
  width: 100%;
  border: 1px solid #d8dbe3;
  border-radius: 8px;
  background: #fff;
  color: var(--color--dark-blue);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
}

.ct-field,
.ct-select {
  height: 52px;
  padding: 0 14px;
}

.ct-area {
  min-height: 148px;
  padding: 12px 14px;
  resize: vertical;
}

.ct-field::placeholder,
.ct-area::placeholder {
  color: #8b90a0;
}

.ct-field:focus,
.ct-select:focus,
.ct-area:focus {
  outline: none;
  border-color: var(--color--dark-blue);
}

.ct-field:user-invalid,
.ct-select:user-invalid,
.ct-area:user-invalid {
  border-color: #8a3a3a;
}

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
}

.ct-group {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(8, 17, 34, 0.1);
}

.ct-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid #d8dbe3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ct-phone:focus-within {
  border-color: var(--color--dark-blue);
}

.ct-phone:has(.ct-field:user-invalid) {
  border-color: #8a3a3a;
}

.ct-phone-cc {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  border-right: 1px solid #d8dbe3;
}

.ct-phone-cc select {
  appearance: none;
  height: 52px;
  padding: 0 28px 0 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.ct-phone-cc::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #5c6270;
  border-bottom: 1.5px solid #5c6270;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.ct-phone .ct-field {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.ct-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%235c6270' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.ct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-chips label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d8dbe3;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--weight--weight-500);
  cursor: pointer;
  background: #fff;
}

.ct-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-chips label:has(input:checked) {
  border-color: var(--color--dark-blue);
  background: var(--color--dark-blue);
  color: #fff;
}

.ct-chips label:has(input:focus-visible) {
  outline: 2px solid var(--color--accent);
  outline-offset: 2px;
}

.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.ct-form .btn-link {
  cursor: pointer;
}

.ct-note {
  margin: 0;
  max-width: 28ch;
  color: var(--color--secondary-blue);
}

.ct-form.is-sent .ct-note {
  color: var(--color--accent);
}

body.is-contact .footer-newsletter {
  display: none;
}

body.is-contact .footer-top {
  grid-template-columns: 1fr;
}

@media screen and (max-width: 991px) {
  .ct-title { padding: 120px 0 var(--space--space-40); }
  .ct-page { padding: var(--space--space-50) 0 72px; }

  .ct-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space--space-32);
  }

  .ct-side {
    position: static;
    display: contents;
  }

  .ct-dir { order: 2; }
  .ct-sheet { order: 3; }
  .ct-follow { order: 4; }

  .ct-dir {
    margin-top: 0;
  }

  .ct-follow {
    margin-top: 0;
  }

  .ct-sheet {
    padding: 24px 20px 28px;
  }
}

@media screen and (max-width: 767px) {
  .ct-grid {
    grid-template-columns: 1fr;
  }

  .ct-dir > a {
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
  }

  .ct-dir > a b {
    text-align: left;
  }

  .ct-sheet-head {
    flex-wrap: wrap;
    gap: 4px 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media screen and (min-width: 992px) and (max-height: 820px) {
    .ct-side {
      position: static;
    }
  }
}
