/* MW Kontaktný formulár – štýly podľa eventlads.sk */

.mwcf {
	--mwcf-gold: #C39E6E;
	--mwcf-dark: #2A2A2A;
	--mwcf-grey: #8d8d8d;
	--mwcf-radio: #666;
	--mwcf-serif: 'Abril Fatface', cursive;
	--mwcf-sans: 'Lato', sans-serif;

	font-family: var(--mwcf-sans);
	font-size: 16px;
	line-height: 20px;
	color: var(--mwcf-dark);
	box-sizing: border-box;
}
.mwcf *,
.mwcf *::before,
.mwcf *::after {
	box-sizing: border-box;
}

/* Nadpis */
.mwcf .mwcf-heading {
	font-family: var(--mwcf-serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 36px;
	text-transform: uppercase;
	text-align: center;
	color: var(--mwcf-gold);
	margin: 0 0 40px;
	padding: 0;
	letter-spacing: normal;
}

/* Rozloženie */
/* Medzera medzi stĺpcami riešime cez gap, nie zápornými okrajmi. Záporné okraje
   prečnievali mimo obsah a na mobile (hlavne iOS) sa dala stránka ťahať doprava. */
.mwcf .mwcf-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	gap: 0 30px;
}
.mwcf .mwcf-col {
	width: calc(50% - 15px);
	padding: 0;
	min-width: 0;
}
.mwcf .mwcf-item {
	margin: 0;
}

/* Popisky */
.mwcf .mwcf-label {
	display: block;
	font-family: var(--mwcf-serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: var(--mwcf-dark);
	margin: 0 0 20px;
	padding: 0;
}
.mwcf .mwcf-sr {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px;
	width: 1px;
	word-wrap: normal;
}

/* Textové polia */
.mwcf input[type="text"],
.mwcf input[type="email"],
.mwcf input[type="tel"],
.mwcf textarea,
.mwcf select {
	display: block;
	width: 100%;
	font-family: var(--mwcf-serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: var(--mwcf-grey);
	background: #fff;
	border: 2px solid var(--mwcf-gold);
	border-radius: 0;
	box-shadow: none;
	padding: 12px 20px;
	margin: 0 0 10px;
	outline: none;
	transition: none;
	-webkit-appearance: none;
	appearance: none;
}
.mwcf input[type="text"],
.mwcf input[type="email"],
.mwcf input[type="tel"] {
	height: 48px;
}
.mwcf textarea {
	height: 148px;
	min-height: 148px;
	resize: vertical;
	margin-bottom: 0;
}
.mwcf input::placeholder,
.mwcf textarea::placeholder {
	color: var(--mwcf-grey);
	opacity: 1;
}
.mwcf input:focus,
.mwcf textarea:focus,
.mwcf select:focus {
	outline: none;
	border-color: var(--mwcf-gold);
	box-shadow: none;
}
.mwcf input.mwcf-invalid,
.mwcf select.mwcf-invalid,
.mwcf textarea.mwcf-invalid {
	border-color: #c0392b;
}

/* Dátum – tri selecty vedľa seba */
.mwcf .mwcf-date {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}
.mwcf .mwcf-select {
	display: inline-block;
	margin-right: 7px;
}
.mwcf .mwcf-select-year {
	margin-right: 0;
}
.mwcf select {
	width: auto;
	height: 46px !important;
	padding: 9px 30px 9px 10px;
	line-height: normal;
	cursor: default;
	-webkit-appearance: auto;
	appearance: auto;
	background-image: none;
}
.mwcf .mwcf-select-year select {
	padding: 10px 30px 10px 10px;
}

/* Vlastné radio */
.mwcf .mwcf-radios {
	margin-top: 8px;
}
.mwcf .mwcf-radio {
	display: inline-block;
	margin-right: 38px;
}
.mwcf .mwcf-radio:last-child {
	margin-right: 0;
}
/* Skryté radio. Neposúvame ho mimo stránku, ale zmenšíme na bod vo vlastnom
   obale, aby nikdy nerozširovalo stránku. */
.mwcf .mwcf-radio {
	position: relative;
}
.mwcf [type="radio"]:checked,
.mwcf [type="radio"]:not(:checked) {
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}
.mwcf [type="radio"]:checked + label,
.mwcf [type="radio"]:not(:checked) + label {
	position: relative;
	display: inline-block;
	padding-left: 28px;
	cursor: pointer;
	font-family: var(--mwcf-sans);
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
	color: var(--mwcf-radio);
	margin: 5px 0 25px;
}
.mwcf [type="radio"]:checked + label::before,
.mwcf [type="radio"]:not(:checked) + label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 18px;
	height: 18px;
	border: 2px solid var(--mwcf-gold);
	border-radius: 100%;
	background: #fff;
}
.mwcf [type="radio"]:checked + label::after,
.mwcf [type="radio"]:not(:checked) + label::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 100%;
	background: var(--mwcf-gold);
	transition: all 0.2s ease;
}
.mwcf [type="radio"]:not(:checked) + label::after {
	opacity: 0;
	transform: scale(0);
}
.mwcf [type="radio"]:checked + label::after {
	opacity: 1;
	transform: scale(1);
}

/* Súhlas */
.mwcf .mwcf-consent {
	font-family: var(--mwcf-sans);
	font-size: 16px;
	line-height: 20px;
	color: var(--mwcf-dark);
	margin: 25px 0;
}
.mwcf .mwcf-consent a {
	color: inherit;
	text-decoration: none;
}
.mwcf .mwcf-consent a:hover {
	text-decoration: underline;
}

/* reCAPTCHA */
.mwcf .mwcf-captcha {
	display: flex;
	justify-content: center;
	margin: 0 0 25px;
}

/* Správa po odoslaní */
.mwcf .mwcf-message {
	display: none;
	text-align: center;
	margin: 0 0 20px;
	padding: 12px 20px;
	border: 2px solid var(--mwcf-gold);
	color: var(--mwcf-dark);
}
.mwcf .mwcf-message[data-type="success"] {
	display: block;
	background: rgba(195, 158, 110, 0.12);
}
.mwcf .mwcf-message[data-type="error"] {
	display: block;
	border-color: #c0392b;
	color: #c0392b;
}

/* Tlačidlo */
.mwcf .mwcf-actions {
	text-align: center;
}
.mwcf .mwcf-submit {
	display: inline-block;
	font-family: var(--mwcf-serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	text-transform: uppercase;
	letter-spacing: normal;
	color: var(--mwcf-gold);
	background: none;
	background-color: transparent;
	border: 2px solid var(--mwcf-gold);
	border-radius: 0;
	box-shadow: none;
	padding: 16px 42px;
	margin: 0;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.mwcf .mwcf-submit:hover,
.mwcf .mwcf-submit:focus {
	background-color: var(--mwcf-gold);
	color: var(--mwcf-dark);
	outline: none;
}
.mwcf .mwcf-submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* Honeypot */
.mwcf .mwcf-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Mobil */
@media (max-width: 767px) {
	.mwcf .mwcf-col {
		width: 100%;
	}
	.mwcf .mwcf-radio {
		display: block;
		margin-right: 0;
	}
	.mwcf .mwcf-date {
		display: block;
	}
	.mwcf .mwcf-select {
		display: block;
		margin-right: 0;
	}
	.mwcf select {
		width: 100%;
	}
	.mwcf textarea {
		margin-bottom: 10px;
	}
}
