/* ═══════════════════════════════════════════════════════════
   CONTACT — "Let's build something."
   ─────────────────────────────────────────────────────────
   Rides on the shared brand system (Manrope, #43AF43, pill buttons,
   --content-ease, the [data-au-reveal] observer) and reuses the shared
   navbar / mega-menu / footer.

   A contact page does NOT want a 100vh cinematic hero — the visitor
   came here to do one thing. So the header is a compact band and the
   form is above the fold. Components are prefixed `ct-`.
════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   COMPACT HEADER
════════════════════════════════════════════════════════════ */
.ct-head {
  position: relative;
  overflow: hidden;
  margin-top: 85px;                 /* clear the fixed navbar */
  padding: clamp(64px, 10vh, 110px) 24px clamp(56px, 8vh, 90px);
  text-align: center;
  background: #0a0c0a;
}
/* blueprint grid + green wash — an engineering company's contact page */
.ct-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 90% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 90% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.ct-head::after {
  content: "";
  position: absolute;
  inset: auto 0 -55% 0;
  height: 90%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(67, 175, 67, 0.22), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.ct-head > * { position: relative; z-index: 1; }

.ct-head-title {
  margin: 14px 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.ct-head-sub {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

/* ═══════════════════════════════════════════════════════════
   MAIN GRID — form (left) + details (right)
════════════════════════════════════════════════════════════ */
.ct-main {
  background:
    radial-gradient(80% 55% at 50% -8%, rgba(67, 175, 67, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #f4f8f6 0%, #e8f1eb 100%);
}
.ct-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(26px, 3vw, 44px);
  align-items: start;
}
@media (max-width: 960px) {
  .ct-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   THE FORM
════════════════════════════════════════════════════════════ */
.ct-card {
  padding: clamp(28px, 3.4vw, 44px);
  background: #ffffff;
  border: 1px solid rgba(67, 175, 67, 0.14);
  border-radius: 22px;
  box-shadow:
    0 26px 60px -34px rgba(16, 44, 28, 0.28),
    0 2px 6px rgba(16, 44, 28, 0.04);
}
.ct-card-title {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: #1b1e1b;
}
.ct-card-note {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #6b7280;
}

.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .ct-row { grid-template-columns: 1fr; }
}

.ct-field { margin-bottom: 16px; }
.ct-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #374151;
}
.ct-label .ct-req { color: #e5342b; margin-left: 2px; }
.ct-label .ct-opt {
  margin-left: 6px;
  font-weight: 600;
  color: #9ca3af;
}

.ct-input,
.ct-select,
.ct-textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #1b1e1b;
  background: #fbfdfb;
  border: 1px solid rgba(16, 44, 28, 0.14);
  border-radius: 11px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ct-textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}
.ct-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
  cursor: pointer;
}
.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #43af43;
  box-shadow: 0 0 0 3px rgba(67, 175, 67, 0.16);
}
.ct-input::placeholder,
.ct-textarea::placeholder { color: #9ca3af; }

/* ── Validation ── */
.ct-input[aria-invalid="true"],
.ct-select[aria-invalid="true"],
.ct-textarea[aria-invalid="true"] {
  border-color: #e5342b;
  background: #fff7f6;
}
.ct-input[aria-invalid="true"]:focus,
.ct-select[aria-invalid="true"]:focus,
.ct-textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(229, 52, 43, 0.15);
}
.ct-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e5342b;
}
.ct-error.is-shown { display: block; }

/* ── Submit ── */
.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
  padding: 15px 30px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: #43af43;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.35s var(--content-ease), box-shadow 0.4s ease, background 0.3s ease;
}
.ct-submit:hover {
  transform: translateY(-2px);
  background: #3a9c3a;
  box-shadow: 0 14px 30px -12px rgba(67, 175, 67, 0.6);
}
.ct-submit:focus-visible { outline: 3px solid rgba(67, 175, 67, 0.5); outline-offset: 3px; }
.ct-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.ct-submit svg { width: 17px; height: 17px; }

/* ── Form-level status message (never fake a success) ── */
.ct-status {
  display: none;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 15px 17px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 12px;
}
.ct-status.is-shown { display: flex; }
.ct-status svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.ct-status--ok {
  color: #1f6f2b;
  background: rgba(67, 175, 67, 0.1);
  border: 1px solid rgba(67, 175, 67, 0.35);
}
.ct-status--err {
  color: #a52a22;
  background: rgba(229, 52, 43, 0.08);
  border: 1px solid rgba(229, 52, 43, 0.32);
}

/* ═══════════════════════════════════════════════════════════
   DETAILS PANEL
════════════════════════════════════════════════════════════ */
.ct-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 105px;
}
@media (max-width: 960px) {
  .ct-aside { position: static; }
}

.ct-panel {
  padding: clamp(26px, 3vw, 34px);
  background: #0a0c0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.6);
}
.ct-panel-title {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6bd46b;
}

.ct-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ct-detail:first-of-type { border-top: 0; padding-top: 0; }
.ct-detail-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  color: #6bd46b;
  background: rgba(67, 175, 67, 0.12);
  border: 1px solid rgba(67, 175, 67, 0.26);
}
.ct-detail-ic svg { width: 18px; height: 18px; }
.ct-detail-body { min-width: 0; }
.ct-detail-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.ct-detail-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: #ffffff;
  text-decoration: none;
  word-break: break-word;
}
a.ct-detail-value:hover { color: #6bd46b; }

/* Anything the client still has to fill in is marked, loudly, so it
   cannot be mistaken for a real address or inbox and shipped by accident. */
.ct-todo {
  color: #f5a524;
  font-weight: 700;
}
.ct-todo::before {
  content: "⚠ ";
}

.ct-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ct-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--content-ease), background 0.3s ease, color 0.3s ease;
}
.ct-social:hover {
  transform: translateY(-3px);
  color: #ffffff;
  background: rgba(67, 175, 67, 0.35);
  border-color: rgba(67, 175, 67, 0.6);
}
.ct-social svg { width: 17px; height: 17px; }

/* ═══════════════════════════════════════════════════════════
   ROUTE THE ENQUIRY — picks the right team, and pre-fills the form
════════════════════════════════════════════════════════════ */
.ct-routes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(38px, 5vh, 54px);
}
@media (max-width: 900px) { .ct-routes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ct-routes { grid-template-columns: 1fr; } }

.ct-route {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(67, 175, 67, 0.14);
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 18px 44px -30px rgba(16, 44, 28, 0.24);
  transition:
    transform 0.42s var(--content-ease),
    border-color 0.35s ease,
    box-shadow 0.45s var(--content-ease);
}
.ct-route:hover {
  transform: translateY(-7px);
  border-color: rgba(67, 175, 67, 0.45);
  box-shadow:
    0 32px 60px -28px rgba(16, 44, 28, 0.3),
    0 0 42px -16px rgba(67, 175, 67, 0.22);
}
.ct-route:focus-visible { outline: 3px solid rgba(67, 175, 67, 0.5); outline-offset: 3px; }
.ct-route-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #43af43;
  background: linear-gradient(135deg, rgba(67, 175, 67, 0.16), rgba(67, 175, 67, 0.05));
  border: 1px solid rgba(67, 175, 67, 0.22);
}
.ct-route-ic svg { width: 23px; height: 23px; }
.ct-route-name {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1b1e1b;
}
.ct-route-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
}
