/* Contact us: short message form (posts to the enquiry API) + direct details. Field styles mirror the start form. */
.contact-main { position: relative; padding-bottom: clamp(56px, 7vw, 90px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(18px, 3vw, 36px); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } .contact-aside { position: static; } }

/* ---------- form ---------- */
.cf { overflow: hidden; }
.cf-inner { padding: clamp(20px, 3.4vw, 40px); }
.cf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.cf-wide { grid-column: 1 / -1; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.cf-field label span { color: var(--accent); }
.cf-field label .cf-opt { color: var(--dim); font-weight: 400; }
.cf-field input, .cf-field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 10, 28, 0.6); color: var(--text); font-size: 16px; outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.cf-field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--dim); }
.cf-field input:focus, .cf-field textarea:focus { border-color: rgba(var(--accent-rgb), 0.85); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16); }
.cf-field [aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 111, 134, 0.12); }
.cf-error { font-size: 13.5px; color: var(--rose); }
.cf-error::before { content: "! "; font-family: var(--f-mono); font-weight: 600; }
.cf-error[hidden] { display: none; }
.cf-send-error { margin-top: 14px; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.cf-privacy { font-size: 13.5px; color: var(--muted); }
.cf-privacy a, .cf-send-error a, .cf-notice a, .cf-success a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.btn.is-busy { pointer-events: none; opacity: 0.7; }
/* result of a no-JavaScript post (?sent=1 or ?error=…) */
.cf-notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 111, 134, 0.45); background: rgba(255, 111, 134, 0.08); font-size: 15px; }
.cf-notice.is-ok { border-color: rgba(87, 242, 176, 0.45); background: rgba(87, 242, 176, 0.08); }
.cf-success { padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 48px); text-align: center; outline: none; }
.cf-success[hidden] { display: none; }
.cf-success .h-3 { font-size: clamp(26px, 3vw, 36px); margin: 4px 0 10px; }
.cf-success p { color: var(--muted); }
.cf-ok { display: block; width: 76px; height: 76px; margin: 0 auto 18px; }
.cf-ok circle { fill: rgba(87, 242, 176, 0.08); stroke: var(--mint); stroke-width: 3; }
.cf-ok path { fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .cf-fields { grid-template-columns: 1fr; } .cf-actions .btn { flex: 1; } }

/* ---------- details ---------- */
.cx-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.cx-card h2.mono-label { line-height: 1.6; } /* card labels are headings, so the footer's h3s follow an h2 */
.cx-direct { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); transition: color 0.3s; }
.cx-direct:last-child { border-bottom: 0; padding-bottom: 0; }
.cx-direct .mono { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.cx-direct b { font-size: 19px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cx-direct:hover b { color: var(--cyan); }
.cx-office { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.6; }
.cx-office b { display: block; color: var(--text); font-size: 15px; }
.cx-map { width: fit-content; color: var(--cyan); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.cx-quote p { color: var(--muted); font-size: 14.5px; }
.cx-quote .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- day theme: the form is real UI, so it gets the day palette (as the start form does) ---------- */
html[data-theme="light"] .window.cf {
  color-scheme: light;
  --bg: #f5f7fc; --bg-2: #eaeffa; --bg-3: #dee6f7;
  --surface: rgba(40, 70, 160, 0.04); --surface-2: rgba(40, 70, 160, 0.075);
  --line: rgba(30, 50, 120, 0.12); --line-2: rgba(30, 50, 120, 0.22);
  --text: #0a1130; --muted: #4a5577; --dim: #5a6482;
  --accent: #2d55e0; --accent-rgb: 45, 85, 224;
  --violet: #7356ee; --cyan: #06728d; --mint: #077a53; --amber: #925807; --rose: #bd2c49;
  color: var(--text);
  background: #fff;
  box-shadow: 0 30px 80px -40px rgba(20, 40, 110, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
html[data-theme="light"] .window.cf .window-bar i { background: rgba(10, 17, 48, 0.12); }
html[data-theme="light"] .window.cf .btn-primary { color: #fff; }
html[data-theme="light"] .cf-field input, html[data-theme="light"] .cf-field textarea { background: #fff; }
html[data-theme="light"] .cf-ok circle { fill: rgba(11, 149, 102, 0.08); }
