/* =============================================
   BAM Assessment — Dark Quiz UI
   ============================================= */

/* Container */
.bam-assessment {
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #f3f4f6;
}

/* Steps */
.bam-step {
    animation: bamStepIn 0.35s ease-out;
}

@keyframes bamStepIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── INTRO STEP ─────────────────────────── */
.bam-step--intro {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    text-align: center;
}

.bam-intro-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    color: #818cf8;
}

.bam-intro-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
}

.bam-intro-desc {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 1.75rem;
}

.bam-intro-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.bam-field { position: relative; }

.bam-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    color: #f3f4f6;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.bam-input::placeholder { color: #6b7280; }

.bam-input:focus {
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.bam-input.bam-error {
    border-color: rgba(239,68,68,0.5);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.bam-btn-primary {
    width: 100%;
    padding: 0.9rem;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.875rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.bam-btn-primary:hover { opacity: 0.92; }
.bam-btn-primary:active { transform: scale(0.98); }
.bam-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.bam-privacy {
    text-align: center;
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0.25rem 0 0;
}

/* ── QUESTION STEP ──────────────────────── */
.bam-step--question { padding: 0; }

.bam-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.bam-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.bam-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #6366f1);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.bam-progress-text {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    font-weight: 600;
}

.bam-question-area {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1rem;
}

.bam-q-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin: 0 0 0.6rem;
}

.bam-q-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.bam-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bam-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.875rem;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.1s;
    text-align: left;
    width: 100%;
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bam-option:hover {
    border-color: rgba(99,102,241,0.35);
    background: rgba(99,102,241,0.06);
}

.bam-option.selected {
    border-color: rgba(99,102,241,0.6);
    background: rgba(99,102,241,0.1);
    color: #fff;
}

.bam-option-letter {
    width: 26px; height: 26px; min-width: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.bam-option.selected .bam-option-letter {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.bam-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bam-btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    padding: 0.6rem 1.1rem;
    color: #9ca3af;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.bam-btn-back:hover { border-color: rgba(255,255,255,0.25); color: #d1d5db; }

/* ── PROCESSING STEP ────────────────────── */
.bam-step--processing {
    text-align: center;
    padding: 4rem 2rem;
}

.bam-spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #6366f1;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    animation: bamSpin 0.8s linear infinite;
}

@keyframes bamSpin { to { transform: rotate(360deg); } }

.bam-processing-text {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* ── RESULT STEP ────────────────────────── */
.bam-result { text-align: center; }

.bam-result-ring {
    width: 96px; height: 96px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    animation: bamResultRing 2.5s ease-in-out infinite;
}

@keyframes bamResultRing {
    0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.3); }
    50%      { box-shadow: 0 0 0 18px rgba(99,102,241,0); }
}

.bam-result-emoji {
    font-size: 2.75rem;
    display: block;
    margin-bottom: 0.25rem;
}

.bam-result-tier-label {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.bam-result-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.bam-result-score {
    font-size: 0.95rem;
    color: #9ca3af;
    margin: 0 0 0.6rem;
}

.bam-result-score strong { color: #34d399; }

.bam-result-desc {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.65;
    max-width: 400px;
    margin: 0 auto 1.75rem;
}

/* Category bars */
.bam-categories {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.bam-categories-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 1rem;
}

.bam-cat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.bam-cat-row:last-child { margin-bottom: 0; }

.bam-cat-label {
    font-size: 0.82rem;
    color: #d1d5db;
    width: 140px;
    flex-shrink: 0;
}

.bam-cat-bar-wrap {
    flex: 1;
    height: 7px;
    background: rgba(255,255,255,0.07);
    border-radius: 9999px;
    overflow: hidden;
}

.bam-cat-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    transition: width 0.8s ease;
}

.bam-cat-pct {
    font-size: 0.78rem;
    font-weight: 700;
    color: #9ca3af;
    width: 36px;
    text-align: right;
}

/* Recommendation card */
.bam-recommendation {
    background: rgba(99,102,241,0.07);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bam-rec-icon {
    width: 46px; height: 46px; min-width: 46px;
    border-radius: 12px;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}

.bam-rec-body { flex: 1; }

.bam-rec-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #818cf8;
    margin: 0 0 0.2rem;
}

.bam-rec-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.15rem;
}

.bam-rec-desc {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

/* Result CTAs */
.bam-result-ctas {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.bam-result-ctas a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bam-result-ctas a:hover { opacity: 0.88; }

.bam-cta-primary {
    background: #6366f1;
    color: #fff;
}

.bam-cta-secondary {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #d1d5db;
}

.bam-email-note {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 1rem;
    text-align: center;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 480px) {
    .bam-step--intro { padding: 1.75rem 1.25rem; }
    .bam-result-heading { font-size: 1.4rem; }
    .bam-cat-label { width: 110px; font-size: 0.76rem; }
    .bam-recommendation { flex-direction: column; text-align: center; }
    .bam-result-ctas { flex-direction: column; }
    .bam-result-ctas a { justify-content: center; }
}
