@import url("/css/fonts/roboto/stylesheet.css");

/* alap */
:root {
	--color025: #f0faff;
	--color050: #e1f5fe;
	--color100: #b3e5fc;
	--color200: #81d4fa;
	--color300: #4fc3f7;
	--color400: #29b6f6;
	--color500: #03a9f4;
	--color600: #039be5;
	--color700: #0288d1;
	--color800: #0277bd;
	--color900: #01579b;

	--gray100: #eceff1;
	--gray300: #90a4ae;
	--gray500: #607d8b;
	--gray700: #455a64;
	--gray900: #263238;

	--red800: #c62828;

	--white: #ffffff;
}

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-family: sans-serif;
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--gray900);
	text-align: left;
	background-color: var(--color050);
}

@media screen and (max-width:600px) {
	body, html { margin: 2px; }
}

.hide {
	display: none;
}

/* JS kikapcsolva */
#noscript {
	margin-top: 10px;
	padding: 10px;
	line-height: 1.5;
	border: 5px double #d32f2f;
}

	#noscript a {
		text-decoration: underline;
	}

/* az oldal részei */
div#wrapper {
	width: 99%;
	max-width: 800px;
	margin: 10px auto;
}

@media screen and (max-width:600px) {
	body, html { margin: 2px; }
}

#header {
	text-align: center;
}

h1 {
	margin-bottom: 0.5em;
	font-size: 2em;
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	color: var(--color700);
}

.desc p {
	margin-bottom: 0.5em;
	text-align: justify;
	hyphens: auto;
}

.no-hyphens {
	hyphens: none;
}

.thanks {
	font-size: 1.2rem;
	text-align: justify;
	hyphens: auto;
}

/* a kérdőív */
form {
	margin-top: 1em;
}

form.nojs {
	display: none;
}

.questions {
	margin: 1em 0 0 0;
	background: var(--white);
	border: 1px solid var(--color700);
	border-radius: 5px;
	overflow: hidden;
}

	.questions h2 {
		padding: .2em 0.5em;
		font-size: 1.25em;
		font-weight: 400;
		text-transform: uppercase;
		color: var(--white);
		background-color: var(--color800);
	}

	.questions p.desc {
		padding: 0.5em;
		background-color: var(--color800);
		color: #fff;
	}
	.questions p.warn {
		background-color: var(--color800);
	}

	.questions fieldset {
		position: relative;
		margin: 1em 0.5em;
		border: none;
	}

	.questions fieldset + fieldset {
		margin-top: 1.5em;
	}

	.questions legend {
		width: 97%; /* IE miatt kell */
		/* margin-left: 1.1em; */
		margin-bottom: 0.2em;
		/* text-indent: -1.1em; */
		font-weight: bold;
	}
	#q10 legend, #q11 legend, #q12 legend {
		/* margin-left: 1.7em; */
		/* text-indent: -1.7em; */
	}
	legend.no-indent {
		margin-left: 0;
		text-indent: 0;
	}

		.desc p span.req,
		.questions legend span.req {
			position: relative;
			top: -2px;
			padding-left: 2px;
			font-weight: bold;
			color: var(--red800);
			cursor: help;
		}

		.questions legend span.comment {
			font-weight: normal;
		}

	.questions hr {
		border-color: var(--color500);
		border-style: solid;
		border-width: 1px 0 0 0;
	}

	.questions ul {
		list-style: none;
	}

		.questions ul li {
			margin-left:  1.3em;
			text-indent: -1.3em;
		}

	.questions input[type=radio],
	.questions input[type=checkbox] {
		margin-right: 0.5em;
	}

		@media screen and (max-width:600px) {
			.questions input[type=radio], .questions input[type=checkbox] { margin-top: 0.5em; margin-bottom: 0.5em; }
		}

	.questions input[type=text],
	.questions input[type=email],
	.questions input[type=phone],
	.questions textarea {
		width: 100%;
		padding: 2px 5px;
		font-family: -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
		font-size: 1rem;
		color: var(--gray900);
		border: 1px solid var(--color200);
	}

	.questions input.year {
		width: 4em;
		text-align: right;
	}

	.questions input[type=text].other {
		margin-top: .2rem;
	}

	.questions input[type=text]:focus,
	.questions input[type=phone]:focus,
	.questions input[type=email]:focus,
	.questions textarea:focus {
		background: var(--color025);
		border-color: var(--color500);
	}

button {
	width: 100%;
	margin: 1em 0;
	padding: 0.5rem 3rem;
	font-size: 1rem;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--color900);
	background: var(--color100);
	border: 2px solid var(--color500);
	outline: 0;
	border-radius: 10px;
	cursor: pointer;
	-webkit-appearance: none;
}

	button:hover, button:focus {
		color: var(--gray100);
		background: var(--color500);
	}

/* hibaüzenet */
form div.error {
	margin:0.5em -0.5em;
	padding: .25em;
	text-align: center;
	color: var(--white);
	background: var(--red800);
}
