/* ============================================================
   CONTACT page — "Split Console" (builds on cyberx.css)
   Ported from design_handoff_cyberx/Contact.html <style> block.
   ============================================================ */
.cx-wrap { position: relative; overflow: hidden; min-height: 100vh; padding: 120px 0 70px; display: flex; align-items: center;
  background: radial-gradient(110% 70% at 82% 6%, rgba(255,75,38,.18), transparent 55%), radial-gradient(80% 70% at 4% 96%, rgba(120,22,10,.30), transparent 60%), linear-gradient(180deg,#0b0608 0%,var(--bg) 80%); }
.cx-wrap #hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; z-index: 0; }
.cx-wrap > .wrap { position: relative; z-index: 3; width: 100%; }
.cx-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }

/* left info */
.cx-info h1 { font-size: clamp(2.05rem,4vw,3.5rem); font-weight: 800; letter-spacing: -.03em; margin: 20px 0 0; text-wrap: balance; }
.cx-info h1 .hl { background: linear-gradient(110deg,var(--brand-2),var(--brand)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.cx-info .lead { font-size: 1.14rem; color: var(--muted); max-width: 440px; margin: 24px 0 0; line-height: 1.7; }

.cx-channels { display: flex; flex-direction: column; gap: 10px; margin: 38px 0 0; }
.cx-ch { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(18,20,25,.45); backdrop-filter: blur(6px); transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s; }
.cx-ch:hover { border-color: var(--line-2); transform: translateX(4px); background: rgba(18,20,25,.7); }
.cx-ch .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: rgba(255,75,38,.1); border: 1px solid rgba(255,75,38,.24); color: var(--brand-2); transition: background .25s, color .25s; }
.cx-ch:hover .ic { background: var(--brand); color: #fff; }
.cx-ch .ic svg { width: 21px; height: 21px; }
.cx-ch .t { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cx-ch .v { font-size: 1rem; font-weight: 600; color: var(--text); margin-top: 2px; }
.cx-ch .arr { margin-left: auto; color: var(--dim); transition: transform .25s var(--ease), color .25s; }
.cx-ch:hover .arr { color: var(--brand-2); transform: translateX(3px); }
.cx-ch .arr svg { width: 17px; height: 17px; }

.cx-book { margin-top: 28px; display: inline-flex; }

/* right form card */
.cx-card { position: relative; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,23,28,.92), rgba(12,14,18,.92)); backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.cx-card::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--teal)); }
.cx-card-in { padding: 40px 42px 38px; }
.cx-card h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.cx-card .sub { color: var(--muted); font-size: .98rem; margin-top: 8px; }

/* static fallback form */
.cx-form { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { position: relative; display: flex; flex-direction: column; gap: 8px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.fld label .req { color: var(--brand-2); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--text); font-family: inherit; font-size: .98rem; transition: border-color .22s, background .22s, box-shadow .22s; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--dim); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(255,75,38,.12); }
.fld select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%239AA2AC' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.fld select option { background: #121419; color: var(--text); }
.fld .err { font-size: .76rem; color: var(--red); display: none; }
.fld.invalid input, .fld.invalid select, .fld.invalid textarea { border-color: var(--red); }
.fld.invalid .err { display: block; }

.cx-submit { grid-column: 1 / -1; margin-top: 6px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cx-submit .btn { padding: 15px 30px; }
.cx-submit .note { font-family: var(--mono); font-size: .76rem; color: var(--dim); }

/* success state */
.cx-card.sent .cx-form, .cx-card.sent .cx-card-head { display: none; }
.cx-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 30px 10px 14px; }
.cx-card.sent .cx-success { display: flex; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cx-check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(37,224,138,.12); border: 1px solid rgba(37,224,138,.4); margin-bottom: 22px; }
.cx-check svg { width: 40px; height: 40px; color: var(--green); }
.cx-check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cx-success h3 { font-size: 1.5rem; font-weight: 800; }
.cx-success p { color: var(--muted); margin-top: 10px; max-width: 360px; }
.cx-success .btn { margin-top: 24px; }

/* Fluent Forms embed — inherit the dark card aesthetic */
.cx-ff { margin-top: 28px; }
.cx-ff .ff-el-input-top label, .cx-ff .ff_form_instance label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cx-ff input, .cx-ff select, .cx-ff textarea { background: rgba(255,255,255,.04) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; border-radius: 12px !important; }
.cx-ff input:focus, .cx-ff select:focus, .cx-ff textarea:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 4px rgba(255,75,38,.12) !important; }
.cx-ff .ff-btn-submit { background: linear-gradient(110deg, var(--brand), var(--brand-2)) !important; border: none !important; border-radius: 999px !important; }

.reveal { opacity: 1; }
.reveal.in { animation: cxIn .6s var(--ease) both; }
.reveal.in[data-d="1"]{animation-delay:.08s} .reveal.in[data-d="2"]{animation-delay:.16s} .reveal.in[data-d="3"]{animation-delay:.24s}
@keyframes cxIn { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1!important;transform:none!important} .reveal.in{animation:none} .cx-check svg path{animation:none;stroke-dashoffset:0} }

@media (max-width: 980px) {
  .cx-grid { grid-template-columns: 1fr; gap: 44px; }
  .cx-wrap { min-height: 0; padding: 130px 0 70px; }
}
@media (max-width: 560px) {
  .cx-form { grid-template-columns: 1fr; }
  .cx-card-in { padding: 30px 24px 30px; }
}
