/* ==========================================================================
   GoH Wizard — Geweld op de Hals
   Design System: Warm sand/teal theme
   Uses CSS custom properties from style.css (:root)
   ========================================================================== */

/* --- Symptom Matrix (Step 4): Scroll container + Sticky header --- */
/* The scroll container is the sticky positioning context.
   overflow + max-height on the container means thead th sticks
   to the TOP of this container, not the viewport. */
.goh-symptom-scroll-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 60vh;
    border-radius: var(--radius, 8px);
    border: 1px solid var(--border-color, #e8e4de);
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.06));
    position: relative; /* establishes containing block for sticky */
}
/* Remove duplicate border since container already has one */
.goh-symptom-scroll-container .goh-symptom-matrix {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}
.goh-symptom-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--accent, #0d9488);
    color: #fff;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    /* Prevent sub-pixel gap between header and first row when scrolling */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.goh-symptom-matrix thead th:first-child {
    text-align: left;
    min-width: 160px;
}
.goh-symptom-matrix thead th:last-child {
    min-width: 120px;
}
.goh-symptom-matrix tbody td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color, #e8e4de);
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
}
.goh-symptom-matrix tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-heading, #1e293b);
}
.goh-symptom-matrix tbody tr:hover {
    background: var(--accent-subtle, rgba(13,148,136,0.05));
}
.goh-symptom-matrix tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}
.goh-symptom-matrix tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}
.goh-symptom-matrix input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent, #0d9488);
    cursor: pointer;
}
.goh-symptom-matrix input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-color, #e8e4de);
    border-radius: 6px;
    font-size: 13px;
    background: var(--bg-primary, #faf8f5);
}
.goh-symptom-matrix input[type="text"]:focus {
    border-color: var(--accent, #0d9488);
    outline: none;
    box-shadow: 0 0 0 2px rgba(13,148,136,0.15);
}

/* --- Step Indicator (Progress Bar) --- */
.goh-step-indicator {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    padding: 16px 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.goh-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
    cursor: pointer;
    padding: 0 2px;
    transition: opacity 0.2s;
}

.goh-step-dot:hover {
    opacity: 0.85;
}

/* Connecting line between steps */
.goh-step-dot::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 55%;
    width: calc(100% - 10px);
    height: 2px;
    background: var(--border-color);
    transition: background 0.3s;
}

.goh-step-dot:last-child::after {
    display: none;
}

.goh-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    font-family: var(--font-body);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.goh-step-label {
    font-size: 10px;
    margin-top: 6px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    transition: color 0.3s;
    line-height: 1.2;
}

/* Active step */
.goh-step-dot.active .goh-step-number {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.goh-step-dot.active .goh-step-label {
    color: var(--accent);
    font-weight: 700;
}

/* Completed step */
.goh-step-dot.completed .goh-step-number {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.goh-step-dot.completed .goh-step-label {
    color: var(--accent);
}

.goh-step-dot.completed::after {
    background: var(--accent);
}

/* --- Wizard Container --- */
.goh-wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Step Content --- */
.goh-step-content {
    display: none;
    animation: gohFadeIn 0.35s ease;
}

.goh-step-content.active {
    display: block;
}

@keyframes gohFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step headings: Lora serif, large */
.goh-step-content > h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.goh-step-content > p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 24px;
}

/* --- Form Elements --- */
.goh-form-group {
    margin-bottom: 20px;
}

.goh-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-heading);
    font-family: var(--font-body);
    font-size: 14px;
}

.goh-form-group input[type="text"],
.goh-form-group input[type="date"],
.goh-form-group input[type="time"],
.goh-form-group input[type="number"],
.goh-form-group input[type="email"],
.goh-form-group input[type="tel"],
.goh-form-group select,
.goh-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-heading);
    background: var(--bg-card);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}

.goh-form-group input:focus,
.goh-form-group select:focus,
.goh-form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.goh-form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.goh-form-group input::placeholder,
.goh-form-group textarea::placeholder {
    color: var(--text-muted);
}

.goh-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.goh-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* --- Fieldset / Section Cards --- */
.goh-fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.goh-fieldset legend {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    color: var(--accent);
    padding: 0 10px;
}

/* --- Radio / Checkbox groups --- */
.goh-radio-group,
.goh-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.goh-radio-group label,
.goh-checkbox-group label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-body);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.goh-radio-group label:hover,
.goh-checkbox-group label:hover {
    background: var(--accent-subtle);
    border-color: rgba(13, 148, 136, 0.15);
}

/* Custom radio/checkbox accent color */
.goh-radio-group input[type="radio"],
.goh-checkbox-group input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* --- Symptom Matrix --- */
.goh-symptom-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    /* IMPORTANT: no overflow:hidden here — it breaks position:sticky on thead th */
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.goh-symptom-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--accent);
    color: #fff;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    /* Prevent sub-pixel gaps when scrolling */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goh-symptom-matrix thead th:first-child {
    text-align: left;
    min-width: 200px;
    padding-left: 14px;
}

.goh-symptom-matrix td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
    font-family: var(--font-body);
}

.goh-symptom-matrix td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-heading);
    padding-left: 14px;
}

.goh-symptom-matrix tr:nth-child(even) {
    background: var(--bg-primary);
}

.goh-symptom-matrix tr:hover {
    background: var(--accent-subtle);
}

.goh-symptom-matrix tr:last-child td {
    border-bottom: none;
}

.goh-symptom-matrix input[type="radio"],
.goh-symptom-matrix input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.goh-symptom-toelichting {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-body);
    min-width: 100px;
    transition: border-color 0.2s;
}

.goh-symptom-toelichting:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1);
}

/* --- Body Figure (Stap 5) --- */
.goh-body-figure-container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.goh-body-view {
    text-align: center;
}

.goh-body-view h4 {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 15px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.goh-body-svg {
    cursor: pointer;
}

/* SVG body zones: teal accent colors */
.goh-body-zone {
    fill: var(--accent-light);
    stroke: var(--accent);
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.2s, stroke-width 0.2s;
    opacity: 0.7;
}

.goh-body-zone:hover {
    fill: #99f6e4;
    opacity: 1;
}

.goh-body-zone.has-lesion {
    fill: #fecaca;
    stroke: #dc2626;
    stroke-width: 2;
    opacity: 1;
}

.goh-body-zone.selected {
    fill: #5eead4;
    stroke: var(--accent-hover);
    stroke-width: 2.5;
    opacity: 1;
}

.goh-body-zone-label {
    font-size: 10px;
    fill: var(--text-body);
    pointer-events: none;
    text-anchor: middle;
    font-family: var(--font-body);
}

/* Lesion detail panel */
.goh-lesion-panel {
    display: none;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--bg-card);
    margin-top: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-card);
}

.goh-lesion-panel.active {
    display: block;
}

.goh-lesion-panel h4 {
    margin: 0 0 12px;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 18px;
}

.goh-lesion-panel .goh-form-group {
    margin-bottom: 12px;
}

.goh-lesion-panel select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-heading);
    background: var(--bg-card);
}

.goh-lesion-panel select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* Registered lesions list */
.goh-lesion-list {
    margin-top: 24px;
}

.goh-lesion-list > h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-size: 16px;
    margin-bottom: 12px;
}

.goh-lesion-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 8px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s;
}

.goh-lesion-entry:hover {
    box-shadow: var(--shadow-card-hover);
}

.goh-lesion-entry .goh-lesion-info {
    font-size: 14px;
    font-family: var(--font-body);
}

.goh-lesion-entry .goh-lesion-loc {
    font-weight: 600;
    color: var(--accent);
}

.goh-lesion-entry .goh-lesion-type {
    color: var(--text-body);
}

.goh-lesion-entry small {
    color: var(--text-muted);
    font-size: 13px;
}

.goh-lesion-remove {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.goh-lesion-remove:hover {
    background: #b91c1c;
}

/* --- Letsel Location Cards (legacy, kept for fallback) --- */
.goh-locatie-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.goh-locatie-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.goh-locatie-card h4 {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 14px;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.goh-locatie-card label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 13px;
    margin-bottom: 4px;
    cursor: pointer;
    color: var(--text-body);
}

/* --- MRI Centrum Link & Form --- */
.goh-mri-centrum-link {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    margin-bottom: 16px;
    transition: background 0.2s, box-shadow 0.2s;
}

.goh-mri-centrum-link:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.goh-mri-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.goh-mri-form-field {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px 14px;
    transition: border-color 0.2s;
}

.goh-mri-form-field:hover {
    border-color: var(--accent);
}

.goh-mri-form-field .goh-mri-field-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.goh-mri-form-field .goh-mri-field-value {
    font-size: 14px;
    color: var(--text-heading);
    cursor: pointer;
    user-select: all;
    font-family: var(--font-body);
}

.goh-mri-form-field .goh-mri-field-copy {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-body);
    transition: background 0.2s;
}

.goh-mri-form-field .goh-mri-field-copy:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Sub-step navigation within step 8 */
.goh-substep-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 24px;
}

.goh-substep-tab {
    padding: 12px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-body);
    margin-right: 2px;
    transition: background 0.2s, color 0.2s;
}

.goh-substep-tab:hover {
    background: var(--accent-subtle);
}

.goh-substep-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.goh-substep-content {
    display: none;
}

.goh-substep-content.active {
    display: block;
}

/* --- Category Banners --- */
.goh-categorie-banner {
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.goh-categorie-banner h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.goh-categorie-banner p {
    margin: 0;
    font-size: 15px;
    font-family: var(--font-body);
}

/* Grey: Categories -1 and 0 */
.goh-cat-grijs {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-heading);
}

.goh-cat-grijs h2 {
    color: var(--text-heading);
}

/* Orange: Categories 1 and 2 */
.goh-cat-oranje {
    background: #fff7ed;
    border: 2px solid #f97316;
    color: #9a3412;
}

.goh-cat-oranje h2 {
    color: #c2410c;
}

/* Red: Categories 3 and 4 */
.goh-cat-rood {
    background: #fef2f2;
    border: 2px solid #dc2626;
    color: #991b1b;
}

.goh-cat-rood h2 {
    color: #b91c1c;
}

.goh-actiepunten {
    text-align: left;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.8);
    border-radius: var(--radius);
    font-family: var(--font-body);
}

.goh-actiepunten strong {
    font-family: var(--font-heading);
    font-size: 15px;
}

.goh-actiepunten ul {
    margin: 6px 0;
    padding-left: 20px;
}

.goh-actiepunten li {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Consent Checklist --- */
.goh-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s;
}

.goh-consent-item:hover {
    border-color: var(--accent);
}

.goh-consent-item label {
    font-weight: normal;
    flex: 1;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

.goh-consent-item > span {
    font-family: var(--font-heading);
    color: var(--accent);
}

.goh-consent-radio-group {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.goh-consent-radio-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600 !important;
    font-size: 14px;
    color: var(--text-heading);
}

.goh-consent-radio-group input[type="radio"] {
    accent-color: var(--accent);
}

/* --- Signature Pad --- */
.goh-signature-row {
    display: flex;
    gap: 24px;
}

.goh-signature-col {
    flex: 1;
    min-width: 0;
}

.goh-signature-container {
    margin: 16px 0;
}

.goh-signature-label {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-heading);
}

.goh-signature-pad-wrapper {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    position: relative;
    display: block;
    max-width: 100%;
    overflow: hidden;
    transition: border-color 0.2s;
}

.goh-signature-pad-wrapper canvas {
    display: block;
    border-radius: 6px;
    cursor: default;
    touch-action: none;
}

.goh-sig-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 248, 245, 0.85);
    z-index: 2;
    border-radius: 6px;
    pointer-events: none;
}

.goh-sig-overlay-btn {
    pointer-events: auto;
    cursor: pointer;
}

.goh-sig-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.goh-sig-active canvas {
    cursor: crosshair;
}

.goh-sig-locked {
    border-color: #16a34a;
}

.goh-sig-locked canvas {
    opacity: 0.9;
}

.goh-sig-timestamp {
    margin-top: 6px;
    font-size: 12px;
    color: #16a34a;
    font-style: italic;
    font-family: var(--font-body);
}

/* --- Fullscreen Capture Modal --- */
.goh-sig-capture {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.65);
    cursor: crosshair;
    touch-action: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goh-sig-capture-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.goh-sig-capture-hint {
    background: var(--accent);
    color: #fff;
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
    font-family: var(--font-body);
}

.goh-sig-preview-wrap {
    position: relative;
    display: inline-block;
    pointer-events: none;
}

.goh-sig-capture-preview {
    background: #fff;
    border: 3px solid #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 85vw;
    display: block;
}

.goh-sig-start-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    padding: 14px 32px;
    font-size: 16px;
    z-index: 2;
    white-space: nowrap;
}

.goh-sig-capture-buttons {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.goh-signature-line {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--border-color);
    pointer-events: none;
}

.goh-signature-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

/* --- Navigation Buttons --- */
.goh-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.goh-btn {
    padding: 11px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}

.goh-btn:active {
    transform: translateY(1px);
}

/* Secondary: Warm neutral */
.goh-btn-secondary {
    background: var(--bg-primary);
    color: var(--text-body);
    border: 1px solid var(--border-color);
}

.goh-btn-secondary:hover {
    background: var(--border-color);
    border-color: #d4d0c8;
}

/* Primary: Teal */
.goh-btn-primary {
    background: var(--accent);
    color: #fff;
}

.goh-btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

/* Danger: Red */
.goh-btn-danger {
    background: #dc2626;
    color: #fff;
}

.goh-btn-danger:hover {
    background: #b91c1c;
}

/* Success: Green */
.goh-btn-success {
    background: #16a34a;
    color: #fff;
}

.goh-btn-success:hover {
    background: #15803d;
}

.goh-btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

/* --- MRI Section --- */
.goh-mri-section {
    border: 2px solid #dc2626;
    border-radius: var(--radius);
    padding: 24px;
    background: #fef2f2;
    margin-bottom: 24px;
}

.goh-mri-section h3 {
    color: #b91c1c;
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 20px;
}

.goh-mri-section h4 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 16px;
}

.goh-copy-field {
    position: relative;
    margin-bottom: 16px;
}

.goh-copy-field label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-body);
    color: var(--text-heading);
    font-size: 14px;
}

.goh-copy-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: var(--font-body);
    min-height: 60px;
    box-sizing: border-box;
    color: var(--text-heading);
}

.goh-copy-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1);
}

.goh-copy-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-body);
    cursor: pointer;
    color: var(--text-body);
    transition: background 0.2s;
}

.goh-copy-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* --- MRI Toggle for lower categories --- */
.goh-mri-toggle {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.goh-mri-toggle p {
    font-family: var(--font-body);
    color: var(--text-body);
    font-size: 15px;
}

/* --- Download Center --- */
.goh-download-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.goh-download-group {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.goh-download-group h3 {
    margin-top: 0;
    font-size: 17px;
    font-family: var(--font-heading);
    color: var(--accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.goh-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.goh-download-item:last-child {
    border-bottom: none;
}

.goh-download-item span {
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-body);
}

/* --- Summary --- */
.goh-summary-section {
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
}

.goh-summary-section h3 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 18px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 14px;
}

.goh-summary-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 6px 16px;
    font-size: 14px;
    font-family: var(--font-body);
}

.goh-summary-label {
    font-weight: 600;
    color: var(--text-muted);
}

.goh-summary-value {
    color: var(--text-heading);
}

.goh-summary-section ul {
    padding-left: 20px;
    margin: 8px 0;
}

.goh-summary-section li {
    margin-bottom: 6px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.5;
}

.goh-summary-section li strong {
    color: var(--text-heading);
}

/* --- Veiligheid section highlight --- */
.goh-alert-box {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 14px 18px;
    margin-bottom: 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px;
    font-family: var(--font-body);
    color: #9a3412;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .goh-form-row,
    .goh-form-row-3 {
        grid-template-columns: 1fr;
    }

    .goh-download-center {
        grid-template-columns: 1fr;
    }

    .goh-step-label {
        font-size: 8px;
    }

    .goh-step-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .goh-step-indicator {
        padding: 12px 4px;
    }

    .goh-symptom-matrix {
        font-size: 12px;
    }

    .goh-symptom-matrix th,
    .goh-symptom-matrix td {
        padding: 5px 4px;
    }

    .goh-signature-row {
        flex-direction: column;
    }

    .goh-step-content > h2 {
        font-size: 22px;
    }

    .goh-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PDF hidden container (offscreen rendering) --- */
.goh-pdf-container {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 210mm;
    font-family: 'Times New Roman', Times, serif;
    font-size: 11pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
}

.goh-pdf-container h1 {
    font-size: 16pt;
    text-align: center;
    margin-bottom: 15px;
}

.goh-pdf-container h2 {
    font-size: 13pt;
    border-bottom: 1px solid #000;
    padding-bottom: 3px;
    margin-top: 15px;
}

.goh-pdf-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.goh-pdf-container td, .goh-pdf-container th {
    border: 1px solid #333;
    padding: 4px 6px;
    font-size: 10pt;
}

.goh-pdf-signature-img {
    max-height: 60px;
    margin-top: 5px;
}

/* --- Formatus Copy-Paste Helper (Stap 9) --- */
.goh-formatus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}

.goh-formatus-header h3 {
    margin: 0;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 20px;
}

.goh-formatus-open-link {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-body);
    transition: background 0.2s, box-shadow 0.2s;
}

.goh-formatus-open-link:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.goh-formatus-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.goh-formatus-section-title {
    background: var(--accent-subtle);
    padding: 12px 18px;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font-heading);
    color: var(--accent);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

.goh-formatus-field {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    align-items: start;
}

.goh-formatus-field:last-child {
    border-bottom: none;
}

.goh-formatus-label {
    padding: 12px 18px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-body);
    font-family: var(--font-body);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.goh-formatus-value {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-heading);
    font-family: var(--font-body);
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Copyable field: active, with copy button */
.goh-formatus-copyfield {
    position: relative;
}

.goh-formatus-copyfield textarea {
    width: 100%;
    padding: 10px 42px 10px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    min-height: 40px;
    resize: vertical;
    box-sizing: border-box;
    font-family: var(--font-body);
    line-height: 1.5;
    color: var(--text-heading);
}

.goh-formatus-copyfield textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1);
}

.goh-formatus-copyfield input[type="text"] {
    width: 100%;
    padding: 8px 42px 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    box-sizing: border-box;
    font-family: var(--font-body);
    color: var(--text-heading);
}

.goh-formatus-copy-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    color: var(--text-body);
    font-family: var(--font-body);
    z-index: 1;
    transition: background 0.2s, color 0.2s;
}

.goh-formatus-copy-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Grey hint field: disabled, informational */
.goh-formatus-hint {
    background: var(--bg-primary);
    color: var(--text-muted);
    font-style: italic;
    padding: 12px 18px;
    font-size: 13px;
    font-family: var(--font-body);
    cursor: default;
    user-select: none;
}

.goh-formatus-hint .hint-value {
    background: var(--accent-subtle);
    padding: 3px 10px;
    border-radius: 6px;
    font-style: normal;
    color: var(--text-body);
    display: inline-block;
    margin-top: 2px;
}

/* Empty field placeholder */
.goh-formatus-empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 12px 18px;
    font-size: 13px;
    font-family: var(--font-body);
}

/* Active input field (for arts to fill in) */
.goh-formatus-input textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    min-height: 40px;
    resize: vertical;
    box-sizing: border-box;
    font-family: var(--font-body);
    background: #fff;
    color: var(--text-heading);
}

.goh-formatus-input textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}

/* Lesion cards in Formatus */
.goh-formatus-lesion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.goh-formatus-lesion h4 {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 15px;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .goh-formatus-field {
        grid-template-columns: 1fr;
    }
    .goh-formatus-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* --- Verwijzing Checklist (Stap 10) --- */
.goh-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s;
}

.goh-checklist-item:hover {
    border-color: var(--accent);
}

.goh-checklist-item.action {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
}

.goh-checklist-item.notification {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: 4px solid #f59e0b;
}

.goh-checklist-check {
    flex-shrink: 0;
    padding-top: 2px;
}

.goh-checklist-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.goh-checklist-content {
    flex: 1;
    font-family: var(--font-body);
}

.goh-checklist-content strong {
    display: inline;
    color: var(--text-heading);
}

.goh-checklist-content p {
    margin: 6px 0 10px;
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

/* Disabled "Volgende" button */
.goh-next-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
    color: var(--text-muted);
}

.goh-next-btn:disabled:hover {
    background: var(--border-color);
    box-shadow: none;
}

/* --- Test scenario selector --- */
.goh-test-bar {
    text-align: right;
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.goh-test-bar select {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-heading);
    font-family: var(--font-body);
}

.goh-test-bar .goh-btn {
    background: var(--accent);
    color: #fff;
}

/* --- Toggle Cards (Ja/Nee/Onbekend clickable cards) --- */
.goh-toggle-cards {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.goh-toggle-card {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color, #e8e4de);
    border-radius: var(--radius, 8px);
    background: var(--bg-card, #fff);
    color: var(--text-body, #475569);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
}

.goh-toggle-card:hover {
    border-color: var(--accent, #0d9488);
    background: var(--accent-subtle, rgba(13, 148, 136, 0.05));
    color: var(--accent, #0d9488);
}

.goh-toggle-card.active {
    border-color: var(--accent, #0d9488);
    background: var(--accent, #0d9488);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.goh-toggle-card.active:hover {
    background: var(--accent-hover, #0f766e);
}

/* --- Utility: no-lesions placeholder text --- */
.goh-empty-state {
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
    font-family: var(--font-body);
    padding: 8px 0;
}

/* --- Validation warning banner --- */
.goh-validation-warning {
    background-color: #fffbeb;
    border: 1px solid #f6e05e;
    border-radius: 4px;
    color: #744210;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    font-family: var(--font-body);
    line-height: 1.5;
}
[data-theme="dark"] .goh-validation-warning {
    background-color: rgba(246, 224, 94, 0.1);
    border-color: rgba(246, 224, 94, 0.3);
    color: #fde68a;
}
.goh-field-warning {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 1px #e53e3e !important;
}

/* --- Download Alles & Print Buttons --- */
.goh-download-alles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card, #fff);
    border: 2px solid var(--accent, #0d9488);
    border-radius: var(--radius, 8px);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}

.goh-btn-download-alles {
    flex: 1 1 auto;
    min-width: 280px;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent, #0d9488) !important;
    color: #fff !important;
    border-radius: var(--radius, 8px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.goh-btn-download-alles:hover {
    background: var(--accent-hover, #0f766e) !important;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.goh-btn-print-alles {
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent !important;
    color: var(--accent, #0d9488) !important;
    border: 2px solid var(--accent, #0d9488) !important;
    border-radius: var(--radius, 8px);
    transition: background 0.2s, color 0.2s;
}
.goh-btn-print-alles:hover {
    background: var(--accent-subtle, rgba(13, 148, 136, 0.08)) !important;
}

.goh-dl-alles-icon,
.goh-print-icon {
    font-size: 18px;
    line-height: 1;
}

/* --- Checklist button row --- */
.goh-checklist-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.goh-checklist-print {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent !important;
    color: var(--text-body, #475569) !important;
    border: 1px solid var(--border-color, #e8e4de) !important;
}
.goh-checklist-print:hover {
    background: var(--bg-primary, #faf8f5) !important;
    border-color: var(--accent, #0d9488) !important;
    color: var(--accent, #0d9488) !important;
}

/* --- Download item button row (step 11) --- */
.goh-download-btn-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.goh-print-doc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 10px !important;
    background: transparent !important;
    color: var(--text-body, #475569) !important;
    border: 1px solid var(--border-color, #e8e4de) !important;
    font-size: 14px !important;
    line-height: 1;
    cursor: pointer;
}
.goh-print-doc:hover {
    background: var(--bg-primary, #faf8f5) !important;
    border-color: var(--accent, #0d9488) !important;
    color: var(--accent, #0d9488) !important;
}

/* Dark theme adjustments */
[data-theme="dark"] .goh-download-alles-container {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}
[data-theme="dark"] .goh-btn-print-alles {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}
[data-theme="dark"] .goh-checklist-print,
[data-theme="dark"] .goh-print-doc {
    color: var(--text-body) !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .goh-checklist-print:hover,
[data-theme="dark"] .goh-print-doc:hover {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* --- Responsive: stack buttons vertically on small screens --- */
@media (max-width: 600px) {
    .goh-download-alles-container {
        flex-direction: column;
    }
    .goh-btn-download-alles {
        min-width: unset;
        width: 100%;
    }
    .goh-btn-print-alles {
        width: 100%;
    }
    .goh-checklist-btn-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Huisarts Autocomplete --- */
.goh-autocomplete-wrapper {
    position: relative;
}
.goh-autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e8e4de);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}
.goh-ac-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color, #e8e4de);
    transition: background 0.15s;
}
.goh-ac-item:last-child { border-bottom: none; }
.goh-ac-item:hover { background: var(--accent-subtle, rgba(13,148,136,0.08)); }
.goh-ac-item strong { display: block; font-size: 14px; color: var(--text-heading, #1e293b); }
.goh-ac-meta { display: block; font-size: 12px; color: var(--text-muted, #94a3b8); margin-top: 2px; }
