* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.template-assessment main {
    padding: 0;
    margin: 0;
}

/* ── Page layout ── */

.template-assessment .as-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.template-assessment .as-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: start;
}

/* ── Left: hero panel (dark) ── */

.template-assessment .as-hero {
    background: #111111;
    display: flex;
    align-items: flex-start;
    padding: 80px 72px;
    box-sizing: border-box;
    min-height: 100%;
}

.template-assessment .as-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 420px;
}

.template-assessment .as-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
    margin-bottom: 8px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.template-assessment .as-back-btn:hover {
    color: rgba(255, 255, 255, 0.85);
}

.template-assessment .as-hero-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.04em;
}

.template-assessment .as-highlight {
    color: inherit;
}

.template-assessment .as-hero-body {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.50);
    line-height: 1.75;
    margin: 0;
}

.template-assessment .as-hero-proofs {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.template-assessment .as-hero-proof {
    position: relative;
    padding: 14px 0 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.5;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.template-assessment .as-hero-proof::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-size: 1.1rem;
    font-weight: 700;
}

.template-assessment .as-hero-proof-icon {
    display: none;
}

/* ── Right: form panel (white) ── */

.template-assessment .as-main {
    background: #ffffff;
    padding: 80px 72px;
    box-sizing: border-box;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.template-assessment .form-panel.as-form-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: 540px;
}

/* ── Progress bar ── */

.template-assessment .as-progress-track {
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 0;
    margin-bottom: 40px;
    overflow: hidden;
}

.template-assessment .as-progress-fill {
    height: 100%;
    background: #000000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* ── Step dots ── */

.template-assessment .as-step-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
}

.template-assessment .as-step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.25s, transform 0.25s;
}

.template-assessment .as-step-dot.active {
    background: #000000;
    transform: scale(1.25);
}

/* ── Steps ── */

.template-assessment .assessment-step {
    display: none;
}

.template-assessment .assessment-step.active {
    display: block;
    animation: as-fade-up 0.3s ease both;
}

@keyframes as-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Step 0: contact details ── */

.template-assessment .as-form-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.template-assessment .as-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}

.template-assessment .as-form-subtitle {
    font-size: 0.92rem;
    color: rgba(0, 0, 0, 0.48);
    margin: 0;
    line-height: 1.6;
}

/* ── Multi-choice steps ── */

.template-assessment .step-label-text {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.28);
    margin-bottom: 16px;
}

.template-assessment .assess-h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 24px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.template-assessment .assess-opts {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.template-assessment .assess-opt {
    padding: 16px 0;
    font-size: 0.93rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease, padding-left 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
    width: 100%;
}

.template-assessment .assess-opt:hover {
    color: #000000;
    padding-left: 8px;
}

.template-assessment .assess-opt.selected {
    color: #000000;
    font-weight: 700;
    padding-left: 8px;
}

/* ── Form elements ── */

.template-assessment .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.template-assessment .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.58);
    letter-spacing: 0.02em;
    display: block;
}

.template-assessment .form-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
    color: #000000;
    background: #f8f8f8;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.template-assessment .form-input::placeholder {
    color: rgba(0, 0, 0, 0.28);
}

.template-assessment .form-input:focus {
    border-color: rgba(0, 0, 0, 0.30);
    background: #ffffff;
}

.template-assessment textarea.form-input {
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}

/* ── Role / objective grids ── */

.template-assessment .role-grid,
.template-assessment .objective-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.template-assessment .role-btn,
.template-assessment .obj-btn {
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.60);
    background: #f8f8f8;
    border: 1.5px solid rgba(0, 0, 0, 0.10);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    font-family: inherit;
    line-height: 1.35;
}

.template-assessment .role-btn:hover,
.template-assessment .obj-btn:hover {
    border-color: rgba(0, 0, 0, 0.25);
    color: #000000;
}

.template-assessment .role-btn.selected,
.template-assessment .obj-btn.selected {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
    font-weight: 600;
}

/* ── GDPR checkbox ── */

.template-assessment .gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background: transparent;
    border-radius: 0;
}

.template-assessment .gdpr-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #000000;
    cursor: pointer;
}

.template-assessment .checkbox-text {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.55;
}

.template-assessment .checkbox-text a {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Trust items ── */

.template-assessment .form-trust {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.template-assessment .trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.35);
    letter-spacing: 0.02em;
}

.template-assessment .trust-item i {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.28);
}

/* ── Navigation ── */

.template-assessment .assess-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.template-assessment .btn-ghost {
    padding: 12px 20px;
    font-size: 0.87rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.40);
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.template-assessment .btn-ghost:hover {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.30);
}

.template-assessment .btn-next {
    flex: 1;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-assessment .btn-next:hover {
    background: rgba(0, 0, 0, 0.82);
}

/* ── Start assessment button ── */

.template-assessment .cta-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 12px;
    font-family: inherit;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.template-assessment .cta-btn:hover {
    background: rgba(0, 0, 0, 0.82);
}

/* ── Validation error ── */

.template-assessment .assess-validation-error {
    background: #fef2f2;
    border-left: 3px solid #e53e3e;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.template-assessment .assess-validation-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e53e3e;
    display: block;
    margin-bottom: 6px;
}

.template-assessment .assess-validation-item {
    font-size: 0.80rem;
    color: #e53e3e;
    margin-top: 4px;
    line-height: 1.4;
}

/* ── Result ── */

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-badge.green  { background: rgba(0, 0, 0, 0.06); color: #000000; }
.result-badge.amber  { background: rgba(0, 0, 0, 0.06); color: #000000; }
.result-badge.red    { background: rgba(0, 0, 0, 0.06); color: #000000; }

.result-badge-icon { font-size: 0.85rem; }

.result-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.result-body {
    font-size: 0.93rem;
    color: rgba(0, 0, 0, 0.52);
    line-height: 1.72;
    margin-bottom: 28px;
}

.result-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin-bottom: 28px;
}

.result-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #000000;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
    letter-spacing: 0.01em;
}

.result-cta:hover {
    background: rgba(0, 0, 0, 0.82);
}

.result-cta-icon { font-size: 0.82rem; }

/* ── Responsive ── */

@media (max-width: 960px) {
    .template-assessment .as-layout {
        grid-template-columns: 1fr;
    }

    .template-assessment .as-hero {
        padding: 60px 40px;
        min-height: auto;
    }

    .template-assessment .as-main {
        padding: 60px 40px;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .template-assessment .role-grid,
    .template-assessment .objective-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .template-assessment .as-hero {
        padding: 48px 24px;
    }

    .template-assessment .as-main {
        padding: 48px 24px 64px;
    }

    .template-assessment .as-hero-title {
        font-size: 1.9rem;
    }
}
