* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #000000;
  color: #ffffff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.close-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.close-btn:hover { opacity: 1; }

.progress-circle-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 48px;
  height: 48px;
}
.progress-circle {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}
.progress-circle-bg {
  fill: none;
  stroke: #2a2a2a;
  stroke-width: 4;
}
.progress-circle-bar {
  fill: none;
  stroke: #1a9d4f;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 163.36;
  transition: stroke-dashoffset 0.4s ease;
}
.progress-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

#typeform {
  width: 100%;
  height: 100%;
}

.screen {
  display: none;
  width: 100%;
  height: 100%;
  padding: 90px 24px 140px;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.screen.active {
  display: flex;
  animation: fadeSlideIn 0.35s ease;
}

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

.screen-inner {
  width: 100%;
  max-width: 520px;
  text-align: left;
}

.screen-inner.intro {
  text-align: center;
}

h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.screen-inner.intro h1 {
  font-size: 30px;
}

.small-title {
  font-size: 26px;
}

.required {
  color: #1a9d4f;
  margin-left: 2px;
}

.subtitle {
  color: #a0a0a0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 20px;
}

.time-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #a0a0a0;
  font-size: 14px;
  margin-bottom: 32px;
}

.clock-icon {
  width: 16px;
  height: 16px;
}

.logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto 32px;
  display: block;
}

.logo.small {
  max-width: 280px;
  margin-bottom: 24px;
}

.image-card {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.block-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.image-card:hover .block-image,
.block-image.zoomed {
  transform: scale(1.08);
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #1a9d4f;
  margin: 0 auto 24px;
  display: block;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 26px rgba(26, 157, 79, 0.3);
  transition: transform 0.35s ease;
}

.profile-photo:hover,
.profile-photo.zoomed {
  transform: scale(1.08);
}

.block-text {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
}

.block-text strong {
  font-weight: 700;
}

.block-text + .block-text {
  margin-top: 22px;
}

.highlights-list {
  list-style: none;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

.highlights-list li {
  font-size: 15px;
  color: #d0d0d0;
  padding: 12px 0 12px 24px;
  position: relative;
  line-height: 1.5;
}

.highlights-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.highlights-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1a9d4f;
  font-weight: 700;
}

h1 strong {
  font-weight: 800;
}

.field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #3a3a3a;
  color: #ffffff;
  font-family: inherit;
  font-size: 24px;
  font-weight: 500;
  padding: 10px 4px;
  outline: none;
  transition: border-color 0.2s;
  margin-top: 8px;
}

.field::placeholder {
  color: #555555;
}

.field:focus {
  border-bottom-color: #1a9d4f;
}

.phone-field-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #3a3a3a;
  margin-top: 8px;
  transition: border-color 0.2s;
}

.phone-field-wrap:focus-within {
  border-bottom-color: #1a9d4f;
}

.flag-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.phone-field {
  border-bottom: none;
  margin-top: 0;
}

.services-list {
  list-style: none;
  margin: 20px 0;
}

.services-list li {
  font-size: 20px;
  font-weight: 600;
  padding: 8px 0;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  border: 2px solid #3a3a3a;
  border-radius: 10px;
  color: #ffffff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.option-btn:hover {
  border-color: #1a9d4f;
}

.option-btn.selected {
  border-color: #1a9d4f;
  background: rgba(26, 157, 79, 0.15);
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid #3a3a3a;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.option-btn.selected .option-letter {
  border-color: #1a9d4f;
  background: #1a9d4f;
}

.nav-buttons {
  position: fixed;
  bottom: 28px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
}

.btn-back {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #1a9d4f;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s, transform 0.1s;
}

.btn-back svg {
  width: 22px;
  height: 22px;
}

.btn-back:hover {
  background: #17843f;
}

.btn-back:active {
  transform: scale(0.96);
}

.btn-back.hidden {
  visibility: hidden;
}

.btn-next {
  flex: 1;
  background: #1a9d4f;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 20px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}

.btn-next:hover {
  background: #17843f;
}

.btn-next:active {
  transform: scale(0.98);
}

.intro .btn-next {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.btn-final {
  margin-top: 28px;
  font-size: 18px;
  padding: 18px 24px;
}

/* Intro and final screens don't need the fixed nav bar (toggled via JS with .nav-hidden) */
.nav-buttons.nav-hidden {
  display: none;
}

@media (min-width: 700px) {
  h1 { font-size: 40px; }
  .screen-inner.intro h1 { font-size: 34px; }
}

/* Telas baixas (celulares menores ou em orientação mais compacta):
   reduz respiro vertical pra caber sem cortar conteúdo nem forçar scroll
   nas telas com mais opções (ex: investimento, com 4 botões). */
@media (max-height: 700px) {
  .screen { padding: 64px 24px 104px; }
  h1 { font-size: 26px; }
  .screen-inner.intro h1 { font-size: 24px; }
  .subtitle { margin-bottom: 14px; }
  .options { gap: 10px; margin-top: 16px; }
  .option-btn { padding: 12px 16px; font-size: 16px; }
  .logo { margin-bottom: 20px; }
}
