/*
 * Contact page — layout and structure from the Figma "Contact us" frame,
 * colours from the site's existing theme (brand blue, light surface, dark panel).
 * Loaded only on contact.php (see includes/head.php).
 */
.ct-page { background: var(--surface-muted); }

/* Header sits below the announcement tab, as on service pages */
@media (min-width: 768px) {
  .page-contact .site-header { padding-top: 54px; }
}

/* ------------------------------------------------------------------
 * Hero: contact details card + "Send Us a Message" form
 * ------------------------------------------------------------------ */
.ct-hero {
  position: relative;
  padding: clamp(150px, 11.7vw, 224px) 24px clamp(56px, 4.3vw, 82px);
}
.ct-tab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 30px 12px;
  border-radius: 0 0 20px 20px;
  background: #1b1c1f;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.ct-tab::before,
.ct-tab::after { content: ""; position: absolute; top: 0; width: 18px; height: 18px; }
.ct-tab::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 17.5px, #1b1c1f 18px); }
.ct-tab::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 17.5px, #1b1c1f 18px); }
.ct-tab__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

.ct-flight {
  position: absolute;
  top: clamp(20px, 3.3vw, 64px);
  left: 0;
  width: clamp(200px, 23vw, 440px);
  height: auto;
  color: #1c1c1f;
  pointer-events: none;
}

.ct-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 581fr 627fr;
  gap: 33px;
  align-items: start;
  max-width: 1242px;
  margin: 0 auto;
}

/* Contact details card (2 x 2) */
.ct-info {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 437px;
  padding: 24px 40px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 18, 24, .04);
}
.ct-info::before {                       /* horizontal divider */
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 50%;
  height: 1px;
  background: #e4e6ea;
}
.ct-info__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-align: center;
}
.ct-info__item:nth-child(odd)::after {   /* vertical divider */
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  height: 98px;
  width: 1px;
  transform: translateY(-50%);
  background: #e4e6ea;
}
.ct-info__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary);
}
.ct-info__icon svg { width: 24px; height: 24px; }
.ct-info__title {
  margin: 22px 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #111214;
}
.ct-info__text {
  margin: 0;
  max-width: 230px;
  font-size: 16px;
  line-height: 24px;
  color: #55595f;
  overflow-wrap: anywhere;
}
a.ct-info__text:hover { color: var(--primary); }
.ct-info__link { color: var(--primary); font-weight: 600; }
.ct-info__link:hover { text-decoration: underline; }

/* Message form */
.ct-message { padding-top: 12px; }
.ct-message .eyebrow { margin-bottom: 14px; }
.ct-heading {
  margin: 0 0 28px;
  font-size: clamp(2.5rem, 1.6rem + 1.9vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #111214;
}
.ct-form__row { display: grid; gap: 12px; }
.ct-form__row--3 { grid-template-columns: repeat(3, 1fr); }
.ct-form__row--2 { grid-template-columns: repeat(2, 1fr); }
.ct-form__row + .ct-form__row,
.ct-form__row + .ct-field { margin-top: 14px; }
.ct-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: #2a2c30;
}
.ct-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #d9dce1;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: #111214;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.ct-input::placeholder { color: #9a9ea6; opacity: 1; }
.ct-input:hover { border-color: #c3c7ce; }
.ct-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.ct-input[aria-invalid="true"] { border-color: #e5484d; }
.ct-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6f76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 14px 14px;
}
.ct-select:required:invalid { color: #9a9ea6; }
.ct-select option { color: #111214; }
.ct-textarea {
  height: 44px;
  min-height: 44px;
  padding-top: 11px;
  padding-bottom: 11px;
  line-height: 20px;
  resize: none;
  overflow: hidden;
  border-radius: 22px;
}
.ct-submit {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  margin-top: 20px;
  padding: 0 20px;
  min-width: 131px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a3a3d 0%, #1f1f21 55%, #141415 100%);
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .5), 0 3px 6px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .55);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.ct-submit:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ct-submit:disabled { cursor: wait; transform: none; filter: none; }
.ct-status { margin: 14px 0 0; font-size: 14px; font-weight: 500; line-height: 20px; }
.ct-status.is-error { color: #d93036; }
.ct-status.is-success { color: #15803d; }

/* ------------------------------------------------------------------
 * Dark "connect" panel with the two-step form card
 * ------------------------------------------------------------------ */
.ct-connect { padding: 0 10px; }
/* design.css gives section#contact (home) extra padding; not wanted here */
section#contact.ct-connect { padding-top: 0; padding-bottom: 0; }
.ct-connect__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: #121419;
  padding: clamp(56px, 4.3vw, 83px) 24px;
}
.ct-connect__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: saturate(.85);
}
.ct-connect__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 18, .88) 0%, rgba(10, 12, 18, .72) 55%, rgba(10, 12, 18, .6) 100%);
}
.ct-connect__grid {
  display: grid;
  grid-template-columns: 1fr 444px;
  gap: 60px;
  align-items: center;
  max-width: 1242px;
  margin: 0 auto;
}
.ct-connect__heading {
  margin: 0;
  font-size: clamp(2.5rem, 1.7rem + 1.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #fff;
}
.ct-connect__text {
  margin: 20px 0 32px;
  max-width: 500px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}
.ct-connect__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ct-connect__list li { display: flex; align-items: center; gap: 14px; }
.ct-connect__icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #111214;
}
.ct-connect__icon svg { width: 22px; height: 22px; }
.ct-connect__list small { display: block; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .78); }
.ct-connect__list a { font-size: 16px; line-height: 22px; color: #fff; }
.ct-connect__list a:hover { color: var(--primary); }
.ct-connect__form .cf-card { max-width: 444px; margin-left: auto; }

/* ------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .ct-hero__grid { grid-template-columns: 1fr; gap: 48px; max-width: 720px; }
  .ct-message { padding-top: 0; }
  .ct-connect__grid { grid-template-columns: 1fr; gap: 40px; max-width: 720px; }
  .ct-connect__form .cf-card { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .ct-tab { display: none; }
  .ct-hero { padding: 118px 16px 56px; }
  .ct-flight { top: 86px; width: 180px; opacity: .5; }
  .ct-form__row--3, .ct-form__row--2 { grid-template-columns: 1fr; gap: 14px; }
  .ct-connect { padding: 0 8px; }
  .ct-connect__panel { padding: 48px 16px; }
}
@media (max-width: 560px) {
  .ct-info { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; padding: 8px 24px; }
  .ct-info::before, .ct-info__item:nth-child(odd)::after { display: none; }
  .ct-info__item { padding: 26px 0; }
  .ct-info__item + .ct-info__item { border-top: 1px solid #e4e6ea; }
}
