/*=== Author: Daniela Tenório ===*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); */

:root {
  --primaria: #ededed;
  --azulclaro: #0ed;
  --azuloscuro: #081b29;
  --formclaro: rgba(255, 255, 255, 0.1);
  --formoscuro: rgba(0, 0, 0, 0.5);
  --backgound: #010d24;
}

/*==== CSS base ====*/
html,
body {
  margin: 0;
  padding: 0;
  height: auto;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  background-image: url(../img/formBg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

body {
  margin: 0 auto;
}

/*==== HEADER ====*/
header {
  display: flex;
  align-items: center;
  position: fixed;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  background: transparent;
  /* backdrop-filter: blur(20px); */
  z-index: 100;
  box-sizing: border-box; 
}
/*==== LOGO ====*/
.logo {
  position: relative;
  left: 20px;
  top: -19px;
  cursor: default;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid;
  border-radius: 50%;
  color: var(--primaria);
  text-decoration: none;
  padding: 10px;
  background: transparent;
  cursor: pointer;
  backdrop-filter: blur(10px);
  color: var(--azulclaro);
  box-shadow: 0 0 20px var(--azulclaro);
}

.logo:hover {
  box-shadow: 0 0 28px var(--azulclaro);
}

/*==== MENU ====*/
header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  right: 5px;
}

header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/*==== ITEMS DEL MENU ====*/
header nav ul li {
  padding: 30px;
}

.menu {
  position: relative;
  top: -20px;
  color: var(--azulclaro);
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  /* padding: 6px 35px; */
  display: inline-block;
}

.menu:hover {
  color: var(--primaria);
}

/*==== pseudo Elemento: líneas del menú ====*/
.menu::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--azulclaro);
  transform-origin: right;
  transform: scale(0);
  transition: 0.3s ease;
}

.menu:hover::after {
  transform: scale(1.2);
}

.menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 100%;
  height: 2px;
  background: var(--azulclaro);
  transform-origin: left;
  transform: scale(0);
  transition: 0.3s ease;
}

.menu:hover::before {
  transform: scale(1.2);
}

/*==== BUTTON CONTACTO ====*/
.btn-popup {
  display: flex;
  justify-content: center;
  position: relative;
  top: -20px;
  width: auto;
  height: auto;
  padding: 12px 25px;
  background: transparent;
  backdrop-filter: blur(10px);
  border: 2px solid var(--azulclaro);
  outline: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primaria);
  font-weight: bold;
  transition: 0.3s ease;
  letter-spacing: 1.3px;
  text-decoration: none;
}

.btn-popup.active {
  background-color: var(--azulclaro);
  color: var(--azuloscuro);
  box-shadow: 0 0 7px var(--azulclaro);
}

.btn-popup.active:hover {
  background: transparent;
  backdrop-filter: blur(20px);
  color: var(--azulclaro);
}

.btn-popup:hover {
  background-color: var(--azulclaro);
  color: var(--azuloscuro);
  box-shadow: 0 0 5px var(--azulclaro);
  transform: scale(1.1);
}

/*==== MAIN: Form ====*/
main {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  align-items: center;
  margin: 0 auto;
  width: 96%;
  max-width: 1280px;
  height: 100vh;
  justify-content: center;
  align-items: center;
}


/*==== DIV del Form ====*/

/*==== OBS!! Cuando aumentas el tamaño del textarea todo se desmonta ====
Apenas adicionei Height: auto para resolver isso*/
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 50px;
  width: auto;
  height: auto;
  background-color: var(--formclaro);
  border: 2px solid var(--formclaro);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px var(--formoscuro);
  overflow: hidden;
  /* transform: scale(0); */
}

/* .wrapper .active-popup {
  transform: scale(1);
} */

.wrapper .form-box {
  width: 100%;
  padding: 0 15px 15px 15px;
  box-sizing: border-box;
}

/*==== BOTÓN DE CERRAR ====*/
.wrapper .icon-close {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 35px;
  font-size: 1rem;
  background-color: var(--azulclaro);
  color: var(--azuloscuro);
  box-shadow: 0 0 5px var(--formoscuro);
  border-bottom-left-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 1;
}

.wrapper .icon-close a .fa-xmark{
  color: var(--azuloscuro);
  z-index: 2;
}

.wrapper .icon-close:hover {
  cursor: pointer;
}

/*==== FORM ====*/
.form-box h2 {
  position: relative;
  top: 15px;
  font-size: 1.8rem;
  color: var(--azulclaro);
  text-align: center;
  margin: 0;
  cursor: default;
}

.input-box {
  position: relative;
  width: 100%;
  height: 30px;
  border-bottom: 2px solid var(--azulclaro);
  margin: 30px 0;
  transition: 0.5s;
}

/*==== CREA ESPACIO ENTRE EL TÍTULO Y LA LÍNEA ====*/
.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -3px;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--azulclaro);
  font-weight: 500;
  pointer-events: none;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--primaria);
  font-weight: 600;
  cursor: pointer;
  /* ==== cuando se llena automáticamente, queda con fondo blanco ==== */
}

.input-box .icon {
  position: absolute;
  right: 8px;
  color: var(--azulclaro);
  line-height: 25px;
}

.textarea {
  display: flex;
  justify-content: center;
  position: relative;
  top: -10px;
}

.textarea textarea {
  background-color: var(--azulclaro);
  box-shadow: 0 0 15px var(--azuloscuro);
  color: var(--azuloscuro);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 550;
  padding: 10px;
  box-sizing: border-box;
}

.textarea textarea:hover {
  cursor: pointer;
}

/*==== CHECKBOX DE LAS POLÍTICAS Y ENVIAR ====*/
.check-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  top: -10px;
  font-size: 0.7rem;
  color: var(--azulclaro);
  font-weight: 500;
  margin-top: 25px;
}

.check-box label input {
  accent-color: var(--azulclaro);
  margin-right: 4px;
  cursor: pointer;
}

.check-box a {
  text-decoration: none;
  color: var(--primaria);
}

.check-box a:hover {
  text-decoration: underline;
  color: var(--azuloscuro);
}

/*==== BOTÓN ENVIAR ====*/
.btn button {
  cursor: pointer;
  background: transparent;
  color: var(--azulclaro);
  border: 2px solid var(--azulclaro);
  box-shadow: 0 0 5px var(--formoscuro);
  border-radius: 15px;
  padding: 8px 15px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: bold;
  transition: 0.3s;
}

.btn button:hover {
  transform: scale(1.1);
  background-color: var(--azulclaro);
  color: var(--azuloscuro);
  box-shadow: 0 0 7px var(--azulclaro);
}
