/* Contact form in steps (assets/js/contact-steps.js).
   The form sits in its own panel. Fields are soft filled boxes with quiet labels; navigation lives in a footer
   under a hairline, with Continue as a right-aligned pill, so buttons never read as another field. */
.cf-steps {
	--cf-field: #f4f6f9;
	--cf-line: rgba(16, 45, 79, 0.1);
	--cf-ease: cubic-bezier(0.23, 1, 0.32, 1);
	gap: 28px !important;
	padding: clamp(22px, 4vw, 40px);
	margin-bottom: 8px;
	border-radius: 20px;
	background: var(--bg, #fff);
	box-shadow: 0 0 0 1px var(--cf-line), 0 24px 48px -28px rgba(16, 45, 79, 0.22);
}
[data-theme="dark"] .cf-steps { --cf-field: rgba(255, 255, 255, 0.06); --cf-line: rgba(255, 255, 255, 0.12); }

/* Progress */
.cf-progress { display: flex; flex-direction: column; gap: 10px; }
.cf-count { margin: 0; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.cf-bar { height: 3px; border-radius: 999px; background: var(--cf-line); overflow: hidden; }
.cf-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0a84ff, #00c2ff); transform-origin: 0 50%; transform: scaleX(0.25); transition: transform 420ms var(--cf-ease); }

/* Step */
.cf-step { display: flex; flex-direction: column; gap: 24px; }
.cf-step[hidden] { display: none; }
.cf-head { display: flex; flex-direction: column; gap: 6px; }
.cf-title { margin: 0; outline: none; color: var(--text); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.cf-sub { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.cf-in { animation: cf-in 280ms var(--cf-ease); }
.cf-in-back { animation: cf-in-back 280ms var(--cf-ease); }
@keyframes cf-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes cf-in-back { from { opacity: 0; transform: translateX(-14px); } }
.cf-hidden { display: none !important; }
.cf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fields: quiet labels, filled boxes that turn white with a cyan ring on focus. */
.cf-steps .field { gap: 8px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; }
.cf-steps .field input, .cf-steps .field textarea {
	min-height: 52px; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px;
	background: var(--cf-field); color: var(--text); font-size: 1rem;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.cf-steps .field textarea { min-height: 160px; }
.cf-steps .field input::placeholder, .cf-steps .field textarea::placeholder { color: #8a99ab; }
@media (hover: hover) and (pointer: fine) { .cf-steps .field input:hover, .cf-steps .field textarea:hover { border-color: var(--cf-line); } }
.cf-steps .field input:focus, .cf-steps .field textarea:focus { background: var(--bg, #fff); border-color: #00aff0; box-shadow: 0 0 0 4px rgba(0, 175, 240, 0.14); }
.cf-steps .field input:user-invalid, .cf-steps .field textarea:user-invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
.cf-step > div[style*="grid"] { gap: 18px 16px !important; }

/* Chips */
.cf-chips > div { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.cf-chips .chk { position: relative; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border: 1px solid var(--cf-line); border-radius: 999px; background: var(--bg, #fff); cursor: pointer; font-size: 0.9375rem; font-weight: 500; transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--cf-ease); }
.cf-chips .chk input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cf-chips .chk:has(input:checked) { border-color: transparent; color: #fff; background: linear-gradient(135deg, #0a84ff, #00c2ff); }
.cf-chips .chk:has(input:checked) .chk-ico { color: #fff; }
.cf-chips .chk:has(input:focus-visible) { outline: 2px solid #00aff0; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .cf-chips .chk:hover { border-color: #00aff0; } }

/* Stage options: tappable cards with a radio dot. */
.cf-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cf-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--cf-line); border-radius: 14px; background: var(--bg, #fff); color: var(--text); font: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms var(--cf-ease); }
.cf-opt::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b7c4d3; transition: box-shadow 160ms ease; }
.cf-opt[aria-checked="true"] { border-color: #00aff0; background: rgba(0, 175, 240, 0.06); box-shadow: inset 0 0 0 1px #00aff0; }
.cf-opt[aria-checked="true"]::before { box-shadow: inset 0 0 0 5px #00aff0; }
.cf-opt:focus-visible { outline: 2px solid #00aff0; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .cf-opt:hover { border-color: #00aff0; } }

/* Footer navigation: separated from the fields by a hairline; Back is quiet text, Continue a pill on the right. */
.cf-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--cf-line); }
.cf-nav:not(:has(.cf-back)) { justify-content: flex-end; }
.cf-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; border-radius: 8px; transition: color 160ms ease; }
.cf-back::before { content: "←"; margin-right: 8px; }
@media (hover: hover) and (pointer: fine) { .cf-back:hover { color: var(--text); } }
.cf-back:focus-visible { outline: 2px solid #00aff0; outline-offset: 2px; }
.cf-next { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; min-height: 46px; padding: 0 20px 0 24px; border: 0; border-radius: 999px; background: #102d4f; color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--cf-ease); }
.cf-next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--cf-ease); }
@media (hover: hover) and (pointer: fine) { .cf-next:hover { background: #0a84ff; } .cf-next:hover svg { transform: translateX(2px); } }
.cf-next:focus-visible { outline: 2px solid #00aff0; outline-offset: 3px; }
.cf-send { background: linear-gradient(135deg, #0a84ff, #00c2ff); }
@media (hover: hover) and (pointer: fine) { .cf-send:hover { background: linear-gradient(135deg, #0077ee, #00b4f0); } }
.cf-next:active, .cf-back:active, .cf-opt:active, .cf-chips .chk:active { transform: scale(0.97); }
.cf-note { align-self: stretch; margin: -12px 0 0 !important; padding: 0 !important; color: var(--muted); font-size: 0.875rem; text-align: right; }

.cf-hint { margin: -10px 0 0; color: var(--muted); font-size: 0.875rem; }
.cf-next-card { margin-top: 4px; }

@media (max-width: 600px) {
	.cf-steps { border-radius: 16px; }
	.cf-nav { padding-top: 20px; }
	.cf-nav .cf-next { flex: 1; justify-content: center; padding: 0 16px; }
	.cf-note { text-align: left; }
	.cf-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cf-in, .cf-in-back { animation: none; } .cf-bar i, .cf-next svg { transition: none; } }

/* Sending, then the result panel (contact-steps.js): sent or not sent, in place of the steps. */
.cf-send.is-sending { cursor: progress; background: #0a84ff; }
.cf-send.is-sending svg { animation: cf-spin 900ms linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.cf-result { flex: 999 1 560px; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 90% at 100% 0%, rgba(0, 175, 240, 0.22), transparent 55%), linear-gradient(160deg, #0b213c 0%, #050b14 85%); color: #e7eef5;
	box-shadow: inset 0 0 0 1px rgba(0, 175, 240, 0.25), 0 30px 60px -30px rgba(5, 11, 20, 0.6); }
.cf-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(0, 175, 240, 0.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(70% 80% at 85% 10%, #000, transparent 75%); }
.cf-result.is-err { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 99, 88, 0.2), transparent 55%), linear-gradient(160deg, #1d1b2e 0%, #0a0b14 85%); box-shadow: inset 0 0 0 1px rgba(255, 99, 88, 0.3), 0 30px 60px -30px rgba(5, 11, 20, 0.6); }
.cf-r-ico { width: 72px; height: 72px; margin-bottom: 6px; }
.cf-r-ico svg { width: 100%; height: 100%; overflow: visible; }
.cf-r-ring { fill: rgba(0, 194, 255, 0.12); stroke: #00c2ff; stroke-width: 2.5; stroke-dasharray: 145; stroke-dashoffset: 145; transform: rotate(-90deg); transform-origin: 26px 26px; }
.cf-r-mark { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.is-err .cf-r-ring { fill: rgba(255, 99, 88, 0.12); stroke: #ff6358; }
.cf-r-in .cf-r-ring { animation: cf-draw 700ms var(--cf-ease, cubic-bezier(0.16, 1, 0.3, 1)) 100ms forwards; }
.cf-r-in .cf-r-mark { animation: cf-draw 450ms var(--cf-ease, cubic-bezier(0.16, 1, 0.3, 1)) 650ms forwards; }
.cf-r-in .cf-r-dot { animation-delay: 950ms; }
.is-ok.cf-r-in .cf-r-ico { animation: cf-glow 1.6s ease-out 900ms; border-radius: 50%; }
@keyframes cf-draw { to { stroke-dashoffset: 0; } }
@keyframes cf-glow { 0% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.55); } 100% { box-shadow: 0 0 0 26px rgba(0, 194, 255, 0); } }
.cf-r-in { animation: cf-rise 600ms var(--cf-ease, cubic-bezier(0.16, 1, 0.3, 1)); }
@keyframes cf-rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
.cf-r-kick { margin: 0; color: #7fd6f7; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.is-err .cf-r-kick { color: #ff9d94; }
.cf-r-title { margin: 0; color: #fff; font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; outline: none; }
.cf-r-text { max-width: 560px; margin: 0; color: #c3d2e1; font-size: 1.0625rem; line-height: 1.6; }
.cf-r-text b { color: #fff; font-weight: 600; }
.cf-r-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.cf-r-tags li { padding: 5px 12px; border-radius: 999px; background: rgba(0, 175, 240, 0.12); box-shadow: inset 0 0 0 1px rgba(0, 175, 240, 0.35); color: #cfefff; font-size: 0.8125rem; font-weight: 500; }
.cf-r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.cf-result .cf-next { background: linear-gradient(135deg, #0a84ff, #00c2ff); text-decoration: none; }
.cf-result .cf-back { color: #a9bdd0; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cf-result .cf-back:hover { color: #fff; } .cf-result .cf-next:hover { background: linear-gradient(135deg, #0077ee, #00b2ef); } }
@media (prefers-reduced-motion: reduce) { .cf-r-in, .cf-r-in .cf-r-ico { animation: none; } .cf-r-ring, .cf-r-mark { animation: none !important; stroke-dashoffset: 0; } .cf-send.is-sending svg { animation: none; } }

/* Map (pages/contact-us.html .cmap): a street map in Argenox colours, rendered from OpenStreetMap data. */
.cmap { position: relative; margin: 0; min-height: 320px; border-radius: 20px; overflow: hidden; background: #06111f; box-shadow: 0 0 0 1px rgba(0, 175, 240, 0.2), 0 30px 60px -34px rgba(5, 11, 20, 0.7); }
.cmap a { display: block; height: 100%; }
.cmap img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 50% 50%; transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) { .cmap:hover img { transform: scale(1.03); } }
.cf-result a.cf-back::before, .cf-result .cf-again::before { content: none; }
.cf-result .cf-back { padding: 0; }
.canvas .wrap .cf-result a.cf-next, .canvas .wrap .cf-result a.cf-next:hover { color: #fff; }
.canvas .wrap .cf-result a.cf-back { color: #a9bdd0; font-weight: 500; }
/* The map keeps its own 2:1 shape, so its labels are never cropped on wide screens. */
.cmap { align-self: center; aspect-ratio: 2 / 1; min-height: 0; }
.cmap img { min-height: 0; }
@media (max-width: 700px) { .cmap { aspect-ratio: auto; height: 300px; } .cmap img { height: 300px; } }
.canvas .cf-r-tags li::before { content: none; }
.canvas .cf-r-tags li { padding: 5px 12px; }

/* Satellite zoom over the map (assets/js/map-zoom.js). */
.mz { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 700ms ease; }
.mz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mz-ready:not(.mz-done) .mz { opacity: 1; pointer-events: auto; }
.mz-ready:not(.mz-done) img { opacity: 0; transform: scale(1.5); }
.mz-ready img { transition: opacity 900ms ease, transform 1400ms cubic-bezier(0.16, 1, 0.3, 1); }
.mz-done img { opacity: 1; transform: none; }
.mz-hud { position: absolute; left: 20px; top: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #9fdcff; text-shadow: 0 0 10px rgba(0, 194, 255, 0.6); }
.mz-hud p { margin: 0; }
.mz-k { font-size: 10.5px; letter-spacing: 0.18em; color: #00c2ff; }
.mz-k::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 8px #ff5f57; vertical-align: 0; animation: af-blink 1s steps(1) infinite; }
.mz-l { margin-top: 6px !important; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 0.06em; }
.mz-tick .mz-l { animation: mz-tick 500ms ease-out; }
@keyframes mz-tick { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
@keyframes af-blink { 50% { opacity: 0.2; } }
.mz-c { margin-top: 4px !important; font-size: 11px; color: #8fb8d6; }
.mz-box { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; background: linear-gradient(#00c2ff, #00c2ff) 0 0 / 18px 2px, linear-gradient(#00c2ff, #00c2ff) 0 0 / 2px 18px, linear-gradient(#00c2ff, #00c2ff) 100% 0 / 18px 2px, linear-gradient(#00c2ff, #00c2ff) 100% 0 / 2px 18px, linear-gradient(#00c2ff, #00c2ff) 0 100% / 18px 2px, linear-gradient(#00c2ff, #00c2ff) 0 100% / 2px 18px, linear-gradient(#00c2ff, #00c2ff) 100% 100% / 18px 2px, linear-gradient(#00c2ff, #00c2ff) 100% 100% / 2px 18px; background-repeat: no-repeat; filter: drop-shadow(0 0 6px rgba(0, 194, 255, 0.8)); animation: mz-box 1.6s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
@keyframes mz-box { from { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; } to { transform: scale(0.6); opacity: 0; } }
.mz-skip, .mz-replay { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 0; border-radius: 999px; background: rgba(6, 17, 31, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(0, 194, 255, 0.4); color: #fff; font: 600 12px/1 inherit; font-family: inherit; cursor: pointer; transition: background 160ms ease, transform 160ms ease; }
.mz-skip { right: 16px; bottom: 16px; }
.mz-replay { right: 16px; top: 16px; opacity: 0; pointer-events: none; transition: opacity 400ms ease 600ms; }
.mz-done .mz-replay { opacity: 1; pointer-events: auto; }
.mz-skip:hover, .mz-replay:hover { background: rgba(0, 132, 255, 0.5); }
.mz-skip:active, .mz-replay:active { transform: scale(0.97); }
.mz-skip svg, .mz-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
