/* --- CONTAINER & RESET --- */
.aml-quiz-container {
    max-width: 700px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    line-height: 1.5;
}

/* Force border-box to prevent sizing issues */
.aml-quiz-container *, 
.aml-quiz-container *::before, 
.aml-quiz-container *::after {
    box-sizing: border-box;
}

/* --- CARD DESIGN --- */
.aml-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border: 1px solid #e2e8f0;
}

.center-text { text-align: center; }

/* --- TYPOGRAPHY --- */
.aml-card h1 { font-size: 1.875rem; font-weight: 700; color: #0f172a; margin: 0 0 1rem 0; line-height: 1.2; }
.aml-card h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0 0 1.5rem 0; line-height: 1.3; }
.aml-card p { font-size: 1.125rem; color: #475569; margin: 0 0 2rem 0; }
.aml-card small { color: #2563eb; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.05em; display: block; margin-bottom: 0.5rem; text-transform: uppercase; }

/* --- ICONS (SVG Wrapper) --- */
.aml-icon-circle {
    width: 64px; height: 64px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}
.aml-icon-circle svg { width: 32px; height: 32px; color: #2563eb; }

/* --- BUTTONS --- */
.aml-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 2rem; font-weight: 600; border-radius: 8px;
    cursor: pointer; transition: all 0.2s; border: none; font-size: 1rem;
    text-decoration: none !important; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.aml-btn.primary { background: #2563eb; color: white; }
.aml-btn.primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

.aml-btn.dark { background: #0f172a; color: white; width: 100%; margin-bottom: 12px; }
.aml-btn.dark:hover { background: #1e293b; }

.aml-btn.outline { background: white; color: #475569; border: 1px solid #cbd5e1; width: 100%; }
.aml-btn.outline:hover { background: #f8fafc; border-color: #94a3b8; }

/* --- QUIZ INTERACTION --- */
.options-list { display: flex; flex-direction: column; gap: 0.75rem; }
.option-btn {
    width: 100%; text-align: left; padding: 1.25rem;
    background: white; border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 1rem; font-weight: 500; color: #334155; cursor: pointer;
    transition: all 0.2s; display: flex; justify-content: space-between; align-items: center;
    position: relative; /* for checkmark */
}
.option-btn:hover { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }

/* Multi-Select Active State */
.option-btn.selected {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

/* --- RESULTS & BREAKDOWN --- */
.result-box { padding: 2rem; border-radius: 12px; margin-bottom: 2rem; text-align: left; }
.result-box h3 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; opacity: 0.8; }
.result-box h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }

.final-score {
    font-size: 1.25rem; font-weight: 700;
    display: inline-block; background: rgba(255,255,255,0.8);
    padding: 4px 12px; border-radius: 6px; margin-bottom: 1rem;
}

/* Breakdown List Styling */
.breakdown-list { text-align: left; margin: 2rem 0; border-top: 1px solid #e2e8f0; }
.breakdown-item { padding: 1.5rem 0; border-bottom: 1px solid #e2e8f0; }

.q-label { font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; margin: 0 0 0.5rem 0 !important; }
.q-text { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin: 0 0 1rem 0 !important; }

.user-answer { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; margin-bottom: 0.75rem; line-height: 1.4; }
.user-answer svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }

.breakdown-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}

/* Status Colors */
.status-gap { color: #d97706; }
.user-answer.status-gap svg { color: #d97706; }
.breakdown-badge.status-gap { background: #fffbeb; color: #d97706; border: 1px solid #fcd34d; }

.status-good { color: #16a34a; }
.user-answer.status-good svg { color: #16a34a; }
.breakdown-badge.status-good { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.status-neutral { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

/* --- GRAVITY FORMS OVERRIDES --- */
#gf-container #aml-hidden-gate-wrapper,
#gf-container .gform_wrapper { display: block !important; text-align: left; }

#gf-container .gform_wrapper input[type="text"],
#gf-container .gform_wrapper input[type="email"],
#gf-container .gform_wrapper textarea,
#gf-container .gform_wrapper select {
    width: 100% !important; padding: 12px 16px !important;
    border: 1px solid #cbd5e1 !important; border-radius: 8px !important;
    font-size: 1rem !important; margin-bottom: 12px !important;
    box-shadow: none !important;
}

#gf-container .gform_wrapper input[type="submit"] {
    width: 100% !important; background-color: #2563eb !important;
    color: white !important; padding: 16px !important;
    border-radius: 8px !important; border: none !important;
    font-weight: 600 !important; cursor: pointer !important;
    font-size: 1rem !important; margin-top: 10px !important;
}
#gf-container .gform_wrapper input[type="submit"]:hover { background-color: #1d4ed8 !important; }