/* Eppetech design system.
   Navy and white with the logo's cyan and yellow as accents. Plus Jakarta Sans for headings,
   Inter for text, generous spacing and soft, rounded surfaces. Component-specific styles live
   next to each component in *.razor.css. */

:root {
    --navy-950: #06111f;
    --navy-900: #0b1b33;
    --navy-800: #132a4c;
    --navy-700: #1e3a63;
    --blue-700: #0852a3;
    --blue-600: #0a66c9;
    --blue-500: #2b7fe0;
    --blue-50: #eef5fd;
    --cyan-500: #13b4d8;
    --cyan-100: #e3f6fb;
    --yellow-400: #ffc61a;
    --yellow-300: #ffd456;
    --yellow-100: #fff5d1;

    --ink: #0b1b33;
    --text: #334155;
    --muted: #5f6c80;
    --line: #e3e8ef;
    --line-strong: #c9d2de;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --surface-3: #edf1f6;
    --success: #12704e;
    --success-bg: #e6f4ee;
    --danger: #b42318;
    --danger-bg: #fdeeed;
    --warning-bg: #fff6db;

    --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-heading: var(--font-display);
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(11, 27, 51, .06);
    --shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 8px 24px rgba(11, 27, 51, .07);
    --shadow-lg: 0 2px 6px rgba(11, 27, 51, .06), 0 24px 56px rgba(11, 27, 51, .16);

    --container: 1200px;
    --gutter: 24px;
    --header-h: 76px;
    --focus: 0 0 0 2px #fff, 0 0 0 4px var(--blue-600);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 480px) {
    :root { --gutter: 16px; --header-h: 64px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

html.scroll-locked { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-weight: 700;
    text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
/* Blazor moves focus to the page heading after navigation for screen readers; it needs no visible ring */
h1:focus, h1:focus-visible, main:focus { outline: none; box-shadow: none; }

::selection { background: var(--cyan-100); color: var(--ink); }

.mono { font-family: var(--font-mono); font-size: .85em; letter-spacing: 0; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--surface-2); }
.section-navy {
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(19, 180, 216, .16), transparent 60%),
        radial-gradient(700px 380px at 0% 110%, rgba(10, 102, 201, .22), transparent 60%),
        var(--navy-900);
    color: #b9c6d8;
}
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-navy .section-head p { color: #a9b8cc; }
.section-head-row {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head-row .section-head { margin-bottom: 0; }

/* Small label above headings */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--cyan-500); }
.section-navy .eyebrow, .page-header-navy .eyebrow { color: var(--cyan-500); }
.section-head-center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.075rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.65; }

/* Emphasis inside a heading */
.mark { color: var(--blue-600); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.stack > * + * { margin-top: 12px; }

/* Numbered list with quiet dividers */
.index-list { list-style: none; margin: 0; padding: 0; counter-reset: idx; }
.index-list > li {
    counter-increment: idx;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.index-list > li:first-child { padding-top: 0; }
.index-list > li:last-child { border-bottom: 0; }
.index-list > li::before {
    content: counter(idx, decimal-leading-zero);
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--blue-50);
    font-size: .8rem;
    font-weight: 700;
    color: var(--blue-600);
}
.index-list h3 { margin-bottom: 4px; }
.index-list p { margin: 0; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
    --btn-bg: var(--ink);
    --btn-fg: #fff;
    --btn-border: var(--btn-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .975rem;
    letter-spacing: -.005em;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s var(--ease);
    white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn-primary { --btn-bg: var(--blue-600); }
.btn-primary:hover { --btn-bg: var(--blue-700); box-shadow: 0 8px 20px rgba(10, 102, 201, .25); }

.btn-dark { --btn-bg: var(--ink); }
.btn-dark:hover { --btn-bg: var(--navy-700); }

.btn-accent { --btn-bg: var(--yellow-400); --btn-fg: var(--ink); }
.btn-accent:hover { --btn-bg: var(--yellow-300); box-shadow: 0 8px 20px rgba(255, 198, 26, .3); }

.btn-blue { --btn-bg: var(--blue-600); }
.btn-blue:hover { --btn-bg: var(--blue-700); }

.btn-outline { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn-outline:hover { --btn-border: var(--ink); --btn-fg: var(--ink); }

.btn-ghost-light { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .14); --btn-border: rgba(255, 255, 255, .5); }

.btn-whatsapp { --btn-bg: #128c4a; --btn-fg: #fff; }
.btn-whatsapp:hover { --btn-bg: #0b6b38; }

.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; border-radius: var(--radius-sm); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; text-decoration: none; color: var(--blue-600);
}
.link-arrow:hover { color: var(--blue-700); }
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .18s var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(3px); }
.section-navy .link-arrow { color: var(--cyan-500); }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Badges ---------- */

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-3);
    font-size: .74rem; font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.5;
    color: var(--muted);
    white-space: nowrap;
}
.badge-live { color: var(--success); background: var(--success-bg); }
.badge-dev { color: #8a5d00; background: var(--yellow-100); }
.badge-soon { color: var(--blue-700); background: var(--blue-50); }
.badge-service { color: var(--navy-700); background: var(--surface-3); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 2.5vw, 30px);
    box-shadow: var(--shadow-sm);
}
.card-link {
    display: block; text-decoration: none; color: inherit;
    transition: border-color .2s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.card-link:hover { color: inherit; border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* Icon in a soft rounded square */
.icon-tile {
    display: inline-grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue-600);
    margin-bottom: 18px;
}
.icon-tile .icon { width: 24px; height: 24px; }
.section-navy .icon-tile { background: rgba(19, 180, 216, .12); color: var(--cyan-500); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .2em;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a66c9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-navy .check-list li::before, .check-list-light li::before {
    background-color: rgba(19, 180, 216, .14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313b4d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
}

/* ---------- Product image plate: white product shots blend into a soft neutral ---------- */

.product-tile {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
    border-radius: var(--radius);
    overflow: hidden;
}
.product-tile img {
    width: auto; height: auto;
    max-width: 76%; max-height: 80%;
    mix-blend-mode: multiply;
    object-fit: contain;
}
.product-placeholder {
    display: grid; place-items: center; gap: 6px;
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
    padding: 12px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    width: 70%;
    aspect-ratio: 4 / 3;
}

/* ---------- Page header for inner pages ---------- */

.page-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(800px 360px at 100% 0%, rgba(19, 180, 216, .10), transparent 60%),
        linear-gradient(180deg, var(--surface-2), var(--surface));
    border-bottom: 1px solid var(--line);
    padding: clamp(32px, 4vw, 52px) 0 clamp(44px, 6vw, 72px);
}
.page-header h1 { margin-bottom: 16px; max-width: 22ch; }
.page-header .lead { max-width: 680px; margin: 0; }
.page-header-navy {
    background:
        radial-gradient(900px 420px at 90% -20%, rgba(19, 180, 216, .2), transparent 60%),
        radial-gradient(700px 380px at -10% 120%, rgba(10, 102, 201, .28), transparent 60%),
        var(--navy-900);
    border-bottom: 0;
}
.page-header-navy h1 { color: #fff; }
.page-header-navy .lead { color: #b2c0d3; }

.category-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.category-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600; font-size: .92rem;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.category-pill:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.category-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.category-pill .icon { width: 18px; height: 18px; }
.pill-count { font-size: .76rem; color: var(--muted); font-weight: 500; }
.category-pill.active .pill-count { color: #aebbd0; }

/* Wide photograph directly under a page header */
.banner-photo { margin: 0; background: var(--surface-2); }
.banner-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    object-position: 50% 50%;
}
@media (max-width: 760px) {
    .banner-photo img { aspect-ratio: 16 / 9; }
}

/* ---------- Detail pages (services, industries) ---------- */

.detail-actions { margin-top: 28px; }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}
.detail-main > h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 26ch; }
.detail-copy { font-size: 1.06rem; color: var(--text); max-width: 68ch; }
.detail-subhead { margin-top: 48px; font-size: 1.5rem !important; }

.offering-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.offering {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.offering h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.offering h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan-500); }
.offering p { margin: 0; color: var(--muted); font-size: .94rem; }

.detail-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.aside-panel h2 { font-size: 1.05rem; margin-bottom: 16px; }
.aside-panel .check-list { font-size: .95rem; }
.aside-dark {
    background:
        radial-gradient(260px 180px at 100% 0%, rgba(19, 180, 216, .22), transparent 70%),
        var(--navy-900);
    border-color: transparent;
    color: #dbe4ef;
}
.aside-dark h2 { color: #fff; }
.aside-dark .check-list li::before {
    background-color: rgba(19, 180, 216, .14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313b4d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
}
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside-links a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
}
.aside-links a:hover { background: var(--surface); color: var(--blue-600); }
.aside-links .icon { color: var(--blue-600); width: 20px; height: 20px; }

@media (max-width: 960px) {
    .detail-layout { grid-template-columns: minmax(0, 1fr); }
    .detail-aside { position: static; }
}
@media (max-width: 600px) {
    .offering-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Alerts ---------- */

.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: .96rem;
}
.alert p:last-child { margin: 0; }
.alert-success { background: var(--success-bg); color: #0d553c; }
.alert-danger { background: var(--danger-bg); color: #8a1c13; }
.alert-info { background: var(--cyan-100); color: #08495a; }
.alert-warning { background: var(--warning-bg); color: #6b4d00; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.outcome {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: clamp(22px, 3vw, 32px);
    border-radius: var(--radius-lg);
    background: var(--success-bg);
}
.outcome:focus { outline: none; }
.outcome h2 { font-size: 1.6rem; margin-bottom: 8px; }
.outcome p { color: var(--text); }
.outcome-icon {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--success); color: #fff;
}
.outcome-ref { font-size: 1.05rem; }
.outcome-ref strong { font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- Form panels ---------- */

.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(22px, 3vw, 36px);
}
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section-title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 18px; }
.form-step {
    display: inline-grid; place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue-50);
    font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--blue-600);
    letter-spacing: 0;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.form-privacy { font-size: .88rem; color: var(--muted); margin: 0; max-width: 460px; }
.spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms (native + DevExpress editors) ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field-label {
    font-weight: 600; font-size: .92rem; color: var(--ink);
}
.field .req { color: var(--danger); margin-left: 2px; }
.field-hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.validation-message { color: var(--danger); font-size: .86rem; }
.validation-errors { margin: 0 0 16px; padding: 12px 16px 12px 32px; background: var(--danger-bg); color: #8a1c13; font-size: .92rem; border-radius: var(--radius-sm); }

.native-input, .native-select, .native-textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.native-input:focus, .native-select:focus, .native-textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(10, 102, 201, .14); }

/* Keep DevExpress editors aligned with the site's controls */
.field .dxbl-text-edit, .field .dxbl-memo-edit, .field .dxbl-combobox, .field .dxbl-spin-edit { width: 100%; }
.field .dxbl-text-edit { min-height: 46px; }
.dxbl-text-edit, .dxbl-btn { border-radius: var(--radius-sm) !important; }
.invalid .dxbl-text-edit, .dxbl-text-edit.invalid { border-color: var(--danger) !important; }

.fieldset-reset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset-reset legend { padding: 0; margin-bottom: 6px; }
.choice-group { padding: 4px 0; }
.form-feedback { margin-bottom: 24px; }

.file-input {
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font: inherit;
    font-size: .92rem;
    cursor: pointer;
}
.file-input:hover { border-color: var(--blue-600); }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: .92rem; }
.file-remove { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.file-remove:hover { background: var(--danger-bg); color: var(--danger); }

/* Disclosure lists for help articles and FAQs */
.disclosures { display: grid; gap: 10px; }
.disclosure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.disclosure[open] { box-shadow: var(--shadow-sm); }
.disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
    content: "";
    flex: none;
    width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a66c9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 20px no-repeat;
    transition: transform .2s var(--ease);
}
.disclosure[open] summary::after { transform: rotate(180deg); }
.disclosure summary:hover { color: var(--blue-700); }
.disclosure summary:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-600); }
.disclosure .article-body { padding: 0 20px 22px; max-width: 72ch; }
.article-body { color: var(--text); }
.article-body ol { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.article-body p:last-child { margin-bottom: 0; }

/* Honeypot: hidden from people and assistive tech, still present for bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Lift the floating WhatsApp button above the comparison bar when it's showing */
body:has(.compare-bar) .wa-float { bottom: 84px; }

/* ---------- DevExpress popups (rendered outside component scope) ---------- */

.gallery-zoomed { display: grid; place-items: center; background: var(--surface-2); padding: 24px; }
.gallery-zoomed img { width: 100%; max-width: 440px; height: auto; mix-blend-mode: multiply; }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Blazor reconnect / error UI */
#blazor-error-ui {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    padding: 12px 20px;
    background: var(--warning-bg);
    color: var(--ink);
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 10px; }
