/* Taganemisnupp – taganemisavalduse vorm. Brändivärvid: config.php accent_color / accent_text_color. */

.tgn {
	max-width: 680px;
	margin: 0 auto 40px;
}

.tgn__intro p {
	margin: 0 0 12px;
	line-height: 1.6;
}

.tgn__note {
	font-size: 14px;
	color: #555;
}

.tgn__errors {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-left: 4px solid #d63638;
	background: #fdf0f0;
}

.tgn__errors p {
	margin: 0 0 6px;
}

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

.tgn__form {
	margin-top: 24px;
}

.tgn__row {
	margin: 0 0 18px;
}

.tgn__row > label,
.tgn__legend {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 15px;
}

.tgn__row .req {
	display: inline-block;
	margin: 0;
	color: #d63638;
}

.tgn__row input[type="text"],
.tgn__row input[type="email"],
.tgn__row input[type="tel"],
.tgn__row select,
.tgn__row textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid #cfcfcf;
	border-radius: 5px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	background: #fff;
	color: #2F2F2F;
}

.tgn__row input:focus,
.tgn__row select:focus,
.tgn__row textarea:focus {
	outline: 2px solid var(--tgn-accent, #2F2F2F);
	outline-offset: 1px;
	border-color: #2F2F2F;
}

.tgn__row.has-error input,
.tgn__row.has-error textarea,
.tgn__row.has-error select {
	border-color: #d63638;
}

.tgn__hint {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: #666;
}

.tgn__err {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: #d63638;
	font-weight: 600;
}

/* .tgn__row > label (0,1,1) võidaks .tgn__radio'st
   (0,1,0) ja muudaks need blokkideks – seetõttu kahe klassiga selektor. */
.tgn__row .tgn__radio {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}

.tgn__row .tgn__radio input[type="radio"] {
	flex: 0 0 auto;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
}

.tgn__row .tgn__radio span {
	display: inline-block;
	margin: 0;
	font-weight: 400;
}

/* Meepott – peidus inimeste, mitte robotite eest. */
.tgn__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tgn__submit {
	margin-top: 28px;
}

.tgn__button {
	font-size: 17px;
	font-weight: 600;
	padding: 14px 28px;
	cursor: pointer;
}

.tgn--ok {
	padding: 24px 28px;
	border: 1px solid #e0e0e0;
	border-left: 4px solid #00a32a;
	border-radius: 5px;
	background: #fafafa;
}

.tgn--ok h2 {
	margin-top: 0;
}

.tgn__ref {
	font-size: 18px;
}

.tgn-cta {
	margin: 20px 0;
}

@media (max-width: 600px) {
	.tgn__button {
		width: 100%;
		justify-content: center;
	}
}
