/* ============================================================
   CONTACT PAGE
   Matches the dark-hero / paper-section pattern used on
   index, cp, cv, bp pages.
   ============================================================ */

/* ---------- HERO ---------- */

body{
  cursor: auto;
}
.contact-hero {
  position: relative;
  background: #06080f;
  color: #fff;
  padding: 180px 6vw 110px;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(13, 110, 253, 0.18), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(245, 177, 77, 0.12), transparent 60%);
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.contact-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8f53f;
  box-shadow: 0 0 12px rgba(200, 245, 63, .6);
}

.contact-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(54px, 9vw, 96px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0;
  max-width: 14ch;
}

.contact-hero__title em {
  font-style: italic;
  color: #c8f53f;
}

.contact-hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .75);
  max-width: 60ch;
  margin: 12px 0 0;
}

/* ---------- BODY GRID ---------- */
.contact-body {
  background: var(--paper, #fff);
  color: var(--ink, #0a0c14);
  padding: 90px 6vw 100px;
  cursor: auto;
}

.contact-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-hero { padding: 140px 5vw 80px; }
  .contact-body { padding: 70px 5vw 80px; }
}

/* ---------- FORM ---------- */
.contact-form {
    display: grid;
    gap: 18px;
    background: #fafafa;
    padding: 50px;
    border-radius: 20px;
    height: 100%;
}

.contact-form__head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.contact-form__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}

.contact-form__title em {
  font-style: italic;
  color: #0d6efd;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .contact-row { grid-template-columns: 1fr; }
}

.contact-field {
  display: grid;
  gap: 6px;
  position: relative;
}

.contact-field label {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #0a0c14;
  font-weight: 500;
}

.contact-field label .req {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 400;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e4e6ee;
  border-radius: 999px;
  padding: 8px 20px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #8b8fa3;
  font-weight: 400;
}

.contact-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
  border-radius: 22px;
  padding: 18px 22px;
}

.contact-input:hover,
.contact-select:hover,
.contact-textarea:hover {
  border-color: #c5c8d8;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #3b5cff;
  box-shadow: 0 0 0 4px rgba(59, 92, 255, .14);
  background: #fff;
}

.contact-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230a0c14' stroke-width='1.6'><path d='M3 5l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px 14px;
  padding-right: 44px;
}

.contact-submit {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  background: #3b5cff;
  color: #fff;
  border: 1px solid #3b5cff;
  border-radius: 999px;
  padding: 10px 30px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  width: max-content;
  box-shadow: 0 6px 16px -4px rgba(59, 92, 255, .35);
}

.contact-submit:hover {
  background: #2845d6;
  border-color: #2845d6;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(59, 92, 255, .45);
}

.contact-submit:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 92, 255, .25);
}

.contact-submit:disabled {
  opacity: .65;
  cursor: progress;
  transform: none;
  box-shadow: 0 4px 12px -4px rgba(59, 92, 255, .25);
}

/* ----- captcha ----- */
.captcha-field .captcha-q {
  font-family: var(--font-body);
  background: rgba(59, 92, 255, .08);
  color: #3b5cff;
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.captcha-input {
  max-width: 220px;
}

/* ----- honeypot — visually hidden but still focusable to bots ----- */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- inline status banner after submit ----- */
.contact-status {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.contact-status.is-success {
  background: #ecfdf3;
  border: 1px solid #b9eccb;
  color: #056a3a;
}

.contact-status.is-error {
  background: #fff1f1;
  border: 1px solid #ffcfcb;
  color: #c5382b;
}

/* ---------- "LET'S TALK" CARD ----------
   Lavender gradient panel with glassy chromatic icons and the
   primary contact details. Replaces the previous department list. */
.talk-card {
  position: relative;
  border-radius: 28px;
  padding: 44px 40px 44px;
  overflow: hidden;
  background: #FAFBFF;
background: linear-gradient(180deg, rgba(250, 251, 255, 1) 0%, rgba(235, 238, 255, 1) 53%, rgba(229, 228, 255, 1) 96%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .85) inset,
    0 30px 60px -30px rgba(60, 40, 140, .25);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
}

.talk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(30% 40% at 80% 80%, rgba(255,255,255,.35), transparent 70%);
  pointer-events: none;
}

.talk-card > * { position: relative; }

@media (max-width: 640px) {
  .talk-card { padding: 36px 28px; min-height: 480px; }
}

/* ----- head ----- */
.talk-card__head {
  display: grid;
  gap: 14px;
  max-width: 32ch;
}

.talk-card__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 48px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 500;
  color: #0a0c14;
  margin: 0;
}

.talk-card__sub {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10, 12, 20, .62);
  margin: 0;
}

/* ----- glassy icons block ----- */
.talk-card__icons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 135px auto 32px;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 2 / 1.1;
  pointer-events: none;
}

.talk-card__icons img,
.talk-card__icons svg {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(120, 100, 220, .22));
  user-select: none;
  will-change: transform;
  animation: talk-float 5.4s ease-in-out infinite;
}

.talk-card__icons img:last-child,
.talk-card__icons svg:last-child {
  width: 44%;
  margin-left: -22px;
  animation: talk-float 6.2s ease-in-out infinite;
  animation-delay: -2.4s;
}

@keyframes talk-float {
  0%   { transform: translate3d(0,  0px,    0) rotate(0deg); }
  50%  { transform: translate3d(0, -9.284px, 0) rotate(-1.2deg); }
  100% { transform: translate3d(0,  0px,    0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .talk-card__icons img,
  .talk-card__icons svg { animation: none; }
}

/* ----- footer / contact info ----- */
.talk-card__foot {
  display: grid;
  gap: 12px;
}

.talk-card__email {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 500;
  letter-spacing: -.01em;
  color: #0a0c14;
  text-decoration: none;
  word-break: break-word;
  transition: color .2s;
}

.talk-card__email:hover { color: #6f4dff; }

.talk-card__meta {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(10, 12, 20, .68);
  margin: 0;
}

.talk-card__meta a {
  color: inherit;
  text-decoration: none;
}

.talk-card__meta a:hover { color: #6f4dff; }


/* ============================================================
   OFFICES SECTION  —  "Explore our branch offices"
   Layout: section title at top, then a vertical STACK of cards
   that pin progressively as the user scrolls (deck-of-cards
   sticky pattern). Each card is sticky with a slightly larger
   top offset than the previous one, so peeking edges remain
   visible behind the active card.
   ============================================================ */
.contact-offices {
  background: #ffffff;
  color: var(--ink, #0a0c14);
  padding: 110px 6vw 120px;
  border-top: 1px solid var(--line);
}

.contact-offices__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 56px;
}

@media (max-width: 980px) {
  .contact-offices { padding: 80px 5vw 90px; }
  .contact-offices__inner { gap: 36px; }
}

/* ----- section header ----- */
.contact-offices__head {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.contact-offices__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
  margin: 0;
}


.contact-offices__sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 56ch;
  margin: 0;
}

/* ============================================================
   STACKED CARDS — sticky deck
   Each .office-stack-card is position:sticky with a top value
   driven by the --i custom property set on the element. As the
   user scrolls, card 2 pins below card 1 (covering it), then
   card 3 pins below card 2, building a tactile card-deck effect.
   ============================================================ */
.office-stack {
  display: grid;
  gap: 22px;
  padding-bottom: 60px;
}

.office-stack-card {
  position: sticky;
  /* base offset + small step per card so earlier cards peek through */
  top: calc(96px + (var(--i, 0) * 14px));
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  min-height: 360px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 32px 64px -32px rgba(10, 12, 20, .22);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

@media (max-width: 780px) {
  .office-stack-card {
    grid-template-columns: 1fr;
    padding: 22px;
    min-height: 0;
    /* tighter pin spacing on mobile so cards don't push the section too tall */
    top: calc(80px + (var(--i, 0) * 8px));
  }
}

/* The HQ card uses an inverted dark surface to draw the eye. */
.office-stack-card.is-hq {
  background: #0a0c14;
  border-color: #0a0c14;
  color: #ffffff;
}

.office-stack-card.is-hq .office-stack-card__city,
.office-stack-card.is-hq .office-stack-card__addr,
.office-stack-card.is-hq .office-stack-card__top {
  color: #ffffff;
}

.office-stack-card.is-hq .office-stack-card__addr { color: rgba(255,255,255,.72); }
.office-stack-card.is-hq .office-stack-card__top  { color: rgba(255,255,255,.55); }
.office-stack-card.is-hq .office-stack-card__num  { color: #0d6efd; }
.office-stack-card.is-hq .office-stack-card__cta {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.office-stack-card.is-hq .office-stack-card__cta:hover {
  background: #fff; color: #0a0c14; border-color: #fff;
}

/* ----- IMAGE / VISUAL PANEL ----- */
.office-stack-card__img {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 296px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1f33 0%, #2c1f5a 55%, #5e3da8 100%);
}

@media (max-width: 780px) {
  .office-stack-card__img { min-height: 200px; }
}

.office-stack-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.office-stack-card:hover .office-stack-card__img img { transform: scale(1.05); }

/* Per-city gradients (keyed on data-city) */
.office-stack-card__img[data-city="singapore"]    { background: linear-gradient(135deg, #0a3552 0%, #18a3b5 55%, #ffd166 100%); }
.office-stack-card__img[data-city="mumbai"]       { background: linear-gradient(135deg, #2a1052 0%, #c44a8a 50%, #ffb05a 100%); }
.office-stack-card__img[data-city="pune"]         { background: linear-gradient(135deg, #1c2540 0%, #4a5fb5 55%, #ffd66e 100%); }
.office-stack-card__img[data-city="chennai"]      { background: linear-gradient(135deg, #102942 0%, #1f7ab5 55%, #ffe06a 100%); }
.office-stack-card__img[data-city="san-jose"]     { background: linear-gradient(135deg, #1a1538 0%, #6a4ce0 50%, #ff7e9d 100%); }
.office-stack-card__img[data-city="dubai"]        { background: linear-gradient(135deg, #2b1850 0%, #b56b1f 50%, #ffd28a 100%); }
.office-stack-card__img[data-city="kuala-lumpur"] { background: linear-gradient(135deg, #0e2a1c 0%, #2bb37a 55%, #ffe06a 100%); }
.office-stack-card__img[data-city="norwood"]      { background: linear-gradient(135deg, #2a1228 0%, #c95436 55%, #ffc78a 100%); }
.office-stack-card__img[data-city="london"]       { background: linear-gradient(135deg, #182233 0%, #495a7a 55%, #b8c4d9 100%); }

/* Skyline silhouette + country code fallback when no image file exists */
.office-stack-card__img::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .35), transparent),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><path d='M0,60 L0,42 L12,42 L12,30 L22,30 L22,38 L34,38 L34,22 L42,22 L42,32 L54,32 L54,18 L62,18 L62,28 L74,28 L74,12 L82,12 L82,26 L96,26 L96,20 L104,20 L104,34 L118,34 L118,18 L130,18 L130,28 L142,28 L142,16 L154,16 L154,30 L166,30 L166,22 L180,22 L180,32 L192,32 L192,38 L200,38 L200,60 Z' fill='%23000' fill-opacity='0.22'/></svg>") bottom/100% 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

.office-stack-card__img::after {
  content: attr(data-code);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .92);
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  z-index: 1;
}

.office-stack-card__img:has(img)::after,
.office-stack-card__img:has(img)::before { display: none; }

/* ----- BODY PANEL ----- */
.office-stack-card__body {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 10px 8px;
}

@media (max-width: 780px) { .office-stack-card__body { padding: 4px 4px 8px; } }

.office-stack-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.office-stack-card__num {
  font-weight: 600;
  color: #0d6efd;
}

.office-stack-card__city {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 52px);
  letter-spacing: -.02em;
  line-height: 1.02;
  font-weight: 500;
  margin: 0;
  color: #0a0c14;
}

.office-stack-card__addr {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0;
  max-width: 42ch;
}

.office-stack-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  width: max-content;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.office-stack-card__cta svg {
  width: 14px; height: 14px;
  transition: transform .25s;
}

.office-stack-card__cta:hover {
  background: #0a0c14;
  color: #ffffff;
  border-color: #0a0c14;
  transform: translateY(-1px);
}

.office-stack-card__cta:hover svg { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .office-stack-card,
  .office-stack-card__img img,
  .office-stack-card__cta,
  .office-stack-card__cta svg { transition: none; }
  .office-stack-card:hover .office-stack-card__img img { transform: none; }
}

/* Hidden tag (kept for backwards-compat with the old markup if needed). */
.office-stack-card__tag {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
