/* Familie Stamboom — invulwizard
 * Mobile-first per sectie 9 van het functioneel ontwerp:
 * grote duimvriendelijke elementen, één vraag per scherm,
 * geen horizontaal scrollen, tapbare kaarten i.p.v. dropdowns.
 */

#fst-wizard-root {
	max-width: 480px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.4;
	box-sizing: border-box;
}

#fst-wizard-root * {
	box-sizing: border-box;
}

.fst-progress {
	height: 4px;
	background: #e5e5e5;
	border-radius: 2px;
	margin-bottom: 24px;
	overflow: hidden;
}

.fst-progress-bar {
	height: 100%;
	background: #2d6a4f;
	transition: width 0.2s ease;
}

.fst-step {
	padding: 8px 4px 24px;
}

.fst-question {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 16px;
}

.fst-help-text {
	font-size: 14px;
	color: #666;
	margin-bottom: 16px;
}

.fst-input {
	width: 100%;
	font-size: 18px;
	padding: 14px 16px;
	border: 2px solid #ccc;
	border-radius: 10px;
	margin-bottom: 12px;
	-webkit-appearance: none;
	appearance: none;
}

.fst-input:focus {
	border-color: #2d6a4f;
	outline: none;
}

/* Grote duimvriendelijke primaire knop, onderaan binnen duimbereik. */
.fst-btn-primary {
	width: 100%;
	font-size: 18px;
	font-weight: 600;
	padding: 16px;
	background: #2d6a4f;
	color: #fff;
	border: none;
	border-radius: 10px;
	margin-top: 8px;
	min-height: 52px;
}

.fst-btn-primary:disabled {
	background: #a8c3b8;
}

/* Na succesvol opslaan: de knop toont zelf de bedanktekst, blijft
 * herkenbaar 'af' (niet grijs/uitgeschakeld-ogend) zodat niemand
 * geneigd is er nogmaals op te drukken. */
.fst-btn-primary.fst-btn-voltooid:disabled {
	background: #2d6a4f;
	color: #fff;
	opacity: 1;
}

.fst-btn-secondary {
	width: 100%;
	font-size: 16px;
	padding: 14px;
	background: transparent;
	color: #444;
	border: 2px solid #ccc;
	border-radius: 10px;
	margin-top: 8px;
	min-height: 52px;
}

/* Grote, ondubbelzinnige ja/nee-knoppen i.p.v. checkboxen (sectie 9). */
.fst-yesno {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.fst-yesno button {
	flex: 1;
	font-size: 18px;
	font-weight: 600;
	padding: 18px 8px;
	border-radius: 10px;
	border: 2px solid #ccc;
	background: #fff;
	min-height: 56px;
}

.fst-yesno button.fst-selected {
	border-color: #2d6a4f;
	background: #e6f0eb;
	color: #2d6a4f;
}

/* Jongen/meisje-knoppen gebruiken data-selected i.p.v. de fst-selected
 * klasse (zelfde groene stijl als hierboven, alleen andere selector). */
.fst-geslacht-btn[data-selected="1"] {
	border-color: #2d6a4f;
	background: #e6f0eb;
	color: #2d6a4f;
}

/* Matchstap: tapbare kaarten i.p.v. dropdown (sectie 9). De omkaderde
 * achtergrond en animatie verschijnen alleen zodra er daadwerkelijk
 * suggesties zijn (via :not(:empty)) — zo valt duidelijk op dát er
 * iets is verschenen, in plaats van dat de lijst onopvallend in het
 * formulier opduikt. */
.fst-match-list {
	margin-bottom: 12px;
}

.fst-match-list:not(:empty) {
	border: 2px solid #cddcd4;
	background: #f4f8f6;
	border-radius: 12px;
	padding: 10px;
	margin-top: 4px;
	animation: fst-match-verschijnen 0.25s ease-out;
}

.fst-match-list:not(:empty)::before {
	content: "Tik hieronder aan als iemand hierbij hoort:";
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #2d6a4f;
	margin-bottom: 8px;
}

@keyframes fst-match-verschijnen {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fst-match-card {
	width: 100%;
	text-align: left;
	background: #fafafa;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 8px;
	font-size: 16px;
	min-height: 52px;
}

.fst-match-context {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 4px;
	font-weight: 400;
}

.fst-match-card.fst-selected {
	border-color: #2d6a4f;
	background: #e6f0eb;
}

/* Namen die elders in dezelfde sessie zijn getypt, maar nog niet zijn
 * opgeslagen — duidelijk anders gestyled dan echte, opgeslagen matches. */
.fst-match-card-sessie {
	background: #fdf9f0;
	border-style: dashed;
	border-color: #d9c9a3;
}

.fst-match-sessie-label {
	display: block;
	font-size: 12px;
	color: #8a6d3b;
	font-weight: 400;
	margin-top: 2px;
}

.fst-hidden {
	display: none !important;
}

.fst-match-card-new {
	color: #2d6a4f;
	font-weight: 600;
}

/* Relatievragen als volledige zinnen, onder elkaar (i.p.v. korte
 * woordknopjes naast elkaar) — beter leesbaar voor lage-drempel gebruik. */
/* Woordknoppen voor "Ik ben iemand die..." / "Waar ken je me van?" —
 * korte woorden, dus als los grid naast elkaar (i.p.v. de volzin-lijst
 * hierboven, die voor langere teksten is). */
.fst-woord-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.fst-woord-knop {
	font-size: 14px;
	padding: 10px 14px;
	border: 2px solid #ccc;
	border-radius: 20px;
	background: #fff;
	min-height: 44px;
}

.fst-woord-knop.fst-selected {
	border-color: #2d6a4f;
	background: #e6f0eb;
	color: #2d6a4f;
	font-weight: 600;
}

.fst-subtype-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.fst-subtype-option {
	width: 100%;
	text-align: left;
	font-size: 16px;
	line-height: 1.3;
	padding: 14px 16px;
	border: 2px solid #ccc;
	border-radius: 10px;
	background: #fff;
	min-height: 52px;
}

.fst-subtype-option.fst-selected {
	border-color: #2d6a4f;
	background: #e6f0eb;
	color: #2d6a4f;
	font-weight: 600;
}

/* Samenvatting bij 'Klopt dit?' — label en waarde met gegarandeerde
 * tussenruimte (gap), zodat ze nooit tegen elkaar aan kunnen komen. */
/* Klein, levend voorbeeldboompje dat meegroeit tijdens het invullen —
 * bewust speels en niet de definitieve stamboomweergave. */
.fst-tree-preview {
	background: #f4f8f6;
	border: 2px solid #d9e7e1;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 20px;
}

.fst-tree-preview-title {
	font-size: 14px;
	font-weight: 600;
	color: #2d6a4f;
	margin-bottom: 8px;
}

.fst-tree-preview-body {
	font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
	white-space: pre;
	overflow-x: auto;
	margin: 0;
}

.fst-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 15px;
}

.fst-summary-label {
	color: #555;
	flex-shrink: 0;
}

.fst-summary-value {
	font-weight: 600;
	text-align: right;
}

.fst-repeat-item {
	background: #fafafa;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}

.fst-remove-link {
	color: #b3261e;
	font-size: 14px;
	background: none;
	border: none;
	padding: 8px 0;
}

.fst-status-msg {
	font-size: 15px;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.fst-status-msg.fst-troost {
	background: #f5f0e8;
	color: #5c4a2f;
	text-align: left;
}

.fst-status-msg.fst-error {
	background: #fdecea;
	color: #b3261e;
}

.fst-status-msg.fst-success {
	background: #e6f0eb;
	color: #2d6a4f;
}

/* --- Introscherm ---------------------------------------------------- */
.fst-intro {
	margin-bottom: 8px;
}

.fst-bekijk-stamboom-knop {
	display: block;
	text-align: center;
	background: #fff;
	border: 2px solid #2d6a4f;
	color: #2d6a4f;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 20px;
	min-height: 50px;
}

.fst-logo {
	display: block;
	width: 92px;
	height: 92px;
	margin: 0 auto 14px;
}

.fst-intro-titel {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 12px;
	text-align: center;
}

.fst-intro p {
	font-size: 15px;
	color: #444;
	line-height: 1.5;
	margin: 0 0 10px;
}

.fst-intro-teller {
	background: #f5f0e8;
	color: #5c4a2f;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 15px;
	font-weight: 600;
	margin-top: 12px;
}

.fst-intro-teller span {
	font-size: 18px;
}

/* Grote, duidelijke keuzeknoppen voor "voor wie vul je dit in". */
.fst-voor-wie-btn {
	display: block;
	width: 100%;
	text-align: left;
	font-size: 16px;
	padding: 16px;
	border: 2px solid #ccc;
	border-radius: 10px;
	background: #fff;
	margin-bottom: 10px;
	min-height: 54px;
}

/* --- Fotoslider, genest in het tellerblok ------------------------------ */
.fst-slider {
	width: 130px;
	margin: 12px auto 0;
	overflow: hidden;
	border-radius: 10px;
	background: #e8e0d2;
}

.fst-slider-track {
	display: flex;
	transition: transform 0.6s ease;
}

.fst-slider-slide {
	flex: 0 0 100%;
	text-align: center;
}

.fst-slider-slide img {
	width: 130px;
	height: 130px;
	object-fit: cover;
	display: block;
}

.fst-slider-placeholder {
	width: 130px;
	height: 130px;
	background: #e0e0e0;
	display: block;
}

.fst-slider-naam {
	font-size: 12px;
	font-weight: 600;
	color: #5c4a2f;
	padding: 6px 4px;
	background: #fff;
}

/* --- Fotoveld bij de naam-stap ----------------------------------------- */
#fst-foto-preview img {
	max-width: 140px;
	max-height: 140px;
	border-radius: 10px;
	margin-bottom: 10px;
	object-fit: cover;
	display: block;
}

#fst-foto-input {
	width: 100%;
	font-size: 14px;
}

.fst-pincode-blok {
	margin-top: 24px;
	padding: 16px;
	background: #f4f8f6;
	border: 2px solid #cddcd4;
	border-radius: 12px;
	font-size: 14px;
	color: #333;
}

.fst-pincode-titel {
	font-weight: 700;
	margin-bottom: 6px;
}

.fst-pincode-code {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 4px;
	color: #2d6a4f;
	text-align: center;
	background: #fff;
	border-radius: 8px;
	padding: 10px;
}

.fst-pincode-knop {
	display: block;
	text-align: center;
	text-decoration: none;
	margin-top: 14px;
}
