.trh-wrap {
	--trh-accent: #1f3a5f;
	--trh-dark: #1d2530;
	--trh-tint: color-mix(in srgb, var(--trh-accent) 7%, #fff);
	--trh-tint-border: color-mix(in srgb, var(--trh-accent) 22%, #fff);
	--trh-error: #c0262d;
	--trh-border: #d0d5dd;
	--trh-muted: #667085;
	max-width: 680px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
	color: var(--trh-dark);
}
.trh-form fieldset {
	border: 1px solid var(--trh-border);
	border-radius: 10px;
	padding: 18px 18px 6px;
	margin: 0 0 20px;
}
.trh-form legend {
	font-weight: 700;
	font-size: 1.1em;
	padding: 0 6px;
	color: var(--trh-dark);
}
.trh-field { margin-bottom: 16px; }
.trh-field > label { display: block; font-weight: 600; margin-bottom: 6px; }
.trh-optional { font-weight: 400; color: var(--trh-muted); }
.trh-form input[type="text"],
.trh-form input[type="tel"],
.trh-form input[type="email"],
.trh-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid var(--trh-border);
	border-radius: 8px;
	font-size: 16px; /* väldib iPhone'i suumimist */
	background: #fff;
}
.trh-form input:focus,
.trh-form textarea:focus {
	outline: 2px solid var(--trh-accent);
	outline-offset: 1px;
	border-color: var(--trh-accent);
}
.trh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .trh-row { grid-template-columns: 1fr; } }

.trh-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.trh-choice {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px;
	border: 1px solid var(--trh-border);
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
}
.trh-choice input { accent-color: var(--trh-accent); }
.trh-choice:has(input:checked) { border-color: var(--trh-accent); background: var(--trh-tint); }

.trh-help { color: var(--trh-muted); font-size: 0.92em; margin: 0 0 8px; }

.trh-dropzone {
	display: block;
	position: relative;
	border: 2px dashed var(--trh-border);
	border-radius: 10px;
	padding: 22px 14px;
	text-align: center;
	cursor: pointer;
	background: #fafbfc;
	transition: border-color .15s, background .15s;
}
.trh-dropzone:hover { border-color: var(--trh-accent); background: var(--trh-tint); }
.trh-dropzone-text { font-weight: 600; color: var(--trh-accent); }
.trh-dropzone input[type="file"] {
	position: absolute; inset: 0; width: 100%; height: 100%;
	opacity: 0; cursor: pointer;
}

.trh-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.trh-preview figure { margin: 0; width: 88px; text-align: center; }
.trh-preview img,
.trh-preview .trh-noimg {
	width: 88px; height: 88px; object-fit: cover;
	border-radius: 6px; border: 1px solid var(--trh-border);
	display: flex; align-items: center; justify-content: center;
	background: #f2f4f7; font-size: 12px; color: var(--trh-muted);
}
.trh-preview figcaption {
	font-size: 11px; color: var(--trh-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.trh-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.trh-consent input { margin-top: 4px; accent-color: var(--trh-accent); }

.trh-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

.trh-submit {
	width: 100%;
	padding: 14px 20px;
	border: 0; border-radius: 8px;
	background: var(--trh-accent); color: #fff;
	font-size: 17px; font-weight: 700;
	cursor: pointer;
}
.trh-submit:hover { filter: brightness(1.08); }
.trh-submit[disabled] { opacity: .6; cursor: wait; }

.trh-alert {
	border-left: 4px solid var(--trh-error);
	background: #fdf0f0;
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 20px;
}
.trh-alert p { margin: 6px 0 0; }
.trh-field.has-error input,
.trh-field.has-error textarea,
.trh-field.has-error .trh-dropzone { border-color: var(--trh-error); }
.trh-field-error { color: var(--trh-error); font-size: 0.92em; margin: 6px 0 0; }

.trh-success {
	border: 1px solid #a6e3b8;
	background: #effaf2;
	border-radius: 10px;
	padding: 24px;
	text-align: center;
}
.trh-success h3 { margin-top: 0; }

/* Sildi näidised */
.trh-guide {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 14px;
	align-items: start;
	background: var(--trh-tint);
	border: 1px solid var(--trh-tint-border);
	border-radius: 10px;
	padding: 12px;
	margin: 0 0 12px;
}
.trh-guide figure { margin: 0; }
.trh-guide img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--trh-border);
	background: #fff;
}
.trh-guide figcaption { font-size: 0.85em; color: var(--trh-dark); margin-top: 6px; line-height: 1.35; }
.trh-guide-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trh-guide-labels figcaption { text-align: center; color: var(--trh-muted); }
.trh-guide-labels img { aspect-ratio: 2 / 3; object-fit: cover; object-position: top; }
.trh-guide-note { grid-column: 1 / -1; font-size: 0.85em; color: var(--trh-dark); margin: 0; }
.trh-zoom { display: block; cursor: zoom-in; }
@media (max-width: 560px) {
	.trh-guide { grid-template-columns: 1fr; }
}

.trh-lightbox {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0, 0, 0, .85);
	display: flex; align-items: center; justify-content: center;
	padding: 16px; cursor: zoom-out;
}
.trh-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; background: #fff; }
.trh-lightbox button {
	position: absolute; top: 10px; right: 12px;
	background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
}
.trh-alert ul { margin: 6px 0 0 18px; padding: 0; }
.trh-alert li { margin: 2px 0; }

/* Silt puudub */
.trh-nolabel { margin-top: 12px; }
.trh-nolabel-help {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--trh-tint);
	color: var(--trh-dark);
}
.trh-is-nolabel .trh-req { display: none; }
.trh-is-nolabel .trh-dropzone[for="trh-silt"] { opacity: .6; }
