/* NX Quiz Builder v2 - Theme-matched design (mint #0EBB85, dark teal #1F3D33) */
.nxq-quiz {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #1F3D33;
}

.nxq-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #1F3D33;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
    text-align: center;
}
.nxq-intro {
    font-size: 16px;
    color: #4c655a;
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.6;
}

/* Lead Capture */
.nxq-lead-card {
    background: #fff;
    border: 2px solid #e3f0e9;
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(31,61,51,0.10);
}
.nxq-lead-sub {
    font-size: 14px;
    color: #4c655a;
    text-align: center;
    margin: 0 0 24px;
}
.nxq-lead-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1F3D33;
    margin-bottom: 6px;
}
.nxq-lead-form input[type="text"],
.nxq-lead-form input[type="email"],
.nxq-lead-form input[type="number"] {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e3f0e9;
    border-radius: 14px;
    font-size: 15px;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-family: inherit;
}
.nxq-lead-form input:focus {
    border-color: #0EBB85;
    outline: none;
    box-shadow: 0 0 0 4px rgba(14,187,133,0.12);
}
.nxq-consent-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #4c655a !important;
    line-height: 1.55;
    margin-bottom: 18px !important;
    cursor: pointer;
}
.nxq-consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #0EBB85;
}
.nxq-start {
    width: 100%;
    background: linear-gradient(135deg, #0EBB85, #0A9E6F);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(14,187,133,0.35);
}
.nxq-start:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(14,187,133,0.45); }
.nxq-privacy { font-size: 12.5px; color: #8aa396; text-align: center; margin-top: 14px; }
.nxq-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #dc2626;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 600;
}

/* Questions */
.nxq-header { text-align: center; margin-bottom: 28px; }
.nxq-progress {
    height: 8px;
    background: #e3f0e9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.nxq-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0EBB85, #0A9E6F);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.nxq-progress-text {
    font-size: 13px;
    color: #4c655a;
    font-weight: 600;
}
.nxq-q-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F3D33;
    margin: 0 0 22px;
    line-height: 1.45;
    text-align: center;
}
.nxq-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nxq-answer {
    width: 100%;
    padding: 18px 24px;
    background: #fff;
    border: 2px solid #e3f0e9;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1F3D33;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}
.nxq-answer:hover {
    border-color: #0EBB85;
    background: #F4FAF7;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14,187,133,0.15);
}

/* Result */
.nxq-result {
    background: #fff;
    border: 2px solid #e3f0e9;
    border-radius: 24px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(31,61,51,0.10);
}
.nxq-result-score {
    display: inline-block;
    background: #F4FAF7;
    color: #1F3D33;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.nxq-result-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1F3D33;
    margin: 0 0 14px;
}
.nxq-result-text {
    font-size: 15.5px;
    line-height: 1.75;
    color: #42584d;
    text-align: left;
    margin-bottom: 22px;
}

/* Score Breakdown */
.nxq-breakdown {
    background: #F4FAF7;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 22px;
    text-align: left;
}
.nxq-breakdown-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1F3D33;
    margin: 0 0 10px;
}
.nxq-breakdown-text {
    font-size: 14px;
    color: #4c655a;
    line-height: 1.65;
    margin-bottom: 14px;
}
.nxq-breakdown-text p { margin: 0 0 6px; }
.nxq-score-bar {
    height: 12px;
    background: #dde9e1;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}
.nxq-score-fill {
    height: 100%;
    background: linear-gradient(90deg, #0EBB85, #0A9E6F);
    border-radius: 999px;
    transition: width 0.8s ease;
}
.nxq-score-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #4c655a;
}
.nxq-score-you { color: #0EBB85; }

/* Per-Question Marks */
.nxq-marks {
    text-align: left;
    margin-bottom: 22px;
}
.nxq-marks-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1F3D33;
    margin: 0 0 12px;
}
.nxq-mark-row {
    background: #fff;
    border: 1.5px solid #e3f0e9;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.nxq-mark-q {
    font-size: 14.5px;
    font-weight: 600;
    color: #1F3D33;
    margin-bottom: 4px;
    line-height: 1.5;
}
.nxq-mark-num {
    display: inline-block;
    background: #1F3D33;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 6px;
}
.nxq-mark-a {
    font-size: 13.5px;
    color: #4c655a;
    margin-bottom: 6px;
}
.nxq-mark-points {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 999px;
}
.nxq-mark-low { background: #dcfce7; color: #166534; }
.nxq-mark-med { background: #fef9c3; color: #854d0e; }
.nxq-mark-high { background: #fee2e2; color: #991b1b; }

/* Score Markers */
.nxq-markers {
    margin-top: 16px;
}
.nxq-markers-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4c655a;
    margin-bottom: 10px;
}
.nxq-marker {
    display: block;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    font-size: 14.5px;
}
.nxq-marker-other {
    background: #fff;
    border: 1.5px solid #e3f0e9;
    color: #4c655a;
}
.nxq-marker-you {
    background: #1F3D33;
    color: #fff;
    border: 2px solid #0EBB85;
    box-shadow: 0 4px 16px rgba(14,187,133,0.25);
}
.nxq-marker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.nxq-marker-range {
    font-weight: 800;
    white-space: nowrap;
}
.nxq-marker-title {
    font-weight: 700;
    flex: 1;
}
.nxq-marker-you .nxq-marker-title { color: #fff; }
.nxq-marker-desc {
    font-size: 14px;
    line-height: 1.65;
    color: inherit;
    opacity: 0.9;
}
.nxq-marker-you .nxq-marker-desc { color: rgba(255,255,255,0.9); }
.nxq-marker-badge {
    background: #0EBB85;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Product Recommendation */
.nxq-product-card {
    background: linear-gradient(135deg, #F4FAF7, #e8f5ef);
    border: 2px solid #0EBB85;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 22px;
    text-align: left;
}
.nxq-product-label {
    display: inline-block;
    background: #0EBB85;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.nxq-product-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1F3D33;
    margin: 0 0 8px;
}
.nxq-product-desc {
    font-size: 14.5px;
    color: #4c655a;
    line-height: 1.6;
    margin: 0 0 10px;
}
.nxq-product-convert {
    font-size: 14.5px;
    color: #1F3D33;
    font-weight: 600;
    line-height: 1.65;
    margin: 0 0 16px;
    padding: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    border-left: 4px solid #0EBB85;
}
.nxq-product-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(135deg, #0EBB85, #0A9E6F);
    color: #fff !important;
    font-weight: 800;
    font-size: 16px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(14,187,133,0.35);
    transition: all 0.2s ease;
}
.nxq-product-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(14,187,133,0.45); }

.nxq-result-cta a {
    display: inline-block;
    background: #0EBB85;
    color: #fff !important;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(14,187,133,0.35);
    margin-bottom: 18px;
}
/* Message Decoder Promotion - Premium */
.nxq-decoder-card {
    background: linear-gradient(135deg, #1F3D33, #162e26);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 22px;
    text-align: center;
    border: 2px solid rgba(14,187,133,0.3);
    box-shadow: 0 16px 40px rgba(31,61,51,0.25);
}
.nxq-decoder-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.nxq-decoder-badge {
    display: inline-block;
    background: #0EBB85;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 999px;
}
.nxq-decoder-rating {
    color: #ffd700;
    font-size: 13px;
    font-weight: 700;
}
.nxq-decoder-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}
.nxq-decoder-text {
    font-size: 14.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
    margin: 0 0 14px;
}
.nxq-decoder-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    text-align: left;
    display: inline-block;
}
.nxq-decoder-features li {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 6px;
}
.nxq-decoder-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0EBB85, #0A9E6F);
    color: #fff !important;
    font-weight: 800;
    font-size: 16px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(14,187,133,0.4);
    transition: all 0.2s ease;
}
.nxq-decoder-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(14,187,133,0.5); }
.nxq-decoder-proof {
    font-size: 12.5px;
    color: rgba(255,255,255,0.6);
    margin: 12px 0 0;
}

.nxq-result-cta a:hover { transform: translateY(-2px); }
.nxq-retake {
    background: none;
    border: 2px solid #e3f0e9;
    color: #4c655a;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.nxq-retake:hover { border-color: #0EBB85; color: #0EBB85; }

/* Loading */
.nxq-loading { text-align: center; padding: 40px; }
.nxq-spinner {
    width: 44px; height: 44px;
    border: 4px solid rgba(14,187,133,0.15);
    border-top-color: #0EBB85;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: nxq-spin 0.8s linear infinite;
}
@keyframes nxq-spin { to { transform: rotate(360deg); } }

/* Text links inside result text (auto-converted plain URLs) */
.nxq-text-link {
    color: #0EBB85;
    font-weight: 700;
    text-decoration: underline;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.nxq-text-link:hover { color: #0A9E6F; }

/* Start Taking Quiz Button */
.nxq-start-btn-wrap {
    text-align: center;
    margin: 28px 0;
}
.nxq-start-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0EBB85, #0A9E6F);
    color: #fff !important;
    font-weight: 800;
    font-size: 18px;
    padding: 18px 40px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 12px 32px rgba(14,187,133,0.4);
    transition: all 0.2s ease;
}
.nxq-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(14,187,133,0.5);
    color: #fff !important;
}
.nxq-start-btn-sub {
    font-size: 13.5px;
    color: #4c655a;
    margin: 10px 0 0;
}
.nxq-quiz-anchor {
    scroll-margin-top: 80px;
}

@media (max-width: 600px) {
    .nxq-start-btn { font-size: 16px; padding: 16px 28px; }
    /* FIX: Long URLs must wrap, never overflow screen */
    .nxq-result, .nxq-result-text, .nxq-marker-desc, .nxq-breakdown, .nxq-breakdown-text,
    .nxq-lead-card, .nxq-product-card, .nxq-decoder-card {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    .nxq-result-text a, .nxq-marker-desc a, .nxq-breakdown-text a {
        word-break: break-all;
        overflow-wrap: anywhere;
        display: inline-block;
        max-width: 100%;
    }
    /* FIX: Result score visible and centered */
    .nxq-result-score { font-size: 1.3rem; text-align: center; word-wrap: break-word; }
    /* FIX: Markers fit screen */
    .nxq-marker { padding: 14px 12px; }
    .nxq-marker-header { flex-wrap: wrap; gap: 4px; }
    /* FIX: Buttons full width */
    .nxq-product-btn, .nxq-decoder-btn {
        display: block; width: 100%; box-sizing: border-box;
        text-align: center; word-wrap: break-word;
    }
    /* FIX: Score bar labels */
    .nxq-score-labels { flex-wrap: wrap; gap: 4px; font-size: 12px; }
    .nxq-lead-card, .nxq-result { padding: 20px 14px; }
    .nxq-breakdown { padding: 16px 12px; }
    .nxq-mark-row { padding: 12px 10px; }
}

/* v6.0.0: WhatsApp result button + disabled Start button (consent gate). */
.nxq-whatsapp-btn { display:inline-block; background:#25D366; color:#fff; font-weight:800; font-size:15px; padding:14px 28px; border-radius:999px; text-decoration:none; margin-top:12px; }
.nxq-whatsapp-btn:hover { color:#fff; }
.nxq-start:disabled { opacity:0.5; cursor:not-allowed; }
