/* ── Emocionálny Kompas — formuláre ──────────────────────── */

.ek-form--loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s;
}

.ek-form-row {
	margin-bottom: 16px;
}

.ek-form-row--half {
	display: flex;
	gap: 16px;
}

.ek-form-row--half > .ek-form-group {
	flex: 1 1 0;
	min-width: 0;
}

.ek-form-group {
	display: flex;
	flex-direction: column;
}

.ek-form-label {
	margin-bottom: 4px;
	font-size: 14px;
}

.ek-required {
	color: #e00;
}

.ek-hint {
	font-size: 12px;
	color: #888;
}

.ek-form-input {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 15px;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.ek-form-input:focus {
	border-color: #f40084;
	outline: none;
	box-shadow: 0 0 0 2px rgba(244, 0, 132, 0.15);
}

select.ek-form-input {
	appearance: auto;
}

/* Radios — inline */
.ek-form-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	padding-top: 4px;
}

.ek-form-radio {
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}

.ek-form-radio input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 2px solid #f40084;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	margin-right: 6px;
	vertical-align: middle;
	position: relative;
	transition: all 0.2s;
}

.ek-form-radio input[type="radio"]:checked {
	background: #f40084;
	border-color: #f40084;
}

.ek-form-radio input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.ek-form-radio input[type="radio"]:hover {
	box-shadow: 0 0 0 3px rgba(244, 0, 132, 0.1);
}

/* Checkboxy — súhlasy */
.ek-form-consents {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.ek-form-checkbox {
	margin-bottom: 10px;
	background: #e9eef2;
	padding: 15px 20px;
	border-radius: 15px;
	line-height: 1em;
}

.ek-form-checkbox label {
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 200 !important;
}

.ek-form-checkbox input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 2px solid #f40084;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	margin-top: 1px;
	flex-shrink: 0;
	transition: all 0.2s;
	position: relative;
}

.ek-form-checkbox input[type="checkbox"]:checked {
	background: #f40084;
	border-color: #f40084;
}

.ek-form-checkbox input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.ek-form-checkbox input[type="checkbox"]:hover:not(:disabled) {
	border-color: #f40084;
	box-shadow: 0 0 0 3px rgba(244, 0, 132, 0.1);
}

.ek-form-checkbox input[type="checkbox"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ek-consent-text {
	font-size: .9em;
}

/* Zoznamy v súhlasoch */
.ek-form-checkbox ul {
	margin: 6px 0 2px 0;
	padding-left: 18px;
	list-style: none;
}

.ek-form-checkbox ul li {
	position: relative;
	padding-left: 14px;
	margin-bottom: 5px;
	line-height: 1.4;
}

.ek-form-checkbox ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 6px;
	height: 6px;
	background: #f40084;
	border-radius: 50%;
}

/* Submit */
.ek-form-submit {
	display: inline-block;
	padding: 12px 32px;
	background: #f40084;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 8px;
}

.ek-form-submit:hover {
	background: #d00070;
}

/* Správy */
.ek-form-errors {
	background: #ffeef0;
	border: 1px solid #e00;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	color: #c00;
}

.ek-form-errors ul {
	margin: 0;
	padding-left: 18px;
}

.ek-form-errors li {
	margin-bottom: 2px;
}

.ek-form-success {
	background: #daf3da;
	border: 1px solid #0d590d;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
	color: #0d590d;
}

.ek-form-info {
	text-align: center;
	color: #666;
}

/* Autocomplete — pozícia relative pre dropdown */
.ek-form-group {
	position: relative;
}

/* Responzívne */
@media (max-width: 600px) {
	.ek-form-row--half {
		flex-direction: column;
		gap: 0;
	}

	.ek-form-radios {
		flex-direction: column;
		gap: 6px;
	}
}
