:root {
    --gradient: linear-gradient(45deg, #000428, #004e92, #000428);
    --gradient-hover: linear-gradient(135deg, #72EDF2 0%, #5151E5 100%);
  }
  
  body {
    background: var(--gradient);
    height: 100vh;
    display: grid;
    place-items: center;
    font-family: 'Segoe UI', sans-serif;
  }

.form-wrapper {
  --shadow-intensity: 0.6; /* 0 a 1 */
  --depth: 20px; /* Distância da sombra */
  --glow-color: rgba(0, 78, 146, 0.5); /* Cor do brilho */
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 18px;
  padding: 2.5rem;
  width: min(90vw, 500px);
  margin: 3rem auto;
  box-shadow: 
  0 10px 30px rgba(0, 0, 0, calc(0.1 * var(--shadow-intensity))),
  0 30px 60px rgba(0, 42, 146, calc(0.3 * var(--shadow-intensity)));
  transform: translateZ(var(--depth)); 
  border: 1px solid;
  border-image: linear-gradient(
    to bottom right,
    rgba(0, 78, 146, 0.2),
    rgba(0, 78, 146, 0)
  ) 1;
  transform-style: preserve-3d;
  transform: perspective(500px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   will-change: transform, box-shadow;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.form-wrapper:hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(0, 212, 255, 0.3),
    transparent 70%
  );
  animation: rotate 4s linear infinite;
  z-index: -1;
}

/* Destaque de luz */
.form-wrapper::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: -1;
  opacity: 0.5;
}

/* Efeito hover extremo */
.form-wrapper:hover {
  transform: 
    perspective(500px)
    translateY(-8px)
    translateZ(20px)
    rotateX(3deg)
    rotateY(2deg);
  
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.15),
    0 48px 96px rgba(0, 42, 146, 0.2);
}

/* Animação sutil de flutuação */
@keyframes float {
  0%, 100% {
    transform: perspective(500px) translateY(0) translateZ(10px);
  }
  50% {
    transform: perspective(500px) translateY(-10px) translateZ(20px);
  }
}

.form-wrapper {
  animation: float 6s ease-in-out infinite;
}

.main-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 2.2rem;
  color: #2d3748;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-style: italic;
  text-decoration: underline;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  cursor: pointer
}

.main-title:hover {
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

  h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
  }


   .robot-gif {
    width: 80px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

  
  label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-weight: bold;
  }


select {
  height: 45px;        
  padding: 10px;       
  font-size: 15px;     
  width: 100%;        
  border-radius: 8px;  
  border: 2px solid #e2e8f0; 
  font-weight: bold;
}

optgroup {
  font-weight: bold;
  color: #4a5568;
  font-style: normal;
}
optgroup option {
  font-weight: normal;
  padding-left: 20px;
}
  
  input {
    width: 100%;
    padding: 0.55rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
  }
  
  input:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
  }
 
button[type="submit"] {
  background: var(--gradient);
  position: relative;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

button[type="submit"]:hover {
  background: var(--gradient-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button--loading .button__text {
  visibility: hidden;
  opacity: 0;
}

.button--loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
  from { transform: rotate(0turn); }
  to { transform: rotate(1turn); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


@media (max-width: 768px) {
  .form-wrapper {
    max-width: 400px; 
    margin: 20px auto; 
    padding: 1.2rem; 
    box-sizing: border-box;  
  }
 
  input, select {
    width: calc(100% - 4px); 
    max-width: 100%; 
    box-sizing: border-box; /* Modelo de caixa correto */
  }

  /* Ajuste extra para iPhones menores */
  @media (max-width: 375px) {
    .form-wrapper {
      width: 85vw;
      padding: 1rem;  
    }
    
    h2 {
      font-size: 1.4rem; /* Título menor */
    }
  }
}