/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
 
 
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}


.main {
  flex: 1 0 auto; /* o conteúdo principal expande */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #1e1b2e, #2c2444);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.header {
  background: #30264d;
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 3px solid #6e45e2;
}

.header__title {
  font-size: 2rem;
  font-weight: bold;
  color: #ffd166;
}

.header__icon {
  margin-right: 0.5rem;
}

.header__subtitle {
  font-size: 1.2rem;
  color: #d3cce3;
  margin-top: 0.5rem;
}

/* Navigation */
.nav {
  background-color: #1e1b2e;
  border-bottom: 1px solid #4b3869;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  list-style: none;
}

.nav__item {
  margin: 0.5rem 0;
}

.nav__button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.nav__button:hover,
.nav__button--active {
  background-color: #6e45e2;
  color: #fff;
}

/* Sections */
.section {
  display: none;
  margin-top: 2rem;
}

.section--active {
  display: block;
}

.section__title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #ffd166;
  text-align: center;
}

.card {
  background-color: #2c2444;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #cfcfcf;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #fff;
  color: #333;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Questionário */
.question {
  background: #3a2f58;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  margin-top: 1.5rem;
}

.question__title {
  font-size: 1.3rem;
  color: #ffd166;
  margin-bottom: 1rem;
  text-align: center;
}

.question__text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #e0def4;
}

.question__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option {
  display: flex;
  align-items: center;
  background: #4a3a6c;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  color: #fff;
}

.option:hover {
  background-color: #6e45e2;
}

.option__radio {
  margin-right: 1rem;
  transform: scale(1.2);
}

.option__text {
  font-size: 1rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn--primary {
  background-color: #ffd166;
  color: #000;
}

.btn--primary:hover {
  background-color: #fcbf49;
}

.btn--secondary {
  background-color: #6e45e2;
  color: #fff;
}

.btn--secondary:hover {
  background-color: #553dbd;
}

/* Footer */
.footer {
  flex-shrink: 0;
  background-color: #1e1b2e;
  border-top: 2px solid #6e45e2;
  padding: 2rem 1rem;
  color: #bbb;
  font-size: 0.95rem;
  text-align: center;
 
  
}

.container_footer {
   max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  margin-bottom: 3rem;
}


.footer__link {
  color: #ffd166;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

/* Loading */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading__spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #fff;
  border-top: 6px solid #ffd166;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading__text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #6e45e2;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 9999;
}

.toast__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
}