/* ============================================
   Teste de Arquétipos — todos os estilos
   escopados dentro de .teste-arquetipos-wrapper
   para não interferir no tema do WordPress
   ============================================ */

.teste-arquetipos-wrapper {
  --bg: #0A0A0A;
  --card: #1A1A1A;
  --text: #FFFFFF;
  --muted: #B0B0B0;
  --primary: #E8B86D;
  --gap: 16px;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  box-sizing: border-box;
}

.teste-arquetipos-wrapper *,
.teste-arquetipos-wrapper *::before,
.teste-arquetipos-wrapper *::after {
  box-sizing: border-box;
}

/* Container */
.teste-arquetipos-wrapper .container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header */
.teste-arquetipos-wrapper header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 300;
  color: var(--primary);
}

.teste-arquetipos-wrapper .lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.teste-arquetipos-wrapper .instructions {
  background: rgba(232, 184, 109, 0.1);
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  margin-top: 16px;
}

.teste-arquetipos-wrapper .instructions p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}

.teste-arquetipos-wrapper .instructions p:last-child {
  margin: 0;
}

.teste-arquetipos-wrapper .scale-info {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Fieldsets */
.teste-arquetipos-wrapper fieldset {
  border: 1px solid #2A2A2A;
  padding: 20px;
  border-radius: 12px;
  margin-top: 24px;
  background: rgba(26, 26, 26, 0.5);
}

.teste-arquetipos-wrapper legend {
  font-weight: 600;
  color: var(--primary);
  padding: 0 10px;
  font-size: 16px;
}

/* Questões */
.teste-arquetipos-wrapper .questions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.teste-arquetipos-wrapper .questions li {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid #2A2A2A;
}

.teste-arquetipos-wrapper .questions li:last-child {
  border-bottom: 0;
}

.teste-arquetipos-wrapper .questions li label {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 8px;
}

.teste-arquetipos-wrapper .hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 16px;
}

/* Choices */
.teste-arquetipos-wrapper .choices {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.teste-arquetipos-wrapper .choice {
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #333;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teste-arquetipos-wrapper .choice:hover {
  border-color: var(--primary);
  background: rgba(232, 184, 109, 0.1);
}

.teste-arquetipos-wrapper .choice input {
  display: none;
}

.teste-arquetipos-wrapper .choice span {
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  width: 100%;
  height: 100%;
}

.teste-arquetipos-wrapper .choice:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
}

.teste-arquetipos-wrapper .choice:has(input:checked) span {
  color: var(--bg);
  font-weight: 600;
}

/* Botões */
.teste-arquetipos-wrapper .actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.teste-arquetipos-wrapper .btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid #333;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.teste-arquetipos-wrapper .btn:hover {
  border-color: var(--primary);
  background: rgba(232, 184, 109, 0.1);
}

.teste-arquetipos-wrapper .btn.primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.teste-arquetipos-wrapper .btn.primary:hover {
  background: #F0C57D;
  box-shadow: 0 4px 20px rgba(232, 184, 109, 0.4);
  transform: translateY(-1px);
}

/* Resultado */
.teste-arquetipos-wrapper .result {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid #2A2A2A;
}

.teste-arquetipos-wrapper .result h2 {
  margin-top: 0;
  color: var(--primary);
  font-weight: 300;
  font-size: 24px;
}

.teste-arquetipos-wrapper .result p {
  color: var(--text);
  margin: 12px 0;
}

.teste-arquetipos-wrapper .result .interpretation {
  background: rgba(232, 184, 109, 0.05);
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0;
}

.teste-arquetipos-wrapper .result strong {
  color: var(--primary);
}

/* Arquétipos grid */
.teste-arquetipos-wrapper .arq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.teste-arquetipos-wrapper .arq {
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid #2A2A2A;
  transition: all 0.2s ease;
}

.teste-arquetipos-wrapper .arq:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.teste-arquetipos-wrapper .arq strong {
  display: block;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.teste-arquetipos-wrapper .arq small {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.teste-arquetipos-wrapper .footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #2A2A2A;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Inputs escopados para não afetar o tema */
.teste-arquetipos-wrapper input[type=text],
.teste-arquetipos-wrapper input[type=email],
.teste-arquetipos-wrapper input[type=tel] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: var(--bg);
  color: var(--text);
  margin-top: 8px;
  font-size: 14px;
  width: 100%;
}

.teste-arquetipos-wrapper input[type=text]:focus,
.teste-arquetipos-wrapper input[type=email]:focus,
.teste-arquetipos-wrapper input[type=tel]:focus {
  outline: none;
  border-color: var(--primary);
}

/* Offcanvas / overlay — posição fixa, escopada por classe própria */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1100;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.offcanvas {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: #1A1A1A;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.5);
  transform: translateX(110%);
  transition: transform 0.3s ease-in-out;
  z-index: 1200;
  padding: 24px;
  overflow: auto;
  border-left: 1px solid #2A2A2A;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  color: #FFFFFF;
  box-sizing: border-box;
}

.offcanvas.open {
  transform: translateX(0);
}

.offcanvas h3 {
  margin-top: 0;
  color: #E8B86D;
  font-weight: 300;
  font-size: 22px;
}

.offcanvas p {
  color: #B0B0B0;
  font-size: 14px;
  margin-bottom: 20px;
}

.offcanvas .field {
  margin-bottom: 16px;
}

.offcanvas label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.offcanvas input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0A0A0A;
  color: #FFFFFF;
  font-size: 14px;
  box-sizing: border-box;
}

.offcanvas input:focus {
  outline: none;
  border-color: #E8B86D;
}

.offcanvas .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Responsivo */
@media (max-width: 640px) {
  .teste-arquetipos-wrapper .container {
    padding: 20px;
  }

  .teste-arquetipos-wrapper header h1 {
    font-size: 22px;
  }

  .teste-arquetipos-wrapper .arq-list {
    grid-template-columns: 1fr;
  }

  .teste-arquetipos-wrapper .choices {
    gap: 8px;
  }

  .teste-arquetipos-wrapper .choice {
    padding: 8px 12px;
    min-width: 40px;
  }

  .teste-arquetipos-wrapper .actions {
    flex-direction: column;
  }

  .teste-arquetipos-wrapper .btn {
    width: 100%;
  }
}
