*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI";
}

html {
  -webkit-tap-highlight-color: transparent;
  height: 100%;
}

html,
body {
  min-height: 100vh;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  z-index: -10;
}

body {
  background: linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: matrix-fall 40s linear infinite;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

.fade-out-on-scroll {
  transition: opacity 0.2s ease;
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  animation: slideDown 0.5s ease-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0f0;
}

.qxback {
  color: #0f0;
}

.ppp {
  font-size: 28px;
  font-weight: bold;
  text-shadow: 0px 0px 2px #0f0;
  cursor: grab;
}

.qref-container {
  display: grid;
  padding: 20px;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
}
.form-group {
  position: relative;
}

.qref-service {
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  background-color: #000;
  border: 1px solid #0f0;
  text-align: center;
}

.cyber-input {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #0f0;
  color: #fff;
  padding: 12px;
  border-radius: 15px;
  width: 100%;
  margin: 8px 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.1);
}

.cyber-input:focus {
  outline: none;
  border-color: #0f0;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  background: rgba(0, 255, 0, 0.05);
}

.cyber-checkbox {
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
}

.cyber-checkbox p {
  margin: 0;
  line-height: 1.4;
  padding-left: 10px;
  text-align: left;
  flex-grow: 1;
}

.cyber-checkbox input {
  opacity: 0;
  position: absolute;
}

.checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #0f0;
  margin: 0 auto;
  padding-right: 20px;
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
}

.cyber-checkbox input:checked ~ .checkmark {
  background: rgba(0, 255, 0, 0.2);
}

.checkmark:after {
  content: "✓";
  position: absolute;
  color: #0f0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cyber-checkbox input:checked ~ .checkmark:after {
  opacity: 1;
}
.input-group {
  position: relative;
  margin-bottom: 30px; /* mais espaço por causa da mensagem */
}

.cyber-error {
  color: #ff0033;
  text-shadow: 0 0 5px rgba(255, 0, 51, 0.3);
  font-size: 0.9em;

  position: absolute;
  bottom: -18px; /* move pra baixo do input */
  left: 0;
}

.cyber-message {
  color: #0f0;
  text-align: center;
  padding: 15px;
  border: 1px solid #0f0;
  margin: 20px 0;
  border-radius: 5px;
  background: rgba(0, 255, 0, 0.05);
}

.cyber-link {
  color: #0f0;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  margin-right: 30px;
}

.cyber-link:hover {
  color: #fff;
}

.qref-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #0f0;
  border-radius: 15px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
}

.qref-title {
  color: #0f0;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.qref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.bottom-links {
  margin: 10px;
  text-align: center;
  width: 100%;
}

.bottom-links .cyber-link {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main-cta {
  display: flex;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: rgba(0, 255, 0, 0.1);
  color: #0f0;
  border: 2px solid #0f0;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 1rem auto 0;
  position: relative;
  overflow: hidden;
  width: max-content;
  backdrop-filter: blur(5px);
  animation: pulse-glow 2s infinite;
  cursor: pointer;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
  }
}

.main-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(0, 255, 0, 0.1) 50%,
    transparent 75%
  );
  transform: rotate(45deg);
  animation: cyber-shine 4s infinite linear;
}

@keyframes cyber-shine {
  0% {
    transform: rotate(45deg) translate(-30%, -30%);
  }

  100% {
    transform: rotate(45deg) translate(70%, 70%);
  }
}

.main-cta:hover {
  background: #0f0;
  color: #000;
  animation: hover-vibration 0.3s ease-in-out;
  transform: scale(1.05) rotate(0.5deg);
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
}

@keyframes hover-vibration {
  0%,
  100% {
    transform: scale(1.05) rotate(0.5deg);
  }

  25% {
    transform: scale(1.06) rotate(-0.5deg);
  }

  50% {
    transform: scale(1.07) rotate(0.7deg);
  }

  75% {
    transform: scale(1.06) rotate(-0.7deg);
  }
}

.main-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 50px;
  animation: border-flicker 1.5s infinite;
}

@keyframes border-flicker {
  0%,
  100% {
    border-color: rgba(0, 255, 0, 0.3);
  }

  50% {
    border-color: rgba(0, 255, 0, 0.8);
  }
}

@media (max-width: 768px) {
  .qref-card {
    width: 95%;
    padding: 20px;
  }

  .qref-title {
    font-size: 2em;
  }

  .qref-grid {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  margin-bottom: 5px;
  color: #0f0;
}

.cookie-popup label {
  color: #ccc;
}
.form-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between; /* garante lado a lado */
  gap: 20px; /* espaçamento entre os blocos */
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #888;
  border-radius: 15px;
  background-color: #000;
  color: rgb(255, 255, 255);
  margin-bottom: 15px;
}

input::placeholder {
  color: #ccc;
}
.form-section {
  flex: 1;
  position: relative; /* necessário pro absolute da mensagem de erro */
}

#error-senha,
#error-confirmSenha,
#message {
  font-size: 14px;
  color: rgb(255, 0, 0);
}

.checkbox-container {
  margin: 6px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #a9a9a9;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
  accent-color: #0f0;
}
.flex-item {
  flex: 1; /* ocupa metade */
  min-height: 100%; /* impede que um fique maior que o outro */
}

.checkbox-label a {
  color: #0f0;
  text-decoration: underline;
  margin-left: 4px;
}

.checkbox-label a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .dashboard {
    padding: 10px;
    width: 90%;
  }

  .form-container {
    flex-direction: column;
  }

  .form-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .bottom-buttons {
    margin-top: 20px;
  }
}

@media (max-width: 400px) {
  .navbar ul {
    display: none;
  }

  .hamburguer-menu {
    display: flex;
  }

  .checkbox-label {
    font-size: 11px;
  }
}

select.cyber-input {
  background: rgba(0, 0, 0, 0.8)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2300ff00'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 35px;
}

select.cyber-input option {
  background: #000;
  color: #fff;
}

select.cyber-input:focus {
  background: rgba(0, 255, 0, 0.05);
}
