* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 18px;
}

body {
	font-family: "Merriweather", sans-serif;
}

.container {
	max-width: 500px;
	margin: auto;
	padding: 0.5rem;
}

.header-box {
	color: #fff;
	font-weight: 900;
	font-size: 0.7rem;
	text-align: center;
	padding: 1rem;
	background-color: rgb(196, 250, 250);
}

::placeholder {
	text-align: right;
}

textarea::placeholder {
	text-align: left;
}

p {
	font-size: 15px;
	margin: 1rem auto;
}

.newsletter-form {
	background-color: cornsilk;
}

h2 {
	font-size: 1rem;
	text-align: center;
}

h3 {
	text-align: center;
	font-size: 0.8rem;
	margin: 1.2rem auto;
}

.line-1 {
	width: 100%;
	border: 2px solid black;
}

.line-2 {
	width: 100%;
	margin: 0.2rem 0;
	border: 0.5px solid black;
}

.line-3 {
	width: 100%;
	margin: 1rem 0;
	border: 0.5px solid black;
}

legend {
	font-weight: 700;
	font-size: 1rem;
	margin: 1rem 0 0.9rem;
}

.flex-pair {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
}

label,
label[for="topics"] {
	display: inline-block;
	margin: 0.5rem 0;
	font-size: 0.8rem;
}

label[for="topics"] {
	margin-top: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[id="address4"],
textarea,
select {
	display: block;
	width: 100%;
	margin: 7px 0;
	padding: 10px;
	font-size: 13px;
	font-family: "Merriweather", sans-serif;
	border-radius: 10px;
	outline: none;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	-ms-border-radius: 10px;
	-o-border-radius: 10px;
}

input[type="radio"],
input[type="checkbox"] {
	margin: 0 4px 8px 0;
	font-size: 10px;
}

.newsletter-form label {
	margin-left: 0.5rem;
}

textarea {
	height: 100px;
}

fieldset {
	border-style: none;
}

input[id="address4"] {
	width: 50%;
}

button {
	width: 100%;
	border-radius: 0.5em;
	background: rgb(196, 250, 250);
	color: #fff;
	padding: 10px 0;
	font-size: 28px;
	border: none;
	border-radius: 8px;
	margin: 1.5rem auto 2.5rem;
	display: block;
	cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
	background-color: rgb(196, 250, 250);
	outline: 2px solid rgb(196, 250, 250);
	transition: 2s;
	-webkit-transition: 2s;
	-moz-transition: 2s;
	-ms-transition: 2s;
	-o-transition: 2s;
}

input[id="user-topics"] {
	display: none;
}

footer {
	font-size: 0.8rem;
	text-align: center;
	margin-bottom: 5rem;
}

@media screen and (min-width: 768px) {
	.container {
		max-width: 600px;
	}

	.flex-pair {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}

	input[type="text"],
	input[type="email"],
	input[type="tel"],
	select {
		flex-basis: 75%;
	}

	input[id="address4"] {
		flex-basis: 25%;
		width: 25%;
	}

	label[for="name"],
	label[for="email"],
	label[for="phone"],
	label[for="address1"],
	label[for="address2"],
	label[for="address3"],
	label[for="address4"] {
		flex-basis: 25%;
		align-self: center;
	}

	legend {
		margin-left: 10px;
	}

	.line-3 {
		margin: 2rem 0;
	}

	textarea {
		margin: auto;
	}

	button {
		width: 100%;
	}
}
