/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  overflow-x: hidden;
}

/* Background Global */
.step-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)),
    url("images/car-interior-sunset.webp");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  display: none;
}

.step-container.active {
  display: flex;
}

/* Utilitários */
.hidden {
  display: none !important;
}

.highlight {
  font-weight: bold;
  color: #ffbf00;
}

.highlight-green {
  color: #4ade80;
  font-weight: bold;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-6px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-in {
  animation: fadeIn 0.5s ease-out;
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.pulse {
  animation: pulse 1s infinite;
}

/* ETAPA 1: CAPTURA */
.capture-content {
  width: 100%;
  max-width: 28rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.eyebrow-copy {
  color: #ffbf00;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.title-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-title {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.subtitle {
  font-size: 1.125rem;
  color: #ccd6f6;
  font-weight: normal;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.form-input,
.form-select {
  height: 3rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  border: 2px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #374151;
  padding: 0 1rem;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 3rem;
  cursor: pointer;
}

/* Melhorar dropdown no mobile */
@media (max-width: 768px) {
  .form-select {
    font-size: 16px; /* Previne zoom no iOS */
  }
}

.form-input::placeholder {
  color: #6b7280;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #ffbf00;
  box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.1);
}

.form-input.error,
.form-select.error {
  border-color: #ef4444;
}

.error-message {
  color: #fca5a5;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.cta-button {
  width: 100%;
  background: #ffbf00;
  color: #000000;
  font-weight: bold;
  height: 3.5rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #e6ac00;
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 191, 0, 0.3);
}

.social-proof {
  color: #ccd6f6;
  font-size: 0.875rem;
}

.authority-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
}

.authority-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stars {
  color: #ccd6f6;
  font-size: 1rem;
}

.icon {
  font-size: 1.25rem;
}

.authority-text {
  color: #ccd6f6;
  font-size: 0.75rem;
}

/* ETAPA 2: TESTE */
.test-content {
  width: 100%;
  max-width: 48rem;
}

.test-card {
  background: rgba(17, 34, 64, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.progress-section {
  flex: 1;
}

.progress-text {
  color: #ccd6f6;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  height: 0.5rem;
}

.progress-fill {
  background: linear-gradient(to right, #ffbf00, #e6ac00);
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease-in-out;
}

.timer-section {
  margin-left: 1.5rem;
  text-align: center;
}

.timer {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ade80;
}

.timer.warning {
  color: #fbbf24;
}

.timer.danger {
  color: #ef4444;
  animation: pulse 1s infinite;
}

.timer-label {
  font-size: 0.75rem;
  color: #ccd6f6;
}

.question-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.question-image {
  margin-bottom: 1.5rem;
  text-align: center;
}

.traffic-sign {
  display: inline-block;
  padding: 1rem;
  background: #fbbf24;
  border-radius: 0.5rem;
  border: 4px solid #dc2626;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-description {
  font-size: 0.875rem;
  color: #ccd6f6;
  margin-top: 0.5rem;
  font-weight: 500;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.answer-option {
  width: 100%;
  padding: 1rem;
  text-align: left;
  min-height: 3.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.answer-option:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.answer-option:disabled {
  cursor: not-allowed;
}

.answer-option.correct {
  background: rgba(34, 197, 94, 0.2);
  border-color: #4ade80;
  color: #bbf7d0;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.answer-option.correct.pulse {
  animation: pulse 1s infinite;
}

.answer-option.incorrect {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fecaca;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.answer-option.disabled {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

.option-letter {
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.125rem;
}

.option-text {
  font-size: 1rem;
  flex: 1;
}

/* ETAPA 3: LOADING */
.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.loading-spinner {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

.loading-spinner svg {
  width: 100%;
  height: 100%;
}

.loading-spinner circle {
  animation: pulse 1s infinite;
}

.loading-message {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loading-text {
  font-size: 1.25rem;
  color: #ccd6f6;
}

/* ETAPA 4: RESULTADO */
.result-content {
  width: 100%;
  max-width: 64rem;
}

.result-card {
  background: rgba(17, 34, 64, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-header {
  text-align: center;
}

.result-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.score-box {
  padding: 1.5rem;
  border: 2px solid;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.score-box.high-risk {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.score-box.medium-risk {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
}

.score-text {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffffff;
}

.risk-text {
  font-size: 1.125rem;
  font-weight: 600;
}

.risk-text.high-risk {
  color: #fca5a5;
}

.risk-text.medium-risk {
  color: #fde68a;
}

.connection-text {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.connection-text p {
  font-size: 1.125rem;
  color: #ccd6f6;
  line-height: 1.6;
}

.solution-section {
  text-align: center;
}

.solution-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 2rem;
}

.benefits-list {
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.benefits-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.benefit-icon {
  color: #4ade80;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.benefit-text {
  color: #ffffff;
  font-weight: 500;
}

.benefit-value {
  color: #ffbf00;
  font-weight: bold;
  font-size: 0.875rem;
  margin-left: 1rem;
  white-space: nowrap;
}

.offer-box {
  padding: 1.5rem;
  background: linear-gradient(to right, rgba(249, 115, 22, 0.2), rgba(251, 191, 36, 0.2));
  border: 2px solid rgba(249, 115, 22, 0.5);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.offer-text {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.crossed-price {
  color: #ef4444;
  font-weight: bold;
}

.offer-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.price-installment {
  font-size: 1.875rem;
  font-weight: bold;
  color: #4ade80;
  margin-bottom: 0.5rem;
}

.price-cash {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ade80;
  margin-bottom: 1rem;
}

.urgency-btn {
  background: #dc2626;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  animation: pulse 1s infinite;
  transition: all 0.3s ease;
}

.urgency-btn:hover {
  background: #b91c1c;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem 0;
}

.cta-final-button {
  padding: 0.875rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000000;
  background-color: #ffbf00;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
  text-align: center;
  line-height: 1.3;
  box-sizing: border-box;
}

.cta-final-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 191, 0, 0.4);
}

.guarantee-section {
  padding: 1.5rem;
  background: linear-gradient(to right, rgba(251, 191, 36, 0.2), rgba(249, 115, 22, 0.2));
  border: 2px solid #fbbf24;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  text-align: center;
}

.guarantee-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.guarantee-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1rem;
}

.guarantee-text {
  color: #ccd6f6;
  line-height: 1.6;
}

.guarantee-text strong {
  color: #ffffff;
}

.testimonials-section {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-photo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.testimonial-location {
  font-size: 0.75rem;
  color: #ffbf00;
  margin-bottom: 0.75rem;
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

.testimonial-text {
  font-size: 0.875rem;
  color: #ccd6f6;
  font-style: italic;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge.green {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.5);
}

.badge.blue {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.5);
}

.badge.purple {
  background: rgba(147, 51, 234, 0.2);
  color: #e9d5ff;
  border-color: rgba(147, 51, 234, 0.5);
}

.badge-icon {
  font-size: 1.125rem;
}

.badge-text {
  font-size: 0.875rem;
}

/* RESPONSIVIDADE */
@media (min-width: 768px) {
  .main-title {
    font-size: 1.875rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  .question-text {
    font-size: 1.5rem;
  }

  .result-title {
    font-size: 1.875rem;
  }

  .solution-title {
    font-size: 1.875rem;
  }

  .price-installment {
    font-size: 2.25rem;
  }

  .result-card {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .main-title {
    font-size: 2.25rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 375px) {
  .cta-final-button {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    line-height: 1.2;
  }

  .step-container {
    padding: 0.5rem;
  }

  .test-card,
  .result-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .cta-final-button {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
}
