/* =========================================================
   MATRIX PROPERTIES LTD — Contact page
   Palette: navy #0F2273, registry blue #0B5FD0, amber #FBB517,
            paper #F5F8FD, WhatsApp green #1FA855
   One bold element: the navy "switchboard" with the numbers set large.
   ========================================================= */
.page-contact main.cx { padding: 0; }

/* ---------- Hero (shares the photo hero used on About / Diaspora) ---------- */
.cx-hero { background: #fff; }
.cx-hero__inner { padding-top: 18px; padding-bottom: 44px; min-height: 300px; }
.cx-hero .crumbs { margin-bottom: 18px; }
.cx-title { font-size: clamp(34px, 3.6vw, 54px); font-weight: 700; letter-spacing: -.025em; line-height: 1.03; max-width: 13ch; }
.cx-sub { font-size: clamp(16px, 1.35vw, 19px); color: var(--text); line-height: 1.55; margin-top: 18px; max-width: 46ch; }
.cx-hero__img { width: 50%; }

/* ---------- Switchboard ---------- */
.cx-lines { background: var(--navy); color: #fff; }
.cx-lines__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-line { display: flex; flex-direction: column; gap: 6px; padding: 26px 30px 24px; color: #fff; transition: background .2s; }
.cx-line + .cx-line { border-left: 1px solid rgba(255, 255, 255, .16); }
.cx-line:first-child { padding-left: 0; }
.cx-line__how { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #c9d6ec; }
.cx-line__how svg { width: 20px; height: 20px; color: var(--amber); }
.cx-line--wa .cx-line__how svg { color: #3ddc84; }
.cx-line__num { font-size: clamp(22px, 2.2vw, 31px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; }
.cx-line__go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #ffd36b; }
a.cx-line .cx-line__go::after { content: ""; width: 18px; height: 1.5px; background: currentColor; transition: width .2s; }
a.cx-line:hover { background: rgba(255, 255, 255, .06); }
a.cx-line:hover .cx-line__go::after { width: 30px; }
a.cx-line:focus-visible { outline: 3px solid #8fb4ef; outline-offset: -3px; }
.cx-line--visit .cx-line__go { color: #c9d6ec; }

/* ---------- Form + routes ---------- */
.cx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 60px; align-items: start; padding-top: 44px; padding-bottom: 40px; }
.cx-h2 { font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.cx-form-sub { font-size: 16px; color: var(--muted); margin-top: 6px; }

.cx-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin-top: 24px; }
.cx-wide, .cx-topics { grid-column: 1 / -1; }
.cx-form .vfield { margin-bottom: 18px; }
.cx-form .vfield__label em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; }

/* Field boxes: label sits inside the frame, icon on the left, halo on focus */
.cx-box {
  position: relative; display: block; background: #fff; border: 1.5px solid #cdd7e8; border-radius: 10px;
  padding: 10px 16px 8px 52px; cursor: text; transition: border-color .18s, box-shadow .18s, background .18s;
}
.cx-box:hover { border-color: #9fb3d4; }
.cx-box__ic { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: #8e9bb3; transition: color .18s; }
.cx-form .cx-box .vfield__label { font-size: 12.5px; font-weight: 600; color: #5b6987; margin: 0 0 1px; letter-spacing: .005em; transition: color .18s; }
.cx-form .cx-box input, .cx-form .cx-box textarea {
  display: block; width: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  padding: 0; height: 28px; font-size: 16.5px; font-weight: 500; color: var(--navy);
}
.cx-form .cx-box input::placeholder, .cx-form .cx-box textarea::placeholder { color: #a3adc0; font-weight: 400; }
.cx-form .cx-box input:focus, .cx-form .cx-box textarea:focus { box-shadow: none; border: 0; }
.cx-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 95, 208, .12); }
.cx-box:focus-within .cx-box__ic, .cx-box:focus-within .vfield__label { color: var(--blue); }

.cx-field--msg .cx-box__ic { top: 14px; margin-top: 0; }
.cx-form .cx-field--msg textarea { height: auto; min-height: 118px; line-height: 1.5; padding-top: 4px; resize: vertical; }
.cx-box__foot { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 2px; padding-top: 8px; border-top: 1px dashed #dde4f0; font-size: 12.5px; color: #7d89a1; }
.cx-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-count.is-near { color: #b7791f; }

.cx-hint { display: block; font-size: 12.5px; color: #7d89a1; margin: 6px 2px 0; }
.cx-form .vfield__error { margin: 6px 2px 0; font-size: 13px; }
.cx-field.is-invalid .cx-box { border-color: #d93a3a; background: #fffafa; }
.cx-field.is-invalid .cx-box__ic, .cx-field.is-invalid .vfield__label { color: #c62f2f; }
.cx-field.is-invalid .cx-hint { display: none; }

.cx-topics { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.cx-topics legend { float: left; width: 100%; padding: 0; font-size: 15px; font-weight: 600; margin-bottom: 9px; }
.cx-topics__list { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.cx-topics__list label { position: relative; cursor: pointer; }
.cx-topics__list input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cx-topics__list span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--blue); background: #fff; color: var(--navy); font-size: 14px; font-weight: 500; transition: background .15s, color .15s;
}
.cx-topics__list label:hover span { background: #eef4fd; }
.cx-topics__list input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.cx-topics__list input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 9px; }
.cx-topics__list input:focus-visible + span { box-shadow: 0 0 0 3px #8fb4ef; }
.cx-topics.is-invalid .cx-topics__list span { border-color: #d93a3a; }
.cx-topics.is-invalid .vfield__error { display: block; }

.cx-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.cx-submit { height: 52px; padding: 0 30px; font-size: 17px; gap: 14px; border-radius: 4px; }
.cx-foot .rq-privacy { font-size: 13.5px; }
.cx-form-wrap .vdone { padding: 34px 0 10px; text-align: left; }

.cx-routes { padding-top: 6px; }
.cx-h3 { font-size: 20px; font-weight: 700; color: var(--navy); padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.cx-route { display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 2px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #d5deec; color: var(--navy); }
.cx-route b { font-size: 17px; font-weight: 600; }
.cx-route span { grid-column: 1; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.cx-route svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--blue); transition: transform .2s; }
.cx-route:hover b { color: var(--blue); }
.cx-route:hover svg { transform: translateX(4px); }
.cx-routes__note { margin-top: 18px; font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--amber); }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .cx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 36px; }
  .cx-line { padding: 22px 20px; }
}
@media (max-width: 960px) {
  .cx-split { grid-template-columns: minmax(0, 1fr); }
  .cx-hero__inner { min-height: 0; padding-bottom: 18px; }
  .cx-hero__img { width: calc(100% - 48px); aspect-ratio: 502 / 169; }
  .cx-lines__inner { grid-template-columns: minmax(0, 1fr); }
  .cx-line, .cx-line:first-child { padding: 18px 0; }
  .cx-line + .cx-line { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body.page-contact { padding-bottom: 0; }
  .page-contact .actionbar { display: none; }
  .cx-hero__inner { padding-top: 10px; padding-bottom: 14px; }
  .cx-hero__img { width: calc(100% - 32px); aspect-ratio: 502 / 169; object-position: center; margin-bottom: 20px; }
  .cx-hero .crumbs { font-size: 14px; margin-bottom: 8px; }
  .cx-title { font-size: clamp(28px, 8.6vw, 36px); }
  .cx-sub { font-size: 15px; margin-top: 10px; }
  .cx-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
  .cx-line__how { grid-column: 1; font-size: 13.5px; }
  .cx-line__num { grid-column: 1; font-size: 22px; }
  .cx-line__go { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; }
  .cx-split { padding-top: 28px; padding-bottom: 28px; gap: 30px; }
  .cx-form { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .cx-box { padding-left: 46px; padding-right: 14px; }
  .cx-box__ic { left: 14px; width: 18px; height: 18px; margin-top: -9px; }
  .cx-box__foot span:first-child { display: none; }
  .cx-box__foot { justify-content: flex-end; }
  .cx-topics__list { gap: 6px; }
  .cx-topics__list span { height: 36px; padding: 0 12px; font-size: 13px; }
  .cx-submit { width: 100%; }
  .cx-foot { gap: 12px; }
}
