/* === RESET BÁSICO === */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: #000000;
  color: #ffffff;
}

/* === LAYOUT GERAL === */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12px;
}

.frame {
  width: 100%;
  max-width: 1200px;
  border-radius: 18px;
  border: 2px solid #d5b63d;
  background: #050505;
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HEADER */
.app-header {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 14px;
}

.logo-gps {
  width: 120px;
  height: auto;
}

.title-area h1 {
  font-size: 1.8rem;
  margin: 0 0 4px;
  color: #f7f7f7;
}

.subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #e0e0e0;
}

.badge-line {
  margin: 4px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d5b63d;
}

/* MAIN LAYOUT */
.app-main {
  flex: 1;
}

.layout {
  display: flex;
  gap: 24px;
}

/* Coluna esquerda */
.left-column {
  width: 140px;
  position: relative;
  padding-top: 20px;
}

.road-vertical {
    width: 34px;        /* AUMENTA a largura total da estrada */
    
    background:
        linear-gradient(#d5b63d, #d5b63d),
        linear-gradient(#d5b63d, #d5b63d),
        repeating-linear-gradient(
            to bottom,
            #d5b63d 0 18px,       /* aumenta o tamanho das faixas centrais */
            transparent 18px 40px
        );

    background-size:
        3px 100%,        /* borda esquerda mais grossa */
        3px 100%,        /* borda direita mais grossa */
        4px 100%;        /* faixa central mais larga */

    background-position:
        left 6px top 0,      /* ajusta borda esquerda */
        right 6px top 0,     /* ajusta borda direita */
        center top;          /* centraliza faixa interna */

    background-repeat: no-repeat;
}




.road-signs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.road-sign {
  border: 1px solid #d5b63d;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Coluna direita */
.right-column {
  flex: 1;
}

/* FORM / ETAPA 0 */
#step-0 h2 {
  margin-top: 0;
}

.section-title {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d5b63d;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 0.85rem;
  color: #e0e0e0;
}

input,
select {
  border-radius: 999px;
  border: 1px solid #333;
  padding: 8px 12px;
  background: #111;
  color: #ffffff;
  font-size: 0.9rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: #d5b63d;
}

.helper-text {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #c0c0c0;
}

/* BOTÕES */
.actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.primary-btn {
  background: #d5b63d;
  color: #000;
  font-weight: 600;
}

.primary-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.secondary-btn {
  background: #111;
  color: #d5b63d;
  border: 1px solid #d5b63d;
}

.ghost-btn {
  background: transparent;
  color: #aaa;
  border: 1px solid #444;
}

.primary-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.secondary-btn:hover {
  background: #d5b63d;
  color: #000;
}

.ghost-btn:hover {
  border-color: #777;
}

/* QUIZ */
.hidden {
  display: none;
}

.quiz-question {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.question-progress {
  font-size: 0.85rem;
  color: #c0c0c0;
  margin-bottom: 6px;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.options-container button {
  border-radius: 999px;
  border: 1px solid #d5b63d;
  padding: 10px 16px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.options-container button:hover {
  background: #333;
}

.options-container button.selected-option {
  background: #d5b63d;
  color: #000;
}

/* RESULTADO */
.result-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-box {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid #d5b63d;
  padding: 12px 14px;
  font-size: 0.9rem;
  background: #0a0a0a;
}

.whatsapp-btn {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  padding: 8px 16px;
  background: #25d366;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.whatsapp-btn:hover {
  opacity: 0.9;
}

/* CARDS DAS ÁREAS */
.area-results {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.area-card {
  border-radius: 12px;
  border: 1px solid #333;
  padding: 10px 12px;
  background: #080808;
  font-size: 0.9rem;
}

.area-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.area-name {
  font-weight: 600;
}

.area-status {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
}

.status-excelente {
  background: #144b26;
  color: #9effb9;
}

.status-atencao {
  background: #4b3e14;
  color: #ffe79e;
}

.status-critico {
  background: #4b1414;
  color: #ffb1b1;
}

.area-extra {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #cfcfcf;
}

/* RESPOSTAS */
.answers-container {
  margin-top: 40px;
  font-size: 0.9rem;
}

.answers-container h4 {
  margin: 8px 0 4px;
}

.answers-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.answers-meta li {
  margin-bottom: 2px;
}

.answers-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

.answers-list li {
  margin-bottom: 4px;
}

/* Ações finais */
.actions-result {
  margin-top: 18px;
}

/* Nota de monetização */
.paid-report-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #c0c0c0;
}

.paid-report-note a {
  color: #d5b63d;
}

/* RODAPÉ */
.app-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #bbbbbb;
  margin-top: 10px;
  border-top: 1px solid #222;
  padding-top: 6px;
}

.version {
  color: #888;
}

/* BOTÃO SUPORTE E RL */
.support-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  border-radius: 999px;
  padding: 8px 16px;
  background: #111;
  color: #d5b63d;
  border: 1px solid #d5b63d;
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 50;
}

.support-btn:hover {
  background: #d5b63d;
  color: #000;
}

.rl-watermark {
  position: fixed;
  right: 14px;
  bottom: 10px;
  width: 42px;
  height: auto;
  opacity: 0.9;
  z-index: 40;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .frame {
    padding: 18px 16px 18px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout {
    flex-direction: column;
  }

  .left-column {
    width: 100%;
    display: none; /* se quiser mostrar, podemos adaptar depois */
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* IMPRESSÃO – ajustes gerais do laudo */
/* IMPRESSÃO – RELATÓRIO SIMPLES EM PDF */
@media print {

  /* fundo branco e texto preto */
  html, body {
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: auto;
    print-color-adjust: auto;
  }

  .app-wrapper,
  .frame,
  .right-column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10mm 15mm !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* esconder elementos decorativos e o formulário */
  .app-header,
  .left-column,
  .support-btn,
  #step-0,
  #quiz-container {
    display: none !important;
  }

  /* mostrar apenas o resultado e as respostas */
  #result-container {
    display: block !important;
  }

  /* "Minhas respostas" em nova página */
  .answers-section {
    page-break-before: always !important;
  }

  /* botões não aparecem no relatório */
  button,
  .whatsapp-btn {
    display: none !important;
  }
}

@media print {
  .app-wrapper,
  .frame,
  .right-column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
    box-shadow: none !important;
    border: none !important;
  }
}


  /* não quebrar o box principal do resultado no meio */
  #result-container {
  page-break-inside: avoid !important;
}

.answers-section {
  page-break-before: always !important;
}


  /* suporte e marca RL não aparecem no PDF */
  .support-btn,
  .rl-watermark {
    display: none !important;
  }

  /* "Minhas respostas" sempre em página nova */
  .answers-container {
    page-break-before: always !important;
    page-break-inside: auto !important;
  }

  /* assinatura um pouco maior no PDF */
  .signature-block {
    display: block;
    margin-top: 40px;
  }

  .signature-block img {
    max-width: 140px;
    height: auto;
  }
}

   /* ==== ASSINATURA DA DEVOLUTIVA GRATUITA ==== */

.signature-block {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.signature-text p {
  margin: 0;
}

.signature-text p:first-child {
  margin-bottom: 4px;
}

.signature-text span {
  color: #cccccc;
  font-size: 0.85rem;
}

.signature-logo-wrapper {
  display: flex;
  align-items: center;
}

.signature-logo {
  width: 70px;
  height: auto;
  opacity: 0.95;
}
/* --- Assinatura pequena tipo rubrica --- */

.signature-block {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;        /* escolha: left, center, right */
}

.signature-block img {
  max-width: 120px;        /* tamanho ideal de rubrica */
  height: auto;
  opacity: 0.9;            /* leve suavização */
}

.signature-block p {
  margin-top: 6px;
  font-size: 14px;
  color: #d5b63d;
  line-height: 1.2;
}

.signature-block p span {
  font-size: 12px;
  opacity: 0.7;
}

.signature-logo-wrapper img {
  width: 140px;      /* ajuste ideal */
  max-width: 160px;  /* evita exageros */
  height: auto;
  display: block;
  margin: 0 auto;    /* centraliza */
}

@media print {
  .signature-block {
    display: block;
    margin-top: 40px;
  }

  .signature-block img {
  width: 35% !important;
  max-width: 280px !important;
  margin: 40px auto 0 auto !important;
  opacity: 0.15 !important;
  display: block;
}

/* NÃO deixar o título do resumo sozinho na página */
.section-title {
    page-break-after: avoid !important;
}
.area-results {
    page-break-before: avoid !important;
}

/* Próximos passos sempre começando página nova */
.paid-report-note {
    page-break-before: always !important;
}









