* {
	box-sizing: border-box;
}

body {
  --main-font: 'Source Sans Pro', sans-serif;
  --secondary-font: 'Herr Von Muellerhoff', cursive;
  --body-font: 'Cabin', sans-serif;
  --main-font-color-dark: #252525;
  --secondary-font-color: #ffce76;
  --body-font-color: #515151;
}

html{
  background-color: #222831;
}

.hero-estimate {
  width: 100%;
  height: 70vh;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent), url("../images/hero-estimate.jpg");
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
}

main {
	max-width: 1000px;
	width: 90%;
	margin: auto;
	padding: 40px;
}

main .white-info-text{
  margin: 0;
}

.line-form {
  width: 100%;
  max-width: 15rem;
  height: .15rem;
  background-color: #ffce76;
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  animation: grow 2s forwards;
  animation-delay: .9s;
}

.line-form-error {
  width: 100%;
  max-width: 15rem;
  height: .15rem;
  background-color: #db4734;
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  animation: grow 2s forwards;
  animation-delay: .4s;
}

.line-form-error {
  width: 100%;
  max-width: 15rem;
  height: .15rem;
  background-color: #2de627;
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  animation: grow 2s forwards;
  animation-delay: .4s;
}


.formulario {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.formulario__grupo-input {
	position: relative;
}

.input{
  margin: 10px 0;
  background: transparent;
  border: 0px;
  border-bottom: 2px solid #ffce76;
  padding: 10px;
  font-family: var(--body-font);
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 600;
  color: white;
  width: 100%;
}

.formulario__input {
	width: 100%;
	background: #222831;
	border: 2px solid rgba(163,163,163, 0.3);
  font-family: var(--main-font);
	border-radius: 4px;
  height: 45px;
	line-height: 45px;
	padding: 0 20px 0 10px;
	transition: .4s ease all;
}

.formulario__input:focus {
	border: 2px solid var(--secondary-font-color);
  outline: none;
  border-radius: 8px;
  background: #222831;
  box-shadow: inset 20px 20px 60px #1d222a, 
              inset -20px -20px 60px #272e38;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
      color: white;
}
::-moz-placeholder {
/* Firefox 19+ */
    color: white;
}
:-ms-input-placeholder {
/* IE 10+ */
    color: white;
}

.formulario_subgrupo,
.cause,
.images{
  grid-column: 1 / 3;
}

.cause textarea{
  width: 100%;
  max-width: 100%;
  min-height: 200px;
	border: 2px solid rgba(163,163,163, 0.3);
  font-family: var(--main-font);
	border-radius: 4px;
	padding: 10px 20px 0 10px;
}
 
.col-4{
  float: left;
  width: 44%;
  padding: 30px 20px;
}

.col-8{
  width: 55%;
  float: right;
  right: 0;
}

.formulario__partes{
  display: flex;
  flex-direction: column;
}

.formulario__partes label{
  margin: 5px 10px;
}

.col-4 img{
      width: 100%;
      height: 100%;
      object-fit: contain;
}

.formulario__input-error {
	font-size: 12px;
	margin-bottom: 0;
	display: none;
}

.formulario__input-error-activo {
	display: block;
}

.formulario__validacion-estado {
	position: absolute;
	right: 10px;
	bottom: 15px;
	z-index: 100;
	font-size: 16px;
	opacity: 0;
}

.formulario__checkbox {
	margin-right: 10px;
}

.formulario__grupo-terminos, 
.formulario__mensaje,
.formulario__grupo-btn-enviar {
	grid-column: span 2;
}

.formulario__mensaje {
	height: 45px;
	line-height: 45px;
	background: #F66060;
	padding: 0 15px;
	border-radius: 3px;
	display: none;
}

.formulario__mensaje-activo {
	display: block;
}

.formulario__mensaje p {
	margin: 0;
}

.headline-xsmall{
  color: white;
  font-size: 1.8rem;
  font-family: var(--main-font);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .2rem;
  margin-right: -.5rem;
}

.image-preview,
.image-preview2{
  width: 300px;
  min-height: 200px;
  border: 2px solid rgba(163,163,163, 0.3);
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.image-preview__image,
.image-preview__image2 {
  display: none;
  width: 100%;
}

.inputfile,
.inputfile2 {
	width: 0.1px;
	height: 0.1px;
  opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}

.inputfile + label,
.inputfile2 + label {
  font-size: 1.1rem;
  background-color: white;
  padding: .9rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--main-font-color-dark);
  border-radius: 4px;
  transition: background-color .5s;
}

.inputfile + label:hover,
.inputfile2 + label:hover {
  color: white;
    background-color: var(--secondary-font-color);
}

.formulario__grupo-btn-enviar {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.formulario__btn {
	height: 45px;
	line-height: 45px;
	width: 30%;
	background: #000;
	color: #fff;
	font-weight: bold;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: .1s ease all;
}

.formulario__btn:hover {
	box-shadow: 3px 0px 30px rgba(163,163,163, 1);
}

.formulario__mensaje-exito {
	font-size: 14px;
	color: #119200;
	display: none;
}

.formulario__mensaje-exito-activo {
	display: block;
}

/* ----- -----  Estilos para Validacion ----- ----- */
.formulario__grupo-correcto .formulario__validacion-estado {
	color: #1ed12d;
	opacity: 1;
}

.formulario__grupo-incorrecto .formulario__label {
	color: #bb2929;
}

.formulario__grupo-incorrecto .formulario__validacion-estado {
	color: #bb2929;
	opacity: 1;
}

.formulario__grupo-incorrecto .formulario__input {
	border: 3px solid #bb2929;
}


/* ----- -----  Mediaqueries ----- ----- */
@media screen and (max-width: 800px) {
	.formulario {
    display: flex;
    flex-direction: column;
    justify-content: center;
	}

	.formulario__btn {
		width: 80%;
  }
  
  .col-4{
    width: 100%;
    padding: 30px 20px;
  }
  
  .col-8{
    width: 100%;
  }

  .input{
    font-size: 14px;
    font-weight: 600;
    color: white;
    width: 100%;
  }

  .space{
    display: none;
  }
}

@keyframes grow{
  0%{
      width: 0;
  }
  100%{
      opacity: 1;
      width: 100%;

  }
}