/*
Theme Name: Carnilove Child
Template: carnilove
Description: Child tema za Carnilove - ovdje ide custom kod i CSS.
Version: 1.0.3
Text Domain: carnilove-child
*/

/* ---------- Kviz ---------- */
.cl-quiz .gform_required_legend { display: none; }

/* Odgovori kao kartice
 * (selektori pojačani s .gform-theme jer GF Orbital ima jača pravila) */
.gform-theme .cl-quiz .gfield--type-multi_choice .gchoice {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 2px solid rgba(111, 3, 47, .2);
	border-radius: 12px;
	padding: 0 16px;
	margin-bottom: 10px;
	transition: border-color .15s, background .15s;
}
.gform-theme .cl-quiz .gfield--type-multi_choice .gchoice input {
	flex: none;
	margin: 0;
}
.gform-theme .cl-quiz .gfield--type-multi_choice .gchoice label {
	flex: 1;
	margin: 0;
	padding: 14px 0;
	cursor: pointer;
}
.gform-theme .cl-quiz .gfield--type-multi_choice .gchoice:has(input:checked) {
	border-color: var(--cl-primary);
	background: #f7e9ee;
}
.cl-quiz .gfield--type-multi_choice .gfield_label {
	font-size: 22px;
	line-height: 1.3;
	color: var(--cl-primary);
	margin-bottom: 14px;
}

/* ---------- Rezultat ---------- */
.cl-result {
	text-align: center;
	padding: 8px 0;
}
.cl-result__photo {
	display: block;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin: 0 auto 18px;
	border-radius: 12px;
	border: 6px solid #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
	transform: rotate(-1.5deg);
}
.cl-result__name {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}
.cl-result__type {
	margin: 4px 0 8px;
	font-size: clamp(32px, 9vw, 52px);
	line-height: 1.05;
	font-weight: 900;
	color: var(--cl-primary);
	text-transform: uppercase;
}
.cl-result__desc {
	margin: 0;
	font-size: 18px;
}

/* ---------- Dijeljenje ---------- */
.cl-share {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}
.cl-share__btn {
	display: block;
	text-align: center;
	text-decoration: none;
	appearance: none;
	border: 2px solid var(--cl-primary);
	background: var(--cl-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	padding: 14px 18px;
	border-radius: 999px;
	cursor: pointer;
}
.cl-share__btn--alt {
	background: transparent;
	color: var(--cl-primary);
}
.cl-share__btn:hover { color: #fff; background: var(--cl-primary-dark); }
.cl-share__btn--alt:hover { color: var(--cl-primary); background: #f7e9ee; }
.cl-share__btn[aria-disabled="true"] { opacity: .5; cursor: wait; pointer-events: none; }
.cl-share__hint {
	margin: 4px 0 0;
	font-size: 14px;
	text-align: center;
	opacity: .75;
}
