﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  
}

html,
body {
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #0f1d22;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}

@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}

.bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  z-index: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

.bg-base {
  background-image: url("imgs/background2.png");
  opacity: 1;
}

.bg-intro {
  background-image: url("imgs/background1.png");
  opacity: 0;
}

body.intro-bg .bg-intro {
  opacity: 1;
}

body.intro-bg .bg-base {
  opacity: 0;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 6px;              /* ?? ESSENCIAL */
  background-color: #ffffff4d; /* fundo da barra */
}

.progress-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3; /* acima dos markers de pergunta */
}

.progress-question-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.progress-question-markers span {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 45%;
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%);
  transition: background 0.25s ease, opacity 0.25s ease;
  opacity: 0.7;
}

.progress-question-markers span.active {
  background: rgba(56, 189, 248, 0.72);
  opacity: 1;
}

#progressBar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;              /* ?? ESSENCIAL */
  width: 0%;                 /* começa zerada */
  background: linear-gradient(90deg, #3194ad 0%, #1c4955 50%, #3194ad 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(37, 112, 131, 0.55), 0 0 22px rgba(17, 50, 58, 0.45), 0 0 32px rgba(37, 112, 131, 0.35);
  animation: progressShift 6s ease infinite;
  transition: width 0.4s ease;
  z-index: 1;
}

.progress-markers span {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 100%;
    background: rgba(255,255,255,0.6);
    transform: translateY(-50%);
    transition: background 0.3s ease;
    transform-origin: center center;
}

.progress-markers span.active {
  background: #38bdf8;
}

.progress-markers span.pulse {
  animation: pulseMarker 0.6s ease;
}

@keyframes pulseMarker {
  0% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(2.5); }
  100% { transform: translateY(-50%) scale(1); }
}

@keyframes progressShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

form {
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  z-index: 1;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  background: transparent;
  z-index: 1000;
}

header .container {
  width: 100%;
  padding: 0;
}

main {
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 6px);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.perguntas-container {
  width: min(640px, 92vw);
  padding: 1rem;
  margin: 0 auto;
}
  
.question-wrapper {
  position: relative;
  min-height: 220px; /* ?? ESSENCIAL */
  overflow: visible;
  --question-offset: 24px;
}




.question {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  width: 100%;
  transform: translateY(var(--question-offset)); /* começa EMBAIXO */
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1;
}

button {
  padding: 10px 20px 10px 20px;
  background: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  outline: none;
  color: black;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-buttons {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  flex-wrap: wrap;
  row-gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 12px;
}

.nav-buttons .back {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 10px 18px 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-buttons .back .back-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-buttons .back .back-icon svg {
  width: 100%;
  height: 100%;
}

.nav-buttons .back:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.question h2 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
}



textarea {
  resize: none;
  outline: none;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid white;
  padding: 10px;
  color: white;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  width: 100%;
  min-height: 120px;
  max-height: 220px;
  overflow-y: hidden;
  border-radius: 10px;
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.281);
}






textarea {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.85) rgba(255, 255, 255, 0.08);
}

textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.intro h2 {
  font-weight: 500;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.1;
  letter-spacing: 0.3px;
  white-space: nowrap;
}





.intro h2 .intro-name {
  display: inline;
}

.question.enter {
  z-index: 1;
  transform: translateY(0);
  opacity: 1;
}


.question.reverse {
  transform: translateY(calc(-1 * var(--question-offset)));
  opacity: 0;
}


.question.reverse.enter {
  transform: translateY(0);
  opacity: 1;
}

#blockTitle {
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  opacity: 0.7;
}

.question.exit {
  z-index: 2;
  transform: translateY(calc(-1 * var(--question-offset)));
  opacity: 0;
}
.question.exit-down {
  z-index: 2;
  transform: translateY(var(--question-offset));
  opacity: 0;
  transition-duration: 0.3s;
  transition-timing-function: ease-in;
}


.intro-text {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.85);
}


input {
  width: 100%;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin: 15px 0;
  border: none;
  outline: none;
  background-color: transparent;
  color: white;
  border-bottom: 1px solid white;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.281);
}


.phone-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 12px;
  margin: 12px 0 18px;
}

.phone-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
}

.phone-grid input,
.phone-grid select {
  width: 100%;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 10px 12px;
  background-color: transparent;
  color: white;
  outline: none;
}

.phone-grid input::placeholder {
  color: rgba(255, 255, 255, 0.281);
}

.phone-grid option {
  color: #111;
}

.phone-grid select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #101827;
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.phone-grid select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(17, 50, 58, 0.4), 0 0 14px rgba(17, 50, 58, 0.25);
}

.phone-country-wrap {
  position: relative;
  z-index: 30;
  isolation: isolate;
}

.phone-country.native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.phone-country-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 10px 12px;
  background-color: transparent;
  color: white;
  cursor: pointer;
  transition: border 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-country-trigger:hover {
  background-color: transparent;
}

.phone-country-wrap.open .phone-country-trigger {
  border-color: #11323a;
  box-shadow: 0 0 8px rgba(17, 50, 58, 0.4), 0 0 14px rgba(17, 50, 58, 0.25);
}

.phone-country-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.phone-country-wrap.open .phone-country-chevron {
  transform: rotate(-135deg);
}

.phone-country-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #324d53 0%, #11323a 100%);
  border: 1px solid #395e68;
  border-radius: 12px;
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  z-index: 200;
  box-shadow: 0 0 8px rgba(17, 50, 58, 0.4), 0 0 14px rgba(17, 50, 58, 0.25);
  backdrop-filter: none;
  opacity: 1;
  mix-blend-mode: normal;
  background-clip: padding-box;
}

.phone-country-wrap.open .phone-country-list {
  display: block;
}

.phone-country-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.85) rgba(255, 255, 255, 0.08);
}

.phone-country-list::-webkit-scrollbar {
  width: 8px;
}

.phone-country-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.phone-country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.phone-country-list::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}
\r\n.phone-country-list::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path fill='%23ffffff' d='M0 5l4-4 4 4z'/></svg>");
}
\r\nbutton:vertical:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path fill='%23ffffff' d='M0 3l4 4 4-4z'/></svg>");
}

.phone-country-option {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.phone-country-option:hover,
.phone-country-option:focus {
  background: #395e68;
  outline: none;
}

.phone-country-option.selected {
  background: rgba(255, 255, 255, 0.18);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 10px 0 6px;
  align-items: start;
}

.choice {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  text-align: left;
  color: white;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: border 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  height: auto;
  align-self: start;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.choice:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.error-message {
  margin-bottom: 10px;
  color: #fc777a;
  font-size: 14px;
}

.question input,
.question textarea {
  transition: border 0.2s ease;
}

.question.has-error input,
.question.has-error textarea {
  border-bottom: 1px solid #ff8082;
}

.question.has-error .phone-grid input,
.question.has-error .phone-grid select {
  border: 1px solid #ff8082;
}

.has-error .error-message {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
    height: auto;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    pointer-events: none;
  }

  form {
    position: relative;
    z-index: 1;
    height: auto;
    overflow: visible;
  }

  .progress-container {
    height: 6px;
    border-radius: 0;
  }

  main {
    min-height: calc(100vh - 6px);
    height: auto;
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  .perguntas-container {
    width: 90%;
    padding-top: 0;
    padding-bottom: 0;
  }

  #blockTitle {
    font-size: 11px;
    letter-spacing: 1.6px;
  }

  .question h2 {
    font-size: 22px;
  }

  .intro h2 {
    font-size: clamp(20px, 5vw, 26px);
    white-space: normal;
  }

  

  

  .intro h2 .intro-name {
    display: block;
  }


.intro-text {
    font-size: 14px;
  }

  input {
    font-size: 18px;
  }

  textarea {
    font-size: 16px;
    min-height: 110px;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .phone-country-trigger {
    font-size: 16px;
  }

  .phone-grid input,
  .phone-grid select {
    font-size: 16px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .choice {
    width: 100%;
    font-size: 13px;
  }
}


























