/* === NAYA Base CSS — Shared for all PETA test pages === */
/* Version: 1.0.0 */

:root {
  --pp: #F79227; --pd: #E07D00; --pl: #FFF7ED;
  --nv: #1E293B; --mu: #64748B; --so: #94A3B8;
  --li: #E2E8F0; --bg: #F8FAFC; --ca: #FFFFFF;
  --gr: #16A34A; --gl: #DCFCE7; --rd: #DC2626;
  --ra: 16px; --rs: 10px;
  --sh: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --fd: 'Plus Jakarta Sans', system-ui, sans-serif;
  --fb: 'Nunito', system-ui, sans-serif;
  --tr: all .25s ease;
}

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

body {
  font-family: var(--fb); font-size: 16px; line-height: 1.6;
  color: var(--nv); background: var(--bg); min-height: 100vh;
}

button, [role="button"] { min-height: 44px; }
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(247,146,39,.35);
  outline-offset: 2px;
}

input, select {
  font: inherit; width: 100%; padding: 12px 14px;
  border: 2px solid var(--li); border-radius: var(--rs); font-size: .95rem;
  background: var(--ca); transition: var(--tr);
}
input:focus, select:focus {
  outline: none; border-color: var(--pp);
  box-shadow: 0 0 0 4px rgba(247,146,39,.1);
}

label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 4px; color: var(--nv); font-family: var(--fd); }
label .req { color: var(--rd); }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px 80px; }

.screen { display: none; animation: fadeIn .35s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(247,146,39,.1);
}
.topbar img { height: 34px; }
.topbar-badge {
  background: var(--pp); color: #fff; padding: 4px 14px;
  border-radius: 20px; font-size: .75rem; font-weight: 700; font-family: var(--fd);
}

.hero {
  background: linear-gradient(135deg, var(--nv), #0F172A);
  border-radius: var(--ra); padding: 28px 20px;
  text-align: center; color: #fff; margin: 16px 0 20px;
}
.hero h1 { font-family: var(--fd); font-weight: 800; font-size: 1.3rem; }
.hero p { color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 4px; }

.card {
  background: var(--ca); border-radius: var(--ra); padding: 24px;
  box-shadow: var(--sh); margin-bottom: 16px; border: 1px solid var(--li);
}
.card h2 { font-family: var(--fd); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; color: var(--nv); }
.card p { color: var(--mu); font-size: .88rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px; border-radius: var(--rs);
  font-weight: 700; font-size: .95rem; font-family: var(--fd);
  transition: var(--tr); border: none; cursor: pointer;
}
.btn-p {
  background: linear-gradient(135deg, var(--pp), var(--pd));
  color: #fff; box-shadow: 0 4px 16px rgba(247,146,39,.35);
}
.btn-p:hover { transform: translateY(-2px); }
.btn-w { width: 100%; }
.btn-s { background: var(--ca); border: 2px solid var(--li); color: var(--nv); }
.btn-s:hover { border-color: var(--pp); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.status {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--rs);
  border: 1px solid var(--li); background: #fff; color: var(--nv); font-size: .88rem;
}
.status[hidden] { display: none; }
.status[data-tone="error"] { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.status[data-tone="info"] { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.status[data-tone="success"] { background: #ECFDF5; border-color: #BBF7D0; color: #166534; }

.test-topbar {
  background: var(--nv); border-radius: var(--ra); padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; margin-bottom: 16px; position: sticky; top: 64px; z-index: 10;
}
.pbar { height: 4px; background: var(--li); border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
.pbar-fill { height: 100%; background: var(--pp); transition: width .3s; }

.q-stem { font-size: 1.05rem; line-height: 1.75; margin-bottom: 24px; font-weight: 600; color: var(--nv); font-family: var(--fd); }

.nav { display: flex; gap: 10px; margin-top: 28px; }
.nav button { flex: 1; }
.opt, .likert-opt { min-height: 44px; }
.opt:focus-visible, .likert-opt:focus-visible {
  outline: 3px solid rgba(247,146,39,.35);
  outline-offset: 2px;
}

.done { text-align: center; padding: 40px 0; }
.done-icon { font-size: 5rem; margin-bottom: 16px; }
.done h1 { font-family: var(--fd); font-weight: 800; font-size: 1.4rem; margin-bottom: 8px; }

.result-card {
  background: var(--pl); border: 2px solid var(--pp);
  border-radius: var(--ra); padding: 20px; margin: 20px 0; text-align: left;
}
.result-bar { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.result-bar .label { width: 80px; font-weight: 700; font-size: .85rem; }
.result-bar .bar { flex: 1; height: 24px; background: var(--li); border-radius: 12px; overflow: hidden; }
.result-bar .fill {
  height: 100%; background: linear-gradient(90deg, var(--pp), var(--pd));
  border-radius: 12px; transition: width .5s ease;
}
.result-bar .score { width: 40px; text-align: right; font-weight: 800; font-size: .9rem; }

@media (max-width: 440px) { .form-row { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .wrap { max-width: 960px; padding: 0 32px 80px; } }
