/* ===== Contact page — page-specific styles ==================================
   Built ON the ApexQuant design system (colors_and_type + components + shell).
   APEX blue page. Centered single-column: hero + contact chips + contact form,
   with the dotted world map behind the form box (same map as the jobs page). */

.contact-stage { position: relative; overflow: hidden; padding: 132px 24px 110px; z-index: 2; }
@media (max-width: 900px){ .contact-stage { padding: 104px 20px 80px; } }

/* dotted world map behind the form box */
.contact-stage .worldmap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78%; max-width: 1180px; height: auto; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .5s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%); }
.contact-stage .worldmap.ready { opacity: 1; }

.contact-content { position: relative; z-index: 2; width: 100%; max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }

.contact-content .t-hero { margin-top: 22px; max-width: 22ch; }
.contact-content .t-hero .t-key { color: var(--accent-hi, var(--apex-blue-hi)); }
.contact-subtitle { margin-top: 18px; max-width: 540px; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--soft-grey); text-wrap: pretty; }

/* contact chips row */
.contact-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: var(--r-pill); border: 1px solid var(--hair); background: rgba(255,255,255,0.03); font-family: var(--font); font-size: 14px; color: var(--soft-grey); }
.chip-icon { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--accent-halo, rgba(30,91,255,0.12)); color: var(--accent-hi, var(--apex-blue-hi)); }
.chip-icon svg { width: 16px; height: 16px; }

/* ===== Form box ============================================================ */
.form-box { width: 100%; max-width: 560px; margin: 40px auto 0; padding: 30px 28px; text-align: left; border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; background: linear-gradient(168deg, #16213C 0%, #121B33 60%, #0F1830 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 34px 80px -44px rgba(2,4,12,0.7); }
.form-box form { display: flex; flex-direction: column; gap: 16px; }
.field-label { display: block; margin-bottom: 7px; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--soft-grey); }
.input-wrap { position: relative; }
.input-wrap .lead-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.input-wrap .trail-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.form-box input[type=text], .form-box input[type=email], .form-box select { width: 100%; background: #1B2440; border: 1px solid var(--card-line); border-radius: 12px; color: var(--bone); padding: 13px 14px 13px 40px; font-family: var(--font); font-size: 15px; outline: none; transition: border-color .15s ease, background .15s ease; }
.form-box select { appearance: none; -webkit-appearance: none; padding-right: 40px; color: var(--muted); cursor: pointer; }
.form-box select.has-value { color: var(--bone); }
.form-box textarea { width: 100%; min-height: 110px; resize: vertical; background: #1B2440; border: 1px solid var(--card-line); border-radius: 12px; color: var(--bone); padding: 13px 14px; font-family: var(--font); font-size: 15px; line-height: 1.5; outline: none; transition: border-color .15s ease, background .15s ease; }
.form-box input::placeholder, .form-box textarea::placeholder { color: var(--muted); }
.form-box input:focus, .form-box textarea:focus, .form-box select:focus { border-color: var(--accent, var(--apex-blue)); background: #131D3F; }

.terms { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--soft-grey); cursor: pointer; }
.terms input { position: absolute; opacity: 0; width: 0; height: 0; }
.terms .checkbox { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--card-line); background: #1B2440; display: grid; place-items: center; margin-top: 1px; transition: background .15s ease, border-color .15s ease; }
.terms .checkbox svg { opacity: 0; transition: opacity .15s ease; }
.terms input:checked + .checkbox { background: var(--accent, var(--apex-blue)); border-color: transparent; }
.terms input:checked + .checkbox svg { opacity: 1; }
.terms a { color: var(--accent-hi, var(--apex-blue-hi)); text-decoration: none; border-bottom: 1px solid currentColor; }

.form-box .submit { margin-top: 4px; width: 100%; appearance: none; border: 0; cursor: pointer; border-radius: var(--r-pill); background: var(--accent, var(--apex-blue)); color: var(--accent-ink, #fff); font-family: var(--font); font-weight: 600; font-size: 15px; padding: 15px 20px; transition: background .22s var(--ease); }
.form-box .submit:hover { background: var(--accent-hover, var(--apex-blue-hover)); }

.footer-note { margin: 30px auto 0; max-width: 460px; color: var(--muted); font-size: 13.5px; line-height: 1.6; text-wrap: pretty; }

@media (max-width: 560px){
  .form-box { padding: 22px 18px; }
  .contact-row { gap: 10px; }
}
