/* Helpnisi – formulár na odstúpenie od zmluvy
   Dizajn zladený s e-shopom: karty #FFF3EE, polia #FFFBF5 s jemným
   ružovým okrajom, zelené tlačidlo v tvare pilulky. */

.hne-wd-section {
	--wd-card: #fff3ee;
	--wd-field: #fffbf5;
	--wd-line: #f3c3b5;
	--wd-accent: #c27559;
	--wd-green: #01372f;
	--wd-text: #323232;
	width: 100%;
	padding: 0.5rem 1.25rem 5rem;
	background: transparent;
}

.hne-wd {
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	font-family: Inter, sans-serif;
	color: var(--wd-text);
}

.hne-wd *,
.hne-wd *::before,
.hne-wd *::after {
	box-sizing: border-box;
}

/* Karty krokov */
.hne-wd .hne-wd__step {
	margin: 0 0 1.25rem;
	padding: 2rem 2rem 1.5rem;
	border: 0;
	border-radius: 12px;
	background: var(--wd-card);
}

.hne-wd .hne-wd__step-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.6rem;
	font-family: "DM Serif Display", serif;
	font-size: 1.55rem;
	font-weight: 400;
	line-height: 1.2;
	color: #000;
}

.hne-wd .hne-wd__step-title span {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	font-family: Inter, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: var(--wd-accent);
}

.hne-wd .hne-wd__hint {
	margin: 0 0 1.4rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--wd-text);
}

/* Mriežka polí */
.hne-wd .hne-wd__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.1rem;
}

.hne-wd .hne-wd__field {
	margin: 0 0 1.15rem;
}

.hne-wd label {
	display: block;
	margin: 0 0 0.45rem;
	padding: 0;
	font-family: Inter, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	color: #000;
}

.hne-wd label span[aria-hidden] {
	color: var(--wd-accent);
}

/* Polia */
.hne-wd input[type="text"],
.hne-wd input[type="email"],
.hne-wd input[type="tel"],
.hne-wd input[type="date"],
.hne-wd textarea {
	display: block;
	width: 100%;
	height: auto;
	min-height: 46px;
	margin: 0;
	padding: 0.7rem 1.15rem;
	border: 1px solid var(--wd-line);
	border-radius: 9999px;
	background: var(--wd-field);
	box-shadow: none;
	font-family: Inter, sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.4;
	color: #000;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.hne-wd textarea {
	min-height: 110px;
	padding: 0.85rem 1.15rem;
	border-radius: 18px;
	resize: vertical;
}

.hne-wd input::placeholder,
.hne-wd textarea::placeholder {
	color: #a8948d;
	opacity: 1;
}

.hne-wd input[type="date"] {
	color: #000;
}

.hne-wd input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0.55;
	cursor: pointer;
}

.hne-wd input:hover,
.hne-wd textarea:hover {
	border-color: #e7a994;
}

.hne-wd input:focus,
.hne-wd textarea:focus {
	outline: none;
	border-color: var(--wd-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(194, 117, 89, 0.15);
}

/* Automaticky doplnené polia jemne zvýraznené */
.hne-wd .is-filled {
	background: #fff;
}

.hne-wd .hne-wd__note {
	margin: 0.45rem 0.4rem 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #7a6a65;
}

.hne-wd .hne-wd__note--date {
	color: #9a3d22;
}

/* Stav overenia */
.hne-wd .hne-wd__status {
	margin: 0.1rem 0 0.5rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

.hne-wd .hne-wd__status:empty {
	display: none;
}

.hne-wd .hne-wd__status.is-loading,
.hne-wd .hne-wd__status.is-ok,
.hne-wd .hne-wd__status.is-error {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.75rem 1rem;
	border-radius: 12px;
}

.hne-wd .hne-wd__status.is-loading {
	color: #6b5a55;
	background: var(--wd-field);
}

.hne-wd .hne-wd__status.is-ok {
	color: var(--wd-green);
	background: #e8f1ee;
}

.hne-wd .hne-wd__status.is-error {
	color: #9a3d22;
	background: #fde4da;
}

.hne-wd .hne-wd__status.is-loading::before,
.hne-wd .hne-wd__status.is-ok::before,
.hne-wd .hne-wd__status.is-error::before {
	flex: 0 0 auto;
	width: 1.15rem;
	font-weight: 700;
	text-align: center;
}

.hne-wd .hne-wd__status.is-ok::before {
	content: "✓";
}

.hne-wd .hne-wd__status.is-error::before {
	content: "!";
}

.hne-wd .hne-wd__status.is-loading::before {
	content: "";
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	border: 2px solid var(--wd-line);
	border-top-color: var(--wd-accent);
	border-radius: 50%;
	animation: hne-wd-spin 0.8s linear infinite;
}

@keyframes hne-wd-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Skryté pole proti robotom */
.hne-wd .hne-wd__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Potvrdenie */
.hne-wd label.hne-wd__check {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0.4rem 0 0;
	padding: 1rem 1.15rem;
	border: 1px solid var(--wd-line);
	border-radius: 12px;
	background: var(--wd-field);
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--wd-text);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.hne-wd label.hne-wd__check:hover {
	border-color: #e7a994;
}

.hne-wd .hne-wd__check input {
	flex: 0 0 auto;
	position: relative;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	border: 1px solid #e3a796;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hne-wd .hne-wd__check input:checked {
	border-color: var(--wd-green);
	background: var(--wd-green);
}

.hne-wd .hne-wd__check input:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.hne-wd .hne-wd__check input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(194, 117, 89, 0.2);
}

/* Odoslanie – rovnaké tlačidlo ako v e-shope, v strede */
.hne-wd .hne-wd__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	margin: 1.75rem 0 0.5rem;
	text-align: center;
}

.hne-wd .hne-wd__form button.hne-wd__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 240px;
	margin: 0;
	padding: 0.8rem 2rem;
	border: 0;
	border-radius: 9999px;
	background: var(--wd-green);
	box-shadow: 0 8px 18px -8px rgba(1, 55, 47, 0.4);
	font-family: Inter, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.hne-wd .hne-wd__form button.hne-wd__submit:hover,
.hne-wd .hne-wd__form button.hne-wd__submit:focus-visible {
	background: var(--wd-accent);
	box-shadow: 0 10px 22px -6px rgba(194, 117, 89, 0.6);
	color: #fff;
	outline: none;
}

.hne-wd .hne-wd__form button.hne-wd__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.hne-wd .hne-wd__legal {
	max-width: 30rem;
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #7a6a65;
}

.hne-wd .hne-wd__error {
	margin: 0;
	font-size: 0.9rem;
	color: #9a3d22;
}

/* Hotovo */
.hne-wd .hne-wd__done {
	padding: 3rem 2rem;
	border-radius: 12px;
	background: var(--wd-card);
	text-align: center;
	outline: none;
}

.hne-wd .hne-wd__done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin: 0 0 1rem;
	border-radius: 50%;
	background: var(--wd-green);
	font-size: 1.4rem;
	color: #fff;
}

.hne-wd .hne-wd__done-title {
	margin: 0 0 0.5rem;
	font-family: "DM Serif Display", serif;
	font-size: 1.9rem;
	line-height: 1.2;
	color: #000;
}

.hne-wd .hne-wd__done p:last-child {
	max-width: 28rem;
	margin: 0 auto;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.hne-wd-section {
		padding: 0 1rem 3.5rem;
	}

	.hne-wd .hne-wd__row {
		grid-template-columns: 1fr;
	}

	.hne-wd .hne-wd__step {
		padding: 1.5rem 1.25rem 1rem;
	}

	.hne-wd .hne-wd__step-title {
		font-size: 1.35rem;
	}

	.hne-wd .hne-wd__form button.hne-wd__submit {
		width: 100%;
	}

	/* 16 px, aby iPhone pri kliknutí nepribližoval stránku */
	.hne-wd input[type="text"],
	.hne-wd input[type="email"],
	.hne-wd input[type="tel"],
	.hne-wd input[type="date"],
	.hne-wd textarea {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hne-wd .hne-wd__status.is-loading::before {
		animation: none;
	}
}


/* Výber objednávky podľa e-mailu */
.hne-wd .hne-wd__pick { margin: 0 0 1.1rem; }
.hne-wd .hne-wd__pick select { display: block; width: 100%; min-height: 46px; margin: 0; padding: 0.7rem 2.6rem 0.7rem 1.15rem; border: 1px solid var(--wd-line); border-radius: 9999px; background-color: var(--wd-field); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C27559' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.15rem center; font-family: Inter, sans-serif; font-size: 0.95rem; color: #000; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.hne-wd .hne-wd__pick select:focus { outline: none; border-color: var(--wd-accent); box-shadow: 0 0 0 3px rgba(194, 117, 89, 0.15); }
.hne-wd .hne-wd__pick-msg { margin: 0.45rem 0 0 0.25rem; font-family: Inter, sans-serif; font-size: 0.82rem; line-height: 1.4; color: #6B5B57; }
.hne-wd .hne-wd__pick-msg:empty { display: none; }
.hne-wd .hne-wd__pick-msg.is-error { color: #9B2C1F; }

/* Potvrdenie odstúpenia bez boxu */
.hne-wd .hne-wd__check { background: transparent !important; border: 0 !important; padding: 0.25rem 0 !important; box-shadow: none !important; }
