/* /contact (Views/Contact/Index.cshtml, js/contact.js). House style, Emerald + Mist + Glass,
   with the colours of /features and /job-seekers: each topic and each way to reach us takes a
   hue from the shared palette (Helpers/FeatureIcons.cs sets --acc, --acc-rgb, --acc-ink
   inline); the send button stays emerald. Motion is transform/opacity only and off under
   prefers-reduced-motion. The page is lean (ViewData["LeanPage"]). */

.wbc { --acc: var(--brand); --acc-rgb: var(--brand-rgb); --acc-ink: var(--brand-hover); --ease: cubic-bezier(.2, .7, .2, 1); color: #1E293B; }
.wbc .container { max-width: 1180px; }
.wbc h1, .wbc h2, .wbc h3 { color: #0F172A; margin: 0; }
.wbc p { margin: 0; }
.wbc i { font-style: normal; }
.wbc svg { flex: none; }

/* ── hero ── */
.wbc-hero { position: relative; isolation: isolate; padding: 56px 0 30px; overflow-x: clip; }
.wbc-hero::before, .wbc-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.wbc-hero::before { width: 540px; height: 540px; left: -160px; top: -210px; background: radial-gradient(closest-side, rgb(37 99 235 / 0.12), transparent); animation: wbc-drift 16s ease-in-out infinite alternate; }
.wbc-hero::after { width: 600px; height: 600px; right: -180px; top: -120px; background: radial-gradient(closest-side, rgb(124 58 237 / 0.1), rgb(5 150 105 / 0.05) 55%, transparent); animation: wbc-drift 20s ease-in-out infinite alternate-reverse; }
.wbc-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-hover); background: rgb(var(--brand-rgb) / 0.10); border: 1px solid rgb(var(--brand-rgb) / 0.2);
}
.wbc-hero h1 { max-width: 760px; margin-bottom: 14px; font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.wbc-hero h1 span {
    background: linear-gradient(90deg, var(--brand), #0891B2 35%, #7C3AED 70%, var(--brand));
    background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: wbc-shine 12s ease-in-out infinite alternate;
}
.wbc-lead { max-width: 720px; font-size: 18px; line-height: 1.65; color: #475569; }

/* ── layout ── */
.wbc-main { padding: 6px 0 96px; }
.wbc-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: 28px; align-items: start; }

/* the form's glass card */
.wbc-card {
    position: relative; padding: 30px 30px 28px; border-radius: 24px;
    background:
        radial-gradient(420px 220px at 0% 0%, rgb(var(--brand-rgb) / 0.10), transparent 70%),
        linear-gradient(180deg, rgb(255 255 255 / 0.88), rgb(255 255 255 / 0.66));
    border: 1px solid rgb(255 255 255 / 0.95);
    box-shadow: 0 1px 0 #fff inset, 0 30px 60px -40px rgb(30 41 59 / 0.45);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}

/* ── topics: radio buttons shown as chips, each in its own colour ── */
.wbc-topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.wbc-topics legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 700; color: #0F172A; }
.wbc-topic-list { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.wbc-topic { position: relative; margin: 0; cursor: pointer; }
.wbc-topic input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wbc-topic-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
    font-size: 14.5px; font-weight: 500; color: #1E293B;
    background: linear-gradient(90deg, rgb(var(--acc-rgb) / 0.10), rgb(255 255 255 / 0.8) 60%);
    border: 1px solid rgb(var(--acc-rgb) / 0.22);
    transition: color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.wbc-topic-chip i { display: flex; color: var(--acc-ink); transition: color .2s, transform .35s var(--ease); }
.wbc-topic:hover .wbc-topic-chip { transform: translateY(-1px); border-color: rgb(var(--acc-rgb) / 0.45); }
.wbc-topic input:checked + .wbc-topic-chip {
    color: #fff; background: linear-gradient(160deg, var(--acc), var(--acc-ink)); border-color: transparent;
    box-shadow: 0 10px 22px -12px rgb(var(--acc-rgb) / 0.85);
}
.wbc-topic input:checked + .wbc-topic-chip i { color: #fff; transform: rotate(-8deg) scale(1.08); }
.wbc-topic input:focus-visible + .wbc-topic-chip { outline: 2px solid rgb(var(--acc-rgb) / 0.7); outline-offset: 2px; }

/* ── fields ── */
.wbc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 24px; }
.wbc-field-wide { grid-column: 1 / -1; }
.wbc-field label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: #334155; }
.wbc-optional { margin-left: 4px; font-size: 12.5px; font-weight: 500; color: #94A3B8; }
.wbc-field input, .wbc-field textarea {
    display: block; width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 15.5px; line-height: 1.5; color: #0F172A;
    background: #fff; border: 1px solid #D5DDE8; box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition: border-color .2s, box-shadow .2s;
}
.wbc-field textarea { min-height: 160px; resize: vertical; }
.wbc-field input:hover, .wbc-field textarea:hover { border-color: #B8C4D4; }
.wbc-field input:focus, .wbc-field textarea:focus { outline: none; border-color: rgb(var(--brand-rgb) / 0.6); box-shadow: 0 0 0 4px rgb(var(--brand-rgb) / 0.12); }
.wbc-field.is-invalid input, .wbc-field.is-invalid textarea { border-color: #E11D48; box-shadow: 0 0 0 4px rgb(225 29 72 / 0.10); }
.wbc-hint { margin-top: 6px !important; font-size: 13px; color: #64748B; }
.wbc-count { margin-top: 6px !important; font-size: 12.5px; text-align: right; color: #94A3B8; font-variant-numeric: tabular-nums; }
.wbc-error { margin-top: 6px !important; font-size: 13.5px; font-weight: 500; color: #BE123C; }
.wbc-error:empty { display: none; }
.cf-turnstile { margin-top: 20px; }

/* the bot trap: out of sight and out of the tab order */
.wbc-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.wbc-alert {
    margin-top: 18px !important; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5;
    color: #9F1239; background: rgb(225 29 72 / 0.07); border: 1px solid rgb(225 29 72 / 0.2);
}
.wbc-alert[hidden] { display: none; }

.wbc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 22px; }
.wbc-submit { display: inline-flex !important; align-items: center; gap: 10px; padding: 13px 26px !important; font-size: 16px; }
.wbc-submit svg { transition: transform .3s var(--ease); }
.wbc-submit:hover svg { transform: translate(3px, -2px); }
.wbc-note { font-size: 13.5px; color: #64748B; }
.wbc-note a { color: var(--brand-hover); font-weight: 600; }
.wbc .is-busy .wbc-submit { cursor: progress; opacity: .85; }
.wbc .is-busy .wbc-submit svg { animation: wbc-fly .9s var(--ease) infinite; }

/* ── sent ── */
.wbc-done { padding: 34px 10px 18px; text-align: center; outline: none; }
.wbc-done[hidden], .wbc-form[hidden] { display: none; }
.wbc-done-icon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%;
    color: #fff; background: linear-gradient(160deg, var(--brand), var(--brand-hover));
    box-shadow: 0 16px 34px -14px rgb(var(--brand-rgb) / 0.8), 0 0 0 10px rgb(var(--brand-rgb) / 0.08);
    animation: wbc-pop .5s var(--ease) both;
}
.wbc-done h2 { margin-bottom: 8px; font-size: 26px; font-weight: 750; }
.wbc-done p { font-size: 16px; color: #475569; }
.wbc-ref { margin-top: 14px !important; }
.wbc-ref strong { margin-left: 6px; padding: 4px 10px; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: #0F172A; background: rgb(var(--brand-rgb) / 0.10); }
.wbc-again { display: inline-flex !important; margin-top: 22px; padding: 10px 20px !important; text-decoration: none !important; }

/* ── other ways to reach us ── */
.wbc-aside {
    padding: 26px 24px; border-radius: 24px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.5));
    border: 1px solid rgb(255 255 255 / 0.9); box-shadow: 0 1px 0 #fff inset, 0 24px 50px -40px rgb(30 41 59 / 0.4);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.wbc-aside h2 { margin-bottom: 18px; font-size: 19px; font-weight: 750; }
.wbc-ways { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.wbc-ways li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.wbc-way-icon {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
    color: var(--acc-ink); background: rgb(var(--acc-rgb) / 0.11); border: 1px solid rgb(var(--acc-rgb) / 0.2);
    transition: color .3s, background .3s, transform .4s var(--ease), box-shadow .3s;
}
.wbc-ways li:hover .wbc-way-icon { color: #fff; background: linear-gradient(160deg, var(--acc), var(--acc-ink)); border-color: transparent; transform: rotate(-6deg) scale(1.06); box-shadow: 0 10px 22px -10px rgb(var(--acc-rgb) / 0.8); }
.wbc-ways h3 { margin-bottom: 4px; padding-top: 1px; font-size: 16px; font-weight: 700; }
.wbc-ways p { font-size: 14.5px; line-height: 1.55; color: #475569; }
.wbc-ways a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14.5px; font-weight: 650; color: var(--acc-ink); text-decoration: none; }
.wbc-ways a svg { transition: transform .25s var(--ease); }
.wbc-ways a:hover svg { transform: translateX(3px); }
.wbc-ways .wbc-phone { margin-top: 0; font-size: 17px; font-weight: 700; color: #0F172A; font-variant-numeric: tabular-nums; }
.wbc-muted { color: #64748B !important; font-size: 13.5px !important; }
.wbc-privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px !important; padding-top: 18px; border-top: 1px solid rgb(148 163 184 / 0.25); font-size: 13.5px; line-height: 1.55; color: #64748B; }
.wbc-privacy svg { margin-top: 2px; color: #4338CA; }
.wbc-privacy a { color: var(--brand-hover); font-weight: 600; }

@keyframes wbc-drift { to { transform: translate3d(60px, 40px, 0) scale(1.08); } }
@keyframes wbc-shine { to { background-position: 100% 50%; } }
@keyframes wbc-fly { 50% { transform: translate(4px, -3px); opacity: .6; } }
@keyframes wbc-pop { from { transform: scale(.6); opacity: 0; } }

/* ── smaller screens ── */
@media (max-width: 991px) {
    .wbc-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .wbc-hero { padding: 32px 0 22px; }
    .wbc-hero h1 { font-size: 32px; }
    .wbc-lead { font-size: 16.5px; }
    .wbc-card { padding: 22px 18px 20px; border-radius: 20px; }
    .wbc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .wbc-topic-chip { font-size: 14px; padding: 7px 12px 7px 9px; }
    .wbc-actions { flex-direction: column; align-items: stretch; }
    .wbc-submit { justify-content: center; }
    .wbc-aside { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .wbc *, .wbc *::before, .wbc *::after, .wbc-hero::before, .wbc-hero::after { animation: none !important; transition-duration: .01ms !important; }
}
@media print {
    .wbc-form, .wbc-hero::before, .wbc-hero::after { display: none; }
}
