/* DIYguru EV Assessment Popup — v1.1
   Brand: #0a2f26 (primary), #10b981 (accent), Inter font
   ==================================================== */

.diyguru-eva-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, 0.75);
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}
.diyguru-eva-overlay * { box-sizing: border-box; }
.diyguru-eva-overlay.active {
    display: flex;
    animation: diyguru-eva-fade 0.3s ease;
}

@keyframes diyguru-eva-fade { from { opacity: 0; } to { opacity: 1; } }

.diyguru-eva-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    margin: 40px auto;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    animation: diyguru-eva-slide 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes diyguru-eva-slide {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.diyguru-eva-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    color: #475569 !important;
    transition: all 0.2s;
    line-height: 1;
    z-index: 2;
}
.diyguru-eva-close:hover { background: #e2e8f0; color: #0a2f26 !important; }

/* ========== INTRO ========== */
.diyguru-eva-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #10b981;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.diyguru-eva-stage h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0a2f26;
    margin: 0 0 12px 0;
    line-height: 1.25;
}
.diyguru-eva-sub {
    color: #475569;
    font-size: 15px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}
.diyguru-eva-sub strong { color: #0a2f26; }

.diyguru-eva-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.diyguru-eva-bullets li {
    padding: 8px 0;
    color: #334155;
    font-size: 15px;
}

.diyguru-eva-meta {
    display: flex;
    gap: 16px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    flex-wrap: wrap;
}

/* ========== BUTTONS — CRITICAL: force white text in all states ========== */
.diyguru-eva-btn-primary,
.diyguru-eva-trigger-btn {
    background: #10b981 !important;
    color: #ffffff !important;
    border: 0;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    height: 52px;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}
.diyguru-eva-btn-primary:hover,
.diyguru-eva-btn-primary:focus,
.diyguru-eva-btn-primary:active,
.diyguru-eva-trigger-btn:hover {
    background: #0a2f26 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
.diyguru-eva-btn-primary:disabled {
    background: #cbd5e1 !important;
    color: #ffffff !important;
    cursor: not-allowed;
    transform: none;
}

.diyguru-eva-btn-large { width: 100%; font-size: 17px; margin-top: 12px; }

.diyguru-eva-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 0;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    height: 52px;
    font-family: inherit;
}
.diyguru-eva-btn-secondary:hover { background: #e2e8f0 !important; color: #0a2f26 !important; }
.diyguru-eva-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.diyguru-eva-btn-block { width: 100%; margin-top: 16px; }

.diyguru-eva-btn-explore {
    display: inline-block;
    margin-top: 12px;
    background: #ffffff !important;
    color: #0a2f26 !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.diyguru-eva-btn-explore:hover { background: #ecfdf5 !important; color: #0a2f26 !important; }

.diyguru-eva-btn-pdf {
    height: auto !important;
    padding: 12px 20px !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.diyguru-eva-fineprint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
}

/* ========== PROGRESS ========== */
.diyguru-eva-progress-wrap { margin-bottom: 24px; }
.diyguru-eva-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}
.diyguru-eva-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #0a2f26);
    width: 10%;
    transition: width 0.4s ease;
}
.diyguru-eva-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.diyguru-eva-timer { color: #10b981; font-weight: 600; }

/* ========== QUESTIONS ========== */
.diyguru-eva-question-container { min-height: 280px; }
.diyguru-eva-q-text {
    font-size: 18px;
    font-weight: 600;
    color: #0a2f26;
    margin: 0 0 20px 0;
    line-height: 1.5;
}
.diyguru-eva-options { display: flex; flex-direction: column; gap: 10px; }
.diyguru-eva-option {
    padding: 16px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #334155;
    transition: all 0.15s;
    line-height: 1.4;
    font-family: inherit;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}
.diyguru-eva-option:hover { border-color: #10b981; background: #ecfdf5; color: #0a2f26; }
.diyguru-eva-option.selected {
    border-color: #10b981;
    background: #ecfdf5;
    color: #0a2f26;
    font-weight: 600;
}
.diyguru-eva-option-radio {
    width: 22px; height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.diyguru-eva-option.selected .diyguru-eva-option-radio {
    border-color: #10b981;
    background: #10b981;
}
.diyguru-eva-option.selected .diyguru-eva-option-radio::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}

.diyguru-eva-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

/* ========== LEAD FORM ========== */
.diyguru-eva-lead-form-inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0 12px;
}
.diyguru-eva-input {
    height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    color: #0a2f26;
    background: #fff;
}
.diyguru-eva-input:focus {
    outline: 0;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.diyguru-eva-input::placeholder { color: #94a3b8; }

/* ========== LOADING ========== */
.diyguru-eva-stage-loading { text-align: center; padding: 40px 0; }
.diyguru-eva-loading-heading { color: #0a2f26; font-size: 18px; margin: 0 0 8px; }
.diyguru-eva-loading-text { color: #64748b; font-size: 14px; }
.diyguru-eva-spinner {
    width: 60px; height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: #10b981;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: diyguru-eva-spin 0.8s linear infinite;
}
@keyframes diyguru-eva-spin { to { transform: rotate(360deg); } }

/* ========== RESULTS ========== */
.diyguru-eva-result-header {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #0a2f26 0%, #10b981 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 20px;
}
.diyguru-eva-score-circle {
    position: relative;
    width: 110px; height: 110px;
    flex-shrink: 0;
}
.diyguru-eva-score-circle svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.diyguru-eva-score-bg { fill: none; stroke: rgba(255,255,255,0.25); stroke-width: 8; }
.diyguru-eva-score-fg {
    fill: none;
    stroke: #fff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339;
    stroke-dashoffset: 339;
    transition: stroke-dashoffset 1.5s ease;
}
.diyguru-eva-score-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}
.diyguru-eva-band-title { color: #ffffff !important; margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.diyguru-eva-band-desc { color: rgba(255,255,255,0.92); margin: 0; font-size: 14px; line-height: 1.5; }

/* Section headings — FIX: white background sections need dark text */
.diyguru-eva-section-heading {
    margin: 0 0 16px 0;
    color: #0a2f26 !important;
    font-size: 16px;
    font-weight: 700;
}

/* Stat cards — simple 3-up grid */
.diyguru-eva-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.diyguru-eva-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.diyguru-eva-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}
.diyguru-eva-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #0a2f26;
    line-height: 1.3;
}

.diyguru-eva-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

/* Domain bars — simple horizontal bars instead of complex radar */
.diyguru-eva-domain-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.diyguru-eva-domain-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}
.diyguru-eva-domain-name {
    font-size: 14px;
    color: #0a2f26;
    font-weight: 600;
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
}
.diyguru-eva-domain-pct { color: #10b981; font-weight: 700; }
.diyguru-eva-domain-track {
    grid-column: 1 / -1;
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
}
.diyguru-eva-domain-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #0a2f26);
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
}

/* PDF CTA */
.diyguru-eva-pdf-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}
.diyguru-eva-pdf-icon { font-size: 40px; flex-shrink: 0; }
.diyguru-eva-pdf-body { flex: 1; min-width: 0; }
.diyguru-eva-pdf-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #78350f !important;
    font-weight: 700;
}
.diyguru-eva-pdf-body p {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.4;
}

/* Recommendation — dark bg needs white text */
.diyguru-eva-recommendation {
    background: linear-gradient(135deg, #0a2f26 0%, #134e42 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.diyguru-eva-rec-label {
    background: #10b981;
    color: #ffffff !important;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.diyguru-eva-rec-name {
    color: #ffffff !important;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}
.diyguru-eva-rec-why {
    color: rgba(255,255,255,0.88);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* AI Proof */
.diyguru-eva-ai-proof {
    background: #fafafa;
    border-color: #e5e7eb;
}
.diyguru-eva-ai-points {
    list-style: none; padding: 0; margin: 0;
}
.diyguru-eva-ai-points li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.5;
}
.diyguru-eva-ai-points li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 6px;
}

/* Mobile */
@media (max-width: 640px) {
    .diyguru-eva-modal { padding: 28px 20px; margin: 16px auto; }
    .diyguru-eva-stage h2 { font-size: 20px; }
    .diyguru-eva-result-header { flex-direction: column; text-align: center; padding: 20px; gap: 12px; }
    .diyguru-eva-score-circle { width: 100px; height: 100px; }
    .diyguru-eva-meta { font-size: 13px; gap: 10px; }
    .diyguru-eva-nav { flex-direction: column-reverse; }
    .diyguru-eva-btn-secondary, .diyguru-eva-btn-primary { width: 100%; }
    .diyguru-eva-stat-grid { grid-template-columns: 1fr; }
    .diyguru-eva-pdf-cta { flex-direction: column; text-align: center; }
    .diyguru-eva-btn-pdf { width: 100%; }
}
