/* === BASE === */
html {
  overflow-y: scroll;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f6fb;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s ease-in;
}

/* === CONTAINER === */
.container {
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  margin: 40px auto 60px auto;
}

/* === LOGO === */
.logo {
  text-align: center;
  margin-bottom: 20px;
}
.logo img {
  width: 340px;
  height: auto;
  max-width: 90%;
}

/* === TÍTULOS === */
h1 {
  color: #592c82;
  text-align: center;
  font-size: 22px;
  margin-bottom: 8px;
}
p {
  color: #4a4a4a;
  text-align: center;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.4;
}

/* === PERGUNTAS === */
.question {
  margin-bottom: 28px;
}
.question label {
  font-weight: 600;
  color: #592c82;
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

/* === ESCALAS === */
.scale {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.scale input {
  display: none;
}

.scale span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 15px;
}

/* === BORDAS FIXAS === */
.scale input[value="1"] + span { border: 2px solid #E53935; }
.scale input[value="2"] + span { border: 2px solid #FB8C00; }
.scale input[value="3"] + span { border: 2px solid #FDD835; }
.scale input[value="4"] + span { border: 2px solid #81C784; }
.scale input[value="5"] + span { border: 2px solid #43A047; }

/* === HOVER COM BRILHO LEVE === */
.scale input[value="1"] + span:hover,
.scale input[value="2"] + span:hover,
.scale input[value="3"] + span:hover,
.scale input[value="4"] + span:hover,
.scale input[value="5"] + span:hover {
  box-shadow: 0 0 10px rgba(89, 44, 130, 0.3);
  transform: scale(1.05);
}

/* === SELEÇÃO === */
.scale input:checked + span {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* === CORES SELECIONADAS === */
.scale input[value="1"]:checked + span { background: #E53935; }
.scale input[value="2"]:checked + span { background: #FB8C00; }
.scale input[value="3"]:checked + span { background: #FDD835; color:#333; }
.scale input[value="4"]:checked + span { background: #81C784; }
.scale input[value="5"]:checked + span { background: #43A047; }

/* === LEGENDA === */
.legend {
  list-style: none;
  padding-left: 0;
  font-size: 14px;
  margin: 10px 0;
}
.legend li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.color-circle {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
}

/* === TEXTAREA === */
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d9cfe8;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  margin-top: 10px;
  transition: border-color 0.3s;
}
textarea:focus {
  border-color: #592c82;
  outline: none;
}

/* === OPÇÕES === */
.options label {
  display: block;
  margin: 5px 0;
  color: #2e2b2e;
  cursor: pointer;
}

/* === BOTÃO === */
button {
  background: #592c82;
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: block;
  margin: 30px auto 0;
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}
button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75px;
  width: 50px;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  transform: skewX(-25deg);
  transition: left 0.8s;
}
button:hover::before {
  left: 120%;
}
button:hover {
  background: #452165;
  transform: scale(1.03);
}

/* === FEEDBACK === */
.feedback {
  text-align: center;
  margin-top: 20px;
  color: #592c82;
  font-size: 15px;
}

/* === RODAPÉ === */
.footer-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.footer {
  width: 100%;
  background: linear-gradient(to top, #f3ecfa 90%, #f8f6fb 100%);
  border-top: 2px solid #e2d8f0;
  color: #592c82;
  font-size: 14px;
  text-align: center;
  padding: 25px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.footer p {
  margin: 4px 0;
  line-height: 1.4;
}

.footer a {
  color: #592c82;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.footer a:hover {
  text-decoration: underline;
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
  .container {
    border-radius: 0;
    padding: 25px 18px;
    box-shadow: none;
    margin: 0; /* zera margem superior e inferior */
    min-height: 100vh;
    width: 100vw; /* ocupa toda a largura da viewport */
    max-width: 100vw; /* ignora limite de 720px */
    box-sizing: border-box;
  }

  h1 {
    font-size: 20px;
  }

  p {
    font-size: 14px;
  }

  .question label {
    font-size: 15px;
  }

  .scale span {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  button {
    font-size: 15px;
    padding: 12px;
  }

  .footer {
    font-size: 12px;
    padding: 20px 10px;
  }
}

