* {
	box-sizing: border-box;
	outline: none;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Lato', sans-serif;
}

main.error .error_label{
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
main.error {
	position: relative;
	background-image: url('../img/error.jpg');
}

header {
	text-align: center;
	padding: 20px 0;
}

footer {
	text-align: center;
	padding: 20px 0;
	background-color: #22282e;
}

header img, footer img {
	display: block;
	margin: 0 auto;
}

main {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: center;
	justify-content: center;
	position: relative;
	height: calc(100vh - 160px);
	background-image: url('../img/bg.jpg');
	background-size: cover;
	background-position: center;
}

.h1 {
	width: 100%;
	margin-top: 0;
	margin-bottom: 30px;
	color: #00b9f0;
	text-align: center;
	font-size: 48px;
	font-weight: 900;
}

.alert_wrap {
	width: 100%;
	text-align: center;
}

.h1.white {
	color: #fff;
	width: 751px;
	max-width: calc(100% - 30px);
	font-size: 60px;
	margin: 25px 0;
}

.error_note {
	width: 100%;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	text-align: center;
}

.thank {
	color: #00b9f0;
	font-size: 60px;
	font-weight: 900;
	width: 100%;
	text-align: center;
	margin-bottom: 30px;
}

.thank_desc {
	color: #ffffff;
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
	width: 750px;
	max-width: calc(100% - 180px);
	margin: 0 auto;
	text-align: center;
}

.thank span{
	color: #fff;
}

input {
	width: 555px;
	height: 60px;
	border: 1px solid #262626;
	margin-bottom: 20px;
	padding: 0 20px;
	font-size: 16px;
}


input::placeholder {
	color: #262626;
}

.form_footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
}

button {
	position: relative;
	width: 234px;
	height: 40px;
	border-radius: 3px;
	border: 2px solid #40b9ed;
	background-color: transparent;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	text-align: left;
	padding: 0 20px;
	box-shadow: 0 0 0 transparent;
	transition: .3s;
	transform: translateY(-2px);
	cursor: pointer;
}

button:after {
	content: '';
	display: block;
	position: absolute;
	top: 50%;
	right: 35px;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-left: 5px solid #fff;
	box-sizing: border-box;
	transition: .3s;
}

button:hover:after {
	transform: translateY(-50%) translateX(15px);
}

button:hover {
	box-shadow: 0 0 15px #40b9ed;
}

.score {
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 60px auto 0;
	padding: 15px 30px;
	border: 1px solid #00b9f0;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
}

.score_label {
	font-size: 24px;
	font-weight: 400;
}

.score_value {
	font-size: 48px;
	font-weight: 500;
}

@media screen and (max-width: 1400px) {
	.h1.white {
		font-size: 48px;
		margin: 15px 0;
	}

	.alert_wrap img {
		width: 80px;
	}

	.score {
		margin-top: 25px;
	}

	input {
		height: 50px;
		margin-bottom: 10px;
	}

	.h1 {
		margin-bottom: 15px;
	}

	header, footer {
		padding: 10px 0;
	}

	main {
		height: calc(100vh - 120px);
	}
}

@media screen and (max-width: 430px) {

	.h1.white {
		font-size: 26px;
	}

	.error_note {
		font-size: 14px;
	}

	.score {
		max-width: 100%;
	}

	.score {
		flex-wrap: wrap;
		margin-top: 15px;
	}

	.score_label{
		font-size: 14px;
	}

	.score_value{
		font-size: 24px;
	}

	.thank {
		font-size: 40px;
		margin-bottom: 25px;
	}

	.thank_desc {
		font-size: 16px;
		line-height: 24px;
		max-width: calc(100% - 30px);
	}

	header img, footer img {
		height: 30px;
	}

	header, footer {
		padding: 15px 0;
	}

	main {
		height: calc(100vh - 120px);
	}

	.h1 {
		font-size: 24px;
		margin-bottom: 25px;
	}

	input {
		display: block;
		max-width: calc(100vw - 30px);
		margin: 0 auto 10px;
		height: 50px;
		padding: 0 15px;
		font-size: 16px;
	}
	br {
		display: none;
	}

	.g-recaptcha {
		margin: 0 auto 10px;
	}

	.g-recaptcha > div {
		width: calc(100vw - 30px) !important;
		margin: 0 auto;
		border: 1px solid gainsboro;
		border-right: 2px solid gainsboro;
		overflow: hidden;
		border-radius: 5px;
	}

	button {
		width: 100%;
		margin: 0 auto;
		max-width: calc(100vw - 30px);
	}

	.score {
		max-width: calc(100vw - 30px);
	}
}

@media screen and (max-height: 430px) {

	.h1.white {
		font-size: 25px;
		margin: 10px auto;
	}

	.error_note {
		font-size: 14px;
	}

	main.error .error_label {
		bottom: 15px;
	}

	main {
		overflow: scroll;
		padding: 40px 0;
		display: block;
	}

	.thank {
		font-size: 40px;
		margin-bottom: 25px;
	}

	.thank_desc {
		font-size: 16px;
		line-height: 24px;
		max-width: calc(100% - 30px);
	}

	.form_footer {
		max-width: calc(100% - 30px);
		margin: 0 auto;
		width: 555px;
	}

	button {
		width: 220px;
	}

	header img, footer img {
		height: 30px;
	}

	header, footer {
		padding: 15px 0;
	}

	main {
		height: calc(100vh - 60px);
	}

	footer {
		display: none;
	}

	.h1 {
		font-size: 24px;
		margin-bottom: 25px;
	}

	input {
		display: block;
		max-width: calc(100vw - 30px);
		margin: 0 auto 10px;
		height: 50px;
		padding: 0 15px;
		font-size: 16px;
	}
	br {
		display: none;
	}
}

@media screen and (max-width: 320px) {
	.score {
		max-width: 100%;
	}
}
