/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Added from profile homepage: Masterclass banner + Follow section ===== */
.masterclass-banner {
    width: 100%;
    margin-top: 20px;
    padding: 22px 12px 32px;
    background: transparent;
}
.masterclass-banner__inner {
    width: min(92%, 960px);
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    padding: 0 min(12px, 3vw);
}
.mc-poster {
    width: min(100%, 700px);
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 36%),
        radial-gradient(circle at 92% 28%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #eef7ff 0%, #dff0ff 45%, #eaf5ff 100%);
    border: 1px solid rgba(148, 186, 220, 0.45);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    padding: clamp(16px, 2.4vw, 24px);
    color: #0f2742;
}
.mc-poster__top-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffe989 0%, #ffd54b 55%, #ffca2b 100%);
    font-weight: 900;
    font-size: clamp(0.88rem, 2vw, 1.15rem);
    color: #1f2937;
    border: 1px solid rgba(152, 104, 0, 0.24);
}
.mc-poster__headline-top {
    margin: 0;
    text-align: center;
    font-size: clamp(1.95rem, 6.3vw, 3.2rem);
    line-height: 1.05;
    font-weight: 1000;
    color: #0f2742;
}
.mc-poster__headline-main {
    margin: 2px 0 8px;
    text-align: center;
    font-size: clamp(2.7rem, 9vw, 4.8rem);
    line-height: 1.02;
    font-weight: 1000;
    color: #0a7f4d;
}
.mc-poster__subline {
    margin: 0 0 14px;
    text-align: center;
    font-weight: 900;
    color: #1e3a5f;
    font-size: clamp(1.05rem, 2.6vw, 1.66rem);
}
.mc-poster__mid {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 12px;
    align-items: end;
}
.mc-poster__doctor-wrap {
    position: relative;
    width: 100%;
    max-width: 250px;
    justify-self: center;
}
.mc-poster__doctor {
    width: 100%;
    max-width: 350px;
    object-fit: contain;
    transform: scale(2.625);
    transform-origin: bottom center;
    display: block;
}
.mc-poster__doctor-meta {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(30, 64, 175, 0.2);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}
.mc-poster__doctor-meta-title {
    margin: 0;
    background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    padding: 6px 10px;
    font-size: 0.95rem;
    font-weight: 900;
    text-align: left;
}
.mc-poster__doctor-meta-list {
    list-style: none;
    margin: 0;
    padding: 8px 10px 10px;
    display: grid;
    gap: 6px;
}
.mc-poster__doctor-meta-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e3a8a;
    font-weight: 900;
    font-size: 0.85rem;
    line-height: 1.25;
    text-align: left;
}
.mc-poster__doctor-meta-list li > i {
    width: 1.1em;
    text-align: center;
    color: #2563eb;
    font-size: 0.88rem;
}
.mc-poster__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mc-poster__box {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(160, 196, 232, 0.6);
    border-radius: 16px;
    padding: 10px 12px;
}
.mc-poster__box ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.mc-poster__box li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: clamp(0.95rem, 2.2vw, 1.28rem);
    color: #16385f;
}
.mc-poster__li-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}
.mc-poster__li-icon > i { font-size: 1.05rem; line-height: 1; }
.mc-poster__li-icon--chart { background: linear-gradient(155deg, #60a5fa 0%, #2563eb 48%, #1e3a8a 100%); }
.mc-poster__li-icon--nodes { background: linear-gradient(155deg, #4ade80 0%, #16a34a 50%, #14532d 100%); }
.mc-poster__li-icon--food { background: linear-gradient(155deg, #34d399 0%, #059669 50%, #064e3b 100%); }
.mc-poster__li-icon--compass { background: linear-gradient(155deg, #fb923c 0%, #ea580c 52%, #9a3412 100%); }
.mc-poster__li-icon--plate { background: linear-gradient(155deg, #2dd4bf 0%, #0d9488 50%, #134e4a 100%); }
.mc-poster__li-icon--pills { background: linear-gradient(155deg, #93c5fd 0%, #2563eb 50%, #1e3a8a 100%); }
.mc-poster__li-icon--science { background: linear-gradient(155deg, #fdba74 0%, #ea580c 50%, #7c2d12 100%); }
.mc-poster__box--pillars {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.mc-poster__box--pillars ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
}
.mc-poster__box--pillars li {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    font-size: clamp(0.72rem, 2.1vw, 1.05rem);
    line-height: 1.25;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(160, 196, 232, 0.75);
    border-radius: 14px;
    padding: 10px 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.mc-poster__box--pillars .mc-poster__li-icon { width: 40px; height: 40px; border-radius: 12px; }
.mc-poster__box--pillars .mc-poster__li-icon > i { font-size: 1.15rem; }
.mc-poster__section-title {
    margin: 0 0 8px;
    color: #1e3a8a;
    font-weight: 1000;
    font-size: clamp(1.05rem, 2.5vw, 1.5rem);
}
.mc-poster__case {
    margin: 10px 0 0;
    text-align: center;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(160, 196, 232, 0.55);
    border-radius: 14px;
    font-size: clamp(1rem, 2.4vw, 1.45rem);
    font-weight: 950;
    padding: 10px 12px;
    color: #173257;
}
.mc-poster__cta-row {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 10px;
}
.mc-poster__ending {
    border-radius: 14px;
    background: linear-gradient(180deg, #143b6e 0%, #0f2f58 100%);
    color: #fff;
    padding: 10px 8px;
    text-align: center;
    font-weight: 900;
    font-size: clamp(0.95rem, 2.1vw, 1.22rem);
}
.mc-poster__ending i { margin-right: 6px; color: #fbbf24; }
.mc-poster__cta {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffe989 0%, #ffd54b 55%, #ffc928 100%);
    color: #1f2937;
    border: 1px solid rgba(152, 104, 0, 0.24);
    text-align: center;
    padding: 10px 10px;
    font-weight: 1000;
    font-size: clamp(1.05rem, 2.45vw, 1.5rem);
    text-decoration: none;
    display: block;
}
.mc-poster__cta small {
    display: block;
    margin-top: 2px;
    font-size: clamp(0.75rem, 1.55vw, 0.92rem);
    font-weight: 800;
    color: rgba(31, 41, 55, 0.82);
}
.mc-poster__foot {
    margin-top: 8px;
    text-align: center;
    color: #243b63;
    font-weight: 800;
    font-size: clamp(0.9rem, 1.9vw, 1.15rem);
}

.social-section {
    --sf-gold: #c5a065;
    --sf-gold2: #e6be7d;
    width: 100%;
    padding: 84px 24px;
    margin: 26px auto 0;
}
.social-follow__inner {
    width: min(1120px, 92%);
    margin: 0 auto;
    text-align: center;
}
.social-title {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3vw, 2.35rem);
    color: #0a2342;
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
}
.social-follow__hero { padding: 26px 18px 22px; margin: 0 auto 18px; }
.social-follow__avatar-wrap {
    width: 116px;
    height: 116px;
    border-radius: 999px;
    margin: 0 auto 14px;
    padding: 6px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.55));
    box-shadow: 0 26px 60px rgba(10,35,66,0.16);
}
.social-follow__avatar { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; }
.social-follow__name {
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
    font-size: 1.35rem;
    color: rgba(10, 35, 66, 0.96);
    margin: 0;
}
.social-follow__pronoun {
    margin: 6px 0 10px;
    font-weight: 800;
    color: rgba(10, 35, 66, 0.68);
}
.social-follow__mission {
    max-width: 720px;
    margin: 0 auto 12px;
    color: rgba(10, 35, 66, 0.78);
    line-height: 1.7;
    font-weight: 650;
    font-size: 0.98rem;
}
.social-follow__badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.social-follow__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 34px rgba(10, 35, 66, 0.10);
    color: rgba(10, 35, 66, 0.86);
    font-weight: 850;
    font-size: 0.92rem;
}
.social-section .social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.social-section .social-card {
    padding: 26px 18px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.68);
    box-shadow: 0 22px 54px rgba(10,35,66,0.14);
    backdrop-filter: blur(8px);
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.social-section .social-card:hover { transform: translateY(-4px); }
.social-section .social-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 10px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.96), rgba(255,255,255,0.58));
    border: 1px solid rgba(45, 140, 255, 0.20);
}
.social-section .social-icon i { font-size: 30px; color: rgba(10, 35, 66, 0.88); }
.social-section .social-card h3 {
    margin: 8px 0 10px;
    font-size: 1.35rem;
    color: rgba(10, 35, 66, 0.94);
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
}
.social-section .social-card p {
    margin: 0 0 14px;
    color: rgba(10, 35, 66, 0.74);
    line-height: 1.7;
    font-weight: 650;
    font-size: 0.95rem;
}
.social-section .social-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sf-gold) 0%, var(--sf-gold2) 100%);
    color: #0a2342;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 10px 26px rgba(197, 160, 101, 0.38);
}
@media (max-width: 900px) {
    .social-section .social-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .masterclass-banner { padding: 20px 8px 28px; }
    .masterclass-banner__inner { padding: 0 10px; }
    .mc-poster__mid { grid-template-columns: 1fr; padding-top: clamp(12px, 3.5vw, 28px); }
    .mc-poster__doctor-wrap { max-width: min(300px, 90vw); margin-top: clamp(18px, 5vw, 40px); }
    .mc-poster__doctor { max-width: min(320px, 92vw); transform: scale(1.32); transform-origin: bottom center; }
    .mc-poster__doctor-meta { width: min(220px, 90vw); }
    .mc-poster__cta-row { grid-template-columns: 1fr; }
    .social-section { padding: 52px 16px; margin-top: 20px; }
}
@media (max-width: 480px) {
    .social-section { padding: 44px 12px; margin-top: 16px; }
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

:root {
    --primary-color: #0a2342;
    --primary-dark: #081a33;
    --primary-light: #143a5c;
    --accent-color: #c5a065;
    --accent-light: #e6be7d;
    --text-dark: #0f2440;
    --text-light: #4f6273;
    --text-lighter: #999999;
    --bg-light: #c3cfe2;
    --bg-white: #e4f3fa;
    --bg-dark: #0a2342;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(228, 243, 250, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Language switcher removed - using bilingual display */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 150px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
    word-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Patient type selection: shorter blue hero band (less vertical padding) */
.hero-section--patient-type-hero {
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Patient type selection: title + subtitle left, doctor image right */
.hero-section--patient-type-hero .hero-content--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.hero-section--patient-type-hero .hero-text-block {
    flex: 1;
    min-width: 0;
    margin-left: 42px;
}

/* Patient type hero: DREC logo — fixed to top-left of hero band */
.hero-section--patient-type-hero > .hero-org-logo {
    position: absolute;
    top: clamp(0.35rem, 1.2vw, 0.85rem);
    left: clamp(0.5rem, 2.5vw, 1.25rem);
    width: clamp(132px, 19vw, 248px);
    height: auto;
    margin: 0;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
}

/* Patient type hero: professional copy hierarchy */
.hero-section--patient-type-hero .hero-kicker {
    margin: 0 0 0.65rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.14rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(8, 35, 66, 0.76);
    white-space: nowrap;
}

.hero-section--patient-type-hero .hero-title--patient-type {
    margin: 0 0 1.1rem;
    font-size: inherit;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.hero-section--patient-type-hero .hero-title-cn {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.65rem, 5.2vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0b2a4a;
    line-height: 1.18;
    white-space: nowrap;
}

.hero-section--patient-type-hero .hero-title-en {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.45rem, 2.35vw, 1.85rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(15, 45, 78, 0.82);
    line-height: 1.35;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(197, 160, 101, 0.58);
    width: 100%;
    max-width: 28rem;
    white-space: nowrap;
}

.hero-section--patient-type-hero .hero-lead {
    margin: 0;
    max-width: 34rem;
}

.hero-section--patient-type-hero .hero-lead-cn {
    margin: 0 0 0.65rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.62rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(17, 49, 83, 0.9);
}

.hero-section--patient-type-hero .hero-lead-en {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.38rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(38, 65, 94, 0.82);
    padding-left: 0.85rem;
    border-left: 2px solid rgba(197, 160, 101, 0.52);
}

.hero-section--patient-type-hero .hero-visual {
    flex: 0 0 auto;
    width: 800px;
    max-width: 100%;
}

.hero-section--patient-type-hero .hero-side-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Form Section */
.form-section {
    padding: 60px 0;
}

.cgm-form {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.form-section-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.form-section-card:hover {
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 25px;
    margin-top: 20px;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: var(--danger-color);
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--bg-white);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Force all fill-in form boxes to white */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="password"],
select,
textarea {
    background-color: #ffffff !important;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.country-select {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.country-select label {
    margin-right: 0;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.phone-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-container input.code-box {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 5px 4px !important;
    flex: 0 0 40px;
    height: 48px;
    box-sizing: border-box;
    font-size: 0.9rem;
    text-align: center;
    background: #ffffff !important;
    font-weight: 600;
}

.phone-container .phone-input {
    flex: 1;
    min-width: 140px;
}

/* Yes/No table for diabetic questions (eyes, urine) */
.yes-no-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.yes-no-table th,
.yes-no-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.yes-no-table thead th {
    background: var(--primary-dark);
    color: var(--bg-white);
    font-weight: 600;
}
.yes-no-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.06);
}
.yes-no-table td:nth-child(2),
.yes-no-table td:nth-child(3) {
    text-align: center;
    width: 70px;
}
.yes-no-table input[type="radio"] {
    cursor: pointer;
    accent-color: var(--accent-color);
}

/* Dual Unit Input Styles */
.dual-unit-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.unit-input-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unit-input-group input {
    flex: 1;
    min-width: 0;
}

.unit-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.unit-separator {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Patient Type Selection Page */
.patient-type-selection {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.patient-type-disclaimer-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(199, 160, 101, 0.5);
    border-left: 5px solid var(--accent-color);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(10, 35, 66, 0.08);
}

.patient-type-disclaimer-box p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.94rem;
    line-height: 1.6;
}

.patient-type-group-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 20px;
    text-align: left;
    font-family: 'Playfair Display', serif;
}

.patient-type-group {
    background: var(--bg-white);
    border: 2px solid #e7ebf0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.patient-type-group-main .patient-type-grid {
    align-items: stretch;
}

.patient-type-group-main .patient-type-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.patient-type-group-main .patient-type-title {
    min-height: 3em;
}

.patient-type-group-main .patient-type-description {
    min-height: 5.5em;
}

.patient-type-group-main .patient-type-features {
    min-height: 220px;
}

.patient-type-group-main .btn-select-type {
    margin-top: auto;
}

.patient-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.patient-type-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid transparent;
    text-align: center;
}

.patient-type-card-prediabetic,
.patient-type-card-diabetic {
    padding-top: 0;
}

.patient-type-card-prediabetic,
.patient-type-card-diabetic,
.patient-type-card-homa,
.patient-type-card-coming-soon {
    background: #ffffff;
    border: 1px solid #e7ebf0;
}

.patient-type-card-prediabetic .patient-type-features,
.patient-type-card-diabetic .patient-type-features,
.patient-type-card-homa .patient-type-features,
.patient-type-card-coming-soon .patient-type-features {
    margin-bottom: 10px;
    background: #eceff3;
    border: 1px solid #e2e6eb;
}

.patient-type-card-prediabetic .patient-type-features,
.patient-type-card-diabetic .patient-type-features {
    background: #ffffff;
}

.patient-type-card-prediabetic .btn-select-type,
.patient-type-card-diabetic .btn-select-type {
    margin-top: -6px;
}

.patient-type-card-diabetic .patient-type-description {
    margin-bottom: 8px;
}

.patient-type-card-diabetic .patient-type-features {
    margin-top: 0;
    margin-bottom: 6px;
}

.patient-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.patient-type-icon {
    font-size: 4rem;
    margin-bottom: 0;
    line-height: 0;
    padding: 0;
}

.patient-type-icon-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 0;
    background: #fff;
    display: block;
    margin: 0 auto;
}

.patient-type-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 0 !important;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

/* Restore default spacing for Tools & Coming Soon section only */
.patient-type-group:not(.patient-type-group-main) .patient-type-icon {
    margin-bottom: 20px;
    line-height: normal;
    padding: 0;
}

.patient-type-group:not(.patient-type-group-main) .patient-type-title {
    margin-top: 0.83em !important;
}

.patient-type-group-main .patient-type-icon-image {
    width: 300px;
    height: 300px;
    transform: translateY(0);
}

.patient-type-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.patient-type-features {
    text-align: left;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.patient-type-features p {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.patient-type-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.patient-type-features li {
    padding: 8px 0;
    color: var(--text-dark);
    border-bottom: 1px solid #e0e0e0;
}

.patient-type-features li:last-child {
    border-bottom: none;
}

.patient-type-features li::before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: 700;
    margin-right: 8px;
}

.btn-select-type {
    width: 100%;
    padding: 18px 30px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-select-type:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-select-type:active {
    transform: scale(0.98);
}

.patient-type-card-homa .btn-select-type {
    background: var(--accent-color);
}
.patient-type-card-homa .btn-select-type:hover {
    background: #c17a2e;
}

.patient-type-card-coming-soon {
    cursor: default;
    opacity: 0.9;
}

.patient-type-card-coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
    border-color: #e7ebf0;
}

.patient-type-card-coming-soon .btn-select-type {
    background: #6c757d;
    cursor: not-allowed;
    text-transform: none;
}

.patient-type-card-coming-soon .btn-select-type:hover {
    background: #6c757d;
    transform: none;
}

.patient-type-card-coming-soon .patient-type-features li::before {
    content: "• ";
    color: #6c757d;
}

@media (max-width: 768px) {
    .patient-type-selection {
        gap: 24px;
        margin: 24px 0;
    }

    .patient-type-group {
        padding: 16px;
        border-radius: 12px;
    }

    .patient-type-group-title {
        font-size: 1.25rem;
        margin-bottom: 14px;
    }

    .patient-type-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .patient-type-card {
        padding: 22px 16px;
    }

    .patient-type-card-prediabetic,
    .patient-type-card-diabetic {
        padding-top: 0;
    }

    .patient-type-card-prediabetic .patient-type-features,
    .patient-type-card-diabetic .patient-type-features,
    .patient-type-card-homa .patient-type-features,
    .patient-type-card-coming-soon .patient-type-features {
        margin-bottom: 8px;
    }

    .patient-type-card-prediabetic .btn-select-type,
    .patient-type-card-diabetic .btn-select-type {
        margin-top: -4px;
    }

    .patient-type-card-diabetic .patient-type-description {
        margin-bottom: 6px;
    }

    .patient-type-card-diabetic .patient-type-features {
        margin-bottom: 4px;
    }

    .patient-type-title {
        font-size: 1.35rem;
    }

    .patient-type-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .patient-type-features {
        padding: 14px;
        margin-bottom: 18px;
    }

    .patient-type-group-main .patient-type-features {
        min-height: 0;
    }

    .patient-type-group-main .patient-type-title,
    .patient-type-group-main .patient-type-description {
        min-height: 0;
    }

    .btn-select-type {
        padding: 14px 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .patient-type-group {
        padding: 14px;
    }

    .patient-type-card {
        padding: 18px 12px;
    }

    .patient-type-icon {
        font-size: 3rem;
        margin-bottom: 0;
    }

    .patient-type-group:not(.patient-type-group-main) .patient-type-icon {
        margin-bottom: 14px;
    }

    .patient-type-group-main .patient-type-icon-image {
        width: 220px;
        height: 220px;
        transform: translateY(2px);
    }

    .patient-type-icon-image {
        width: 180px;
        height: 180px;
    }

    .patient-type-title {
        font-size: 1.2rem;
    }
}

/* HOMA Calculator Modal */
.homa-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
}
.homa-modal.open {
    visibility: visible;
    opacity: 1;
}
.homa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.homa-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.homa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}
.homa-modal-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--primary-color);
}
.homa-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}
.homa-modal-close:hover {
    color: #000;
}
.homa-modal-body {
    padding: 24px;
}
.homa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 520px) {
    .homa-form-row {
        grid-template-columns: 1fr;
    }
}
.homa-form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.homa-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background-color: #ffffff;
}
.homa-form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}
.btn-homa-calculate {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-homa-calculate:hover {
    background: var(--primary-dark);
}
.homa-results {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.homa-result-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.homa-result-card:last-child {
    margin-bottom: 0;
}
.homa-result-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}
.homa-result-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 6px 0;
}
.homa-result-interpretation {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}
.homa-bar-wrap {
    position: relative;
    height: 24px;
    margin-top: 8px;
}
.homa-bar {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.homa-bar-segment {
    height: 100%;
    min-width: 2px;
}
.homa-bar-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    color: #1a1a1a;
    text-shadow: 0 0 2px #fff;
    pointer-events: none;
    transition: left 0.3s ease;
}
.homa-bar-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

/* HOMA 嚴重／超出正常值時的通知與 WhatsApp 聯絡區塊 */
.homa-severe-notice {
    display: none;
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid #dc3545;
}
.homa-severe-notice.show {
    display: block;
}
.homa-severe-notice h4 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: #721c24;
}
.homa-severe-notice p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}
.homa-severe-notice .homa-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.homa-severe-notice .homa-cta-whatsapp:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}
.homa-severe-notice .homa-cta-whatsapp .wa-icon {
    font-size: 1.4rem;
}

/* Conditional Fields */
.conditional-field {
    display: none;
}

.conditional-field.show {
    display: block;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.radio-label:hover,
.checkbox-label:hover {
    background: var(--bg-light);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.radio-label span,
.checkbox-label span {
    font-weight: 400;
    color: var(--text-dark);
}

/* BMI Display */
.bmi-display {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--accent-color);
}

.bmi-display p {
    margin: 5px 0;
    font-size: 1.1rem;
}

#bmiValue {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.bmi-category {
    font-weight: 600;
    margin-top: 10px !important;
}

/* Form Actions */
.declaration-block {
    margin-top: 32px;
    padding: 20px 24px;
    background: rgba(26, 26, 26, 0.04);
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 10px;
}

.declaration-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1.55;
    color: #333;
}

.declaration-label input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.declaration-text {
    flex: 1;
    font-size: 1.1rem;
}

.declaration-error {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #c62828;
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 24px;
    padding: 40px 0;
}

.btn-submit,
.btn-reset {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-submit:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-reset {
    background: var(--text-light);
    color: var(--bg-white);
}

.btn-reset:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
}

/* Report Section */
.report-section {
    padding: 100px 0 60px;
    background: var(--bg-light);
}

/* A4 Page Size */
@page {
    size: A4;
    margin: 0;
}

/* Print layout: force true A4 pages and consistent pagination */
@media print {
    html, body {
        width: 210mm;
        height: auto;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Print ONLY the report (hide landing/form/footer content) */
    .navbar,
    .hero-section,
    #form,
    .footer {
        display: none !important;
    }

    #report {
        display: block !important;
    }

    /* Remove screen-only framing */
    .report-section {
        padding: 0 !important;
        background: transparent !important;
    }

    /* Hide UI controls in print */
    .report-header,
    .btn-print,
    .btn-back {
        display: none !important;
    }

    .report-container {
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 210mm !important;
        max-width: 210mm !important;
    }

    /* Whole report block: nudge slightly left on paper (tune mm if needed) */
    .report-section#report .container {
        transform: translateX(-4.5mm) !important;
    }

    .report-content {
        width: 210mm !important;
        max-width: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    /* Every report block prints as exactly one A4 page */
    .report-cover-page,
    .report-content > .report-section-item,
    .report-section-with-bg {
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        page-break-inside: avoid !important;
        page-break-after: always !important;
        overflow: hidden !important;
    }

    /* Chart page prints as A4 too */
    #chartContainer.chart-container {
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        margin: 0 !important;
        page-break-before: always !important;
        break-before: page !important;
        page-break-after: always !important;
        overflow: hidden !important;
        background-size: 100% 100% !important;
        background-position: left 10px top !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* CTA page prints with natural height (no forced A4 blank space) */
    #ctaPage.chart-container {
        /* Keep printed report at 6 pages: CTA is screen-only */
        display: none !important;
    }

    /* Ensure background pages keep the background image aligned to A4 */
    .report-section-with-bg {
        background-size: 100% 100% !important;
        background-position: left 10px top !important;
        background-attachment: local !important;
    }

    /* Disable screen-only page separators */
    .report-content > .report-section-item {
        border-top: none !important;
    }

    /* Organ risk page: match on-screen A4 frame (same as desktop preview, bodys.jpg = contain) */
    .organ-risk-page.report-section-item {
        padding: 8mm 6mm 6mm 6mm !important;
        box-sizing: border-box !important;
    }

    .organ-risk-page .human-body-visualization-layout {
        position: relative !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        display: block !important;
    }

    .organ-risk-page .body-silhouette-container {
        position: absolute !important;
        top: 40% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 210mm !important;
        height: 297mm !important;
        max-width: 210mm !important;
        max-height: 297mm !important;
        margin: 0 !important;
        overflow: hidden !important;
        transform: translate(-50%, calc(-50% + 5mm)) !important;
    }

    .organ-risk-page .human-body-image,
    .organ-risk-page .human-body-silhouette {
        width: 100% !important;
        height: 100% !important;
        max-width: 210mm !important;
        max-height: 297mm !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .organ-risk-page .organ-card-positioned {
        position: absolute !important;
        width: 200px !important;
        margin: 0 !important;
        padding: 12px !important;
    }

    .organ-risk-page .organ-card-top-left { 
        top: 14% !important; 
        left: -6% !important; 
        right: auto !important; 
        bottom: auto !important; 
        position: absolute !important;
        transform: none !important;
    }
    .organ-risk-page .organ-card-top-right { 
        top: 10% !important; 
        right: -9% !important; 
        left: auto !important; 
        bottom: auto !important; 
        position: absolute !important;
        transform: none !important;
    }
    .organ-risk-page .organ-card-middle-left { 
        top: 42% !important; 
        left: -6% !important; 
        right: auto !important; 
        bottom: auto !important; 
        position: absolute !important;
        transform: none !important;
    }
    .organ-risk-page .organ-card-middle-right { 
        top: 49% !important; 
        right: -9% !important; 
        left: auto !important; 
        bottom: auto !important; 
        position: absolute !important;
        transform: translateY(-50%) !important; 
    }
    .organ-risk-page .organ-card-bottom-left { 
        bottom: 5% !important; 
        left: -6% !important; 
        right: auto !important; 
        top: auto !important; 
        position: absolute !important;
        transform: none !important;
    }
    .organ-risk-page .organ-card-bottom-right { 
        bottom: 15% !important; 
        right: -6% !important; 
        left: auto !important; 
        top: auto !important; 
        position: absolute !important;
        transform: none !important;
    }

    .organ-risk-page .connection-lines {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }

    /*
     * BMI page (BODY MASS INDEX): must live in this first print block so it always wins.
     * Uses #reportContent for ID specificity — overrides generic .report-section-item padding.
     */
    #reportContent.report-content .report-section-item.bmi-page-section {
        padding-top: 16mm !important;
        box-sizing: border-box !important;
    }

    #reportContent.report-content .report-section-item.bmi-page-section > div:first-of-type {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
}

/* Report Cover Page - A4 Size */
.report-cover-page {
    width: 100%;
    max-width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0 auto 30px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15mm 12mm;
    page-break-after: always;
    page-break-inside: avoid;
    box-sizing: border-box;
    overflow: hidden;
}

.report-cover-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.report-cover-title-section {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.report-cover-cgm {
    font-size: 72px;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.report-cover-title-chinese {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.report-cover-title-english {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
}

.report-cover-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: auto;
    padding-top: 50px;
    flex-shrink: 0;
    gap: 30px;
}

.report-cover-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.report-cover-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.report-cover-info-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9C27B0;
    font-size: 20px;
    flex-shrink: 0;
}

.report-cover-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.report-cover-info-item {
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
}

.report-cover-info-label {
    font-weight: 500;
    margin-right: 8px;
    min-width: 80px;
    flex-shrink: 0;
}

.report-cover-info-value {
    color: #000;
    flex: 1;
}

.report-cover-divider {
    width: 1px;
    background: #999;
    margin: 0 20px;
    align-self: stretch;
    min-height: 120px;
    flex-shrink: 0;
}

/* Report Content Background */
.report-content {
    background-image: url('https://drec.pages.dev/chang%20pic/reportbackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 0;
    position: relative;
}

.report-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
}

.report-content > * {
    position: relative;
    z-index: 1;
}

/* Organ Risk Page - Same A4 frame as chart page */
.organ-risk-page {
    background-image: url('https://drec.pages.dev/chang%20pic/reportbackground.jpg');
    background-size: 100% 100%;
    background-position: left 10px top;
    background-repeat: no-repeat;
    background-attachment: local;
    width: 100%;
    max-width: 210mm;
    height: 297mm;
    min-height: 297mm;
    max-height: 297mm;
    margin: 0 auto 30px;
    padding: 8mm 6mm 6mm 6mm;
    page-break-after: always;
    page-break-before: always;
    border-bottom: none;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.organ-risk-page .human-body-visualization-layout {
    background: transparent;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
}

/* Print Styles for Report - A4 Size */
@media print {
    @page {
        size: A4;
        margin: 0;
    }
    
    body {
        margin: 0;
        padding: 0;
    }
    
    .report-section {
        padding: 0;
        background: transparent;
    }
    
    .report-container {
        max-width: 210mm;
        width: 210mm;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .report-header {
        padding: 10mm 15mm;
    }
    
    .report-cover-page {
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        max-width: 210mm;
        margin: 0;
        padding: 40px 30px;
        page-break-after: always;
        page-break-inside: avoid;
    }
    
    .report-content {
        width: 210mm;
        max-width: 210mm;
        padding: 0;
        background-attachment: scroll;
        background-image: none;
        min-height: auto;
    }
    
    .report-content::before {
        display: none;
    }
    
    .report-section-item {
        page-break-inside: avoid;
        margin-bottom: 0;
        padding: 20mm 15mm;
        page-break-after: always;
    }

    /* 併發症頁：與螢幕預覽同一內距與人體圖比例（勿套用一般 section 的 20mm padding） */
    .report-section-item.organ-risk-page {
        padding: 8mm 6mm 6mm 6mm !important;
    }
    
    .organ-risk-page {
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        padding: 8mm 6mm 6mm 6mm;
        page-break-after: always;
        page-break-before: always;
        background: #fafafa !important;
        background-image: none !important;
        box-sizing: border-box !important;
    }
    
    .organ-risk-page .human-body-visualization-layout {
        width: 100%;
        max-width: 210mm;
        min-height: 0;
        height: 100%;
        padding: 0;
        margin-top: 0 !important;
        page-break-inside: avoid;
        position: relative !important;
        display: block !important;
    }
    
    .organ-risk-page .body-silhouette-container {
        top: 40% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 210mm !important;
        height: 297mm !important;
        max-width: 210mm !important;
        max-height: 297mm !important;
        transform: translate(-50%, calc(-50% + 5mm)) !important;
    }
    
    .organ-risk-page .human-body-image,
    .organ-risk-page .human-body-silhouette {
        width: 100%;
        max-width: 210mm;
        height: 100%;
        max-height: 297mm;
        object-fit: contain;
        object-position: center center;
    }
    
    .btn-print,
    .btn-back {
        display: none;
    }
    
    .navbar,
    .footer {
        display: none;
    }
}

.report-container {
    max-width: 210mm;
    width: 210mm;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    box-sizing: border-box;
}

.report-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.report-title {
    font-size: 2.2rem;
    color: var(--bg-white);
    margin: 0;
}

.btn-print,
.btn-back {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--bg-white);
}

.btn-print:hover,
.btn-back:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.report-content {
    width: 100%;
    max-width: 210mm;
    margin: 0 auto;
    padding: 0;
    background-image: url('https://drec.pages.dev/chang%20pic/reportbackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 297mm;
    box-sizing: border-box;
}

.report-content .report-section-item:first-child {
    padding: 15mm 12mm;
}

.report-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.report-content > * {
    position: relative;
    z-index: 1;
}

/* A4 Size adjustments for screen view */
@media screen {
    .report-section {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .report-container {
        box-shadow: var(--shadow-lg);
        border-radius: 12px;
        margin: 20px auto;
        width: 210mm;
        max-width: 210mm;
    }
    
    .report-cover-page {
        box-shadow: var(--shadow-lg);
        border-radius: 12px;
        margin: 0 auto 30px;
        width: 100%;
        max-width: 210mm;
        height: 297mm;
    }
    
    .report-content {
        width: 100%;
        max-width: 210mm;
        margin: 0 auto;
    }
    
    .report-content > .report-cover-page {
        margin: 0 auto 30px;
    }

    /* Visual page separator lines (screen preview only) */
    .report-content > .report-section-item {
        border-top: 2px solid var(--accent-color);
        margin-top: 22px;
        box-shadow: var(--shadow-lg);
        border-radius: 12px;
        overflow: hidden;
    }

    .report-content > .report-section-item:first-of-type {
        border-top: none;
        margin-top: 0;
    }

    /* Keep background pages showing their background image */
    .report-content > .report-section-item.report-section-with-bg {
        background-color: transparent;
    }

    /* Non-background pages get a white paper background */
    .report-content > .report-section-item:not(.report-section-with-bg) {
        background: var(--bg-white);
    }
}

.report-section-item {
    margin-bottom: 0;
    padding: 15mm 12mm;
    border-bottom: 1px solid var(--bg-light);
    page-break-inside: avoid;
    width: 100%;
    max-width: 210mm;
    box-sizing: border-box;
}

.report-section-item:last-child {
    border-bottom: none;
}

.report-section-with-bg {
    background-image: url('https://drec.pages.dev/chang%20pic/reportbackground.jpg');
    /* Use a fixed, page-filling background so every page looks identical */
    background-size: 100% 100%;
    /* Anchor logo to a fixed spot so it won't "move" when scrollbar appears/disappears */
    background-position: left 10px top;
    background-repeat: no-repeat;
    background-attachment: local;
    position: relative;
    min-height: 297mm;
    max-height: 297mm;
    /* Tighter padding so content fits within one A4 page */
    padding: 16mm 12mm 14mm 12mm;
    width: 100%;
    max-width: 210mm;
    margin: 0 auto 30px;
    page-break-after: always;
    overflow: hidden;
    box-sizing: border-box;
}

/* Risk Assessment Chart: match report background page style */
#chartContainer.chart-container {
    background-image: url('https://drec.pages.dev/chang%20pic/reportbackground.jpg');
    background-size: 100% 100%;
    background-position: left 10px top;
    background-repeat: no-repeat;
    background-attachment: local;
    width: 100%;
    max-width: 210mm;
    height: 297mm;
    min-height: 297mm;
    max-height: 297mm;
    margin: 0 auto 30px;
    padding: 8mm 6mm 6mm 6mm;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* Make chart card sit on top of background */
#chartContainer .chart-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Chart page title: 健康风险评估图表 */
#chartContainer .chart-page-title {
    margin-top: 0;
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 10px;
    flex-shrink: 0;
    font-weight: 700;
}

#chartContainer .chart-page-title-cn {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

#chartContainer .chart-page-title-en {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #444;
}

/* Main content area */
.chart-main-content {
    position: relative;
    width: 100%;
    height: calc(100% - 56px);
    flex: 1;
    min-height: 0;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    justify-content: flex-start;
}

/* Risk Info Cards - Grid Layout */
.chart-legend {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 6px 2px;
    z-index: 3;
    overflow: visible;
    box-sizing: border-box;
    flex: 1;
    align-content: start;
}

/* Card styles - 健康风险评估卡片 */
.card {
    position: relative;
    background: #fff;
    padding: 14px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    z-index: 3;
    font-size: 11px;
    color: #444;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 100px;
}

.card-percentage-top {
    width: auto;
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    order: -1;
}

.card-chart-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.risk-chart-circle {
    width: 68px;
    height: 68px;
    position: relative;
    flex-shrink: 0;
}

.risk-chart-svg {
    width: 100%;
    height: 100%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.card-title {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.35;
}

.card-icon {
    font-size: 18px;
    display: inline-block;
}

/* Card marker (color indicator) */
.card-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    flex-shrink: 0;
}

.marker-green { background-color: #4CAF50; }
.marker-red { background-color: #e53935; }
.marker-orange { background-color: #f57c00; }
.marker-yellow { background-color: #f9a825; }

.card p {
    margin: 0;
    line-height: 1.45;
    font-size: 10px;
    color: #555;
}

.highlight-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

/* Card positions - using grid, no absolute positioning needed */

/* Healthy Status: 健康状态区块 - 百分比在上方、下方为说明框 */
.healthy-status-wrapper {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 12px auto 14px;
    gap: 12px;
}

.healthy-status-percent-outside {
    font-size: 8.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.healthy-status-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #2e7d32;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
}

.healthy-status-value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    color: white;
}

.healthy-status-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.healthy-status-checkmark svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.healthy-status-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

.healthy-status-desc {
    font-size: 0.8rem;
}

/* Chart page: mobile tweaks — keep same 2-column layout as desktop */
@media (max-width: 420px) {
    #chartContainer .chart-legend {
        grid-template-columns: repeat(2, 1fr); /* same as desktop */
        gap: 10px;
        padding: 4px 0;
    }
    #chartContainer .chart-page-title-cn { font-size: 0.78rem !important; font-weight: 800 !important; }
    #chartContainer .chart-page-title-en { font-size: 0.6rem !important; font-weight: 800 !important; }
    .card { padding: 12px 10px; min-height: 92px; }
    .card-percentage-top { font-size: 1.1rem; }
    .highlight-text { font-size: 1rem; }
    .card-title { font-size: 12px; }
    .card p { font-size: 9px; }
}

/* Diabetic Patient Risk Assessment — Risk Index (no points) */
.risk-index-widget {
    width: 100%;
    max-width: 780px;
    margin: 12px auto 6px;
    padding: 16px 14px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}
.risk-index-header {
    margin-bottom: 12px;
}
.risk-index-header-label {
    font-size: 0.95rem;
    color: #666;
    margin-right: 6px;
}
.risk-index-current {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.05;
}
.risk-index-current-cn {
    margin-top: 4px;
    font-size: 1rem;
    color: #555;
    font-weight: 700;
}
.risk-index-low { color: #2e7d32; }
.risk-index-moderate { color: #b26a00; }
.risk-index-high { color: #ef6c00; }
.risk-index-very-high { color: #c62828; }

.risk-index-bar {
    position: relative;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    margin: 8px auto 14px;
}
.risk-index-seg { flex: 1; }
.risk-index-seg-low { background: #4CAF50; }
.risk-index-seg-moderate { background: #FFC107; }
.risk-index-seg-high { background: #FF9800; }
.risk-index-seg-very-high { background: #F44336; }

.risk-index-marker {
    position: absolute;
    top: -40px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.risk-index-marker-badge {
    background: #111;
    color: #fff;
    font-size: 0.9rem;
    padding: 7px 12px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    max-width: 160px;
    text-align: center;
}
.risk-index-marker-triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #111;
    margin-top: 4px;
}

.risk-index-legend {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}
.risk-index-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.risk-index-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}
.dot-low { background: #4CAF50; }
.dot-moderate { background: #FFC107; }
.dot-high { background: #FF9800; }
.dot-very-high { background: #F44336; }

@media (max-width: 480px) {
    .risk-index-current { font-size: 1.85rem; }
    .risk-index-current-cn { font-size: 0.95rem; }
    .risk-index-legend { font-size: 0.9rem; }
    .risk-index-marker { top: -38px; }
    .risk-index-marker-badge { font-size: 0.8rem; padding: 6px 10px; white-space: normal; max-width: 120px; }
    .risk-index-marker-triangle { border-left-width: 8px; border-right-width: 8px; border-top-width: 10px; transform: scale(1.65); transform-origin: center top; }
}

/* Slightly smaller on very small screens to avoid overflow */
@media (max-width: 360px) {
    .card-percentage-top { font-size: 18px; }
    .highlight-text { font-size: 15px; }
    .card-title { font-size: 13px; }
    .healthy-status-percent-outside { font-size: 6rem; }
    .healthy-status-value { font-size: 1.3rem; }
    .healthy-status-label { font-size: 0.85rem; }
    .healthy-status-desc { font-size: 0.75rem; }
}

/* CTA page: same background/A4 sizing as chart page */
#ctaPage.chart-container {
    background: #fff;
    width: 100%;
    max-width: 210mm;
    height: auto;
    min-height: 0;
    margin: 0 auto 30px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

#ctaPage .chart-wrapper {
    position: relative;
    z-index: 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

#ctaPage .cta-section-report {
    width: 100%;
    max-width: 700px;
}

.report-section-with-bg:not(.bmi-page-section)::before {
    content: "患者健康评估报告\A Patient Health assessment\A report";
    position: absolute;
    top: 12mm;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: pre-line;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.05;
    color: #000;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    z-index: 0;
    pointer-events: none;
}

.risk-assessment-section {
    /* Reduce top padding so sections like Blood Pressure & Heart Health don't get clipped */
    padding-top: 45mm;
}


.bmi-page-section {
    padding-top: 16mm;
}

.bmi-page-section > div:first-of-type {
    margin-top: 0;
}

/* BMI page only: make the BMI gauge block a bit smaller so it doesn't crowd the logo area */
.bmi-page-section .bmi-gauge-container {
    padding: 30px 24px;
    margin: 12px 0;
}

/* Desktop: move BMI result (gauge + data) down a little, keep title in place */
@media (min-width: 769px) {
    .bmi-page-section .bmi-gauge-container {
        margin-top: 12mm !important;
    }
    .bmi-page-section .bmi-gauge-wrapper {
        height: 440px;
    }
    .risk-index-marker-triangle {
        transform: scale(1.85);
        transform-origin: center top;
    }
}

.bmi-page-section .bmi-gauge-header h4 {
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.bmi-page-section .bmi-gauge-wrapper {
    height: 240px;
    margin-bottom: 18px;
}

.bmi-page-section .bmi-gauge-info {
    padding: 10px 12px;
    margin-top: 45px;
}

/* Move Height/Weight/BMI cards down */
.bmi-page-section .report-data-grid {
    margin-top: 12mm;
    gap: 8px;
    margin-bottom: 10px;
}

.bmi-page-section .report-data-item {
    padding: 8px;
}

.bmi-page-section .report-data-label {
    font-size: 0.82rem;
    margin-bottom: 3px;
}

.bmi-page-section .report-data-value {
    font-size: 1.08rem;
    gap: 6px;
}

.bmi-page-section .report-status {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.lifestyle-section {
    /* More compact so Lifestyle Analysis fits within one A4 page */
    padding-top: 42mm;
}

/* Lifestyle page: compact cards + analysis block to avoid clipping */
.lifestyle-section .report-data-grid {
    gap: 10px;
    margin-bottom: 10px;
}

/* Push the risk assessment block (inserted above Lifestyle Information) slightly downward */
.lifestyle-section > .report-section-title:first-child {
    margin-top: 6mm;
}

.lifestyle-section .report-data-item {
    padding: 10px;
}

.lifestyle-section .report-data-label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.lifestyle-section .report-data-value {
    font-size: 1.1rem;
    gap: 8px;
}

.lifestyle-section .report-analysis {
    padding: 14px;
    margin-top: 12px;
}

.lifestyle-section .report-analysis h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.lifestyle-section .report-analysis p {
    font-size: 0.9rem;
    line-height: 1.55;
}

.report-section-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    page-break-after: avoid;
}

.report-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    page-break-inside: avoid;
}

.report-data-item {
    background: var(--bg-light);
    padding: 12px;
    border-radius: 6px;
    page-break-inside: avoid;
}

/* Result page: force all result boxes to white */
#report .report-data-item,
#report .report-analysis,
#report .report-recommendations,
#report .healthy-status-box,
#report .risk-index-widget,
#report .card {
    background: #ffffff !important;
    border: 1px solid #d4af37 !important;
}

.report-data-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.report-data-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.report-status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0;
}

.status-normal {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.status-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.status-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.report-analysis {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--accent-color);
}

.report-analysis h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.report-analysis p {
    color: var(--text-dark);
    line-height: 1.8;
}

.report-recommendations {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--success-color);
}

.report-recommendations h4 {
    color: var(--success-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.report-recommendations ul {
    list-style: none;
    padding-left: 0;
}

.report-recommendations li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-dark);
}

.report-recommendations li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* BMI Gauge Styles - Redesigned */
.bmi-gauge-container {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    text-align: center;
}

.bmi-gauge-header h4 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.bmi-meter-title {
    color: #4a4a4a !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    font-family: Arial, sans-serif !important;
}

.bmi-gauge-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    height: 300px;
}

.bmi-gauge {
    width: 100%;
    height: 100%;
    display: block;
}

/* Linear scale for low BMI values */
.bmi-linear-scale {
    margin: 20px auto;
    max-width: 400px;
    padding: 0 20px;
}

.linear-scale-line {
    position: relative;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 15px 0;
}

.scale-segment {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    left: 0;
}

.red-segment {
    background: #ff6b6b;
    width: 60%;
}

.scale-marker {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.scale-marker.red-dot {
    top: -8px;
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    transform: translateX(-50%);
}

.scale-marker.red-dot::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
    content: '18.5';
    white-space: nowrap;
}

.bmi-gauge-info {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.bmi-gauge-info p {
    margin: 10px 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bmi-gauge-wrapper {
        height: 250px;
        max-width: 100%;
    }
    
    .bmi-gauge-header h4 {
        font-size: 1.2rem;
    }
    
    .bmi-linear-scale {
        max-width: 100%;
    }
    
    .organ-risk-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .organ-risk-card {
        padding: 20px;
    }
    
    .organ-icon {
        font-size: 2.5rem;
    }
    
    .organ-name {
        font-size: 1.2rem;
    }
    
    .human-body-visualization-layout {
        padding: 40px 20px;
        min-height: 700px;
    }
    
    .organ-card-positioned {
        width: 240px;
        padding: 15px;
        position: relative !important;
        margin-bottom: 20px;
    }
    
    .organ-card-top-left,
    .organ-card-top-right,
    .organ-card-bottom-left,
    .organ-card-bottom-right {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 auto 20px;
    }
    
    .body-silhouette-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: calc(20px + 5mm) auto 20px;
    }
    
    .human-body-silhouette {
        width: 200px;
    }
    
    .connection-lines {
        display: none;
    }
}

/* CTA Section in Report */
.cta-section-report {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 88% 90%, rgba(255, 179, 0, 0.2) 0%, rgba(255, 179, 0, 0) 45%),
        linear-gradient(150deg, #eef7ff 0%, #dceefe 52%, #e9f5ff 100%);
    padding: 40px 34px;
    border-radius: 20px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 16px 40px rgba(21, 101, 192, 0.16);
    border: 1px solid rgba(25, 118, 210, 0.16);
    position: relative;
    overflow: hidden;
}

.cta-section-report::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -70px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.16) 0%, transparent 72%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section-report::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(120deg, rgba(13, 71, 161, 0.22), rgba(255, 152, 0, 0.28), rgba(0, 168, 199, 0.24)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Header Badge */
.cta-header-badge {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 65%, #1976d2 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 24px 26px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 24px rgba(13, 71, 161, 0.3);
}

.cta-free-label {
    display: inline-block;
    background: linear-gradient(135deg, #ff8f00 0%, #ffb300 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.06em;
    box-shadow: 0 6px 14px rgba(255, 152, 0, 0.35);
}

.cta-header-text {
    color: #fff;
    margin-top: 10px;
}

.cta-main-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.cta-sub-question {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.98;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.cta-english-title {
    font-size: 0.96rem;
    font-weight: 500;
    opacity: 0.92;
    font-family: 'Inter', sans-serif;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
}

.cta-description {
    font-size: 1.02rem;
    color: #0f4fa8;
    margin-bottom: 18px;
    line-height: 1.75;
    font-weight: 500;
    text-align: left;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 250, 255, 0.88) 100%);
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(25, 118, 210, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 8px 18px rgba(13, 101, 192, 0.08);
}

.cta-english-desc {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #1659b5;
    font-weight: 400;
}

/* Benefits List */
.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    text-align: left;
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.cta-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #1565C0;
    font-weight: 600;
}

.cta-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #2196F3;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

/* Limited Time Badge */
.cta-limited-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff8f00 0%, #ffb300 100%);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    box-shadow: 0 6px 14px rgba(255, 152, 0, 0.28);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
}

.cta-limited-badge::before,
.cta-limited-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 2px;
    background: rgba(255, 143, 0, 0.55);
}

.cta-limited-badge::before {
    left: -24px;
}

.cta-limited-badge::after {
    right: -24px;
}

.btn-register {
    display: inline-block;
    padding: 18px 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-register:active {
    transform: translateY(-1px);
}

/* Main CTA Button and Contact Info Wrapper */
.cta-button-contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

/* Main CTA Button */
.cta-main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex: 1;
    min-width: 300px;
    max-width: 620px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0099bf 0%, #007fd1 40%, #ff9800 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 14px 28px rgba(13, 139, 216, 0.3), 0 0 0 3px rgba(255, 152, 0, 0.25);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border: 3px solid rgba(255, 255, 255, 0.9);
    animation: ctaButtonPulse 1.9s ease-in-out infinite;
}

.cta-main-button::before {
    content: '点击这里';
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    color: #e65100;
    opacity: 0.95;
    animation: ctaHintPulse 1.2s ease-in-out infinite;
}

@keyframes pointPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateY(-50%) scale(1.1); opacity: 1; }
}

@keyframes ctaButtonPulse {
    0%, 100% {
        box-shadow: 0 14px 28px rgba(13, 139, 216, 0.3), 0 0 0 3px rgba(255, 152, 0, 0.25), 0 0 0 0 rgba(255, 152, 0, 0.35);
    }
    50% {
        box-shadow: 0 16px 30px rgba(13, 139, 216, 0.36), 0 0 0 3px rgba(255, 152, 0, 0.3), 0 0 0 10px rgba(255, 152, 0, 0);
    }
}

@keyframes ctaHintPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.cta-main-button:hover {
    background: linear-gradient(135deg, #008daf 0%, #006fb7 40%, #f57c00 100%);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(13, 139, 216, 0.38), 0 0 0 4px rgba(255, 152, 0, 0.35);
    animation-play-state: paused;
}

.cta-main-button:active {
    transform: translateY(-1px);
}

.cta-button-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cta-button-text {
    flex: 1;
    text-align: left;
}

.cta-main-button .cta-button-cn,
.cta-main-button .cta-button-en {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-button-cn {
    font-size: 1.26rem;
    font-weight: 800;
    margin-bottom: 3px;
    line-height: 1.3;
}

.cta-button-en {
    font-size: 0.98rem;
    font-weight: 600;
    opacity: 0.96;
    line-height: 1.3;
}

/* QR Code Section - Redesigned */
.cta-qr-section-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 180px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(227, 242, 253, 0.8) 100%);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
    border: 2px solid rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.cta-qr-section-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.35);
    border-color: rgba(33, 150, 243, 0.5);
}

.cta-qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.cta-qr-icon-new {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cta-qr-text-new {
    font-size: 1rem;
    color: #1565C0;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.cta-qr-box {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.whatsapp-qr-placeholder-new {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #fff 0%, #E3F2FD 100%);
    border: 3px solid #2196F3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-qr-placeholder-new::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.qr-code-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.qr-label {
    font-size: 0.9rem;
    color: #1565C0;
    font-weight: 700;
    margin: 4px 0;
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

.qr-label-cn {
    font-size: 0.85rem;
    color: #1976D2;
    font-weight: 600;
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

.whatsapp-qr-placeholder-new img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.cta-qr-note {
    font-size: 0.85rem;
    color: #1976D2;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

/* Human Body Visualization Layout - A4 Page */
.human-body-visualization-layout {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    min-height: 240mm;
    width: 100%;
    max-width: 210mm;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    page-break-inside: avoid;
    box-sizing: border-box;
}

.organ-risk-title {
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 3; /* ensure title stays above body photo */
}

.organ-risk-title-cn {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.organ-risk-title-en {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.body-silhouette-container {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 5mm));
    z-index: 1;
    width: 210mm;
    height: 297mm;
    max-width: 210mm;
    max-height: 297mm;
}

/* Desktop: 人體圖位置（略偏下） */
@media (min-width: 769px) {
    .organ-risk-page .body-silhouette-container {
        top: 40% !important;
        transform: translate(-50%, calc(-50% + 5mm)) !important;
    }

    .organ-risk-page .organ-card-middle-left {
        top: 42% !important;
    }

    .organ-risk-page .organ-card-top-left {
        top: 14% !important;
    }

    .organ-risk-page .organ-card-bottom-right {
        bottom: 15% !important;
    }
}

.human-body-silhouette,
.human-body-image {
    width: 100%;
    max-width: 210mm;
    height: 100%;
    max-height: 297mm;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
    display: block;
}

.connection-point {
    pointer-events: none;
}

/* Organ Cards Positioned Around Body */
.organ-cards-layout {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 297mm;
}

.organ-card-positioned {
    position: absolute;
    width: 200px;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Reduce BMI title block size globally */
.bmi-page-section .bmi-title-cn {
    font-size: 1.45rem !important;
    line-height: 1.12 !important;
}

.bmi-page-section .bmi-title-en {
    font-size: 1rem !important;
    line-height: 1.12 !important;
    letter-spacing: 0.03em !important;
}

/* Make Blood Glucose + Blood Pressure report block more compact globally */
.glucose-page-section .report-section-title {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.glucose-page-section .bp-section-title {
    margin-top: 30px;
    padding-bottom: 6px;
}

.glucose-page-section .report-data-item {
    padding: 9px;
}

.glucose-page-section .report-data-label {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.glucose-page-section .report-data-value {
    font-size: 1.02rem;
    line-height: 1.2;
}

.organ-card-top-left {
    top: 14%;
    left: -6%;
}

.organ-card-top-right {
    top: 15%;
    right: -6%;
}

.organ-card-middle-left {
    top: 42%;
    left: -6%;
}

.organ-card-middle-right {
    top: 52%;
    right: -6%;
    transform: translateY(-50%);
}

.organ-card-bottom-left {
    bottom: 0%;
    left: -6%;
}

.organ-card-bottom-right {
    bottom: 15%;
    right: -3%;
}

.organ-card-icon {
    font-size: 2rem;
    text-align: center;
    margin: 8px 0;
    line-height: 1;
}

.organ-card-icon img {
    width: 1.55em;
    height: 1.55em;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.organ-card-positioned[data-organ="kidneys"] .organ-card-icon img {
    width: 2.05em;
    height: 2.05em;
}

.organ-card-title {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    margin: 6px 0;
    font-weight: 600;
    line-height: 1.3;
}

.organ-card-status {
    text-align: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 6px 0;
    display: inline-block;
}

.organ-card-status.status-normal {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.organ-card-status.status-info {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

.organ-card-status.status-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.organ-card-status.status-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.organ-card-score {
    text-align: center;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.2;
}

.organ-card-factors,
.organ-card-recommendations {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 10px;
    width: 100%;
}

.organ-card-factors p,
.organ-card-recommendations p {
    margin: 6px 0;
    color: #333;
    font-weight: 600;
    font-size: 0.8rem;
}

.organ-card-factors ul {
    margin: 6px 0 6px 18px;
    padding: 0;
    list-style: disc;
}

.organ-card-factors li {
    margin: 4px 0;
    color: #555;
    font-size: 0.8rem;
    line-height: 1.4;
}

.organ-card-recommendations p:last-child {
    font-weight: 400;
    color: var(--text-dark);
    margin-top: 5px;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connection-line {
    stroke: #666;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
}

.risk-legend {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.risk-legend h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Organ Risk Assessment Styles */
.organ-risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.organ-risk-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.organ-risk-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.organ-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.organ-name {
    font-size: 1.4rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.organ-risk-level {
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.organ-risk-level.status-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.organ-risk-level.status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.organ-risk-level.status-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.organ-risk-level.status-normal {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.organ-risk-score {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.organ-risk-details {
    font-size: 0.9rem;
    line-height: 1.7;
}

.organ-risk-details p {
    margin: 10px 0;
    color: var(--text-dark);
}

.organ-risk-details ul {
    margin: 10px 0 15px 20px;
    padding-left: 0;
}

.organ-risk-details li {
    margin: 8px 0;
    color: var(--text-light);
}

/* Chart Styles */
.chart-container {
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 3px solid var(--accent-color);
    margin-top: 20px;
}

.chart-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.chart-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

#riskChart {
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    touch-action: manipulation;
}

.chart-legend {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
}

.legend-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.legend-value {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: #e4f3fa;
    color: var(--text-dark);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(15, 36, 64, 0.85);
    line-height: 1.8;
}

.footer-profile {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.footer-logo {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-profile-text h3 {
    margin-bottom: 6px;
}

.footer-profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-profile-text p {
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
}

.footer-company-line {
    font-size: 0.82rem;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-dark);
}

.footer-disclaimer {
    border-top: 1px solid rgba(15, 36, 64, 0.15);
    padding-top: 20px;
    margin-top: 30px;
}

.footer-disclaimer p {
    color: rgba(15, 36, 64, 0.78);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 36, 64, 0.15);
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(15, 36, 64, 0.7);
    font-size: 0.85rem;
}

/* Responsive Design */

/* Tablet and below (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar .container {
        padding: 1rem 15px;
    }

    .nav-brand h2 {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }


    .hero-section {
        padding: 120px 0 60px;
        margin-top: 60px;
    }

    .hero-section--patient-type-hero {
        padding: 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-section--patient-type-hero .hero-content--split {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-section--patient-type-hero .hero-text-block {
        text-align: center;
        margin-left: 0;
    }

    /* Clear absolutely positioned logo so centered copy does not sit underneath */
    .hero-section--patient-type-hero > .container {
        padding-top: clamp(5.5rem, 28vw, 9.5rem);
    }

    .hero-section--patient-type-hero .hero-title--patient-type {
        align-items: center;
    }

    .hero-section--patient-type-hero .hero-title-en {
        max-width: none;
    }

    .hero-section--patient-type-hero .hero-lead-en {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(197, 160, 101, 0.5);
        padding-top: 0.65rem;
        margin-top: 0.35rem;
    }

    .hero-section--patient-type-hero .hero-visual {
        width: 100%;
        max-width: 320px;
    }

    /* Phone: hero copy must wrap — desktop nowrap causes horizontal scroll */
    .hero-section--patient-type-hero .hero-kicker {
        white-space: normal;
        max-width: 100%;
        font-size: clamp(0.78rem, 2.6vw, 1.05rem);
        letter-spacing: 0.1em;
        line-height: 1.4;
    }

    .hero-section--patient-type-hero .hero-title-cn,
    .hero-section--patient-type-hero .hero-title-en {
        white-space: normal;
        max-width: 100%;
    }

    .hero-section--patient-type-hero .hero-title-cn {
        font-size: clamp(1.65rem, 7vw, 2.75rem);
    }

    .hero-section--patient-type-hero .hero-title-en {
        font-size: clamp(1.05rem, 3.8vw, 1.55rem);
    }

    .hero-section--patient-type-hero .hero-lead {
        max-width: 100%;
        padding: 0 2px;
    }

    .form-section {
        padding: 40px 0;
    }

    .form-section-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        padding: 14px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .radio-group,
    .checkbox-group {
        gap: 10px;
    }

    .radio-label,
    .checkbox-label {
        padding: 12px;
        font-size: 0.95rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
        padding: 30px 0;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
    }

    .bmi-display {
        padding: 15px;
        margin-top: 15px;
    }

    .report-section {
        padding: 80px 0 40px;
    }

    .report-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        gap: 15px;
    }

    .report-title {
        font-size: 1.6rem;
    }

    .btn-print,
    .btn-back {
        width: 100%;
        padding: 12px 20px;
    }

    .report-content {
        padding: 25px 20px;
    }

    .report-section-item {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .report-section-title {
        font-size: 1.4rem;
    }

    .report-data-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .report-data-item {
        padding: 12px;
    }

    .report-data-value {
        font-size: 1.2rem;
    }

    .cta-section-report {
        padding: 28px 22px;
    }

    .cta-header-badge {
        padding: 20px 20px;
    }

    .cta-free-label {
        font-size: 1.05rem;
        padding: 5px 12px;
    }

    .cta-main-title {
        font-size: 1.42rem;
    }

    .cta-sub-question {
        font-size: 1.02rem;
    }

    .cta-english-title {
        font-size: 0.88rem;
    }

    .cta-description {
        font-size: 0.96rem;
        padding: 15px 16px;
    }

    .cta-english-desc {
        font-size: 0.85rem;
    }

    .cta-benefits {
        padding: 18px;
    }

    .cta-benefit-item {
        font-size: 0.95rem;
    }

    .cta-button-contact-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .cta-main-button {
        padding: 16px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .cta-button-cn {
        font-size: 1.04rem;
    }

    .cta-button-en {
        font-size: 0.86rem;
    }

    .cta-qr-section-new {
        width: 100%;
        min-width: auto;
        padding: 18px;
    }

    .whatsapp-qr-placeholder-new {
        width: 120px;
        height: 120px;
    }

    .cta-qr-text-new {
        font-size: 0.95rem;
    }

    .cta-qr-note {
        font-size: 0.8rem;
    }
}

/* Screen: mobile & small tablets — make report pages fluid width */
@media screen and (max-width: 768px) {
    .report-section {
        padding: 40px 0 30px;
        background: #f5f5f5;
    }

    .report-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .report-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        /* Keep background but scale to screen width */
        background-size: 100% auto;
        background-position: top center;
    }

    /* A4 pages: scale proportionally to screen width on phone */
    .report-content > .report-section-item.report-section-with-bg,
    #chartContainer.chart-container,
    .organ-risk-page,
    .report-cover-page {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
        aspect-ratio: 210 / 297;
        margin: 0 0 20px 0;
    }

    .chart-container {
        padding: 20px 12px;
    }

    .chart-title {
        font-size: 1.3rem;
        font-weight: 700 !important;
        margin-bottom: 10px;
    }

    /* Keep chart legend as 2-column grid like desktop */
    .chart-legend {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-top: 10px;
    }

    /* Health Risk Assessment Chart: phone view — allow full height, no horizontal scroll */
    #chartContainer.chart-container {
        /* let height grow to fit all cards; keep full-width background */
        aspect-ratio: auto;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    #chartContainer .chart-page-title-cn {
        font-size: 0.88rem !important;
        font-weight: 800 !important;
    }

    #chartContainer .chart-page-title-en {
        font-size: 0.68rem !important;
        font-weight: 800 !important;
    }

    #chartContainer .chart-main-content {
        overflow: visible;
    }

    /* Remove extra scaling so text stays readable on phone */
    #chartContainer .chart-wrapper {
        transform: none;
    }

    /* Health Risk chart page: shrink content so it fits inside the A4 frame on phones */
    .healthy-status-wrapper {
        margin: 18px auto 12px;
        gap: 6px;
    }

    .healthy-status-percent-outside {
        font-size: 3.8rem;
    }

    .healthy-status-box {
        padding: 6px 8px;
    }

    .healthy-status-label {
        font-size: 0.5rem;
    }

    .card {
        padding: 5px 5px;
        min-height: 66px;
    }

    .card-percentage-top {
        font-size: 0.78rem;
        padding-bottom: 1px;
    }

    .card-title {
        font-size: 9px;
    }

    .card p {
        font-size: 6px;
    }

    /* Cover page: keep Report + Physician side-by-side like desktop, tighten typography */
    .report-cover-bottom {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        padding-top: 8px;
    }

    .report-cover-info-section {
        flex: 1;
        min-width: 0;
    }

    .report-cover-info-header {
        margin-bottom: 6px;
    }

    .report-cover-info-icon {
        width: 22px;
        height: 22px;
        margin-right: 6px;
        font-size: 14px;
    }

    .report-cover-info-title {
        font-size: 10px;
    }

    .report-cover-info-item {
        font-size: 10px;
        margin-bottom: 3px;
        line-height: 1.25;
    }

    .report-cover-info-label {
        min-width: 56px;
        font-size: 10px;
        margin-right: 4px;
    }

    .report-cover-info-value {
        font-size: 10px;
    }

    .report-cover-divider {
        display: block;
        width: 1px;
        background: #999;
        margin: 0 8px;
        align-self: stretch;
        min-height: 80px;
        flex-shrink: 0;
    }

    .legend-item {
        padding: 12px;
    }

    /* Move Blood Glucose + Prediabetic Risk sections upward on phone */
    .glucose-page-section {
        padding-top: 20mm !important;
    }

    .prediabetic-risk-page-section,
    .lifestyle-section {
        padding-top: 20mm !important;
    }

    .prediabetic-risk-page-section > .report-section-title:first-child {
        margin-top: 0 !important;
    }

    .lifestyle-section > .report-section-title:first-child {
        margin-top: 0 !important;
    }

    /* Diabetic report only: move these sections slightly down on phone */
    .report-content.diabetic-layout .bmi-page-section {
        padding-top: 14mm !important;
    }

    .report-content.diabetic-layout .glucose-page-section {
        padding-top: 20mm !important;
    }

    .report-content.diabetic-layout .prediabetic-risk-page-section {
        padding-top: 20mm !important;
    }

    /* Make report title smaller on phone */
    .report-title {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }

    /* Background report title on each A4 section */
    .report-section-with-bg:not(.bmi-page-section)::before {
        font-size: 0.72rem !important;
        line-height: 1.05 !important;
        top: 7mm !important;
        letter-spacing: 0.01em !important;
    }

    /* Phone typography tuning for BMI, Blood Glucose, Prediabetic Risk pages */
    .bmi-page-section .bmi-title-cn {
        font-size: 0.76rem !important;
        line-height: 1.12 !important;
    }

    .bmi-page-section .bmi-title-en {
        font-size: 0.54rem !important;
        line-height: 1.15 !important;
        letter-spacing: 0.02em !important;
    }

    .organ-risk-page .organ-risk-title-cn {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        margin-bottom: 2px !important;
    }

    .organ-risk-page .organ-risk-title-en {
        font-size: 0.6rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
    }

    /* BMI page: make gauge/chart block significantly smaller on phone; move title up */
    .bmi-page-section {
        padding-top: 8mm !important;
        display: flow-root; /* Prevent margin collapse so gauge margin-top takes effect */
    }

    .bmi-page-section > div:first-of-type {
        margin-top: -2mm !important;
        margin-bottom: 12px !important;
    }

    .bmi-page-section .bmi-gauge-container {
        padding: 2px 4px !important;
        margin: 32px 0 2px !important;
        border-radius: 6px !important;
        max-width: 100% !important;
    }

    /* BMI category labels: wrap on phone so full result fits */
    .bmi-page-section .bmi-category-labels {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2px !important;
        margin-top: 2px !important;
    }

    .bmi-page-section .bmi-category-labels > div > div:nth-child(2),
    .bmi-page-section .bmi-category-labels > div > div:nth-child(3) {
        font-size: 0.38rem !important;
    }

    .bmi-page-section .bmi-category-labels > div > div:first-of-type {
        width: 4px !important;
        height: 4px !important;
        margin-bottom: 1px !important;
    }

    .bmi-page-section .bmi-bar-container {
        margin: 4px 0 6px 0 !important;
    }

    .bmi-page-section .bmi-bar-container > div:first-child {
        height: 12px !important;
    }

    .bmi-page-section .bmi-gauge-header h4,
    .bmi-page-section .bmi-meter-title {
        font-size: 0.52rem !important;
        margin-bottom: 2px !important;
        letter-spacing: 0.02em !important;
    }

    .bmi-page-section .bmi-gauge-wrapper {
        height: 74px !important;
        max-width: 92% !important;
        margin: 0 auto 4px !important;
    }

    .bmi-page-section .bmi-linear-scale {
        margin: 8px auto !important;
        padding: 0 8px !important;
    }

    .bmi-page-section .scale-marker,
    .bmi-page-section .scale-marker.red-dot::after {
        font-size: 7px !important;
    }

    .bmi-page-section .bmi-gauge-info {
        padding: 2px 4px !important;
        margin-top: 12px !important;
    }

    .bmi-page-section .bmi-gauge-info p {
        margin: 1px 0 !important;
    }

    /* Reduce middle spacing between BMI gauge and Height/Weight/BMI cards on phone */
    .bmi-page-section .report-data-grid {
        margin-top: 10mm !important;
    }

    .bmi-page-section .report-data-grid,
    .glucose-page-section .report-data-grid,
    .prediabetic-risk-page-section .report-data-grid {
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    /* Phone: keep Height/Weight/BMI as one row with 3 boxes */
    .bmi-page-section .report-data-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .glucose-page-section .report-data-grid {
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    .bmi-page-section .report-data-item,
    .glucose-page-section .report-data-item,
    .prediabetic-risk-page-section .report-data-item {
        padding: 5px !important;
    }

    .bmi-page-section .report-data-label,
    .glucose-page-section .report-data-label,
    .prediabetic-risk-page-section .report-data-label {
        font-size: 0.5rem !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
    }

    .bmi-page-section .report-data-value,
    .glucose-page-section .report-data-value,
    .prediabetic-risk-page-section .report-data-value {
        font-size: 0.6rem !important;
        line-height: 1.22 !important;
        gap: 3px !important;
    }

    .bmi-page-section .report-status {
        font-size: 0.66rem !important;
        padding: 3px 8px !important;
    }

    /* All report section titles smaller on phone: Blood Glucose, Blood Pressure & Heart, Risk Assessment, Lifestyle */
    .report-content .report-section-title {
        font-size: 0.66rem !important;
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
    }

    .bmi-page-section .report-section-title,
    .glucose-page-section .report-section-title,
    .prediabetic-risk-page-section .report-section-title {
        font-size: 0.58rem !important;
        margin-bottom: 4px !important;
        padding-bottom: 3px !important;
    }

    .prediabetic-risk-page-section .report-data-grid + .report-section-title {
        margin-top: 6px !important;
    }

    /* Blood Glucose page also contains Blood Pressure section; tighten spacing */
    .glucose-page-section .report-section-title + .report-section-title,
    .glucose-page-section .bp-section-title {
        margin-top: 6px !important;
    }

    .bmi-page-section .report-analysis h4,
    .glucose-page-section .report-analysis h4,
    .prediabetic-risk-page-section .report-analysis h4 {
        font-size: 0.66rem !important;
        margin-bottom: 4px !important;
    }

    .bmi-page-section .report-analysis p,
    .glucose-page-section .report-analysis p,
    .prediabetic-risk-page-section .report-analysis p {
        font-size: 0.52rem !important;
        line-height: 1.3 !important;
    }

    .bmi-page-section .report-analysis,
    .glucose-page-section .report-analysis,
    .prediabetic-risk-page-section .report-analysis {
        padding: 5px !important;
        margin-top: 5px !important;
    }

    .glucose-page-section .report-status,
    .prediabetic-risk-page-section .report-status {
        font-size: 0.48rem !important;
        padding: 2px 5px !important;
    }

    /* Make Blood Glucose + Blood Pressure block extra compact on phone */
    .glucose-page-section .report-data-item {
        padding: 4px !important;
    }

    .glucose-page-section .report-data-label {
        font-size: 0.46rem !important;
        line-height: 1.2 !important;
    }

    .glucose-page-section .report-data-value {
        font-size: 0.54rem !important;
        line-height: 1.18 !important;
    }

    .glucose-page-section .report-section-title {
        font-size: 0.56rem !important;
        margin-bottom: 4px !important;
    }

    .glucose-page-section .report-analysis {
        padding: 4px !important;
        margin-top: 4px !important;
    }

    .glucose-page-section .report-analysis h4 {
        font-size: 0.58rem !important;
        margin-bottom: 2px !important;
    }

    .glucose-page-section .report-analysis p {
        font-size: 0.46rem !important;
        line-height: 1.25 !important;
    }

    .glucose-page-section .report-status {
        font-size: 0.4rem !important;
        padding: 1px 3px !important;
    }

    .prediabetic-risk-page-section .risk-score-block {
        padding: 8px !important;
    }

    .prediabetic-risk-page-section .risk-score-value {
        font-size: 0.68rem !important;
        margin-bottom: 3px !important;
    }

    .prediabetic-risk-page-section .risk-score-pill {
        font-size: 0.5rem !important;
        padding: 2px 6px !important;
    }

    .prediabetic-risk-page-section .report-data-grid,
    .lifestyle-section .report-data-grid {
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    .prediabetic-risk-page-section .report-data-item,
    .lifestyle-section .report-data-item {
        padding: 4px !important;
    }

    .lifestyle-section .report-data-label {
        font-size: 0.46rem !important;
        margin-bottom: 1px !important;
    }

    .lifestyle-section .report-data-value {
        font-size: 0.54rem !important;
        line-height: 1.2 !important;
    }

    .lifestyle-section .report-section-title {
        font-size: 0.56rem !important;
        margin-bottom: 4px !important;
    }

    .lifestyle-section .report-analysis {
        padding: 4px !important;
        margin-top: 4px !important;
    }

    .lifestyle-section .report-analysis h4 {
        font-size: 0.58rem !important;
        margin-bottom: 2px !important;
    }

    .lifestyle-section .report-analysis p {
        font-size: 0.46rem !important;
        line-height: 1.25 !important;
    }

    .prediabetic-risk-page-section .risk-index-header-label {
        font-size: 0.56rem !important;
    }

    /* Current Assessment widget: reduce overall size on phone */
    .prediabetic-risk-page-section .risk-index-widget {
        max-width: 100% !important;
        margin: 2px auto 2px !important;
        padding: 4px 4px 3px !important;
        border-radius: 6px !important;
    }

    .prediabetic-risk-page-section .risk-index-header {
        margin-bottom: 2px !important;
    }

    .prediabetic-risk-page-section .risk-index-current {
        font-size: 0.62rem !important;
        line-height: 1 !important;
    }

    .prediabetic-risk-page-section .risk-index-current-cn {
        display: none !important;
    }

    .prediabetic-risk-page-section .risk-index-bar {
        height: 5px !important;
        margin: 2px auto 3px !important;
    }

    .prediabetic-risk-page-section .risk-index-marker {
        top: -15px !important;
    }

    .prediabetic-risk-page-section .risk-index-marker-triangle {
        border-left-width: 4px !important;
        border-right-width: 4px !important;
        border-top-width: 5px !important;
        margin-top: 0 !important;
        transform: scale(1.25) !important;
        transform-origin: center top !important;
    }

    .prediabetic-risk-page-section .risk-index-legend {
        display: none !important;
    }

    .prediabetic-risk-page-section .risk-index-marker-badge {
        font-size: 0.32rem !important;
        padding: 1px 4px !important;
        max-width: 48px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .prediabetic-risk-page-section .risk-index-legend .dot {
        width: 7px !important;
        height: 7px !important;
    }

    /* Risk of Complications on phone: force same absolute A4 layout as desktop */
    .organ-risk-page {
        position: relative !important;
        box-sizing: border-box !important;
    }

    /* Keep title visible but don't consume layout height */
    .organ-risk-page .organ-risk-title {
        position: absolute !important;
        top: 8mm !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        z-index: 4 !important;
        pointer-events: none !important;
    }

    .organ-risk-page .human-body-visualization-layout {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        display: block !important;
    }

    .organ-risk-page .body-silhouette-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: hidden !important;
        transform: none !important;
    }

    .organ-risk-page .human-body-image,
    .organ-risk-page .human-body-silhouette {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center calc(-8mm + 5mm) !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    .organ-risk-page .organ-cards-layout {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        display: block !important;
    }

    .organ-risk-page .organ-card-positioned {
        position: absolute !important;
        width: 110px !important;
        padding: 3px !important;
        margin: 0 !important;
    }
    /* Keep diabetic card sizes exactly same as prediabetic */
    .report-content.diabetic-layout .organ-risk-page .organ-card-positioned {
        width: 110px !important;
        padding: 3px !important;
    }

    .organ-risk-page .organ-card-top-left { top: 18% !important; left: 2% !important; right: auto !important; bottom: auto !important; transform: none !important; }
    .organ-risk-page .organ-card-top-right { top: 13% !important; right: 2% !important; left: auto !important; bottom: auto !important; transform: none !important; }
    .organ-risk-page .organ-card-middle-left { top: 45% !important; left: 2% !important; right: auto !important; bottom: auto !important; transform: none !important; }
    .organ-risk-page .organ-card-middle-right { top: 49% !important; right: 2% !important; left: auto !important; bottom: auto !important; transform: translateY(-50%) !important; }
    .organ-risk-page .organ-card-bottom-left { bottom: 0% !important; left: 2% !important; right: auto !important; top: auto !important; transform: none !important; }
    .organ-risk-page .organ-card-bottom-right { bottom: 10% !important; right: 2% !important; left: auto !important; top: auto !important; transform: none !important; }

    .organ-risk-page .connection-lines {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }

    .organ-risk-page .organ-card-score {
        font-size: 0.58rem !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-score { font-size: 0.58rem !important; }

    .organ-risk-page .organ-card-icon {
        font-size: 0.9rem !important;
        margin: 1px 0 !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-icon { font-size: 0.9rem !important; margin: 1px 0 !important; }

    .organ-risk-page .organ-card-title {
        font-size: 0.54rem !important;
        margin: 1px 0 !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-title { font-size: 0.54rem !important; margin: 1px 0 !important; }

    .organ-risk-page .organ-card-status {
        font-size: 0.48rem !important;
        padding: 1px 4px !important;
        margin: 1px 0 !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-status { font-size: 0.48rem !important; padding: 1px 4px !important; margin: 1px 0 !important; }

    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .navbar .container {
        padding: 0.8rem 12px;
    }

    .nav-brand h2 {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 100px 0 50px;
        margin-top: 50px;
    }

    /* Patient-type hero: later generic .hero-section rule must not add huge top padding on phones */
    .hero-section.hero-section--patient-type-hero {
        padding: 0 0 1rem;
        margin-top: 50px;
    }

    .hero-section--patient-type-hero > .hero-org-logo {
        width: clamp(92px, 30vw, 140px);
        left: max(0.35rem, env(safe-area-inset-left, 0px));
        top: max(0.25rem, env(safe-area-inset-top, 0px));
    }

    .hero-section--patient-type-hero > .container {
        padding-top: clamp(3.75rem, 24vw, 5.75rem);
    }

    .hero-section--patient-type-hero .hero-lead-cn {
        font-size: 1.05rem;
        line-height: 1.55;
    }

    .hero-section--patient-type-hero .hero-lead-en {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .mc-poster__box--pillars ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mc-poster__box--pillars li {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .mc-poster__cta {
        word-break: break-word;
    }

    .patient-type-disclaimer-box {
        padding: 12px 12px;
    }

    .patient-type-disclaimer-box p {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .form-section-card {
        padding: 20px 15px;
    }

    /* Small phones: push these two pages further up */
    .glucose-page-section {
        padding-top: 20mm !important;
    }

    .prediabetic-risk-page-section,
    .lifestyle-section {
        padding-top: 20mm !important;
    }

    .prediabetic-risk-page-section > .report-section-title:first-child {
        margin-top: 0 !important;
    }

    /* Diabetic report only: move these sections slightly down on small phones */
    .report-content.diabetic-layout .bmi-page-section {
        padding-top: 16mm !important;
    }

    .report-content.diabetic-layout .glucose-page-section {
        padding-top: 20mm !important;
    }

    .report-content.diabetic-layout .prediabetic-risk-page-section {
        padding-top: 20mm !important;
    }

    .report-title {
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
    }

    .report-cover-bottom {
        flex-direction: row;
        align-items: flex-start;
        gap: 6px;
        padding-top: 6px;
    }

    .report-cover-info-section {
        flex: 1;
        min-width: 0;
    }

    .report-cover-info-header {
        margin-bottom: 6px;
    }

    .report-cover-info-icon {
        width: 18px;
        height: 18px;
        margin-right: 4px;
        font-size: 12px;
    }

    .report-cover-info-title {
        font-size: 9px;
    }

    .report-cover-info-item {
        font-size: 9px;
        margin-bottom: 3px;
        line-height: 1.25;
    }

    .report-cover-info-label {
        min-width: 50px;
        font-size: 9px;
        margin-right: 3px;
    }

    .report-cover-info-value {
        font-size: 9px;
    }

    .report-cover-divider {
        display: block;
        width: 1px;
        background: #999;
        margin: 0 6px;
        align-self: stretch;
        min-height: 70px;
        flex-shrink: 0;
    }

    .report-section-with-bg:not(.bmi-page-section)::before {
        font-size: 0.62rem !important;
        line-height: 1.02 !important;
        top: 5.5mm !important;
        letter-spacing: 0 !important;
    }

    /* Extra compact for small phones: BMI, Blood Glucose, Prediabetic Risk */
    .bmi-page-section .bmi-title-cn {
        font-size: 0.72rem !important;
    }

    .bmi-page-section .bmi-title-en {
        font-size: 0.52rem !important;
    }

    .bmi-page-section .bmi-gauge-container {
        padding: 2px 3px !important;
        margin-top: 28px !important;
    }

    /* BMI categories: 2 columns on very small phones so all fit */
    .bmi-page-section .bmi-category-labels {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2px !important;
        margin-top: 2px !important;
    }

    .bmi-page-section .bmi-category-labels > div > div:nth-child(2),
    .bmi-page-section .bmi-category-labels > div > div:nth-child(3) {
        font-size: 0.32rem !important;
    }

    .bmi-page-section .bmi-category-labels > div > div:first-of-type {
        width: 3px !important;
        height: 3px !important;
        margin-bottom: 1px !important;
    }

    .bmi-page-section .bmi-bar-container {
        margin: 2px 0 4px 0 !important;
    }

    .bmi-page-section .bmi-bar-container > div:first-child {
        height: 9px !important;
    }

    /* Even smaller middle spacing on very small phones */
    .bmi-page-section .report-data-grid {
        margin-top: 8mm !important;
    }

    /* Very small phones: still keep Height/Weight/BMI in one row */
    .bmi-page-section .report-data-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .bmi-page-section .bmi-gauge-info {
        padding: 1px 3px !important;
        margin-top: 10px !important;
    }

    .bmi-page-section .bmi-gauge-info p {
        margin: 0 0 1px 0 !important;
    }

    .bmi-page-section .bmi-gauge-wrapper {
        height: 70px !important;
        max-width: 84% !important;
        margin-bottom: 4px !important;
    }

    .bmi-page-section .bmi-gauge-header h4,
    .bmi-page-section .bmi-meter-title {
        font-size: 0.48rem !important;
        margin-bottom: 2px !important;
    }

    .bmi-page-section .report-data-label,
    .glucose-page-section .report-data-label,
    .prediabetic-risk-page-section .report-data-label {
        font-size: 0.44rem !important;
    }

    .bmi-page-section .report-data-value,
    .glucose-page-section .report-data-value,
    .prediabetic-risk-page-section .report-data-value {
        font-size: 0.54rem !important;
    }

    .bmi-page-section .report-data-item {
        padding: 4px !important;
    }

    .bmi-page-section .report-analysis,
    .glucose-page-section .report-analysis,
    .prediabetic-risk-page-section .report-analysis {
        padding: 4px !important;
        margin-top: 4px !important;
    }

    .bmi-page-section .report-analysis h4,
    .glucose-page-section .report-analysis h4,
    .prediabetic-risk-page-section .report-analysis h4 {
        font-size: 0.6rem !important;
        margin-bottom: 3px !important;
    }

    .bmi-page-section .report-analysis p,
    .glucose-page-section .report-analysis p,
    .prediabetic-risk-page-section .report-analysis p {
        font-size: 0.42rem !important;
        line-height: 1.2 !important;
    }

    /* All report section titles even smaller on small phones */
    .report-content .report-section-title {
        font-size: 0.58rem !important;
    }

    .bmi-page-section .report-section-title,
    .glucose-page-section .report-section-title,
    .prediabetic-risk-page-section .report-section-title {
        font-size: 0.58rem !important;
    }

    .glucose-page-section .report-section-title + .report-section-title,
    .glucose-page-section .bp-section-title {
        margin-top: 4px !important;
    }

    .glucose-page-section .report-data-grid {
        gap: 3px !important;
        margin-bottom: 3px !important;
    }

    /* Extra compact Blood Glucose + Blood Pressure for small phones */
    .glucose-page-section .report-data-item {
        padding: 3px !important;
    }

    .glucose-page-section .report-data-label {
        font-size: 0.4rem !important;
    }

    .glucose-page-section .report-data-value {
        font-size: 0.5rem !important;
    }

    .glucose-page-section .report-section-title {
        font-size: 0.52rem !important;
        margin-bottom: 3px !important;
    }

    .glucose-page-section .report-analysis {
        padding: 3px !important;
        margin-top: 3px !important;
    }

    .glucose-page-section .report-analysis h4 {
        font-size: 0.52rem !important;
    }

    .glucose-page-section .report-analysis p {
        font-size: 0.42rem !important;
        line-height: 1.2 !important;
    }

    .glucose-page-section .report-status {
        font-size: 0.38rem !important;
        padding: 1px 3px !important;
    }

    .prediabetic-risk-page-section .risk-score-block {
        padding: 6px !important;
    }

    .prediabetic-risk-page-section .risk-score-value {
        font-size: 0.6rem !important;
        margin-bottom: 2px !important;
    }

    .prediabetic-risk-page-section .risk-score-pill {
        font-size: 0.44rem !important;
        padding: 1px 4px !important;
    }

    .prediabetic-risk-page-section .report-data-grid,
    .lifestyle-section .report-data-grid {
        gap: 3px !important;
        margin-bottom: 3px !important;
    }

    .prediabetic-risk-page-section .report-data-item,
    .lifestyle-section .report-data-item {
        padding: 3px !important;
    }

    .lifestyle-section .report-data-label {
        font-size: 0.4rem !important;
    }

    .lifestyle-section .report-data-value {
        font-size: 0.5rem !important;
    }

    .lifestyle-section .report-section-title {
        font-size: 0.52rem !important;
        margin-bottom: 3px !important;
    }

    .prediabetic-risk-page-section .report-data-grid + .report-section-title {
        margin-top: 4px !important;
    }

    .lifestyle-section .report-analysis {
        padding: 3px !important;
        margin-top: 3px !important;
    }

    .lifestyle-section .report-analysis h4 {
        font-size: 0.52rem !important;
    }

    .lifestyle-section .report-analysis p {
        font-size: 0.42rem !important;
        line-height: 1.2 !important;
    }

    .prediabetic-risk-page-section .risk-index-current {
        font-size: 0.56rem !important;
    }

    .prediabetic-risk-page-section .risk-index-legend {
        display: none !important;
    }

    .prediabetic-risk-page-section .risk-index-widget {
        padding: 3px 3px 2px !important;
    }

    .prediabetic-risk-page-section .risk-index-bar {
        height: 4px !important;
    }

    .prediabetic-risk-page-section .risk-index-marker {
        top: -13px !important;
    }

    .prediabetic-risk-page-section .risk-index-marker-badge {
        font-size: 0.28rem !important;
        max-width: 44px !important;
    }

    /* Extra compact organ cards for very small phones */
    .organ-risk-page .organ-card-positioned {
        width: 96px !important;
        padding: 2px !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-positioned { width: 96px !important; padding: 2px !important; }

    .organ-risk-page .organ-card-score {
        font-size: 0.5rem !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-score { font-size: 0.5rem !important; }

    .organ-risk-page .organ-card-icon {
        font-size: 0.78rem !important;
        margin: 1px 0 !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-icon { font-size: 0.78rem !important; margin: 1px 0 !important; }

    .organ-risk-page .organ-card-title {
        font-size: 0.48rem !important;
        margin: 0 !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-title { font-size: 0.48rem !important; margin: 0 !important; }

    .organ-risk-page .organ-card-status {
        font-size: 0.42rem !important;
        padding: 1px 3px !important;
        margin: 0 !important;
    }
    .report-content.diabetic-layout .organ-risk-page .organ-card-status { font-size: 0.42rem !important; padding: 1px 3px !important; margin: 0 !important; }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        padding: 12px 12px;
        font-size: 16px;
    }

    .form-hint {
        font-size: 0.8rem;
    }

    .btn-submit,
    .btn-reset {
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .report-header {
        padding: 25px 15px;
    }

    .report-title {
        font-size: 0.82rem !important;
    }

    .report-content {
        padding: 20px 15px;
    }

    .report-content .report-section-title {
        font-size: 0.68rem !important;
    }

    .report-data-value {
        font-size: 1.1rem;
    }

    .organ-risk-page .organ-risk-title-cn {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        margin-bottom: 1px !important;
    }

    .organ-risk-page .organ-risk-title-en {
        font-size: 0.56rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.03em !important;
    }

    .report-status {
        font-size: 0.72rem;
        padding: 3px 10px;
    }

    .cta-section-report {
        padding: 22px 14px;
    }

    .cta-header-badge {
        padding: 16px 14px;
    }

    .cta-free-label {
        font-size: 0.94rem;
        padding: 4px 10px;
    }

    .cta-main-title {
        font-size: 1.2rem;
    }

    .cta-sub-question {
        font-size: 0.92rem;
    }

    .cta-english-title {
        font-size: 0.82rem;
    }

    .cta-description {
        font-size: 0.9rem;
        padding: 12px 12px;
    }

    .cta-english-desc {
        font-size: 0.8rem;
    }

    .cta-benefits {
        padding: 15px;
        gap: 10px;
    }

    .cta-benefit-item {
        font-size: 0.9rem;
    }

    .cta-checkmark {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }

    .cta-main-button {
        padding: 14px 14px;
        font-size: 0.94rem;
    }

    .cta-button-cn {
        font-size: 0.95rem;
    }

    .cta-button-en {
        font-size: 0.8rem;
    }

    .cta-button-contact-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .cta-main-button {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .cta-qr-section-new {
        width: 100%;
        min-width: auto;
        padding: 15px;
    }

    .whatsapp-qr-placeholder-new {
        width: 100px;
        height: 100px;
    }

    .qr-code-icon {
        font-size: 2rem;
    }

    .cta-qr-text-new {
        font-size: 0.9rem;
    }

    .cta-qr-note {
        font-size: 0.75rem;
    }

    .whatsapp-qr-placeholder {
        width: 100px;
        height: 100px;
        font-size: 0.75rem;
    }

    .whatsapp-contact-section {
        margin-top: 25px;
        padding: 25px 15px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }

    .whatsapp-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .whatsapp-qr-placeholder {
        width: 140px;
        height: 140px;
        font-size: 0.9rem;
    }

    .whatsapp-link {
        padding: 16px 30px;
        font-size: 1.1rem;
    }

    .whatsapp-note {
        font-size: 0.9rem;
        margin-top: 15px;
    }

    .chart-container {
        padding: 20px 12px;
    }

    .chart-title {
        font-size: 1.3rem;
        font-weight: 700 !important;
    }

}

/* Large phones and small tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-legend {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets in landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-legend {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-submit,
    .btn-reset,
    .btn-print,
    .btn-back,
    .lang-btn {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
    }

    .nav-menu a {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .radio-label,
    .checkbox-label {
        min-height: 44px;
        padding: 12px;
    }

    .radio-label input[type="radio"],
    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }

    .form-group select {
        min-height: 44px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 0 40px;
    }

    .hero-section--patient-type-hero {
        padding: 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-toggle span {
        height: 2px;
    }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .navbar,
    .form-section,
    .footer,
    .btn-print,
    .btn-back,
    .nav-toggle {
        display: none !important;
    }

    .report-section {
        display: block !important;
        padding: 0;
        background: white;
        margin-top: 0;
    }

    .report-container {
        box-shadow: none;
    }

    .chart-container {
        page-break-inside: avoid;
    }

    .cta-section-report {
        background: linear-gradient(180deg, #E3F2FD 0%, #BBDEFB 50%, #E3F2FD 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cta-header-badge {
        background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
        border: 3px solid #FF9800 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cta-free-label {
        background: #FF9800 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cta-main-button {
        background: linear-gradient(135deg, #00BCD4 0%, #FF9800 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cta-checkmark {
        background: #2196F3 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cta-limited-badge {
        background: #FF9800 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .whatsapp-qr-placeholder {
        border: 2px solid #2196F3 !important;
    }

    /* 列印時強制與桌機預覽一致（覆寫 max-width 手機版 cover 全幅）— bodys.jpg 比例 = contain */
    .report-section-item.organ-risk-page {
        padding: 8mm 6mm 6mm 6mm !important;
        box-sizing: border-box !important;
    }

    .organ-risk-page .human-body-visualization-layout {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .organ-risk-page .body-silhouette-container {
        position: absolute !important;
        top: 40% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 210mm !important;
        height: 297mm !important;
        max-width: 210mm !important;
        max-height: 297mm !important;
        margin: 0 !important;
        overflow: hidden !important;
        transform: translate(-50%, calc(-50% + 5mm)) !important;
    }

    .organ-risk-page .human-body-image,
    .organ-risk-page .human-body-silhouette {
        width: 100% !important;
        height: 100% !important;
        max-width: 210mm !important;
        max-height: 297mm !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    /* Print only: 中风 / 心脏 / 神经 卡片略向左（不改螢幕與其他卡） */
    .organ-risk-page .organ-card-top-right[data-organ="stroke"] {
        transform: translateX(-12mm) !important;
    }
    .organ-risk-page .organ-card-middle-right[data-organ="heart"] {
        transform: translateX(-12mm) translateY(-50%) !important;
    }
    .organ-risk-page .organ-card-bottom-right[data-organ="nerves"] {
        transform: translateX(-12mm) translateY(-12mm) !important;
    }

    .organ-risk-page .organ-card-top-left[data-organ="eyes"] {
        transform: translateX(8mm) translateY(-7mm) !important;
    }
    .organ-risk-page .organ-card-middle-left[data-organ="kidneys"] {
        transform: translateX(8mm) translateY(-7mm) !important;
    }

    /* BMI 頁列印：縮小儀表、數據表、分析文字 */
    /* Repeat #reportContent rules so they win after any other @media print blocks */
    #reportContent.report-content .report-section-item.bmi-page-section {
        padding-top: 16mm !important;
        box-sizing: border-box !important;
    }
    #reportContent.report-content .report-section-item.bmi-page-section > div:first-of-type {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
    .bmi-page-section .bmi-title-cn {
        font-size: 1.05rem !important;
    }
    .bmi-page-section .bmi-title-en {
        font-size: 0.72rem !important;
    }
    .bmi-page-section > div:first-of-type {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
    /* Space below title only: graph + table + analysis move down; title block unchanged */
    #reportContent.report-content .bmi-page-section .bmi-gauge-container {
        margin-top: 17mm !important;
        margin-bottom: 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #reportContent.report-content .bmi-page-section .bmi-heading-block + .report-data-grid {
        margin-top: 17mm !important;
    }
    .bmi-page-section .bmi-gauge-container {
        padding: 10px 8px !important;
        margin-top: 17mm !important;
        margin-bottom: 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-shadow: none !important;
    }
    .bmi-page-section .bmi-gauge-header {
        padding-top: 8mm !important;
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }
    .bmi-page-section .bmi-gauge-header > div {
        font-size: 0.52rem !important;
        margin-bottom: 4px !important;
    }
    .bmi-page-section .bmi-gauge-header span[style*="font-size"] {
        font-size: 0.68rem !important;
    }
    .bmi-page-section .bmi-bar-container {
        margin: 6px 0 10px !important;
    }
    .bmi-page-section .bmi-bar-container > div:first-of-type {
        height: 22px !important;
        min-height: 22px !important;
    }
    .bmi-page-section .bmi-category-labels {
        gap: 2px !important;
        margin-top: 8px !important;
    }
    .bmi-page-section .bmi-category-labels div[style*="font-size"] {
        font-size: 0.48rem !important;
    }
    .bmi-page-section .bmi-gauge-info {
        margin-top: 10px !important;
        padding-top: 8px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        padding-bottom: 4px !important;
    }
    .bmi-page-section .bmi-gauge-info p {
        font-size: 0.62rem !important;
        line-height: 1.35 !important;
        margin: 3px 0 !important;
    }
    .bmi-page-section .report-data-grid {
        margin-top: 15mm !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }
    .bmi-page-section .report-data-item {
        padding: 4px 6px !important;
    }
    .bmi-page-section .report-data-label {
        font-size: 0.6rem !important;
        margin-bottom: 2px !important;
    }
    .bmi-page-section .report-data-value {
        font-size: 0.74rem !important;
        gap: 4px !important;
    }
    .bmi-page-section .report-status {
        padding: 2px 5px !important;
        font-size: 0.55rem !important;
    }
    .bmi-page-section .report-analysis {
        margin-top: calc(8mm + 6px) !important;
        padding: 9px 11px !important;
    }
    .bmi-page-section .report-analysis h4 {
        font-size: 0.84rem !important;
        margin: 0 0 7px 0 !important;
    }
    .bmi-page-section .report-analysis p {
        font-size: 0.72rem !important;
        line-height: 1.42 !important;
        margin: 0 !important;
    }
}
