/* ==========================================================================
   Contact Us page. Uses the site's existing tokens, hero, cards and form styles.
   ========================================================================== */
.ct-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 170px 0 150px;
  background:
    linear-gradient(90deg, rgba(4, 12, 28, 0.92) 0%, rgba(6, 18, 42, 0.8) 45%, rgba(8, 25, 58, 0.65) 100%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.65) 0%, transparent 45%, rgba(3, 7, 18, 0.85) 100%),
    url('../img/contact-hero-bg.jpg') center center / cover no-repeat;
  color: #e2e8f0;
}

.ct-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(0, 210, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.ct-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
}

.ct-hero .ab-hx-pill,
.ct-hero .ab-hx-title,
.ct-hero .ab-hx-lead {
  opacity: 0;
  transform: translateY(18px);
  animation: abUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ct-hero .ab-hx-title { animation-delay: 0.12s; }
.ct-hero .ab-hx-lead { animation-delay: 0.26s; max-width: 600px; margin-bottom: 0; }

/* ---- layout ---- */
.ct-section { padding-top: 72px; }

.ct-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: stretch;   /* the form card is as tall as the contact details, so both columns start and end together */
  max-width: 1180px;
  margin: 0 auto;
}

/* ---- left: details ---- */
.ct-h2 {
  margin: 16px 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.ct-p {
  margin-bottom: 28px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--sx-body, #475569);
}

.ct-cards {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
}

.ct-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.ct-card .sx-icon { flex: none; margin: 0; }

.ct-card b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--sx-ink, #061124);
}

.ct-card a,
.ct-card span:not(.sx-icon) {
  font-size: 0.95rem;
  color: var(--sx-body, #475569);
  word-break: break-word;
}

.ct-card a:hover { color: var(--sx-blue, #1945f4); }


/* cards with more than one line of content (emails, phone numbers, addresses) */
.ct-card.top { align-items: flex-start; }
.ct-card.top .sx-icon { margin-top: 2px; }
.ct-lines { min-width: 0; }
.ct-lines > a { display: block; line-height: 1.7; }

.ct-phone { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 3px 0; }
.ct-phone > a:first-child { font-size: 0.98rem; font-weight: 600; color: var(--sx-ink, #061124); }
.ct-phone > a:first-child:hover { color: var(--sx-blue, #1945f4); }
.ct-ctry {
  display: inline-block; padding: 2px 9px; border-radius: 999px; background: #eef4ff; border: 1px solid #dbe7fb;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #1e40af; line-height: 1.5;
}
.ct-wa {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #e7f9ee; color: #16a34a !important; font-size: 1rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.ct-wa:hover { transform: scale(1.12); background: #16a34a; color: #fff !important; }

.ct-loc { padding: 8px 0 2px; }
.ct-loc + .ct-loc { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--sx-line, #e4e9f0); }
.ct-loc address { margin: 6px 0 0; font-style: normal; font-size: 0.93rem; line-height: 1.6; color: var(--sx-body, #475569); }


/* two columns of cards on desktop: the big ones span the row, the two short ones sit side by side */
.ct-cards { grid-template-columns: 1fr 1fr; }
.ct-card.full { grid-column: 1 / -1; }
.ct-card.half { padding: 16px 16px; gap: 12px; }
.ct-card.half .sx-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 1.05rem; }

/* Our Locations: the two offices sit next to each other */
.ct-locs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.ct-loc + .ct-loc { margin-top: 0; padding-top: 8px; border-top: 0; padding-left: 20px; border-left: 1px dashed var(--sx-line, #e4e9f0); }

/* the form card stretches; the message box takes the spare height and the button stays at the bottom */
.ct-form-card { display: flex; flex-direction: column; }
#ct-form-wrap { flex: 1; display: flex; flex-direction: column; }
#contact-form { flex: 1; display: flex; flex-direction: column; }
#contact-form .ct-grow { flex: 1; display: flex; flex-direction: column; }
#contact-form .ct-grow textarea { flex: 1; min-height: 130px; }
.ct-success { flex: 1; justify-content: center; }
.ct-info { display: flex; flex-direction: column; }
.ct-info .ct-social { margin-top: auto; }

@media (max-width: 960px) {
  .ct-grid { align-items: start; }
}
@media (max-width: 560px) {
  .ct-cards { grid-template-columns: 1fr; }
  .ct-locs { grid-template-columns: 1fr; }
  .ct-loc + .ct-loc { padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px dashed var(--sx-line, #e4e9f0); margin-top: 6px; }
}

.ct-social { display: flex; gap: 10px; }

.ct-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--sx-line, #e4e9f0);
  background: #fff;
  color: #0b2a63;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ct-social a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #1e40af, #14b8a6);
  border-color: transparent;
  color: #fff;
}

/* ---- right: form card ---- */
.ct-form-card {
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--sx-line, #e4e9f0);
  background: #fff;
  box-shadow: var(--sx-shadow-hover, 0 24px 48px rgba(6, 17, 36, 0.12));
}

.ct-form-title {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sx-ink, #061124);
}

.ct-form-sub {
  margin-bottom: 26px;
  line-height: 1.6;
  color: #64748b;
}

.ct-form-card .sx-field select { appearance: auto; cursor: pointer; }
.ct-form-card .sx-field textarea { min-height: 130px; }

/* the form uses the site's blue/teal accent on focus */
.ct-form-card .sx-field input:focus,
.ct-form-card .sx-field select:focus,
.ct-form-card .sx-field textarea:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.14);
}

/* ---- success state ---- */
.ct-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 8px;
  text-align: center;
}

.ct-success[hidden] { display: none; }

.ct-success h2 {
  margin: 18px 0 10px;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sx-ink, #061124);
}

.ct-success p { max-width: 440px; line-height: 1.65; color: #475569; }
.ct-success .ct-ref { margin: 14px 0 24px; font-size: 0.9rem; color: #64748b; }
.ct-success .ct-ref b { color: #0b2a63; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .ct-grid { grid-template-columns: 1fr; gap: 36px; }
  .ct-hero { min-height: 500px; padding: 130px 0 90px; }
}

@media (max-width: 600px) {
  .ct-form-card { padding: 24px 18px; border-radius: 20px; }
  .ct-section { padding-top: 48px; }
}
