/* Dotazník spokojnosti – frontend
   A színek CSS-változók, a sablonhoz igazításhoz elég ezeket átírni. */

.ipdot {
	--ipdot-ink:      #17262b;
	--ipdot-ink-soft: #4a5f63;
	--ipdot-muted:    #7a8d8f;
	--ipdot-card:     #ffffff;
	--ipdot-line:     #dfe2da;
	--ipdot-water:    #256b68;
	--ipdot-water-dk: #164c4a;
	--ipdot-water-lt: #e2efec;
	--ipdot-reed:     #b07d2c;
	--ipdot-warn:     #9d3b2f;
	--ipdot-disp:     Georgia, "Iowan Old Style", "Times New Roman", serif;

	max-width: 760px;
	margin: 0 auto;
	color: var(--ipdot-ink);
	font-size: 17px;
	line-height: 1.55;
	text-align: left;
	font-weight: bold;
}
.ipdot *,
.ipdot *::before,
.ipdot *::after { box-sizing: border-box; }

/* nyelvválasztó */
.ipdot-langbar { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 10px; }
.ipdot-lang {
	font: 600 13px/1 inherit;
	letter-spacing: .06em;
	padding: 8px 12px;
	border: 1px solid var(--ipdot-line);
	background: transparent;
	color: var(--ipdot-muted);
	border-radius: 999px;
	cursor: pointer;
}
.ipdot-lang.is-on { background: var(--ipdot-water); border-color: var(--ipdot-water); color: #fff; }

/* bevezető */
.ipdot-intro h2 {
	font-family: var(--ipdot-disp);
	font-weight: 400;
	font-size: clamp(25px, 5.5vw, 34px);
	line-height: 1.2;
	margin: 0 0 16px;
	color: var(--ipdot-ink);
}
.ipdot-salut { font-weight: 600; color: var(--ipdot-water-dk); margin: 0 0 8px; }
.ipdot-lede { color: var(--ipdot-ink-soft); margin: 0; }

.ipdot-key {
	margin-top: 20px;
	padding: 14px 16px;
	background: var(--ipdot-water-lt);
	border-radius: 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	font-size: 14.5px;
	color: var(--ipdot-water-dk);
}
.ipdot-key-label {
	width: 100%;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 11.5px;
	font-weight: 700;
	opacity: .75;
}
.ipdot-key-item b { font-family: var(--ipdot-disp); font-size: 19px; }
.ipdot-key-item i { font-style: normal; }
.ipdot-key-arrow { opacity: .5; }

/* hibaüzenet */
.ipdot-alert {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-left: 3px solid var(--ipdot-warn);
	background: #fbeeec;
	color: var(--ipdot-warn);
	font-size: 15px;
	border-radius: 0 4px 4px 0;
}

/* spam-csapda */
.ipdot-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* haladásjelző */
.ipdot-progress { position: sticky; top: 0; z-index: 5; background: inherit; padding: 14px 0 10px; margin-top: 22px; }
.ipdot-track { height: 3px; background: var(--ipdot-line); border-radius: 2px; overflow: hidden; }
.ipdot-fill { height: 100%; width: 0; background: var(--ipdot-water); transition: width .35s ease; }
.ipdot-progress-text { font-size: 12.5px; color: var(--ipdot-muted); margin: 7px 0 0; letter-spacing: .04em; }

/* blokkok */
.ipdot-block { margin-top: 30px; }
.ipdot-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ipdot-num {
	font-family: var(--ipdot-disp);
	font-size: 15px;
	color: #fff;
	background: var(--ipdot-water-dk);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.ipdot-block-head h3 { font-family: var(--ipdot-disp); font-weight: 400; font-size: 21px; line-height: 1.25; margin: 0; }

/* kérdés */
.ipdot .ipdot-q {
	background: var(--ipdot-card);
	border: 1px solid var(--ipdot-line);
	border-radius: 6px;
	padding: 16px 18px 14px;
	margin: 0 0 10px;
}
.ipdot .ipdot-q.is-missing { border-color: var(--ipdot-warn); box-shadow: 0 0 0 3px rgba(157, 59, 47, .10); }
.ipdot-legend { display: block; width: 100%; padding: 0; margin: 0; float: none; }
.ipdot-q-main { display: block; font-size: 16.5px; line-height: 1.4; }
.ipdot-q-alt { display: block; font-size: 14px; color: var(--ipdot-muted); line-height: 1.4; margin-top: 3px; }

.ipdot-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 15px; }
.ipdot-opt { position: relative; }
.ipdot-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ipdot-opt label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 9px 2px 8px;
	border: 1px solid var(--ipdot-line);
	border-radius: 5px;
	cursor: pointer;
	text-align: center;
	background: #fff;
	transition: background .15s, border-color .15s;
	margin: 0;
}
.ipdot-n { font-family: var(--ipdot-disp); font-size: 20px; line-height: 1; color: var(--ipdot-ink); }
.ipdot-cap { font-size: 10.5px; line-height: 1.2; color: var(--ipdot-muted); }
.ipdot-opt label:hover { background: var(--ipdot-water-lt); border-color: #bcd4d0; }
.ipdot-opt input:checked + label { background: var(--ipdot-water); border-color: var(--ipdot-water); }
.ipdot-opt input:checked + label .ipdot-n,
.ipdot-opt input:checked + label .ipdot-cap { color: #fff; }
.ipdot-opt input:focus-visible + label { outline: 3px solid var(--ipdot-reed); outline-offset: 2px; }

/* szöveges mezők */
.ipdot-tf label { display: block; cursor: default; }
.ipdot .ipdot-tf textarea {
	width: 100%;
	margin-top: 10px;
	min-height: 84px;
	resize: vertical;
	font: inherit;
	font-size: 16px;
	color: var(--ipdot-ink);
	border: 1px solid var(--ipdot-line);
	border-radius: 4px;
	padding: 10px 12px;
	background: #fcfcfa;
}
.ipdot .ipdot-tf textarea:focus { outline: 2px solid var(--ipdot-water); outline-offset: 1px; border-color: var(--ipdot-water); }

/* küldés */
.ipdot-send { margin-top: 26px; text-align: center; }
.ipdot .ipdot-btn {
	font: 600 17px/1 inherit;
	background: var(--ipdot-water);
	color: #fff;
	border: 0;
	border-radius: 5px;
	padding: 17px 40px;
	cursor: pointer;
	width: 100%;
	max-width: 340px;
	text-transform: none;
	letter-spacing: 0;
}
.ipdot .ipdot-btn:hover { background: var(--ipdot-water-dk); }
.ipdot-fine { font-size: 13px; color: var(--ipdot-muted); margin: 12px 0 0; }

/* köszönő képernyő */
.ipdot-thanks { text-align: center; padding: 60px 10px; color: var(--ipdot-ink); }
.ipdot-thanks svg { color: var(--ipdot-water); margin-bottom: 16px; }
.ipdot-thanks h2 { font-family: var(--ipdot-disp); font-weight: 400; font-size: 28px; margin: 0 0 4px; }
.ipdot-thanks h2.ipdot-alt-head { font-size: 21px; color: var(--ipdot-muted); margin-bottom: 18px; }
.ipdot-thanks p { color: var(--ipdot-ink-soft); margin: 0; }
.ipdot-thanks p.ipdot-alt-head { color: var(--ipdot-muted); font-size: 15px; }

@media (max-width: 420px) {
	.ipdot { font-size: 16px; }
	.ipdot-cap { font-size: 9.5px; }
	.ipdot-n { font-size: 18px; }
	.ipdot .ipdot-q { padding: 14px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.ipdot * { transition: none !important; }
}
