/* Davies Financial Wellness Quiz — v1.0.0 */
/* Palette: accent #FB8E28, text #313131, secondary #777, links #136AAF, bg #fff */

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

.dwq-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1rem;
    color: #313131;
    -webkit-font-smoothing: antialiased;
}

/* ── Progress Bar ── */
.dwq-progress-wrap {
    width: 100%;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.dwq-progress-bar {
    height: 100%;
    background: #FB8E28;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dwq-progress-label {
    font-size: 0.8rem;
    color: #777;
    text-align: right;
    margin-bottom: 1.5rem;
}

/* ── Slides ── */
.dwq-slide {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.dwq-slide.dwq-active {
    display: block;
}

.dwq-slide.dwq-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Question ── */
.dwq-question {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1.5rem;
    text-align: center;
}

/* ── Option Buttons ── */
.dwq-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dwq-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.dwq-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #313131;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.dwq-btn:hover {
    border-color: #FB8E28;
    background: #FFF8F0;
}

.dwq-btn:active {
    transform: scale(0.97);
}

.dwq-btn.dwq-selected {
    border-color: #FB8E28;
    background: #FB8E28;
    color: #fff;
}

/* ── Lead Capture Form ── */
.dwq-lead-capture .dwq-subtext {
    text-align: center;
    color: #777;
    margin: -0.75rem 0 1.5rem;
    font-size: 0.95rem;
}

.dwq-form {
    max-width: 420px;
    margin: 0 auto;
}

.dwq-field {
    margin-bottom: 1.25rem;
}

.dwq-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #313131;
}

.dwq-req {
    color: #e53e3e;
}

.dwq-optional {
    color: #999;
    font-weight: 400;
}

.dwq-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: #313131;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.dwq-field input:focus {
    border-color: #FB8E28;
}

.dwq-field input.dwq-input-error {
    border-color: #e53e3e;
}

.dwq-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: #FB8E28;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 0.5rem;
}

.dwq-submit:hover {
    background: #e57d1e;
}

.dwq-submit:active {
    transform: scale(0.98);
}

.dwq-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dwq-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 1rem;
}

.dwq-privacy a {
    color: #136AAF;
    text-decoration: none;
}

.dwq-privacy a:hover {
    text-decoration: underline;
}

/* ── Results ── */
.dwq-results-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Gauge */
.dwq-gauge-wrap {
    position: relative;
    width: 220px;
    margin: 0 auto 1rem;
    text-align: center;
}

.dwq-gauge {
    width: 100%;
    height: auto;
}

.dwq-score-num {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.8rem;
    font-weight: 700;
    color: #313131;
    line-height: 1;
}

.dwq-score-label {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

/* Badge */
.dwq-score-badge {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-block;
    margin: 0 auto 2rem;
    width: auto;
}

.dwq-results .dwq-score-badge {
    display: block;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.dwq-badge-red {
    background: #FEE2E2;
    color: #B91C1C;
}

.dwq-badge-yellow {
    background: #FEF3C7;
    color: #92400E;
}

.dwq-badge-green {
    background: #D1FAE5;
    color: #065F46;
}

/* Insights */
.dwq-insights {
    margin-bottom: 1.5rem;
}

.dwq-insight-card {
    background: #F9FAFB;
    border-left: 4px solid #FB8E28;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.dwq-insight-card h4 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #313131;
}

.dwq-insight-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Priority */
.dwq-priority {
    background: #FFF8F0;
    border: 2px solid #FB8E28;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.dwq-priority h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #FB8E28;
}

.dwq-priority p {
    margin: 0;
    font-size: 0.95rem;
    color: #313131;
    line-height: 1.5;
}

/* CTA */
.dwq-cta {
    text-align: center;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 2rem 1.5rem;
}

.dwq-cta h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #313131;
}

.dwq-cta > p {
    color: #777;
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
}

.dwq-cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: #FB8E28;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.dwq-cta-btn:hover {
    background: #e57d1e;
    color: #fff;
    text-decoration: none;
}

.dwq-cta-btn:active {
    transform: scale(0.98);
}

.dwq-cta-sub {
    font-size: 0.8rem;
    color: #999;
    margin: 0.75rem 0 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .dwq-container {
        margin: 1rem auto;
    }

    .dwq-question {
        font-size: 1.25rem;
    }

    .dwq-options-grid {
        grid-template-columns: 1fr;
    }

    .dwq-btn {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .dwq-gauge-wrap {
        width: 180px;
    }

    .dwq-score-num {
        font-size: 2.2rem;
        bottom: 14px;
    }

    .dwq-cta {
        padding: 1.5rem 1rem;
    }
}
