/* EU Taganemisnupp – avalik stiil */

.eutn-button {
	display: inline-block;
	background: #EA5829;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	padding: 14px 26px;
	border: 2px solid #EA5829;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.eutn-button:hover,
.eutn-button:focus {
	background: #d04a1f;
	border-color: #d04a1f;
	color: #ffffff;
}

.eutn-button--outline {
	background: transparent;
	color: #EA5829;
}

.eutn-button--outline:hover,
.eutn-button--outline:focus {
	background: #EA5829;
	color: #ffffff;
}

/* Vorm */
.eutn-form-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
	color: #1d1d1b;
}

.eutn-form-header h2 {
	margin: 0 0 8px;
	font-size: 26px;
}

.eutn-intro {
	margin: 0 0 24px;
	color: #4a4a48;
	line-height: 1.55;
}

.eutn-form {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 28px;
}

.eutn-field {
	margin-bottom: 18px;
}

.eutn-field-row {
	display: flex;
	gap: 16px;
}

.eutn-field-row .eutn-field {
	flex: 1;
}

.eutn-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.eutn-field input[type="text"],
.eutn-field input[type="email"],
.eutn-field input[type="tel"],
.eutn-field input[type="date"],
.eutn-field select,
.eutn-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #c9c9c7;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
}

.eutn-field input:focus,
.eutn-field select:focus,
.eutn-field textarea:focus {
	outline: none;
	border-color: #EA5829;
	box-shadow: 0 0 0 3px rgba(234, 88, 41, .15);
}

.eutn-field input.eutn-invalid,
.eutn-field select.eutn-invalid,
.eutn-field textarea.eutn-invalid {
	border-color: #d63638;
}

.eutn-req {
	color: #d63638;
}

.eutn-hint {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: #777;
}

.eutn-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	line-height: 1.5;
	margin-bottom: 0;
}

.eutn-consent input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 18px;
	/* Vertikaalselt joonda ruut esimese tekstirea keskkohaga. */
	margin-top: calc((1em * 1.5 - 18px) / 2);
}

.eutn-consent span {
	flex: 1 1 auto;
}

.eutn-submit {
	width: 100%;
	font-size: 17px;
	padding: 15px;
}

.eutn-submit[disabled] {
	opacity: .65;
	cursor: progress;
}

.eutn-legal {
	margin: 16px 0 0;
	font-size: 13px;
	color: #777;
	line-height: 1.5;
}

/* Robotilõks – peidetud */
.eutn-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Veateade */
.eutn-form-error {
	background: #fcebea;
	border: 1px solid #d63638;
	color: #8a1f1f;
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 18px;
}

/* Edukas esitamine */
.eutn-success {
	background: #effff0;
	border: 1px solid #2e7d32;
	border-radius: 12px;
	padding: 32px;
	text-align: center;
}

.eutn-success-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #2e7d32;
	color: #fff;
	font-size: 30px;
}

.eutn-success h3 {
	margin: 0 0 8px;
	font-size: 22px;
}

.eutn-success-text {
	margin: 0;
	color: #355c37;
	line-height: 1.55;
}

/* Ujuv nupp */
.eutn-floating {
	position: fixed;
	bottom: 22px;
	z-index: 9999;
	background: #EA5829;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 18px;
	border-radius: 30px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

.eutn-floating:hover,
.eutn-floating:focus {
	background: #d04a1f;
	color: #fff;
}

.eutn-floating--right {
	right: 22px;
}

.eutn-floating--left {
	left: 22px;
}

/* WooCommerce'i kast */
.eutn-woo-box {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #faf6f3;
}

.eutn-woo-title {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 16px;
}

.eutn-woo-text {
	margin: 0 0 14px;
	color: #555;
}

@media (max-width: 540px) {
	.eutn-field-row {
		flex-direction: column;
		gap: 0;
	}

	.eutn-form {
		padding: 20px;
	}
}
