/* Contact page — extends styles.css */

.nav-links a.active,
.nav-cta a[aria-current="page"] { color: var(--text); }

/* ===== Hero ===== */
.ct-hero {
  position: relative;
  padding-top: 200px;
  padding-bottom: 120px;
  overflow: hidden;
  isolation: isolate;
}
.ct-hero-inner {
  max-width: 920px;
}
.ct-hero h1 {
  margin-top: 28px;
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.ct-hero h1 .muted { color: var(--text-muted); }
.ct-hero .lead {
  margin-top: 32px;
  max-width: 52ch;
}

/* ===== Form + side ===== */
.ct-main { padding-top: 80px; }
.ct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 1024px) {
  .ct-grid { grid-template-columns: 1.4fr 1fr; gap: 96px; }
}

.ct-form-wrap h2 {
  margin-top: 22px;
  text-wrap: balance;
}

/* Form */
.ct-form {
  margin-top: 48px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 30px 60px -25px rgba(0, 100, 235, 0.55);
  isolation: isolate;
  overflow: hidden;
}
@media (min-width: 800px) { .ct-form { padding: 48px; } }

.ct-form-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ct-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 600px) { .ct-row-2 { grid-template-columns: 1fr 1fr; } }

/* select + textarea — match field input styling from styles.css */
/* select + textarea — match field input styling from styles.css */
.ct-form .field-lbl { color: rgba(255, 255, 255, 0.78); }
.ct-form .field input,
.ct-form .field select,
.ct-form .field textarea {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.ct-form .field input::placeholder,
.ct-form .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.50);
}
.ct-form .field select option { background: #003C8F; color: #fff; }
.ct-form .field input:hover,
.ct-form .field select:hover,
.ct-form .field textarea:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background-color: rgba(255, 255, 255, 0.14);
}
.ct-form .field input:focus,
.ct-form .field select:focus,
.ct-form .field textarea:focus {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.ct-form .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}
.ct-form .ct-form-note { color: rgba(255, 255, 255, 0.70); }

/* Submit button inverts to white-on-blue */
.ct-form .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 10px 30px -8px rgba(0,0,0,0.25);
}
.ct-form .btn-primary:hover {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 0 0 1px #fff, 0 14px 36px -8px rgba(0,0,0,0.3);
}

.field select,
.field textarea {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  outline: none;
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  padding: 14px 16px;
  width: 100%;
  letter-spacing: -0.005em;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  resize: vertical;
  min-height: 44px;
}
.field textarea { min-height: 130px; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E97A4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}
.field select option { background: #14171C; color: var(--text); }
.field select:hover,
.field textarea:hover {
  border-color: rgba(255,255,255,0.18);
  background-color: rgba(255,255,255,0.035);
}
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background-color: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.ct-form-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ct-form-note {
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* Success state */
.ct-form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 16px 0;
}
.success-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 0 32px var(--accent-glow);
}
.success-mark svg { width: 28px; height: 28px; }
.ct-form-success h3 { font-size: 28px; letter-spacing: -0.02em; }
.ct-form-success p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 44ch;
}
.ct-form-success a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}

/* Side info */
.ct-aside {
  display: flex;
  flex-direction: column;
  gap: 56px;
  position: sticky;
  top: 120px;
  align-self: start;
}
.ct-direct h2 { margin-top: 22px; }
.ct-channels {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ct-channels li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.ct-channels li:first-child { padding-top: 0; }
.ct-channels li:last-child  { border-bottom: none; }
.ct-channel-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ct-channels a {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .2s ease;
}
.ct-channels a:hover { color: var(--accent); }

.ct-promise {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
.ct-promise-dot {
  width: 10px; height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px var(--accent-glow); }
  50%      { box-shadow: 0 0 0 6px transparent, 0 0 20px var(--accent-glow); }
}
.ct-promise strong { font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }
.ct-promise p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Offices ===== */
.ct-offices-head {
  margin-bottom: 56px;
}
.ct-offices-head h2 {
  margin-top: 22px;
  max-width: 14ch;
}
.office-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
@media (min-width: 800px)  { .office-grid { grid-template-columns: repeat(3, 1fr); } }

.office {
  background: var(--bg);
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
  position: relative;
  transition: background .25s ease;
}
.office:hover { background: rgba(255, 255, 255, 0.025); }

.office-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  align-self: flex-start;
}
.office-city {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}
.office-country {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -8px;
}
.office-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.office-meta a {
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: -0.005em;
  transition: color .2s ease;
}
.office-meta a:hover { color: var(--accent); }
.office-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  align-self: flex-start;
  transition: color .2s ease;
}
.office-link:hover { color: var(--text); }

/* ===== Legal block ===== */
.ct-legal { padding-top: 80px; padding-bottom: 120px; }
.ct-legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
@media (min-width: 1024px) {
  .ct-legal-grid { grid-template-columns: 1fr 1.5fr; gap: 80px; }
}
.ct-legal-grid h3 {
  margin-top: 22px;
  font-size: 32px;
  letter-spacing: -0.022em;
}
.ct-legal-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ct-legal-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.ct-legal-row:first-child { padding-top: 0; }
.ct-legal-row:last-child  { border-bottom: none; }
.ct-legal-row dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ct-legal-row dd {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* ===== Compact footer (no editorial cap) ===== */
.footer-compact { padding-top: 96px; }
.footer-compact .footer-cap { display: none; }

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .ct-hero {
    padding-top: 120px;
    padding-bottom: 56px;
  }
  .ct-hero h1 { font-size: clamp(36px, 11vw, 52px); margin-top: 20px; }
  .ct-hero .lead { font-size: 16px; margin-top: 22px; }

  .ct-main { padding-top: 40px; }
  .ct-grid { gap: 40px; }

  .ct-form { padding: 24px; border-radius: 16px; }
  .ct-form-wrap h2 { font-size: clamp(28px, 8vw, 38px); margin-top: 18px; }
  .ct-form-fields { gap: 18px; }
  .ct-form-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .ct-form-foot .btn { width: 100%; justify-content: center; }
  .ct-form-success h3 { font-size: 22px; }

  .ct-aside { gap: 36px; position: static; }
  .ct-channels { margin-top: 18px; }
  .ct-channels li { padding: 18px 0; }
  .ct-promise { padding: 18px; gap: 12px; }

  .ct-offices-head { margin-bottom: 36px; }
  .ct-offices-head h2 { font-size: clamp(30px, 8vw, 42px); }
  .office-grid { border-radius: 16px; }
  .office { padding: 32px 24px; min-height: auto; gap: 14px; }
  .office-city { font-size: 28px; }

  .ct-legal { padding-top: 48px; padding-bottom: 72px; }
  .ct-legal-grid { padding-top: 40px; gap: 32px; }
  .ct-legal-grid h3 { font-size: 24px; }
  .ct-legal-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .ct-legal-row dt { font-size: 10px; }
  .ct-legal-row dd { font-size: 15px; }

  .footer-compact { padding-top: 64px; }
}
