/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
    --dcf-sidebar-width: 240px;
    --dcf-sidebar-bg: #0f172a;
    --dcf-sidebar-hover: rgba(255,255,255,0.07);
    --dcf-sidebar-active: rgba(37,99,235,0.18);
    --dcf-sidebar-active-text: #93c5fd;
    --dcf-accent: #2563eb;
    --dcf-accent-light: #eff6ff;
    --dcf-content-bg: #f1f5f9;
    --dcf-card-bg: #ffffff;
    --dcf-border: #e2e8f0;
    --dcf-text: #0f172a;
    --dcf-muted: #64748b;
    --dcf-success: #16a34a;
    --dcf-success-bg: #f0fdf4;
    --dcf-warning: #d97706;
    --dcf-warning-bg: #fffbeb;
    --dcf-danger: #dc2626;
    --dcf-danger-bg: #fef2f2;
    --dcf-radius: 0.75rem;
    --dcf-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --dcf-shadow-md: 0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
    /* Form theming tokens — overridden per-form via inline style */
    --dcf-secondary: var(--dcf-accent);
    --dcf-btn-radius: 0.375rem;
    --dcf-form-bg: var(--dcf-content-bg);
    --dcf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --dcf-logo-justify: flex-start;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    background: var(--dcf-content-bg);
    color: var(--dcf-text);
    margin: 0;
    padding: 0;
}

/* Only show focus rings during keyboard navigation, not on mouse/page-load focus */
*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* ── Page header ────────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dcf-text);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--dcf-muted);
    margin: 0.25rem 0 0;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.dcf-card {
    background: var(--dcf-card-bg);
    border-radius: var(--dcf-radius);
    border: 1px solid var(--dcf-border);
    box-shadow: var(--dcf-shadow);
    padding: 1.5rem;
    position: relative;
}

/* Stat cards */
.dcf-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    cursor: default;
}

.dcf-stat:hover {
    box-shadow: var(--dcf-shadow-md);
    transform: translateY(-1px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--dcf-text);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dcf-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.65em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-active    { background: var(--dcf-success-bg); color: var(--dcf-success); }
.status-suspended { background: var(--dcf-warning-bg); color: var(--dcf-warning); }
.status-archived  { background: #f1f5f9; color: #64748b; }

/* ── Table ──────────────────────────────────────────────────────────────── */
.dcf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dcf-table thead th {
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dcf-muted);
    border-bottom: 1px solid var(--dcf-border);
    white-space: nowrap;
}

.dcf-table tbody td {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dcf-table tbody tr:last-child td { border-bottom: none; }
.dcf-table tbody tr:hover td { background: #f8fafc; }

.dcf-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.dcf-sort-button:hover,
.dcf-sort-button:focus {
    color: var(--dcf-accent);
}

.dcf-sort-button:focus-visible {
    outline: 2px solid var(--dcf-accent);
    outline-offset: 0.2rem;
}

.dcf-sort-indicator {
    font-size: 0.7rem;
    line-height: 1;
}

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.filter-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dcf-muted);
    pointer-events: none;
    font-size: 0.875rem;
}

.filter-search-input { padding-left: 2.25rem !important; }

/* ── Utilities ──────────────────────────────────────────────────────────── */
a, .btn-link { color: var(--dcf-accent); }

.btn-primary {
    background: var(--dcf-accent);
    border-color: var(--dcf-accent);
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    border-color: var(--dcf-accent);
    outline: none;
}

.font-monospace { font-family: "SFMono-Regular", Consolas, monospace; }

.tenant-branding-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--dcf-border);
    border-left: 4px solid var(--dcf-accent);
    border-radius: var(--dcf-radius);
    background: var(--dcf-surface, #f8fafc);
}

.tenant-branding-preview-logo,
.tenant-branding-preview-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--dcf-border);
    flex-shrink: 0;
}

.tenant-branding-preview-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dcf-accent);
    font-size: 1.5rem;
}

/* ── Blazor error / validation ──────────────────────────────────────────── */
#blazor-error-ui {
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    bottom: 0;
    box-sizing: border-box;
    color: var(--dcf-danger);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--dcf-success); }
.invalid { outline: 1px solid var(--dcf-danger); }
.validation-message { color: var(--dcf-danger); font-size: 0.8125rem; }

.blazor-error-boundary {
    background: #fef2f2;
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--dcf-danger);
    border-radius: var(--dcf-radius);
}

.blazor-error-boundary::after { content: "An error has occurred." }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
}


/* ── Status badges ──────────────────────────────────────────────────────── */
.dcf-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.65em;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    background: var(--dcf-border);
    color: var(--dcf-text);
}
.dcf-badge-success  { background: var(--dcf-success-bg);  color: var(--dcf-success); }
.dcf-badge-warning  { background: var(--dcf-warning-bg);  color: var(--dcf-warning); }
.dcf-badge-danger   { background: var(--dcf-danger-bg);   color: var(--dcf-danger);  }
.dcf-badge-secondary{ background: #f1f5f9;                color: var(--dcf-muted);   }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.dcf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--dcf-card-bg);
    border-radius: var(--dcf-radius);
    border: 2px dashed var(--dcf-border);
    text-align: center;
}
.dcf-empty-icon {
    font-size: 2.5rem;
    opacity: .35;
}

/* ── Button micro-variants ───────────────────────────────────────────────── */
.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.25;
    border-radius: 0.375rem;
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--dcf-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.btn-icon:hover:not(:disabled) { background: var(--dcf-border); color: var(--dcf-text); }
.btn-icon:disabled              { opacity: .35; cursor: default; }
.btn-icon-danger                { color: var(--dcf-danger); }
.btn-icon-danger:hover:not(:disabled) { background: var(--dcf-danger-bg); color: var(--dcf-danger); }

/* ── Form Editor ─────────────────────────────────────────────────────────── */
.fe-topbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--dcf-card-bg);
    border: 1px solid var(--dcf-border);
    border-radius: var(--dcf-radius);
    padding: .75rem 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.fe-back-btn {
    display: inline-flex;
    align-items: center;
    font-size: .85rem;
    color: var(--dcf-muted);
    text-decoration: none;
    white-space: nowrap;
    padding: .35rem .6rem;
    border-radius: .4rem;
    transition: background .15s, color .15s;
}
.fe-back-btn:hover { background: var(--dcf-border); color: var(--dcf-text); }
.fe-title-input {
    flex: 1;
    min-width: 180px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dcf-text);
    background: transparent;
    padding: .25rem 0;
}
.fe-title-input:focus { border-bottom: 2px solid var(--dcf-accent); }
.fe-topbar-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.fe-section-card {
    background: var(--dcf-card-bg);
    border: 1px solid var(--dcf-border);
    border-radius: var(--dcf-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--dcf-shadow);
}
.fe-section-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--dcf-border);
}
.fe-section-header-ro {
    display: flex;
    align-items: center;
    padding: .85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--dcf-border);
}
.fe-section-icon { color: var(--dcf-muted); }
.fe-section-title-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .9rem;
    font-weight: 600;
    background: transparent;
    color: var(--dcf-text);
}
.fe-section-title-input:focus { border-bottom: 2px solid var(--dcf-accent); }

.fe-fields-list { padding: .5rem 0; }
.fe-section-empty {
    padding: 1.25rem 1.5rem;
    color: var(--dcf-muted);
    font-size: .875rem;
    font-style: italic;
}
.fe-section-footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid var(--dcf-border);
    background: #fafafa;
}

/* ── Page break divider (multi-page editor) ─────────────────────────────── */
.fe-page-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    padding: .5rem 0;
    color: var(--dcf-accent);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.fe-page-divider::before,
.fe-page-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--dcf-accent), var(--dcf-border));
    opacity: .5;
    border-radius: 9999px;
}
.fe-page-divider::before {
    background: linear-gradient(to left, var(--dcf-accent), var(--dcf-border));
}
.fe-page-divider-label {
    flex-shrink: 0;
    background: var(--dcf-accent-light);
    color: var(--dcf-accent);
    padding: .2em .8em;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
}

.fe-field-row {
    border-bottom: 1px solid var(--dcf-border);
    transition: background .15s, box-shadow .15s;
}
.fe-field-row:last-child { border-bottom: none; }
.fe-field-row:hover { background: #fafafa; }
.fe-field-row.fe-field-active {
    background: #f8fbff;
    box-shadow: inset 4px 0 0 var(--dcf-accent);
}
.fe-field-row.fe-field-active:hover { background: var(--dcf-accent-light); }
.fe-field-row-ro {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1.25rem;
    border-bottom: 1px solid var(--dcf-border);
    font-size: .875rem;
}
.fe-field-row-ro:last-child { border-bottom: none; }

.fe-field-summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    cursor: default;
}
.fe-field-type-icon { font-size: .9rem; flex-shrink: 0; }
.fe-field-label { font-size: .875rem; font-weight: 500; }
.fe-field-type-badge {
    display: inline-block;
    font-size: .7rem;
    padding: .1em .5em;
    border-radius: .25rem;
    background: var(--dcf-border);
    color: var(--dcf-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}
.fe-field-editing .fe-field-summary {
    background: var(--dcf-accent-light);
    border-bottom: 1px solid var(--dcf-border);
}
.fe-field-active .fe-field-summary {
    background: var(--dcf-accent-light);
}
.fe-field-row.fe-field-new {
    animation: fe-new-field-border 2.4s ease-out 1;
}
.fe-field-row.fe-field-new .fe-field-summary {
    animation: fe-new-field-summary 2.4s ease-out 1;
}
.fe-field-editor {
    padding: 1rem 1.25rem 1.25rem;
    background: #fafcff;
    border-top: 1px solid var(--dcf-border);
}

@keyframes fe-new-field-border {
    0%, 65% { box-shadow: inset 5px 0 0 var(--dcf-accent), 0 0 0 .25rem rgba(37, 99, 235, .18); }
    100% { box-shadow: inset 4px 0 0 var(--dcf-accent); }
}

@keyframes fe-new-field-summary {
    0%, 65% { background: #dbeafe; }
    100% { background: var(--dcf-accent-light); }
}

/* ── Field type picker grid ──────────────────────────────────────────────── */
.fe-type-categories {
    display: grid;
    gap: 1rem;
}
.fe-type-category {
    padding: .85rem;
    border: 1px solid var(--dcf-border);
    border-radius: .65rem;
    background: #fafcff;
}
.fe-type-category-title {
    margin: 0 0 .65rem;
    color: var(--dcf-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.fe-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .65rem;
}
.fe-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .9rem .5rem;
    border: 1px solid var(--dcf-border);
    border-radius: .5rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.fe-type-card:hover {
    border-color: var(--dcf-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    background: var(--dcf-accent-light);
}
.fe-type-card-icon { font-size: 1.4rem; line-height: 1; }
.fe-type-card-label { font-size: .75rem; font-weight: 500; color: var(--dcf-text); text-align: center; }


/* ── Dashboard stat cards ────────────────────────────────────────────────── */
.dashboard-stat-card {
    transition: box-shadow .2s, transform .15s;
    cursor: pointer;
}
.dashboard-stat-card:hover {
    box-shadow: var(--dcf-shadow-md);
    transform: translateY(-2px);
}
.dashboard-stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--dcf-text);
}
.dashboard-stat-label {
    font-size: .8rem;
    font-weight: 500;
    color: var(--dcf-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: .25rem;
}


/* ── Public Layout ───────────────────────────────────────────────────────── */
.public-form-header {
    display: flex;
    align-items: center;
    padding: .75rem 1.5rem;
    border-bottom: 1px solid var(--dcf-border);
    background: #fff;
    font-size: .95rem;
    color: var(--dcf-text);
}

.public-form-main {
    min-height: calc(100vh - 53px - 56px);
    background: var(--dcf-content-bg);
    padding: 2rem 1rem 4rem;
}

.public-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.6rem;
    padding: 0.9rem 1.5rem;
    background: #fff;
    border-top: 1px solid var(--dcf-border);
    font-size: 0.78rem;
    color: var(--dcf-text-muted, #6c757d);
    text-align: center;
}

.public-form-footer-brand {
    font-weight: 600;
    color: var(--dcf-text);
}

.public-form-footer-sep {
    color: var(--dcf-border);
}

.public-form-footer-link {
    color: var(--dcf-accent);
    text-decoration: none;
}

    .public-form-footer-link:hover {
        text-decoration: underline;
    }

.public-form-footer-note {
    width: 100%;
    text-align: center;
    font-size: 0.73rem;
    color: var(--dcf-text-muted, #6c757d);
    margin-top: 0.15rem;
}

/* ── Public Form Shell ───────────────────────────────────────────────────── */
.pf-shell {
    max-width: 680px;
    margin: 0 auto;
    font-family: var(--dcf-font);
}

/* Apply button radius to all buttons inside a public form */
.pf-shell .btn {
    border-radius: var(--dcf-btn-radius, 0.375rem);
}

.pf-form-header {
    background: var(--dcf-accent);
    border-radius: var(--dcf-radius) var(--dcf-radius) 0 0;
    padding: 2rem 2rem 1.5rem;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pf-brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: var(--dcf-logo-justify, flex-start);
}

.pf-brand-logo {
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
    border-radius: 0.375rem;
    background: rgba(255,255,255,.95);
    padding: 0.25rem;
}

.pf-brand-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
}

.pf-lang-switcher {
    display: flex;
    gap: .25rem;
    flex-shrink: 0;
    margin-top: .25rem;
}

.pf-lang-btn {
    padding: .2em .6em;
    border-radius: .4rem;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    line-height: 1.6;
}

    .pf-lang-btn:hover {
        background: rgba(255,255,255,.25);
        color: #fff;
    }

.pf-lang-active {
    color: var(--dcf-accent);
    background: #fff;
    border-color: #fff;
    cursor: default;
}

    .pf-lang-active:hover {
        background: #fff;
        color: var(--dcf-accent);
    }

.pf-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.pf-section {
    background: var(--dcf-card-bg);
    border: 1px solid var(--dcf-border);
    border-top: none;
    padding: 1.5rem 2rem;
}

.pf-section:last-of-type {
    border-radius: 0 0 var(--dcf-radius) var(--dcf-radius);
}

.pf-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dcf-secondary);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1.25rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--dcf-border);
}

.pf-field {
    margin-bottom: 1.25rem;
}

.pf-field:last-child {
    margin-bottom: 0;
}

.pf-field-invalid .form-control,
.pf-field-invalid .form-select {
    border-color: var(--dcf-danger);
}

.pf-label {
    display: block;
    font-weight: 500;
    font-size: .9rem;
    margin-bottom: .35rem;
    color: var(--dcf-text);
}

.pf-required {
    color: var(--dcf-danger);
    font-weight: 700;
}

.pf-help {
    font-size: .8rem;
    color: var(--dcf-muted);
    margin-bottom: .4rem;
}

.pf-validation-msg {
    font-size: .8rem;
    color: var(--dcf-danger);
    margin-top: .25rem;
}

.pf-radio-group,
.pf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.pf-checkbox-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pf-pill-option {
    margin: 0;
}

.pf-pill-option .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-pill-option .form-check-label {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: .4rem .75rem;
    border: 1px solid var(--dcf-border);
    border-radius: 999px;
    background: #fff;
    color: var(--dcf-text);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s, color .15s;
}

.pf-pill-option .form-check-input:checked + .form-check-label {
    border-color: var(--dcf-accent);
    background: var(--dcf-accent);
    color: #fff;
}

.pf-pill-option .form-check-input:focus-visible + .form-check-label {
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .25);
}

.pf-rating-scale {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pf-nps-scale {
    display: grid;
    gap: .3rem;
}

.pf-nps-scale .pf-rating-scale {
    flex-wrap: nowrap;
    gap: .25rem;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .15rem .1rem .4rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.pf-nps-option {
    flex: 0 0 auto;
    margin-right: 0;
    scroll-snap-align: start;
}

.pf-nps-option .form-check-label {
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 .4rem;
}

.pf-rating-option {
    margin: 0;
}

.pf-rating-option .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-rating-option .form-check-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .65rem;
    border: 1px solid var(--dcf-border);
    border-radius: 999px;
    background: #fff;
    color: var(--dcf-text);
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s, color .15s;
}

.pf-rating-option .form-check-input:checked + .form-check-label {
    border-color: var(--dcf-accent);
    background: var(--dcf-accent);
    color: #fff;
}

.pf-rating-option .form-check-input:focus-visible + .form-check-label {
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .25);
}

.pf-nps-labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--dcf-muted);
    font-size: .8rem;
}

.pf-slider-scale {
    display: grid;
    gap: .35rem;
}

.pf-slider-value {
    justify-self: center;
    min-width: 2.25rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: var(--dcf-accent);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
}

.pf-slider-labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--dcf-muted);
    font-size: .8rem;
}

.pf-image-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .75rem;
}

.pf-image-choice-option {
    position: relative;
}

.pf-image-choice-option .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-image-choice-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 100%;
    border: 1px solid var(--dcf-border);
    border-radius: .65rem;
    background: #fff;
    padding: .6rem;
    color: var(--dcf-text);
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.pf-image-choice-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: .45rem;
    background: #f8fafc;
}

.pf-image-choice-card span {
    line-height: 1.3;
}

.pf-image-choice-option .form-check-input:checked + .pf-image-choice-card {
    border-color: var(--dcf-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
    background: var(--dcf-accent-light);
}

.pf-image-choice-option .form-check-input:focus-visible + .pf-image-choice-card {
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .25);
}

.pf-consent {
    background: var(--dcf-accent-light);
    border: 1px solid #bfdbfe;
    border-radius: .5rem;
    padding: .75rem 1rem;
}

.pf-consent.form-check {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding-left: 0;
}

.pf-consent .form-check-input {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: .125rem;
    cursor: pointer;
    border-width: 2px;
}

.pf-consent .form-check-label {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    padding-top: .125rem;
}

@media (max-width: 767.98px) {
    .pf-consent .form-check-input {
        width: 1.75rem;
        height: 1.75rem;
        margin-top: .1rem;
    }
}

.pf-static-content {
    background: #f8fafc;
    border-left: 3px solid var(--dcf-accent);
    border-radius: 0 .4rem .4rem 0;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    color: var(--dcf-text);
}

/* ── Matrix / Grid field ──────────────────────────────────────────────────── */

.pf-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pf-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.pf-matrix th,
.pf-matrix td {
    border: 1px solid var(--dcf-border);
    padding: .5rem .75rem;
    text-align: center;
    vertical-align: middle;
}

.pf-matrix thead th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: .825rem;
    color: #475569;
}

.pf-matrix tbody tr:nth-child(even) {
    background: #f8fafc;
}

.pf-matrix-row-label {
    text-align: left !important;
    font-weight: 500;
    min-width: 10rem;
    white-space: nowrap;
}

.pf-matrix .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    margin: 0;
}

/* ── Ranking field ────────────────────────────────────────────────────────── */
.pf-ranking {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pf-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.4rem;
    background: #fff;
    border: 1px solid var(--dcf-border);
    border-radius: 0.5rem;
    transition: background 0.12s, box-shadow 0.12s;
    user-select: none;
}

.pf-ranking-item:hover {
    background: var(--dcf-accent-light);
}

.pf-ranking-item.pf-ranking-dragging {
    opacity: 0.35;
    background: var(--dcf-accent-light);
    box-shadow: 0 0 0 2px var(--dcf-accent);
}

.pf-ranking-handle {
    color: var(--dcf-muted);
    cursor: grab;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 0.1rem;
    font-size: 1.1rem;
    line-height: 1;
}

.pf-ranking-handle:active {
    cursor: grabbing;
}

.pf-ranking-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dcf-muted);
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
}

.pf-ranking-label {
    flex: 1;
    font-size: 0.95rem;
}

.pf-ranking-btns {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.pf-ranking-btn {
    background: none;
    border: 1px solid var(--dcf-border);
    border-radius: 0.25rem;
    padding: 0.1rem 0.35rem;
    line-height: 1;
    color: var(--dcf-muted);
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.1s, color 0.1s;
}

.pf-ranking-btn:hover:not(:disabled) {
    background: var(--dcf-accent);
    color: #fff;
    border-color: var(--dcf-accent);
}

.pf-ranking-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pf-card {
    background: var(--dcf-card-bg);
    border-radius: var(--dcf-radius);
    border: 1px solid var(--dcf-border);
    padding: 2rem;
}

.pf-icon {
    font-size: 3rem;
    display: block;
}

.pf-confirmation-message {
    white-space: pre-line;
}

.pf-submit-row {
    background: var(--dcf-card-bg);
    border: 1px solid var(--dcf-border);
    border-top: 2px solid var(--dcf-accent);
    border-radius: 0 0 var(--dcf-radius) var(--dcf-radius);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pf-submit-btn {
    min-width: 120px;
}

.pf-required-note {
    font-size: .8rem;
    color: var(--dcf-muted);
}

/* ── Multi-page progress bar ─────────────────────────────────────────────── */
.pf-progress {
    background: var(--dcf-card-bg);
    border: 1px solid var(--dcf-border);
    border-top: none;
    padding: .75rem 2rem;
}

.pf-progress-track {
    height: 6px;
    background: var(--dcf-border);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: .4rem;
}

.pf-progress-fill {
    height: 100%;
    background: var(--dcf-secondary);
    border-radius: 9999px;
    transition: width .3s ease;
}

.pf-progress-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--dcf-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}


/* ── Response table ──────────────────────────────────────────────────────── */
.response-table-wrap { overflow: hidden; }

.response-table th.col-submitted { width: 150px; white-space: nowrap; }
.response-table th.col-field     { min-width: 120px; max-width: 220px; }
.response-table th.col-action    { width: 80px; }

.response-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .875rem;
    color: var(--dcf-text);
}

/* ── Response detail ─────────────────────────────────────────────────────── */
.response-detail-list {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    gap: .25rem .75rem;
    margin: 0;
}

.response-detail-label {
    font-weight: 600;
    font-size: .85rem;
    color: var(--dcf-muted);
    padding: .5rem 0 .25rem;
    border-top: 1px solid var(--dcf-border);
    align-self: start;
}

.response-detail-value {
    font-size: .9rem;
    color: var(--dcf-text);
    padding: .5rem 0 .25rem;
    border-top: 1px solid var(--dcf-border);
    word-break: break-word;
    margin-bottom: 0;
}

.response-detail-list dt:first-child,
.response-detail-list dd:first-of-type {
    border-top: none;
}


/* ── Honeypot (bot trap) ─────────────────────────────────────────────────── */
/* Off-screen, not display:none — some bots detect that */
.pf-honeypot-wrap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.pf-honeypot {
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
}


/* ── Form preview banner ─────────────────────────────────────────────────── */
.preview-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1a56db;
    color: #fff;
    padding: .625rem 1rem;
    font-size: .875rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.preview-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.preview-shell {
    margin-top: 0;
    padding-top: 1.5rem;
}

.preview-submit-note {
    color: var(--dcf-muted);
    font-size: .8rem;
}

/* ── Power Automate sample JSON panel ───────────────────────────────────── */

.pa-sample-json {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    font-size: .78rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
    max-height: 340px;
    overflow-y: auto;
}

.pa-copy-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    font-size: .75rem;
    padding: .25rem .6rem;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.25);
    color: #e2e8f0;
}

.pa-copy-btn:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.4);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Landing page  (Home.razor / LandingLayout)
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-page {
    /* Override the default dcf-content-bg grey so the landing page shows
       section backgrounds cleanly */
    background: #fff;
}

/* ── Shared container ─────────────────────────────────────────────────────── */
.ln-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.ln-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ln-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.35rem 1.5rem;
    min-height: 6.5rem;
    display: flex;
    align-items: center;
    gap: 2.25rem;
    transition: padding 0.25s ease, min-height 0.25s ease, gap 0.25s ease;
}

.ln-nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.ln-nav-logo {
    height: 68px;
    width: auto;
    transition: height 0.25s ease;
}

.ln-nav-wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.ln-nav-links {
    display: flex;
    gap: 1.75rem;
    flex: 1;
}

.ln-nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s, font-size 0.25s ease;
}

.ln-nav-link:hover {
    color: #fff;
}

.ln-nav-signin {
    flex-shrink: 0;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    transition: font-size 0.25s ease, padding 0.25s ease;
}

.ln-nav.ln-nav-compact {
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.ln-nav.ln-nav-compact .ln-nav-inner {
    padding: 0.9rem 1.5rem;
    min-height: 0;
    gap: 2rem;
}

.ln-nav.ln-nav-compact .ln-nav-logo {
    height: 34px;
}

.ln-nav.ln-nav-compact .ln-nav-link {
    font-size: 0.9rem;
}

.ln-nav.ln-nav-compact .ln-nav-signin {
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.ln-hero {
    background: #0f172a;
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem 5rem;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

.ln-hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.18;
}

.ln-hero-glow-left {
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    top: -200px;
    left: -200px;
}

.ln-hero-glow-right {
    background: radial-gradient(circle, #6366f1, transparent 70%);
    bottom: -200px;
    right: -200px;
}

.ln-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ln-hero-content {
    color: #fff;
}

.ln-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37,99,235,0.18);
    border: 1px solid rgba(37,99,235,0.35);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.ln-hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.35);
    animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(59,130,246,0.35); }
    50%       { box-shadow: 0 0 0 5px rgba(59,130,246,0.0); }
}

.ln-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #fff;
}

.ln-hero-accent {
    background: linear-gradient(90deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ln-hero-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    margin-bottom: 2.25rem;
}

.ln-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.ln-btn-hero {
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: 0.55rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}

/* ── Hero card-stack graphic ──────────────────────────────────────────────── */
.ln-hero-card-stack {
    position: relative;
    height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ln-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    width: 280px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.2);
    transform: rotate(-2deg) translateY(-10px);
    position: relative;
    z-index: 2;
}

.ln-fc-topbar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2563eb, #6366f1);
    margin-bottom: 1.25rem;
}

.ln-fc-label {
    height: 10px;
    border-radius: 3px;
    background: #e2e8f0;
    width: 45%;
    margin-bottom: 0.4rem;
}

.ln-fc-label-sm {
    width: 30%;
    margin-top: 0.75rem;
}

.ln-fc-input {
    height: 34px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    margin-bottom: 0.75rem;
}

.ln-fc-input-half {
    flex: 1;
    margin-bottom: 0;
}

.ln-fc-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ln-fc-check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ln-fc-check {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1.5px solid #cbd5e1;
    flex-shrink: 0;
}

.ln-fc-check-active {
    background: #2563eb;
    border-color: #2563eb;
}

.ln-fc-check-label {
    height: 9px;
    border-radius: 3px;
    background: #e2e8f0;
    flex: 1;
}

.ln-fc-check-label-active {
    background: #bfdbfe;
}

.ln-fc-btn {
    height: 34px;
    border-radius: 6px;
    background: linear-gradient(90deg, #2563eb, #6366f1);
    margin-top: 0.75rem;
    width: 60%;
}

/* ── Floating badge pills ─────────────────────────────────────────────────── */
.ln-progress-pill {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #fff;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 190px;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
}

.ln-progress-bar-wrap {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    width: 100%;
    margin-top: 0.4rem;
}

.ln-progress-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563eb, #6366f1);
}

.ln-badge-pill {
    position: absolute;
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 3;
}

.ln-badge-fr {
    top: 60px;
    right: 10px;
    color: #7c3aed;
    border: 1px solid #ede9fe;
    background: #faf5ff;
}

.ln-badge-lock {
    top: 30px;
    left: 10px;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

/* ── Trust bar ────────────────────────────────────────────────────────────── */
.ln-trust {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

.ln-trust-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ln-trust-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    flex-shrink: 0;
}

.ln-trust-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ln-trust-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.ln-trust-sep {
    color: #cbd5e1;
    font-weight: 300;
}

/* ── Section common ───────────────────────────────────────────────────────── */
.ln-section {
    padding: 5rem 1.5rem;
}

.ln-section-light {
    background: #f8fafc;
}

.ln-section-white {
    background: #fff;
}

.ln-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.ln-section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563eb;
    margin-bottom: 0.6rem;
}

.ln-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.85rem;
}

.ln-section-sub {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ── Feature grid ─────────────────────────────────────────────────────────── */
.ln-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.ln-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.ln-feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.ln-feature-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.ln-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.ln-feature-card p {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── Why grid ─────────────────────────────────────────────────────────────── */
.ln-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ln-why-item {
    border-top: 2px solid #2563eb;
    padding-top: 1.25rem;
}

.ln-why-number {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.ln-why-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.ln-why-item p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* ── CTA section ──────────────────────────────────────────────────────────── */
.ln-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 5rem 1.5rem;
}

.ln-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.ln-cta-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.ln-cta-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.ln-footer {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 1.5rem;
}

.ln-footer-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ln-footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.75;
}

.ln-footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ln-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ln-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ln-nav-inner {
        padding: 0.9rem 1.25rem;
        min-height: 4.5rem;
        gap: 1rem;
    }
    .ln-nav-logo {
        height: 44px;
    }
    .ln-nav-signin {
        font-size: 0.85rem;
        padding: 0.4rem 0.9rem;
    }
    .ln-nav.ln-nav-compact .ln-nav-inner {
        min-height: 0;
    }
    .ln-nav.ln-nav-compact .ln-nav-logo {
        height: 34px;
    }
    .ln-nav.ln-nav-compact .ln-nav-signin {
        font-size: 0.8rem;
        padding: 0.35rem 0.8rem;
    }
    .ln-hero {
        padding: 4rem 1.25rem;
        min-height: unset;
    }
    .ln-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .ln-hero-card-stack {
        display: none;
    }
    .ln-nav-links {
        display: none;
    }
    .ln-feature-grid {
        grid-template-columns: 1fr;
    }
    .ln-why-grid {
        grid-template-columns: 1fr;
    }
    .ln-cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Other/Specify inline input ──────────────────────────────────────────── */
.pf-other-specify {
    border-left: 3px solid var(--bs-primary);
    padding-left: 0.75rem;
    margin-top: 0.5rem;
}

.pf-other-specify input {
    max-width: 480px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Form theme presets
   Each preset sets the CSS variables that the public form shell inherits.
   Form-level inline style overrides these when set explicitly.
   ═══════════════════════════════════════════════════════════════════════════ */

.pf-theme-government {
    --dcf-accent: #1A3A6B;
    --dcf-secondary: #B8892A;
    --dcf-btn-radius: 0;
}

.pf-theme-health {
    --dcf-accent: #0B6E4F;
    --dcf-secondary: #1B998B;
    --dcf-btn-radius: 9999px;
}

.pf-theme-minimal {
    --dcf-accent: #1a1a1a;
    --dcf-secondary: #1a1a1a;
    --dcf-btn-radius: 0;
    --dcf-shadow: none;
    --dcf-shadow-md: none;
}

.pf-theme-high-contrast {
    --dcf-accent: #000000;
    --dcf-secondary: #000000;
    --dcf-btn-radius: 0;
    --dcf-text: #000000;
    --dcf-muted: #000000;
    --dcf-card-bg: #ffffff;
    --dcf-border: #000000;
}

/* ── Background style modifiers ──────────────────────────────────────────── */

.pf-bg-white {
    --dcf-form-bg: #ffffff;
    background: #ffffff;
}

.pf-bg-light {
    --dcf-form-bg: #f8f9fa;
    background: #f8f9fa;
}

.pf-bg-tinted {
    --dcf-form-bg: color-mix(in srgb, var(--dcf-accent) 8%, #ffffff);
    background: var(--dcf-form-bg);
}

.pf-bg-dark {
    --dcf-form-bg: #0f172a;
    --dcf-card-bg: #1e293b;
    --dcf-text: #f1f5f9;
    --dcf-muted: #94a3b8;
    --dcf-border: #334155;
    background: #0f172a;
    color: #f1f5f9;
}

/* Ensure dark-bg card text inherits the overridden color */
.pf-bg-dark .pf-card {
    background: var(--dcf-card-bg);
    color: var(--dcf-text);
    border-color: var(--dcf-border);
}

.pf-bg-dark .pf-section-title {
    border-color: var(--dcf-border);
}

/* ── Header banner image ─────────────────────────────────────────────────── */

.pf-banner {
    overflow: hidden;
    border-radius: var(--dcf-radius) var(--dcf-radius) 0 0;
    margin-bottom: 1.5rem;
}

.pf-banner-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
