#tesperem {
    padding: 20px;
	margin: 30px auto;
	background-image: linear-gradient(90deg, rgba(37, 163, 10, .5),rgba(138, 191, 54, .5),rgba(239, 219, 97, .5));
    display: grid; 
    grid-auto-flow: row; 
    gap: 0px 0px; 
}

#tesperem #capcal {
    grid-area: 1 / 1 / 2 / 3; 
}

#tesperem #formulari {
    grid-area: 2 / 1 / 3 / 3;
}

@media (min-width:640px) {
    #tesperem {
        grid-template-rows: 1fr; 
        grid-template-columns: 300px 1fr; 
    }

    #tesperem #capcal {
        grid-area: 1 / 1 / 3 / 2; 
    }

    #tesperem #formulari {
        grid-area: 2 / 2 / 3 / 3;
        margin-left: 20px;
    }
}

@media (min-width:1200px) {
    #tesperem #formulari {
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: 1fr; 
        gap: 0px 0px; 
    }
}

.formulari-part-1 { grid-area: 1 / 1 / 2 / 2; }
.formulari-part-2 { grid-area: 1 / 2 / 2 / 3; }

.formulari-part-1 div,
.formulari-part-2 div {
    margin: 0 0 15px;
}

#tesperem a {
	color:#00580c;
}

#tesperem h2 {
	font-family: "Roboto Condensed", "Arial Narrow", Arial;
	font-weight: bold;
	font-size: 2em;
	letter-spacing: -.02em;
	margin: 0;
}
#tesperem #capcal p {
	margin: 1em 0;
        font-size: 12px;
}
#tesperem fieldset {
	margin-bottom: 10px;
}
#tesperem legend {
	border: none;
	margin: 0 0 5px;
}
#tesperem #camps div {
	margin: 0 0 10px;
}
#tesperem #label-email, #tesperem #label-nom, #tesperem #label-cognoms {
	display: block;
	font-weight: bold;
}
#tesperem .checkbox-item {
	position: relative;
	padding-left: 30px;
	display: inline;
}
#tesperem .checkbox-item label {
	font-size: 14px;
	margin: 0 15px 0 0;
}
#tesperem .checkbox-item label::before {
	content: "";
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #333;
	background: #fff;
}
#tesperem .checkbox-item label::after {
	content: "";
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	position: absolute;
	top: 5px;
	left: 4px;
	width: 12px;
	height: 7px;
	-webkit-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
	border: solid;
	border-width: 0 0 3px 3px;
	border-top-color: transparent;
	opacity: 0;
	background: transparent;
}
#tesperem input[type="checkbox"]:checked + label:after{
	opacity: 1;
}
#tesperem input[type="checkbox"]:focus + label:before{
	border-width: 3px;
}

#tesperem #pol-privacitat {
	border-top: 2px solid #333;
	padding-top: 10px;
}

@media (min-width:1200px) {
    #tesperem #pol-privacitat {
        border-top: none;
        padding-top: 0;
    }
}

#tesperem input:required {
	box-shadow: none;
}
#tesperem input:focus:required {
	box-shadow: 4px 4px 0 rgba(143, 143, 143, 0.5);
	transition: border-color 0.5s ease-out;
}
#tesperem input:focus:required:valid {
	border-color: #007e11 !important;
}
#tesperem input:focus:required:invalid {
	outline: none;
	border: 2px solid rgba(241, 30, 30, 0.95) !important;
	box-shadow: 4px 4px 0 rgba(241, 30, 30, .5);
}
#tesperem #email, #tesperem #nom, #tesperem #cognoms {
	border: 2px solid #333;
	padding: 5px;
	width: 20em;
	background: #fff;
}
#tesperem #email:focus {
	border: 2px solid rgba(0,0,0,.5);
}
#tesperem input[type=checkbox] {
	cursor: pointer;
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	opacity: 0;
}
#tesperem button {
	background: #007e11;
	color: #fcf921;
	border: none;
	padding: 5px 20px;
	border-radius: 50px;
	font-size: 18px;
	position: relative;
	transition: all .25s;
}
#tesperem button:hover {
	background: #00550b;
	padding-right: 50px;
}
#tesperem button::after {
	content: "";
	width: 20px;
	height: 20px;
	display: block;
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHdpZHRoPSIyNCI+PHBhdGggZmlsbD0iI2ZjZjkyMSIgZD0iTTIyIDRIMnYxNmgxMXYtMkg0VjhsOCA1IDgtNXY1aDJWNHptLTEwIDdMNCA2aDE2bC04IDV6bTcgNGw0IDQtNCA0di0zaC00di0yaDR2LTN6Ii8+PC9zdmc+");
	background-size: contain;
	position: absolute;
	right: 20px;
	top: 23%;
	opacity: 0;
	transition: all .25s;
}
#tesperem button:hover::after {
	opacity: 1;
	transition-delay: .25s;
}
