/* =====================================================
   HEART RISK TOOL — Page Styles
   ===================================================== */
        :root {
            --hg: #0f4c3a;
            --hg-light: #e9f5ee;
            --hg-mid: #1a6b4a;
            --hr-red: #ef4444;
            --hr-amber: #f59e0b;
            --hr-green: #22c55e;
            --hr-blue: #3b82f6;
        }

        .heart-page {
            min-height: 100vh;
            background: #f4f6f4;
            padding-bottom: 80px;
        }

        /* ── Breadcrumb ── */
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.88rem;
            color: #64748b;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }

        .breadcrumb a {
            text-decoration: none;
            color: var(--hg);
            font-weight: 500;
        }

        .breadcrumb a:hover {
            color: var(--hg-mid);
        }

        .breadcrumb .sep {
            color: #cbd5e1;
        }

        .breadcrumb .cur {
            color: #475569;
            font-weight: 600;
        }

        /* ── Hero ── */
        .hero-section {
            background: white;
            border-radius: 24px;
            padding: 36px 40px;
            margin-bottom: 28px;
            display: flex;
            align-items: center;
            gap: 40px;
            box-shadow: 0 2px 16px rgba(15, 74, 59, .06);
            overflow: hidden;
            position: relative;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -60px;
            right: -60px;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(34, 197, 94, .06), transparent 70%);
            pointer-events: none;
        }

        .hero-text {
            flex: 1;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--hg-light);
            color: var(--hg);
            border-radius: 20px;
            padding: 5px 14px;
            font-size: 0.8rem;
            font-weight: 700;
            margin-bottom: 14px;
        }

        .hero-text h1 {
            font-size: 2.1rem;
            font-weight: 800;
            color: #07192a;
            line-height: 1.2;
            margin-bottom: 8px;
        }

        .hero-sub {
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--hg);
            margin-bottom: 10px;
        }

        .hero-desc {
            font-size: 0.92rem;
            color: #64748b;
            line-height: 1.65;
            max-width: 480px;
        }

        .hero-visual {
            flex-shrink: 0;
            width: 200px;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .hero-heart-wrap {
            position: relative;
            width: 180px;
            height: 180px;
        }

        /* Decorative plus signs */
        .hero-plus {
            position: absolute;
            color: var(--hg);
            font-size: 1.4rem;
            opacity: 0.3;
            animation: floatPlus 3s ease-in-out infinite;
        }

        .hero-plus.p1 {
            top: 0;
            right: 20px;
            animation-delay: 0s;
        }

        .hero-plus.p2 {
            top: 30px;
            left: 0;
            animation-delay: 1s;
        }

        .hero-plus.p3 {
            bottom: 10px;
            right: 0;
            animation-delay: 2s;
        }

        @keyframes floatPlus {

            0%,
            100% {
                transform: translateY(0);
                opacity: .25;
            }

            50% {
                transform: translateY(-6px);
                opacity: .5;
            }
        }

        /* ── Main Form Layout ── */
        .form-layout {
            display: grid;
            grid-template-columns: 1.45fr 1fr;
            gap: 24px;
            align-items: start;
            margin-bottom: 24px;
        }

        @media(max-width: 960px) {
            .form-layout {
                grid-template-columns: 1fr;
            }
        }

        /* ── Section Card ── */
        .section-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 2px 14px rgba(15, 74, 59, .07);
            overflow: hidden;
        }

        .section-header {
            padding: 20px 24px;
            display: flex;
            align-items: flex-start;
            gap: 16px;
            border-bottom: 1.5px solid #f1f5f9;
        }

        .section-num {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--hg);
            color: white;
            font-weight: 800;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .section-title-area {
            flex: 1;
        }

        .section-title-area h2 {
            font-size: 1.1rem;
            font-weight: 800;
            color: #07192a;
            margin-bottom: 3px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title-area p {
            font-size: 0.83rem;
            color: #64748b;
            margin: 0;
        }

        .badge-req {
            background: var(--hg-light);
            color: var(--hg);
            border-radius: 20px;
            padding: 2px 10px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .badge-opt {
            background: #f8fafc;
            color: #64748b;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 2px 10px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .section-body {
            padding: 20px 24px;
        }

        /* ── Q Grid ── */
        .q-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 14px;
        }

        .q-grid.full {
            grid-template-columns: 1fr;
        }

        .q-card {
            background: #f8fafc;
            border-radius: 14px;
            padding: 16px;
            border: 1.5px solid #e2e8f0;
            transition: border-color .2s;
        }

        .q-card.error {
            border-color: #ef4444 !important;
            background: #fef2f2 !important;
        }

        .q-card:last-child:nth-child(odd) {
            grid-column: 1 / -1;
        }

        .q-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 0.88rem;
            color: #1e293b;
            margin-bottom: 10px;
        }

        .q-label-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--hg);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            color: white;
        }

        .q-label-icon svg,
        .q-label-icon i {
            width: 25px;
            height: 25px;
            font-size: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .q-label-icon i::before {
            display: inline-block;
            vertical-align: middle;
        }

        /* Radio / Checkbox items */
        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .radio-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: #475569;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 6px;
            transition: background .15s;
        }

        .radio-item:hover {
            background: rgba(15, 76, 58, .05);
        }

        .radio-item input[type="radio"],
        .radio-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--hg);
            cursor: pointer;
        }

        /* ── BMI Card ── */
        .bmi-row {
            display: flex;
            align-items: flex-end;
            gap: 14px;
        }

        .bmi-inputs {
            flex: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .input-group label {
            font-size: 0.78rem;
            font-weight: 600;
            color: #64748b;
            margin-bottom: 4px;
            display: block;
        }

        .input-with-unit {
            display: flex;
            gap: 0;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
            background: white;
        }

        .input-with-unit input {
            flex: 1;
            border: none;
            padding: 9px 12px;
            font-size: 0.9rem;
            font-family: var(--font-sans);
            outline: none;
            color: #1e293b;
            min-width: 0;
        }

        .input-with-unit select {
            border: none;
            border-left: 1px solid #e2e8f0;
            padding: 9px 8px;
            font-size: 0.82rem;
            color: #475569;
            background: #f8fafc;
            cursor: pointer;
            outline: none;
            font-family: var(--font-sans);
        }

        .bmi-result {
            min-width: 80px;
            background: #f0fdf4;
            border: 1.5px solid #86efac;
            border-radius: 12px;
            padding: 10px 14px;
            text-align: center;
            display: none;
            transition: all .3s;
        }

        .bmi-result .bmi-num {
            font-size: 1.6rem;
            font-weight: 800;
            line-height: 1;
        }

        .bmi-result .bmi-cat {
            font-size: 0.72rem;
            font-weight: 700;
            margin-top: 2px;
        }

        .bmi-hint {
            font-size: 0.76rem;
            color: #94a3b8;
            margin-top: 8px;
            font-style: italic;
        }

        /* ── BP Inputs ── */
        .bp-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .bp-row input {
            flex: 1;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 0.9rem;
            font-family: var(--font-sans);
            outline: none;
            color: #1e293b;
            transition: border-color .2s;
            min-width: 0;
        }

        .bp-row input:focus {
            border-color: var(--hg);
        }

        .bp-row .slash {
            color: #94a3b8;
            font-weight: 700;
            font-size: 1.1rem;
        }

        .bp-labels {
            display: flex;
            gap: 8px;
            margin-bottom: 6px;
            font-size: 0.74rem;
            color: #64748b;
            font-weight: 600;
        }

        .bp-labels span {
            flex: 1;
        }

        .med-input {
            width: 100%;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            padding: 10px 14px;
            font-size: 0.9rem;
            font-family: var(--font-sans);
            outline: none;
            color: #1e293b;
            transition: border-color .2s;
            box-sizing: border-box;
        }

        .med-input:focus {
            border-color: var(--hg);
        }

        .input-hint {
            font-size: 0.74rem;
            color: #94a3b8;
            margin-top: 5px;
        }

        .med-info-box {
            background: var(--hg-light);
            border-radius: 12px;
            padding: 14px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
            margin-top: 14px;
        }

        .med-info-box svg {
            color: var(--hg);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .med-info-box p {
            font-size: 0.82rem;
            color: #475569;
            margin: 0;
            line-height: 1.5;
        }

        /* ── Medical section toggle ── */
        .section-chevron {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 1.5px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all .2s;
            color: #64748b;
            flex-shrink: 0;
        }

        .section-chevron.open {
            background: var(--hg);
            border-color: var(--hg);
            color: white;
        }

        .section-header.clickable {
            cursor: pointer;
            user-select: none;
        }

        .section-header.clickable:hover {
            background: #fafffe;
        }

        .med-collapse {
            overflow: hidden;
            transition: max-height .4s ease, opacity .3s ease;
            max-height: 0;
            opacity: 0;
        }

        .med-collapse.open {
            max-height: 1000px;
            opacity: 1;
        }

        /* ── Calculate Button ── */
        .btn-calculate {
            width: 100%;
            padding: 18px;
            margin-top: 8px;
            background: linear-gradient(135deg, #0f4c3a, #1a6b4a);
            color: white;
            border: none;
            border-radius: 18px;
            font-family: var(--font-sans);
            font-weight: 800;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all .25s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            box-shadow: 0 6px 24px rgba(15, 76, 58, .30);
            position: relative;
            overflow: hidden;
        }

        .btn-calculate:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 32px rgba(15, 76, 58, .40);
        }

        .btn-calculate:active {
            transform: scale(0.98);
        }

        .btn-calculate::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, transparent, rgba(255, 255, 255, .08));
        }

        .btn-calculate-icon {
            font-size: 1.3rem;
        }

        .btn-calculate-sub {
            font-size: 0.82rem;
            opacity: .75;
            font-weight: 500;
        }

        /* ── Results Section ── */
        .results-section {
            margin-top: 32px;
            animation: fadeInUp .5s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(24px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .results-heading {
            text-align: center;
            font-size: 1.4rem;
            font-weight: 800;
            color: #07192a;
            margin-bottom: 20px;
        }

        .results-grid {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 24px;
            align-items: start;
            margin-bottom: 20px;
        }

        @media(max-width: 960px) {
            .results-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Gauge card */
        .gauge-card {
            background: white;
            border-radius: 20px;
            padding: 24px 20px;
            box-shadow: 0 2px 14px rgba(15, 74, 59, .07);
            text-align: center;
        }

        .gauge-svg {
            width: 100%;
            max-width: 240px;
            margin: 0 auto;
            display: block;
        }

        .gauge-score {
            margin-top: 6px;
        }

        .gauge-score-num {
            font-size: 2.6rem;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            line-height: 1;
            color: #1e293b;
        }

        .gauge-score-num span {
            font-size: 1.4rem;
            color: #94a3b8;
            font-weight: 500;
        }

        .gauge-risk-label {
            font-size: 0.95rem;
            font-weight: 700;
            margin-top: 4px;
        }

        .gauge-risk-label.low {
            color: var(--hr-green);
        }

        .gauge-risk-label.moderate {
            color: var(--hr-amber);
        }

        .gauge-risk-label.high {
            color: var(--hr-red);
        }

        /* Result detail card */
        .result-detail-card {
            background: white;
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 2px 14px rgba(15, 74, 59, .07);
        }

        .risk-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-radius: 8px;
            padding: 7px 16px;
            font-weight: 800;
            font-size: 0.9rem;
            margin-bottom: 14px;
        }

        .risk-badge.low {
            background: #f0fdf4;
            color: #16a34a;
            border: 1.5px solid #86efac;
        }

        .risk-badge.moderate {
            background: #fffbeb;
            color: #d97706;
            border: 1.5px solid #fde68a;
        }

        .risk-badge.high {
            background: #fef2f2;
            color: #dc2626;
            border: 1.5px solid #fecaca;
        }

        .result-msg {
            font-size: 0.92rem;
            color: #475569;
            line-height: 1.6;
            margin-bottom: 18px;
        }

        .what-todo-heading {
            font-size: 0.9rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 10px;
        }

        .todo-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .todo-list li {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            font-size: 0.87rem;
            color: #475569;
            line-height: 1.4;
        }

        .todo-check {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            margin-top: 1px;
        }

        .todo-check.low {
            background: #dcfce7;
            color: #16a34a;
        }

        .todo-check.moderate {
            background: #fef3c7;
            color: #d97706;
        }

        .todo-check.high {
            background: #fee2e2;
            color: #dc2626;
        }

        /* Score guide card */
        .score-guide-card {
            background: white;
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 2px 14px rgba(15, 74, 59, .07);
        }

        .score-guide-title {
            font-size: 0.9rem;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 14px;
        }

        .sg-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 10px;
            margin-bottom: 8px;
        }

        .sg-item.low {
            background: #f0fdf4;
        }

        .sg-item.moderate {
            background: #fffbeb;
        }

        .sg-item.high {
            background: #fef2f2;
        }

        .sg-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .sg-dot.low {
            background: var(--hr-green);
        }

        .sg-dot.moderate {
            background: var(--hr-amber);
        }

        .sg-dot.high {
            background: var(--hr-red);
        }

        .sg-pts {
            font-size: 0.8rem;
            font-weight: 700;
        }

        .sg-item.low .sg-pts {
            color: #16a34a;
        }

        .sg-item.moderate .sg-pts {
            color: #d97706;
        }

        .sg-item.high .sg-pts {
            color: #dc2626;
        }

        .sg-name {
            font-size: 0.78rem;
            color: #64748b;
        }

        /* Disclaimer */
        .heart-disclaimer {
            background: white;
            border-radius: 16px;
            padding: 18px 24px;
            border-left: 4px solid var(--hr-red);
            margin-top: 20px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
            box-shadow: 0 2px 10px rgba(239, 68, 68, .08);
        }

        .disclaimer-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #fef2f2;
            color: var(--hr-red);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .heart-disclaimer strong {
            color: #dc2626;
            font-size: 0.88rem;
        }

        .heart-disclaimer p {
            font-size: 0.84rem;
            color: #64748b;
            margin: 4px 0 0;
            line-height: 1.55;
        }

        /* Validation error message */
        .error-msg {
            background: #fef2f2;
            border: 1.5px solid #fecaca;
            border-radius: 12px;
            padding: 14px 18px;
            color: #dc2626;
            font-size: 0.88rem;
            font-weight: 600;
            margin-bottom: 16px;
            display: none;
            align-items: center;
            gap: 10px;
        }

        .error-msg.show {
            display: flex;
        }

        /* ── Responsive ── */
        @media(max-width: 700px) {
            .hero-section {
                flex-direction: column;
                padding: 24px;
                gap: 20px;
            }

            .hero-visual {
                display: none;
            }

            .hero-text h1 {
                font-size: 1.65rem;
            }

            .q-grid {
                grid-template-columns: 1fr;
            }

            .bmi-row {
                flex-direction: column;
                align-items: stretch;
            }

            .bmi-result {
                min-width: auto;
            }

            .bmi-inputs {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media(max-width: 480px) {
            .hero-section {
                padding: 18px;
            }

            .section-body {
                padding: 16px;
            }

            .section-header {
                padding: 16px;
            }
        }

/* =====================================================
   NEW FEATURES: MEDICAL DISCLAIMER & DYNAMIC ACTION PLAN
   ===================================================== */

/* ── 1. Medical Disclaimer (Pale Yellow Warning Box) ── */
.heart-disclaimer-box {
    background-color: #fefce8; /* bg-yellow-50 */
    border: 1.5px solid #fef08a; /* border-yellow-200 */
    border-radius: 18px;
    padding: 20px 24px;
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(234, 179, 8, 0.08);
    transition: all 0.25s ease;
}

.heart-disclaimer-box .disclaimer-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.heart-disclaimer-box h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #713f12; /* Dark amber/yellow-900 */
    letter-spacing: -0.01em;
}

.heart-disclaimer-box p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #422006; /* High-contrast dark amber/yellow-950 */
    font-weight: 500;
}

/* ── 2. Dynamic Action Plan Container ── */
.action-plan-wrap {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1.5px solid #f1f5f9;
    transition: all 0.3s ease;
}

.action-plan-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hg); /* Medical Green #0f4c3a */
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-plan-heading i {
    font-size: 1.15rem;
    color: var(--hg-mid);
}

.action-plan-lead {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.55;
    margin: 0 0 14px 0;
    font-weight: 500;
}

.action-plan-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.action-step-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.84rem;
}

.step-badge.low {
    color: #15803d; /* Green-700 */
}

.step-badge.moderate {
    color: #b45309; /* Amber-700 */
}

.step-badge.high {
    color: #b91c1c; /* Red-700 */
}

.step-desc {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.55;
}

/* ── Condition A: Low Risk (Green Zone) ── */
.action-plan-wrap.risk-low {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 16px;
    padding: 18px 20px;
}

.action-plan-wrap.risk-low .action-step-card {
    border-color: #dcfce7;
}

/* ── Condition B: Moderate Risk (Yellow/Orange Zone) ── */
.action-plan-wrap.risk-moderate {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 16px;
    padding: 18px 20px;
}

.action-plan-wrap.risk-moderate .action-step-card {
    border-color: #fef3c7;
}

/* ── Condition C: High Risk (Highlighted Red/Pink Warning Box) ── */
.action-plan-wrap.risk-high {
    background: #fff1f2; /* Pale red/pink warning background */
    border: 2px solid #fecdd3; /* Soft red/pink border */
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.09);
    position: relative;
    overflow: hidden;
}

.action-plan-wrap.risk-high .action-plan-heading {
    color: #be123c; /* Rose-700 */
}

.action-plan-wrap.risk-high .action-plan-lead {
    color: #881337; /* Rose-900 */
    font-weight: 600;
}

.action-plan-wrap.risk-high .action-step-card {
    background: #ffffff;
    border-color: #fecdd3;
}

.action-step-card.crucial-step {
    background: #fff5f5;
    border-left: 4.5px solid #e11d48;
    border-color: #fda4af;
}

.action-step-card.crucial-step .step-badge {
    color: #be123c;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .heart-disclaimer-box {
        padding: 16px 18px;
    }
    .heart-disclaimer-box h4 {
        font-size: 0.95rem;
    }
    .heart-disclaimer-box p {
        font-size: 0.82rem;
        line-height: 1.6;
    }
    .action-plan-wrap.risk-low,
    .action-plan-wrap.risk-moderate,
    .action-plan-wrap.risk-high {
        padding: 16px 14px;
        border-radius: 14px;
    }
    .action-step-card {
        padding: 10px 12px;
    }
}

/* ── 3. Social Media Sharing Card ── */
.heart-share-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 24px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(15, 74, 59, 0.05);
}

.heart-share-card.pre-result {
    margin-top: 24px;
    margin-bottom: 12px;
    border: 1.5px solid #e2e8f0;
}

.heart-share-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px 0;
}

.heart-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-share-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-share-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.btn-share-social:active {
    transform: scale(0.97);
}

.btn-share-social.whatsapp {
    background: #16a34a;
}

.btn-share-social.whatsapp:hover {
    background: #15803d;
}

.btn-share-social.facebook {
    background: #2563eb;
}

.btn-share-social.facebook:hover {
    background: #1d4ed8;
}

.btn-share-social.general {
    background: #334155;
}

.btn-share-social.general:hover {
    background: #1e293b;
}

.btn-share-social i {
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .heart-share-card {
        padding: 16px 14px;
    }
    .heart-share-buttons {
        gap: 8px;
    }
    .btn-share-social {
        padding: 9px 15px;
        font-size: 0.82rem;
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
    .btn-share-social.general {
        flex: 1 1 100%;
    }
}

/* ── 4. SEO & Clinical Reference Guide Section ── */
.heart-seo-guide {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    margin-top: 36px;
    margin-bottom: 24px;
    box-shadow: 0 2px 14px rgba(15, 74, 59, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.seo-guide-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.seo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e9f5ee;
    color: var(--hg);
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.seo-guide-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.seo-guide-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.seo-guide-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-sec-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.seo-dot.emerald { background: #10b981; }
.seo-dot.blue { background: #3b82f6; }
.seo-dot.red { background: #ef4444; }
.seo-dot.teal { background: #14b8a6; }

.seo-sec-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
}

.seo-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 6px;
}

.seo-pillar-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}
.seo-pillar-card.lifestyle {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.seo-pillar-card.clinical {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.seo-pillar-card.medical {
    background: #faf5ff;
    border-color: #e9d5ff;
}

.pillar-card-title {
    font-size: 0.88rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.seo-pillar-card.lifestyle .pillar-card-title { color: #166534; }
.seo-pillar-card.clinical .pillar-card-title { color: #1e40af; }
.seo-pillar-card.medical .pillar-card-title { color: #6b21a8; }

.pillar-card-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: #334155;
    margin: 0;
}

.seo-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.seo-faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seo-faq-item[open] {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.seo-faq-q {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.seo-faq-q::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    font-size: 0.72rem;
    color: var(--hg-mid);
    transition: transform 0.2s ease;
}

.seo-faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.seo-faq-a {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.6;
    margin: 10px 0 0 0;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .heart-seo-guide {
        padding: 20px 16px;
        border-radius: 18px;
        gap: 18px;
    }
    .seo-guide-title {
        font-size: 1.15rem;
    }
    .seo-pillars-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}