[data-native-texan-quiz] {
  --ntq-ink: #211f1a;
  --ntq-muted: #6e675b;
  --ntq-paper: #fffdf8;
  --ntq-cream: #f6f1e7;
  --ntq-line: #d8cfbe;
  --ntq-red: #a53a2c;
  --ntq-blue: #1f526b;
  --ntq-gold: #a66c18;
  --ntq-radius: 18px;
  --ntq-shadow: 0 18px 48px rgba(33, 31, 26, 0.12);
}

[data-native-texan-quiz] {
  box-sizing: border-box;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(12px, 3vw, 32px);
  color: var(--ntq-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

[data-native-texan-quiz] *,
[data-native-texan-quiz] *::before,
[data-native-texan-quiz] *::after { box-sizing: border-box; }

.ntq-card {
  width: 100%;
  padding: clamp(22px, 5vw, 52px);
  background: var(--ntq-paper);
  border: 1px solid var(--ntq-line);
  border-radius: var(--ntq-radius);
  box-shadow: var(--ntq-shadow);
}

.ntq-card h1,
.ntq-card h2,
.ntq-card p { margin-top: 0; }

.ntq-card h1 { font-size: clamp(2rem, 7vw, 4.5rem); line-height: 1; }
.ntq-card h2 { font-size: clamp(1.3rem, 3.2vw, 2rem); line-height: 1.25; }
.ntq-eyebrow { margin-bottom: 10px; color: var(--ntq-red); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ntq-persona-title { color: var(--ntq-gold); font-size: clamp(1rem, 2.5vw, 1.45rem); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.ntq-button,
.ntq-answer,
.ntq-text-button {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ntq-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 2px solid transparent; text-align: center; text-decoration: none; }
.ntq-button-primary { color: #fff; background: var(--ntq-red); }
.ntq-button-secondary { color: var(--ntq-blue); background: #fff; border-color: var(--ntq-blue); }
.ntq-button:hover, .ntq-answer:hover { transform: translateY(-1px); }
.ntq-button:focus-visible, .ntq-answer:focus-visible, .ntq-text-button:focus-visible, .ntq-entry input:focus-visible { outline: 3px solid rgba(31, 82, 107, .35); outline-offset: 3px; }
.ntq-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.ntq-intro { min-height: 480px; display: grid; place-content: center; justify-items: start; background: linear-gradient(145deg, var(--ntq-paper), #f2e3d8); }
.ntq-intro p:not(.ntq-eyebrow) { max-width: 55ch; font-size: 1.1rem; }

.ntq-progress-meta { display: flex; justify-content: space-between; color: var(--ntq-muted); font-size: .82rem; font-weight: 700; }
.ntq-progress { height: 8px; margin: 8px 0 28px; overflow: hidden; background: var(--ntq-line); border-radius: 999px; }
.ntq-progress span { display: block; height: 100%; background: var(--ntq-red); border-radius: inherit; transition: width .25s ease; }
.ntq-answers { display: grid; gap: 12px; margin: 24px 0; }
.ntq-answer { display: grid; grid-template-columns: 34px 1fr; gap: 12px; width: 100%; padding: 16px; color: var(--ntq-ink); background: #fff; border: 1px solid var(--ntq-line); text-align: left; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.ntq-answer-label { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ntq-red); border: 1px solid var(--ntq-red); border-radius: 50%; font-weight: 900; }
.ntq-answer.is-selected { background: #f8ede8; border-color: var(--ntq-red); box-shadow: 0 0 0 2px rgba(165, 58, 44, .12); }
.ntq-question-actions { display: flex; justify-content: space-between; gap: 12px; }

.ntq-transition { min-height: 480px; display: grid; place-content: center; justify-items: center; text-align: center; }
.ntq-spinner { width: 72px; height: 72px; margin: 24px; border: 7px solid #b9ced6; border-top-color: var(--ntq-blue); border-radius: 50%; animation: ntq-spin .85s linear infinite; }
@keyframes ntq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ntq-spinner { animation-duration: 1.8s; } }

.ntq-reveal { text-align: center; }
.ntq-reveal-image { display: block; width: min(100%, 520px); height: auto; aspect-ratio: 1 / 1; margin: 26px auto; object-fit: contain; }
.ntq-reveal-copy { max-width: 68ch; margin: 0 auto 32px; font-size: clamp(1rem, 2vw, 1.15rem); text-align: left; }

.ntq-entry,
.ntq-share { max-width: 680px; margin: 32px auto 0; padding: clamp(20px, 4vw, 34px); background: var(--ntq-cream); border: 1px solid var(--ntq-line); border-radius: 14px; text-align: left; }
.ntq-entry label:not(.ntq-check) { display: grid; gap: 6px; margin: 14px 0; font-size: .86rem; font-weight: 800; }
.ntq-entry input[type="email"],
.ntq-entry input[type="text"],
.ntq-entry select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ntq-ink); background: #fff; border: 1px solid var(--ntq-line); border-radius: 7px; font: inherit; }
.ntq-honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ntq-bonus, .ntq-friend-cta { max-width: 680px; margin: 32px auto; padding: 24px; border: 2px solid var(--ntq-gold); border-radius: 14px; background: var(--ntq-cream); }
.ntq-image-pending { max-width: 520px; margin: 28px auto; padding: 36px; border: 1px dashed var(--ntq-line); border-radius: 12px; }
.ntq-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 14px 0; font-size: .85rem; }
.ntq-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ntq-red); }
.ntq-form-status, .ntq-share-status { min-height: 1.5em; margin: 12px 0 0; color: var(--ntq-blue); font-weight: 800; }

.ntq-share { text-align: center; }
.ntq-share-preview { display: block; width: min(100%, 420px); height: auto; aspect-ratio: 4 / 5; margin: 20px auto; object-fit: contain; }
.ntq-share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ntq-text-button { margin-top: 26px; padding: 8px; color: var(--ntq-blue); background: transparent; border: 0; text-decoration: underline; }
.ntq-error { border-color: var(--ntq-red); }

@media (max-width: 620px) {
  [data-native-texan-quiz] { padding: 8px; }
  .ntq-card { padding: 22px 16px; border-radius: 12px; }
  .ntq-question-actions, .ntq-share-actions { grid-template-columns: 1fr; }
  .ntq-question-actions { display: grid; }
  .ntq-question-actions .ntq-button-primary { grid-row: 1; }
  .ntq-answer { padding: 14px 12px; }
}
