/* =========================================
   Bestedingsplan Absoluut vzw - Stylesheet
   Pure CSS, geen Tailwind, geen build-stap.
   ========================================= */

/* CSS variables - bind in PHP via :root override */
:root {
    --primary: #9BC53D;
    --primary-hover: #8ab332;
    --primary-light: #f4f9ec;
    --primary-border: #d6e8b3;
    --text: #333333;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --red-50: #fef2f2;
    --red-300: #fca5a5;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--gray-50);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
input:focus, textarea:focus, select:focus { outline: none; }

/* === HEADER === */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
}
.site-header-inner {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-header img { max-height: 48px; width: auto; }
.site-header-title-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
}
.site-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

/* === LAYOUT === */
.wizard-page {
    padding: 32px 16px;
    min-height: calc(100vh - 80px);
}
.wizard-container {
    max-width: 64rem;
    margin: 0 auto;
}
.wizard-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary);
    padding: 32px;
}

/* === STEP INDICATOR === */
.step-indicator { width: 100%; margin-bottom: 32px; }

.step-indicator-desktop {
    display: none;
}
.step-indicator-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.step-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.step-pill.disabled { cursor: default; opacity: 0.6; }
.step-pill-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    background: var(--gray-200);
    color: var(--gray-500);
    transition: all 0.2s;
}
.step-pill.completed .step-pill-circle,
.step-pill.current .step-pill-circle {
    background: var(--primary);
    color: var(--white);
}
.step-pill.current .step-pill-circle {
    box-shadow: 0 0 0 4px rgba(155, 197, 61, 0.2);
}
.step-pill-label {
    margin-top: 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    position: absolute;
    transform: translateY(36px);
}
.step-pill.completed .step-pill-label,
.step-pill.current .step-pill-label {
    color: var(--primary);
}
.step-pill-line {
    flex: 1;
    height: 2px;
    margin: 0 4px;
    background: var(--gray-200);
}
.step-pill-line.completed { background: var(--primary); }
.step-indicator-spacer { height: 48px; }

.step-indicator-mobile {
    display: block;
    text-align: center;
}
.step-indicator-mobile-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    box-shadow: 0 0 0 4px rgba(155, 197, 61, 0.2);
}
.step-indicator-mobile-label {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}
.step-indicator-mobile-progress-text {
    color: var(--gray-500);
    font-size: 12px;
    margin-top: 4px;
}
.step-indicator-mobile-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin-top: 16px;
    overflow: hidden;
}
.step-indicator-mobile-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

@media (min-width: 768px) {
    .step-indicator-desktop { display: block; }
    .step-indicator-mobile { display: none; }
}

/* === COMMON ELEMENTS === */
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: rgba(155, 197, 61, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.card-icon svg { width: 32px; height: 32px; color: var(--primary); }

.text-center { text-align: center; }
.heading-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.2;
}
.heading-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}
@media (max-width: 640px) {
    .heading-title { font-size: 1.5rem; }
}

.section-header {
    margin-bottom: 32px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); }
.btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-dark {
    background: var(--text);
    color: var(--white);
}
.btn-dark:hover { background: #000; }
.btn-lg { padding: 14px 32px; font-size: 1.125rem; height: 48px; }
.btn-icon-only { padding: 10px; width: 40px; height: 40px; }
.btn-block { width: 100%; }
.btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.action-button {
    padding: 16px 24px;
    border-radius: var(--radius);
    border: 2px solid;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}
.action-button-yes {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.action-button-yes:hover { background: var(--primary-hover); }
.action-button-no {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
}
.action-button-no:hover { background: #000; }
.action-button-yes-outline {
    background: var(--white);
    color: var(--text);
    border-color: var(--text);
}
.action-button-yes-outline:hover { background: var(--gray-50); }

/* === FORM ELEMENTS === */
.form-field { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}
.form-label-sm {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 4px;
}
.form-input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: all 0.2s;
}
.form-input-lg {
    padding: 12px 16px;
    font-size: 1.125rem;
    border-width: 2px;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(155, 197, 61, 0.2);
}
.form-input.has-error {
    border-color: var(--red-500);
}
.form-input-with-prefix {
    position: relative;
}
.form-input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 1.125rem;
    font-weight: 600;
    pointer-events: none;
}
.form-input-with-prefix .form-input { padding-left: 40px; }
.form-error { color: var(--red-600); font-size: 14px; margin-top: 4px; }
.form-help { font-size: 12px; color: var(--gray-500); margin-top: 4px; line-height: 1.5; }

/* Cost label with helper text (step 7) */
.cost-label-block {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 400;
    line-height: 1.5;
}

/* === RADIO & CHECKBOX === */
.radio-group { display: flex; flex-direction: column; gap: 12px; }
.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}
.radio-option:hover { background: var(--gray-50); }
.radio-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.radio-option label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) {
    .checkbox-grid { grid-template-columns: 1fr 1fr; }
}
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-option label {
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

.field-card {
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
}
.field-card-error { border-color: var(--red-500); background: var(--red-50); }
.field-card-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

/* === INFO BOXES === */
.info-box {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.info-box-icon {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-box-icon svg { width: 20px; height: 20px; }
.info-box-content { flex: 1; }
.info-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.info-box-content p {
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.6;
}
.info-box-content ul {
    list-style: none;
    margin-top: 0;
}
.info-box-content ul li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 1.125rem;
    color: var(--text);
    flex-wrap: wrap;
}
.info-box-content ul li .bullet {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--primary);
    flex-shrink: 0;
}

.question-box {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--gray-100);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.question-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.question-box h3 svg { width: 20px; height: 20px; color: var(--primary); }
.question-box p {
    color: var(--gray-600);
    line-height: 1.6;
}
.question-box-with-tooltip {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.question-box-with-tooltip > p { flex: 1; }

/* === Inline info icon (in tekst) === */
.info-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-full);
    width: 20px;
    height: 20px;
    margin: 0 4px;
    cursor: help;
    transition: background 0.2s;
    color: var(--white);
    vertical-align: middle;
    border: none;
    padding: 0;
}
.info-icon-inline:hover { background: var(--primary-hover); }
.info-icon-inline svg { width: 12px; height: 12px; }

/* === EXPANDABLE SECTION === */
.expandable {
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}
.expandable.open {
    max-height: 600px;
    opacity: 1;
    margin-bottom: 16px;
}
.expandable-content {
    padding: 20px;
    background: var(--gray-50);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.expandable-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.2s;
}
.expandable-toggle:hover { color: var(--primary-hover); }
.expandable-toggle.active { color: var(--primary-hover); }

.label-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.label-with-icon .form-label,
.label-with-icon label { margin-bottom: 0; }

/* === STAP 2: BUDGET TYPE CARDS === */
.budget-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
@media (min-width: 768px) {
    .budget-type-grid { grid-template-columns: 1fr 1fr; }
}
.budget-type-card {
    padding: 24px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: inherit;
}
.budget-type-card:hover { border-color: rgba(155, 197, 61, 0.5); box-shadow: var(--shadow); }
.budget-type-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow);
}
.budget-type-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.budget-type-card-icon-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.budget-type-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(155, 197, 61, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.budget-type-card-icon span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.budget-type-card-check {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: none;
    align-items: center;
    justify-content: center;
}
.budget-type-card-check svg { width: 16px; height: 16px; }
.budget-type-card.selected .budget-type-card-check { display: flex; }
.budget-type-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.budget-type-card p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

/* === BUDGET TYPE BADGE (small icon at top of step) === */
.budget-type-badge {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: rgba(155, 197, 61, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.budget-type-badge span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* === STAP 5: BUDGET TABLE === */
.budget-table {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}
.budget-table-header {
    padding: 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}
.budget-table-header h2 {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}
.budget-table-row {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}
.budget-table-row:last-child { border-bottom: none; }
.budget-table-row-total { background: var(--primary-light); }
.budget-table-row .label {
    color: var(--gray-700);
    display: flex;
    flex-direction: column;
}
.budget-table-row .label .hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}
.budget-table-row .value {
    font-weight: 600;
    color: var(--text);
}
.budget-table-row-total .value {
    font-weight: 700;
    font-size: 1.125rem;
}
.budget-type-pill {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}
.value-positive { color: var(--primary); }

/* === SUPPORT FORM (steps 6-12) === */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-header-row h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.section-onderdeel-pill {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.added-services-list { display: flex; flex-direction: column; gap: 16px; }
.added-services-list h3 {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 8px;
}
.added-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    gap: 16px;
}
.added-service-item-info { flex: 1; min-width: 0; }
.added-service-item-info p:first-child {
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}
.added-service-item-info p:nth-child(2) {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 4px;
}
.added-service-item-info .impacts {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 8px;
}
.added-service-item-actions { display: flex; gap: 8px; }
.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--red-500);
    transition: background 0.2s;
}
.icon-btn:hover { background: var(--red-50); }
.icon-btn svg { width: 16px; height: 16px; }

.followup-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}
.followup-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.add-form-card {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.add-form-card h3 {
    font-weight: 600;
    color: var(--text);
}
.add-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.points-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .points-grid { grid-template-columns: 1fr 1fr; }
}

/* === TOOLTIPS === */
.tooltip-wrapper { position: relative; display: inline-block; }
.tooltip-trigger {
    background: var(--primary);
    border: none;
    color: var(--white);
    border-radius: var(--radius-full);
    width: 24px;
    height: 24px;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.tooltip-trigger.icon-sm { width: 20px; height: 20px; }
.tooltip-trigger:hover { background: var(--primary-hover); }
.tooltip-trigger svg { width: 14px; height: 14px; }
.tooltip-trigger.icon-sm svg { width: 12px; height: 12px; }

.tooltip-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-xl);
    padding: 16px;
    border-radius: var(--radius-sm);
    width: max-content;
    max-width: 380px;
    z-index: 100;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}
.tooltip-popup.show { display: block; }
.tooltip-popup h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}
.tooltip-popup .group-green {
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin: 12px 0 8px;
}
.tooltip-popup .group-red {
    color: var(--red-500);
    font-weight: 600;
    display: block;
    margin: 16px 0 8px;
}
.tooltip-popup ul {
    list-style: disc;
    padding-left: 24px;
}
.tooltip-popup ul li { margin-bottom: 4px; }

/* === STEP 13: FINAL SUMMARY === */
.summary-section {
    margin-bottom: 24px;
}
.summary-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}
.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 768px) {
    .summary-grid { grid-template-columns: 1fr 1fr; }
}
.summary-cell {
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}
.summary-cell-label {
    font-size: 12px;
    color: var(--gray-500);
}
.summary-cell-value {
    font-weight: 600;
    color: var(--text);
}
.summary-cell-value.green { color: var(--primary); }
.summary-service {
    padding: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.summary-service .name { font-weight: 500; color: var(--text); }
.summary-service .meta { font-size: 14px; color: var(--gray-600); margin-top: 4px; }
.summary-service .meta .funded { color: var(--primary); font-weight: 500; }
.summary-service .meta .self-paid { color: var(--gray-500); }
.summary-impact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.summary-impact-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    font-size: 12px;
}
.summary-impact-pill svg { width: 12px; height: 12px; }

.financial-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.financial-row-total {
    padding: 16px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}
.financial-row-total.over-budget {
    border-color: var(--red-300);
    background: var(--red-50);
}
.financial-row-total.over-budget .value-amount { color: var(--red-600); }
.value-amount { font-weight: 700; font-size: 1.125rem; }
.warning-text { color: var(--red-600); font-size: 14px; margin-top: 8px; }
.vza-note {
    font-size: 12px;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 8px;
}

.summary-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--gray-200);
}
.summary-actions .btn-group {
    display: flex;
    gap: 8px;
}

/* Step 1 list with two-line items */
.life-domains-list {
    list-style: none;
}
.life-domains-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    font-size: 1.125rem;
}
.life-domains-list li .domain-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.life-domains-list li .domain-header strong { font-weight: 700; }
.life-domains-list li .domain-desc { color: var(--gray-700); }
@media (min-width: 768px) {
    .life-domains-list li {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
}

/* Layered boxes spacing in step 1 */
.boxes-stack > * + * { margin-top: 24px; }
.section-spacer { margin-bottom: 32px; }

/* Spinner on form-input-with-prefix */
.input-wrapper { position: relative; }

/* === PRINT STYLES === */
@media print {
    body { background: white; }
    .site-header, .step-indicator, .btn-row, .summary-actions { display: none !important; }
    .wizard-card { box-shadow: none; border: none; padding: 0; }
}

/* === HIDDEN UTILITY === */
.hidden { display: none !important; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === ADMIN STYLING === */
.admin-body {
    background: #f5f5f5;
    min-height: 100vh;
}
.admin-topbar {
    background: var(--text);
    color: var(--white);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
.admin-topbar h1 { font-size: 1.125rem; font-weight: 600; }
.admin-topbar .user-info { font-size: 14px; opacity: 0.9; display: flex; gap: 16px; align-items: center; }
.admin-topbar a { color: #ccc; text-decoration: none; }
.admin-topbar a:hover { color: var(--white); }

.admin-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 24px;
}
@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
}
.admin-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    align-self: start;
}
.admin-sidebar h2 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
    padding: 0 12px;
}
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
}
.admin-sidebar a:hover { background: var(--gray-100); }
.admin-sidebar a.active { background: var(--primary); color: var(--white); }
.admin-sidebar .nav-section { margin-top: 16px; }

.admin-main {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.admin-main h1 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}
.admin-main h2 {
    font-size: 1.125rem;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}
.admin-field { margin-bottom: 16px; }
.admin-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--gray-700);
}
.admin-field-help {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.admin-field input[type="text"],
.admin-field input[type="number"],
.admin-field input[type="password"],
.admin-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
}
.admin-field input:focus, .admin-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(155,197,61,0.2);
}
.admin-field textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.admin-field textarea.tall { min-height: 140px; }

.admin-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.admin-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}
.admin-alert-success { background: #efe; color: #2c7a2c; border: 1px solid #cfc; }
.admin-alert-error { background: #fee; color: #b22; border: 1px solid #fcc; }

.admin-step-anchor { padding-top: 16px; }
.admin-step-anchor h2 {
    background: var(--primary-light);
    border-bottom: 2px solid var(--primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin: 24px 0 0;
    color: var(--primary);
    font-size: 1rem;
}
.admin-step-content {
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    margin-bottom: 16px;
}

.admin-key {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    color: var(--gray-400);
    background: var(--white);
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
.login-card h1 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}
.login-card p.lead {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 14px;
}

/* Logo upload preview */
.logo-preview {
    border: 1px dashed var(--gray-300);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
    background: var(--gray-50);
    text-align: center;
}
.logo-preview img { max-height: 100px; margin: 0 auto; }
.logo-preview-empty { color: var(--gray-400); font-size: 13px; padding: 24px; }
