/* Contact form + details - uses the site theme tokens (light/dark aware). All rules scoped under .cfx */
.cfx{--err:#c0392b;display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:28px;align-items:stretch;color:var(--ink)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .cfx{--err:#ff8f86}}
:root[data-theme="dark"] .cfx{--err:#ff8f86}
.cfx *{box-sizing:border-box}
@media(max-width:800px){.cfx{grid-template-columns:1fr}}

/* form card */
.cfx form{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:26px;margin:0;display:grid;gap:16px;align-content:start}
.cfx .fields{display:grid;gap:16px}
.cfx .field{display:grid;gap:6px;position:relative}
.cfx label{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0;font:600 13px Inter,system-ui,sans-serif;color:var(--ink)}
.cfx label small{font-weight:400;color:var(--muted)}
.cfx input,.cfx textarea{width:100%;margin:0;font:400 15px Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg);border:1.5px solid var(--line);border-radius:12px;padding:11px 14px;transition:border-color .15s,box-shadow .15s,background .15s}
.cfx textarea{min-height:120px;resize:vertical}
.cfx input::placeholder,.cfx textarea::placeholder{color:var(--muted);opacity:.7}
.cfx input:hover,.cfx textarea:hover{border-color:var(--brand)}
.cfx input:focus,.cfx textarea:focus{outline:0;background:var(--surface);border-color:var(--brand);box-shadow:0 0 0 3px rgba(43,143,208,.25)}
.cfx .hint{font-size:12px;color:var(--muted)}

/* validation: message text only - no red box, border or glow */
.cfx .err{display:none;align-items:center;gap:5px;color:var(--err);font-size:12.5px;line-height:1.3}
.cfx .err svg{flex:none;width:13px;height:13px}
.cfx .field.invalid .err{display:flex}
.cfx .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* submit button - same look as the site buttons */
.cfx button{font:600 16px Sora,system-ui,sans-serif;background:var(--grad);color:var(--brand-ink);border:0;border-radius:12px;padding:14px 26px;cursor:pointer;transition:filter .15s,transform .05s}
.cfx button:hover{filter:brightness(1.08)}
.cfx button:active{transform:translateY(1px)}
.cfx button[disabled]{opacity:.7;cursor:progress}
.cfx .fnote{display:none;margin:0;font-size:14px;color:var(--err)}
.cfx .fnote.show{display:block}

/* success */
.cfx .success{display:none;text-align:center;padding:36px 12px}
.cfx .success.show{display:block}
.cfx .success .tick{width:56px;height:56px;border-radius:50%;background:var(--soft);color:var(--brand);display:grid;place-items:center;margin:0 auto 14px}
.cfx .success h3{margin:0 0 6px;font-family:Sora,system-ui,sans-serif;font-size:20px}
.cfx .success p{margin:0;color:var(--muted)}
.cfx form.sent .fields{display:none}

/* contact details card */
.cfx aside{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:26px;display:flex;flex-direction:column;justify-content:space-between;gap:22px}
.cfx aside section{margin:0}
.cfx aside h2{margin:0 0 10px;font:600 12px Sora,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.cfx aside a{color:var(--ink);display:flex;align-items:center;gap:12px;padding:5px 0;text-decoration:none;font-weight:500}
.cfx aside a span{border-bottom:1px solid var(--line);transition:border-color .15s}
.cfx aside a:hover span{border-color:var(--brand)}
.cfx aside svg{flex:none;width:36px;height:36px;padding:9px;border-radius:10px;background:var(--soft);color:var(--brand)}
.cfx .addr{display:flex;align-items:flex-start;gap:12px;padding:5px 0}
.cfx .addr address{font-style:normal;color:var(--muted);line-height:1.55}
.cfx .addr b{color:var(--ink);font-family:Sora,system-ui,sans-serif}
@media(prefers-reduced-motion:reduce){.cfx *{transition:none!important}}
