@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap");

:root {
    color-scheme: light;
    --bg: #eef5ef;
    --bg-2: #dfeee4;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --surface-muted: #f6faf7;
    --text: #143122;
    --muted: #5e7168;
    --border: #a4a8a4;
    --border-strong: #8f938f;
    --accent: #017848;
    --accent-2: #017848;
    --accent-3: #2d8e5c;
    --accent-soft: rgba(1, 120, 72, 0.04);
    --accent-soft-2: rgba(1, 120, 72, 0.08);
    --success: #1f7a4c;
    --danger: #b23a48;
    --warning: #8c5b1d;
    --shadow-sm: 0 8px 20px rgba(18, 38, 28, 0.06);
    --shadow: 0 16px 40px rgba(18, 38, 28, 0.08);
    --shadow-lg: 0 30px 70px rgba(18, 38, 28, 0.16);
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --focus: 0 0 0 3px rgba(1, 120, 72, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: Urbanist, Aptos, Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.48;
    background: #FFFDFA;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(#d7d9d7 1px, transparent 1px),
        linear-gradient(90deg, #d7d9d7 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 72%);
    opacity: 0.26;
}

::selection {
    background: rgba(1, 120, 72, 0.05);
}

img, svg, video, canvas {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
    position: relative;
    z-index: 0;
}

.lead-shell {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 36px;
}

.lead-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: start;
}

.hero-panel,
.form-card,
.success-card,
.stat-card,
.notice-box,
.question-card,
.leads-table,
.toolbar,
.admin-login-viewport,
.admin-login-shell {
    backdrop-filter: blur(16px);
}

.hero-panel,
.form-card,
.success-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(1, 120, 72, 0.08), transparent 36%),
        radial-gradient(circle at bottom left, rgba(1, 120, 72, 0.04), transparent 34%);
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 3.65rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

h2 {
    margin: 0;
    letter-spacing: -0.02em;
}

.lede,
.hero-summary,
.question-copy,
.fineprint,
.muted,
.field-hint,
.panel-stat span,
.stat-card span {
    color: var(--muted);
}

.lede {
    margin: 16px 0 0;
    font-size: 1.05rem;
    max-width: 58ch;
}

.hero-summary {
    margin: 18px 0 0;
    font-size: 0.98rem;
    max-width: 56ch;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.panel-stat {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #a4a8a4;
    box-shadow: 0 12px 26px rgba(18, 38, 28, 0.05);
}

.panel-stat strong,
.stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.hero-points {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #a4a8a4;
    color: var(--text);
    box-shadow: 0 10px 22px rgba(18, 38, 28, 0.04);
}

.hero-point::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(1, 120, 72, 0.08);
    flex: 0 0 auto;
}

.form-card,
.success-card {
    padding: 22px;
}

.form-card {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(1, 120, 72, 0.08);
}

.form-card::before,
.success-card::before,
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.form-card::after,
.success-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -18% auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(1, 120, 72, 0.03);
    pointer-events: none;
}

.progress-wrap {
    margin-bottom: 18px;
}

.progress-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.progress-head span:first-child {
    font-weight: 700;
    color: var(--accent);
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(1, 120, 72, 0.05);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 6px 20px rgba(1, 120, 72, 0.08);
    transition: width 220ms ease;
}

.question-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid #a4a8a4;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(18, 38, 28, 0.03);
}

.question-card + .question-card {
    margin-top: 14px;
}

.question-card h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.question-copy {
    margin: 7px 0 0;
    max-width: 54ch;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.options-grid.stacked {
    grid-template-columns: 1fr;
}

.option-btn,
.primary-btn,
.secondary-btn,
.password-toggle {
    border: 1px solid #a4a8a4;
    border-radius: 12px;
    padding: 13px 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        border-color 150ms ease,
        background 150ms ease,
        color 150ms ease;
}

.option-btn {
    background: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.option-btn:hover,
.secondary-btn:hover,
.password-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(1, 120, 72, 0.08);
    box-shadow: 0 8px 18px rgba(18, 38, 28, 0.05);
}

.option-btn.selected {
    border-color: rgba(1, 120, 72, 0.14);
    background: rgba(1, 120, 72, 0.05);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(1, 120, 72, 0.03);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.form-grid label,
.admin-login label,
.password-field {
    display: grid;
    gap: 6px;
}

label span {
    font-size: 0.92rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    border: 1px solid #a4a8a4;
    border-radius: 12px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input::placeholder,
select::placeholder {
    color: rgba(94, 113, 104, 0.72);
}

input:focus,
select:focus,
button:focus,
.password-toggle:focus {
    outline: none;
    box-shadow: var(--focus);
    border-color: rgba(1, 120, 72, 0.08);
}

.notice-box {
    margin-top: 16px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(1, 120, 72, 0.04);
    background: rgba(255, 255, 255, 0.82);
}

.notice-box p {
    margin: 0 0 8px;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 14px;
    line-height: 1.45;
    color: var(--text);
}

.consent-row input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(1, 120, 72, 0.08);
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(1, 120, 72, 0.10);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
}

.error-banner,
.success-banner {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.error-banner,
.field-error {
    color: var(--danger);
}

.error-banner {
    background: rgba(178, 58, 72, 0.08);
    border-color: rgba(178, 58, 72, 0.18);
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
}

.success-banner {
    background: rgba(1, 120, 72, 0.03);
    border-color: rgba(1, 120, 72, 0.06);
    color: var(--success);
}

.fineprint {
    margin: 12px 0 0;
    font-size: 0.9rem;
}

.success-card {
    width: min(760px, 100%);
    margin: 0 auto 22px;
    padding: 22px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.success-card h2 {
    margin-top: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.centered-card {
    width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.narrow {
    max-width: 520px;
}

.admin-shell {
    min-height: 100vh;
}

.admin-login-viewport {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.admin-login-shell {
    width: min(520px, 100%);
    margin-top: 0;
}

.admin-login {
    display: grid;
    gap: 14px;
}

.admin-login .primary-btn {
    margin-top: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

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

.filter-row input[type="text"],
.filter-row select {
    min-width: 220px;
}

.checkbox-inline {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text);
}

.checkbox-inline input {
    accent-color: var(--accent);
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.leads-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background: transparent;
}

.leads-table th,
.leads-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #a4a8a4;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.leads-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #f7fbf8, #eef5ef);
    color: var(--text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.leads-table tbody tr:hover td {
    background: rgba(1, 120, 72, 0.02);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: capitalize;
    background: rgba(1, 120, 72, 0.03);
    color: var(--accent);
}

.pill.hot {
    background: rgba(1, 120, 72, 0.05);
    color: var(--success);
}

.pill.warm {
    background: rgba(140, 91, 29, 0.14);
    color: var(--warning);
}

.pill.cold {
    background: rgba(1, 120, 72, 0.03);
    color: var(--accent);
}

.strength-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
}

.strength-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
}

.strength-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--muted);
}

.strength-list li.met {
    color: var(--success);
}

.strength-list li.met::before {
    color: var(--success);
}

.strength-list li.missing {
    color: var(--danger);
}

.strength-list li.missing::before {
    color: var(--danger);
}

.confirm-match {
    color: var(--muted);
}

.confirm-match.ok {
    color: var(--success);
}

.confirm-match.bad {
    color: var(--danger);
}

.password-card {
    margin-bottom: 18px;
}

.password-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.password-input-wrap input {
    flex: 1;
}

.password-toggle {
    min-width: 76px;
    background: rgba(255, 255, 255, 0.92);
}

.table-wrap::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.table-wrap::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(1, 120, 72, 0.10);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #d7d9d7;
}

@media (max-width: 1080px) {
    .lead-layout {
        grid-template-columns: 1fr;
    }

    .hero-metrics,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .form-grid,
    .options-grid,
    .stats-grid,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .toolbar,
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-row input[type="text"],
    .filter-row select {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 18px, 100%);
        padding-top: 14px;
        padding-bottom: 32px;
    }

    .lead-shell {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 24px;
        align-items: flex-start;
    }

    .hero-panel,
    .form-card,
    .success-card {
        border-radius: 22px;
        padding: 20px;
    }

    .question-card {
        padding: 18px;
        border-radius: 20px;
    }

    .progress-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .consent-row {
        font-size: 0.96rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent);
    box-shadow: 0 18px 30px rgba(1, 120, 72, 0.12);
}

.brand-copy {
    min-width: 0;
}

.brand-name {
    margin: 2px 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.lead-intro {
    min-height: 100%;
}

.lead-form-panel {
    min-height: 100%;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 24px 26px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(1, 120, 72, 0.08), transparent 34%);
    pointer-events: none;
}

.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero-copy h1 {
    max-width: 14ch;
}

.dashboard-hero-copy .lede {
    margin-top: 12px;
    max-width: 60ch;
}

.dashboard-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-brand-row {
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .dashboard-hero-copy h1 {
        max-width: none;
    }

    .dashboard-hero-actions {
        justify-content: flex-start;
    }
}

.lead-form-panel {
    width: min(760px, 100%);
}

.lead-card-lede {
    margin-top: 0;
    max-width: 42ch;
}

.lead-card-summary {
    margin-top: 12px;
    max-width: 58ch;
}

.lead-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 22px;
}

.lead-rail-item {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(1, 120, 72, 0.04);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 247, 0.92));
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.45;
    box-shadow: 0 10px 20px rgba(18, 38, 28, 0.04);
}

@media (max-width: 760px) {
    .lead-rail {
        grid-template-columns: 1fr;
    }
}

/* Premium form polish overrides */
.question-card {
    padding: 18px;
    border: 1.5px solid #a4a8a4;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 5px 12px rgba(18, 38, 28, 0.02);
}

.question-card + .question-card {
    margin-top: 14px;
}

.question-card h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.question-copy {
    margin: 7px 0 0;
    max-width: 54ch;
}

.options-grid {
    gap: 9px;
    margin-top: 13px;
}

.option-btn,
.primary-btn,
.secondary-btn,
.password-toggle {
    border-radius: 11px;
    padding: 12px 14px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
}

.option-btn:hover,
.secondary-btn:hover,
.password-toggle:hover {
    border-color: rgba(1, 120, 72, 0.06);
    box-shadow: 0 5px 12px rgba(18, 38, 28, 0.03);
}

.option-btn.selected {
    border-color: rgba(1, 120, 72, 0.16);
    background: rgba(1, 120, 72, 0.03);
    box-shadow: inset 0 0 0 1px rgba(1, 120, 72, 0.02);
}

.form-grid {
    gap: 11px;
    margin-top: 13px;
}

.form-grid label,
.admin-login label,
.password-field {
    gap: 5px;
}

label span {
    font-size: 0.9rem;
    color: rgba(20, 49, 34, 0.86);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    border: 1px solid #a4a8a4;
    border-radius: 11px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

input:focus,
select:focus,
button:focus,
.password-toggle:focus {
    box-shadow: 0 0 0 3px rgba(1, 120, 72, 0.08);
    border-color: rgba(1, 120, 72, 0.08);
}

.notice-box {
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid rgba(1, 120, 72, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.consent-row {
    line-height: 1.42;
}

.primary-btn {
    background: #017848;
    box-shadow: 0 10px 20px rgba(1, 120, 72, 0.08);
}

.primary-btn:hover {
    box-shadow: 0 12px 24px rgba(1, 120, 72, 0.08);
}

/* One-question wizard layout */
.wizard-card {
    width: min(680px, 100%);
}

.choice-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.choice-card {
    position: relative;
    display: block;
    border: 1px solid #a4a8a4;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card span {
    display: block;
    padding: 14px 16px;
    color: var(--text);
    font-weight: 600;
}

.choice-card:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    box-shadow: 0 5px 12px rgba(18, 38, 28, 0.03);
}

.choice-card:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(1, 120, 72, 0.08);
    border-color: rgba(1, 120, 72, 0.08);
}

.choice-card:has(input:checked) {
    border-color: rgba(1, 120, 72, 0.16);
    background: rgba(1, 120, 72, 0.03);
    box-shadow: inset 0 0 0 1px rgba(1, 120, 72, 0.02);
}

.choice-card:has(input:checked) span {
    color: var(--accent);
}

.wizard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.wizard-actions.single-action {
    grid-template-columns: 1fr;
}

.wizard-actions .secondary-btn,
.wizard-actions .primary-btn {
    width: 100%;
    min-width: 0;
}

.progress-head {
    align-items: baseline;
}

.progress-head span:first-child {
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .wizard-actions,
    .wizard-actions.single-action {
        grid-template-columns: 1fr;
    }

    .choice-card span {
        padding: 13px 14px;
    }
}

/* Bare wizard surface */
body {
    background: #FFFDFA;
}

.page-shell {
    width: min(760px, calc(100% - 32px));
}

.lead-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

.form-card.wizard-card,
.success-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    width: min(680px, 100%);
}

.form-card.wizard-card::before,
.form-card.wizard-card::after,
.success-card::before,
.success-card::after {
    display: none;
}

.progress-wrap {
    margin-bottom: 28px;
}

.progress-head {
    margin-bottom: 12px;
}

.question-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.question-card + .question-card {
    margin-top: 0;
}

.question-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.08;
}

.question-copy {
    margin-top: 10px;
    font-size: 1rem;
    max-width: 46ch;
}

.choice-list {
    margin-top: 24px;
    gap: 12px;
}

.choice-card {
    background: rgba(255, 255, 255, 0.72);
    border-color: #a4a8a4;
}

.choice-card span {
    padding: 15px 16px;
    font-size: 0.98rem;
}

.wizard-actions {
    margin-top: 24px;
}

.notice-box {
    background: rgba(255, 255, 255, 0.68);
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 100%);
        min-height: auto;
        display: block;
        padding-bottom: 24px;
    }

    .lead-shell {
        padding-top: 12px;
    }

    .progress-wrap {
        margin-bottom: 20px;
    }

    .question-card h2 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .choice-card span {
        padding: 14px 14px;
    }
}

/* Public wizard vertical centering override */
body > .page-shell.lead-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

body > .page-shell.lead-shell > .form-card.wizard-card,
body > .page-shell.lead-shell > .success-card {
    width: min(680px, 100%);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    body > .page-shell.lead-shell {
        min-height: auto;
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 24px;
    }
}

/* Admin login polish */
.admin-login-shell {
    padding: 28px 30px;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.admin-login-shell::before,
.admin-login-shell::after {
    display: none;
}

.admin-login {
    margin-top: 0;
}

/* Admin dashboard restructure */
body.admin-page {
    background: #FFFDFA;
}

body.admin-page::before {
    opacity: 0.12;
}

body.admin-page .page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.admin-page .admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}

body.admin-page .admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 18px 18px;
    background: #017848;
    color: #fff;
    box-shadow: 18px 0 36px rgba(18, 38, 28, 0.09);
}

body.admin-page .sidebar-nav {
    display: grid;
    gap: 10px;
}

body.admin-page .sidebar-link,
body.admin-page .sidebar-logout {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.admin-page .sidebar-link {
    color: rgba(255, 255, 255, 0.9);
}

body.admin-page .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

body.admin-page .sidebar-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

body.admin-page .sidebar-logout {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

body.admin-page .sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

body.admin-page .admin-content {
    min-width: 0;
    padding: 28px;
    display: grid;
    gap: 18px;
    align-content: start;
}

body.admin-page .stats-grid {
    width: 100%;
}

body.admin-page .stat-card,
body.admin-page .form-card,
body.admin-page .table-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

body.admin-page .stat-card,
body.admin-page .form-card,
body.admin-page .table-panel,
body.admin-page .admin-password-card {
    position: relative;
    overflow: hidden;
}

body.admin-page .stat-card::before,
body.admin-page .form-card::before,
body.admin-page .table-panel::before,
body.admin-page .admin-password-card::before,
body.admin-page .toolbar::before,
body.admin-page .success-card::before,
body.admin-page .dashboard-hero::before {
    display: none;
    content: none;
}

body.admin-page .table-panel {
    width: 100%;
    margin: 0;
    padding: 22px;
}

body.admin-page .table-panel .toolbar {
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.admin-page .toolbar {
    width: 100%;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
}

body.admin-page .toolbar .filter-row {
    flex: 1 1 520px;
}

body.admin-page .toolbar-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

body.admin-page .admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

body.admin-page .leads-table {
    width: 100%;
    min-width: 1100px;
    border-radius: 18px;
    box-shadow: none;
    background: #fff;
}

body.admin-page .leads-table thead th {
    background: #f5f8f5;
}

body.admin-page .admin-password-card {
    width: min(760px, 100%);
    padding: 24px;
}

body.admin-page .admin-password-card h2 {
    margin-bottom: 18px;
}

body.admin-page .password-card .admin-login {
    margin-top: 0;
}

body.admin-page .admin-login {
    max-width: none;
}

body.admin-page .admin-login-shell {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

body.admin-page .admin-login-shell::before,
body.admin-page .admin-login-shell::after {
    display: none;
}

@media (max-width: 1100px) {
    body.admin-page .admin-layout {
        grid-template-columns: 1fr;
    }

    body.admin-page .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 20;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
    }

    body.admin-page .sidebar-nav {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        width: 100%;
    }

    body.admin-page .sidebar-logout {
        margin-top: 0;
        white-space: nowrap;
    }

    body.admin-page .admin-content {
        padding: 18px 16px 28px;
    }
}

@media (max-width: 720px) {
    body.admin-page .toolbar {
        align-items: stretch;
    }

    body.admin-page .toolbar .filter-row {
        flex-basis: 100%;
    }

    body.admin-page .toolbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    body.admin-page .toolbar-actions .primary-btn,
    body.admin-page .toolbar-actions .secondary-btn {
        width: 100%;
    }

    body.admin-page .admin-password-card,
    body.admin-page .table-panel {
        padding: 18px;
    }
}


/* Admin dashboard refinements */
body.admin-page .toolbar-actions {
    align-items: center;
    gap: 12px;
}

body.admin-page .band-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

body.admin-page .band-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.admin-page .band-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

body.admin-page .band-badge.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

body.admin-page .band-badge.hot.active,
body.admin-page .band-badge.warm.active,
body.admin-page .band-badge.cold.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

body.admin-page .admin-password-card {
    width: min(720px, 100%);
    padding: 18px 20px;
}

body.admin-page .admin-password-card h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

body.admin-page .admin-password-form {
    display: grid;
    gap: 10px;
}

body.admin-page .admin-password-form .password-field {
    gap: 4px;
}

body.admin-page .admin-password-form .password-input-wrap {
    gap: 6px;
}

body.admin-page .admin-password-form .password-toggle {
    min-width: 68px;
}

body.admin-page .admin-password-form .field-hint {
    margin-top: 2px;
    font-size: 0.86rem;
}

body.admin-page .admin-password-form .strength-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 6px;
}

body.admin-page .admin-password-form .strength-list li {
    margin: 0;
}

body.admin-page .admin-password-form .primary-btn {
    margin-top: 4px;
}

@media (max-width: 720px) {
    body.admin-page .band-badges {
        width: 100%;
    }

    body.admin-page .band-badge,
    body.admin-page .toolbar-actions .primary-btn {
        width: auto;
    }

    body.admin-page .admin-password-form .strength-list {
        grid-template-columns: 1fr;
    }
}


body.admin-password-page .admin-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

body.admin-password-page .admin-password-card {
    margin: auto;
    width: min(720px, 100%);
}

body.admin-password-page .success-banner,
body.admin-password-page .error-banner {
    width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1100px) {
    body.admin-password-page .admin-content {
        min-height: auto;
        justify-content: flex-start;
        padding: 18px 16px 28px;
    }

    body.admin-password-page .admin-password-card,
    body.admin-password-page .success-banner,
    body.admin-password-page .error-banner {
        width: 100%;
    }
}


/* Admin toolbar alignment tweaks */
body.admin-page .table-panel .toolbar {
    align-items: center;
    flex-wrap: wrap;
}

body.admin-page .toolbar .filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    flex-wrap: nowrap;
}

body.admin-page .toolbar .filter-row input[type="text"] {
    width: 260px;
    min-width: 0;
    flex: 0 1 260px;
}

body.admin-page .toolbar .filter-row .checkbox-inline {
    white-space: nowrap;
}

body.admin-page .toolbar .filter-row .secondary-btn {
    white-space: nowrap;
}

body.admin-page .toolbar-actions {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-start;
}

body.admin-page .band-badges {
    align-items: center;
}

@media (max-width: 720px) {
    body.admin-page .toolbar .filter-row {
        width: 100%;
        flex-wrap: wrap;
    }

    body.admin-page .toolbar .filter-row input[type="text"] {
        width: 100%;
        flex-basis: 100%;
    }

    body.admin-page .toolbar-actions {
        width: 100%;
    }
}
