/* Estilos gerais e variáveis */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: rgb(11, 78, 179);
}

body {
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: #f6f6f9;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
  /* Global Stylings */
  .input-group {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

}

.input-group label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #555555;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}


.input-group input:focus~label,
.input-group input:valid~label {
    top: -15px;
    color: #2aae2a;
}

.input-group input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #000;
    font-weight: 600;
    padding: 0 35px 0 5px;
}

  
  .width-50 {
    width: 50%;
  }
  
  .ml-auto {
    margin-left: auto;
  }
  
  .text-center {
    text-align: center;
    color: #555555;
  }
  
  /* Progressbar */
  .progressbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    counter-reset: step;
    margin: 2rem 1rem 4rem;
  }
  
  .progressbar::before,
  .progress {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #dcdcdc;
    z-index: -1;
  }
  
  .progress {
    background-color: #2aae2a;
    width: 0%;
    transition: 0.3s;
  }
  
  .progress-step {
    width: 3.2rem;
    height: 3.2rem;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .progress-step::before {
    counter-increment: step;
    content: counter(step);
  }
  
  .progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 0.5rem);
    font-size: 0.85rem;
    color: #ffffff;
  }
  
  .progress-step-active {
    background-color: #2aae2a;
    color: #ffffff;
  }
  
/* Form */
.form {
  width: 90%;
  max-width: 1050px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, .5);
  padding: 1.5rem;
  transition: transform .5s ease, height .2s ease;
}


.form .icon-close{
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: #6ECF68;
  font-size: 2em;
  color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 16px;
  border-top-right-radius: 18px;
  cursor: pointer;
  z-index: 1;
  transition: color 0.5s ease;
}
.icon-close:hover{
  color: #FF0000;
}
  .form-step {
    display: none;
    transform-origin: top;
    animation: animate 0.5s;
  }
  
  .form-step-active {
    display: block;
  }
  
  #loading {
    position:absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 25px;
    z-index: 1000;
  }
  
  .dot {
    opacity: 0; /* Inicia invisível */
    animation: dotAppear 1.5s infinite;
  }
  
  /* Define os estilos de animação */
  @keyframes dotAppear {
    0%, 20% { opacity: 0; }
    40% { opacity: 1; }
    100% { opacity: 0; }
  }
  
  /* Atrasos individuais para cada ponto */
  .dot:nth-child(2) {
    animation-delay: 0.5s;
  }
  
  .dot:nth-child(3) {
    animation-delay: 1s;
  }
  @keyframes animate {
    from {
      transform: scale(1, 0);
      opacity: 0;
    }
    to {
      transform: scale(1, 1);
      opacity: 1;
    }
  }
  
  /* Button */
  .btns-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .btn {
    padding: 0.75rem;
    display: block;
    text-decoration: none;
    background-color: transparent;
    color: #555555;
    text-align: center;
    border-radius: 0.3rem;
     border: 2px solid rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: 0.3s;
  }
  .btn:hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #2aae2a;
  }

  @keyframes dismissEffect {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);  
        opacity: 0;
    }
}


.dismiss-effect {
    animation: dismissEffect 0.5s forwards;
}


@media (min-width: 768px) {
  .form {
      width: 50%; 
  }

}

/* Media Query para telas muito grandes (por exemplo: monitores de largura grande) */
@media (min-width: 1200px) {
  .form {
      width: clamp(990px, 50%, 790px); 
  }
 
}


.btns-group {
  grid-template-columns: 1fr; 
  gap: 0.75rem; /
}

@media (min-width: 768px) {
  .btns-group {
      grid-template-columns: repeat(2, 1fr); 
      gap: 1.5rem;
  }
}
