/* PTH Trauma Assessment — Public Styles */

/* ── Wrap ──────────────────────────────────────────────────────────────────── */
.ptra-wrap { max-width: 680px; margin: 0 auto; font-family: inherit; }

/* ── Intro card ────────────────────────────────────────────────────────────── */
.ptra-intro { background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%); color: #f1f5f9; border-radius: 20px; padding: 40px 36px; text-align: center; }
.ptra-intro__icon { font-size: 52px; display: block; margin-bottom: 16px; }
.ptra-intro__title { font-size: 24px; font-weight: 800; margin: 0 0 12px; }
.ptra-intro__desc { font-size: 15px; color: #cbd5e1; line-height: 1.65; margin: 0 0 20px; }
.ptra-intro__list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; text-align: left; max-width: 400px; margin-left: auto; margin-right: auto; }
.ptra-intro__list li { font-size: 14px; color: #a5b4fc; }
.ptra-intro__note { font-size: 13px; color: #64748b; border: 1px solid #334155; border-radius: 10px; padding: 12px 16px; margin: 0 0 24px; }
.ptra-intro__start { font-size: 16px; padding: 14px 40px; }

/* ── Progress bar ──────────────────────────────────────────────────────────── */
.ptra-progress-bar { margin-bottom: 24px; }
.ptra-progress-bar__track { height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.ptra-progress-bar__fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 999px; transition: width .4s ease; }
.ptra-progress-bar__label { font-size: 12px; color: #9ca3af; font-weight: 600; }

/* ── Block ─────────────────────────────────────────────────────────────────── */
.ptra-block { background: #fff; border-radius: 20px; box-shadow: 0 4px 24px rgba(0,0,0,.07); overflow: hidden; }
.ptra-block__header { background: linear-gradient(135deg, #f0f4ff, #faf5ff); padding: 24px 28px; display: flex; align-items: flex-start; gap: 16px; border-bottom: 1px solid #e5e7eb; }
.ptra-block__icon { font-size: 36px; flex-shrink: 0; }
.ptra-block__num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6366f1; margin-bottom: 2px; }
.ptra-block__title { font-size: 18px; font-weight: 800; color: #1a1a2e; margin: 0 0 4px; }
.ptra-block__desc { font-size: 14px; color: #6b7280; margin: 0; }

/* ── Questions ─────────────────────────────────────────────────────────────── */
.ptra-questions { padding: 20px 28px; display: flex; flex-direction: column; gap: 24px; }
.ptra-q { }
.ptra-q__text { font-size: 15px; font-weight: 500; color: #1a1a2e; margin: 0 0 12px; line-height: 1.55; display: flex; gap: 10px; }
.ptra-q__num { background: #6366f1; color: #fff; font-size: 12px; font-weight: 800; min-width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* ── Scale options ─────────────────────────────────────────────────────────── */
.ptra-scale { display: flex; gap: 8px; flex-wrap: wrap; }
.ptra-scale__opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    flex: 1;
    min-width: 60px;
    text-align: center;
    transition: border-color .12s, background .12s;
    user-select: none;
}
.ptra-scale__opt input { display: none; }
.ptra-scale__opt:hover { border-color: #6366f1; background: #f0f4ff; }
.ptra-scale__opt.selected { border-color: #6366f1; background: #6366f1; color: #fff; }
.ptra-scale__opt.selected .ptra-scale__lbl { color: rgba(255,255,255,.85); }
.ptra-scale__val { font-size: 18px; font-weight: 800; line-height: 1; }
.ptra-scale__lbl { font-size: 11px; font-weight: 600; color: #6b7280; }

/* ── Block nav ─────────────────────────────────────────────────────────────── */
.ptra-block__nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px 24px; }
.ptra-form__error { text-align: center; color: #ef4444; font-size: 14px; font-weight: 600; margin-top: 12px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.ptra-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 24px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; text-decoration: none; transition: opacity .15s, transform .1s; }
.ptra-btn:hover { opacity: .9; transform: translateY(-1px); }
.ptra-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.ptra-btn--primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.ptra-btn--back { background: #f3f4f6; color: #374151; }
.ptra-btn--submit { background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 16px; padding: 14px 32px; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .ptra-block__header { padding: 18px 20px; }
    .ptra-questions { padding: 16px 20px; }
    .ptra-block__nav { padding: 12px 20px 20px; }
    .ptra-scale { gap: 6px; }
    .ptra-scale__opt { min-width: 52px; padding: 8px 8px; }
    .ptra-scale__val { font-size: 15px; }
    .ptra-scale__lbl { font-size: 10px; }
}
