/* =============================================
   Canadian AI Insure Match - Linda Liang Personal Website
   Linda Liang Insurance Advisor - Ontario Licensed
   ============================================= */

:root {
    --primary: #1B4F72;
    --primary-light: #2E86C1;
    --secondary: #E74C3C;
    --accent: #27AE60;
    --gold: #F39C12;
    --dark: #1C2833;
    --gray: #566573;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

/* =========== NAVBAR =========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    padding: 16px 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
}
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.35rem; font-weight: 700;
    color: var(--primary); text-decoration: none;
    flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.logo-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}
.nav-links { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; flex-shrink: 1; min-width: 0; }
.nav-links a {
    color: var(--gray); text-decoration: none;
    font-weight: 500; transition: var(--transition); position: relative;
    white-space: nowrap; font-size: 0.88rem; letter-spacing: -0.01em;
    flex-shrink: 1; min-width: 0;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--secondary); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.mobile-menu-btn {
    display: none; background: none; border: none;
    font-size: 1.8rem; cursor: pointer; color: var(--primary);
}
.mobile-menu {
    background: white; padding: 10px 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.mobile-menu a {
    display: block; padding: 12px 0;
    color: var(--gray); text-decoration: none; font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a:last-child { border-bottom: none; }

/* =========== BUTTONS =========== */
.btn {
    padding: 8px 14px; border-radius: 7px; font-weight: 600;
    text-decoration: none; transition: var(--transition);
    cursor: pointer; border: none; font-size: 0.88rem; display: inline-block;
    white-space: nowrap; line-height: 1.3; flex-shrink: 0;
}
.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #C0392B);
    color: white !important; box-shadow: 0 4px 15px rgba(231,76,60,0.3);
    font-weight: 700; letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(231,76,60,0.4); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: var(--primary-light); }

/* =========== HERO =========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #1B4F72 50%, #2E86C1 100%);
    display: flex; align-items: center;
    padding: 120px 30px 80px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(231,76,60,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(39,174,96,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-container {
    max-width: 1300px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 60px; align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px; border-radius: 50px;
    color: var(--gold); font-size: 0.9rem;
    margin-bottom: 20px; backdrop-filter: blur(10px);
}
.hero h1 { font-size: 3.2rem; color: white; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span {
    background: linear-gradient(135deg, var(--gold), #F5B041);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 35px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 35px; margin-top: 50px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.3rem; font-weight: 700; color: var(--gold); }
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* AI Demo Card */
.ai-demo-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 30px; position: relative;
}
.ai-demo-header { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.ai-demo-header .ai-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--secondary), #C0392B);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; color: white;
}
.ai-demo-header h3 { color: white; font-size: 1.1rem; }
.ai-demo-header span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.voice-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 60px; margin: 20px 0; }
.voice-wave .bar { width: 5px; background: linear-gradient(to top, var(--accent), #2ECC71); border-radius: 3px; animation: wave 1s ease-in-out infinite; }
.voice-wave .bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.voice-wave .bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.voice-wave .bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.voice-wave .bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.voice-wave .bar:nth-child(5) { height: 55px; animation-delay: 0.4s; }
.voice-wave .bar:nth-child(6) { height: 30px; animation-delay: 0.5s; }
.voice-wave .bar:nth-child(7) { height: 45px; animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
.transcribed-text {
    background: rgba(255,255,255,0.08); border-radius: 12px;
    padding: 15px 20px; color: rgba(255,255,255,0.9);
    font-style: italic; margin-bottom: 20px;
    border-left: 3px solid var(--accent);
}
.extracted-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-chip {
    background: rgba(255,255,255,0.08); padding: 10px 15px;
    border-radius: 8px; display: flex; align-items: center; gap: 10px;
}
.info-chip .label { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.info-chip .value { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.mic-btn {
    width: 68px; height: 68px; border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), #C0392B);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: white;
    margin: 20px auto 15px; transition: var(--transition);
    box-shadow: 0 5px 25px rgba(231,76,60,0.4);
}
.mic-btn:hover { transform: scale(1.1); }
.mic-btn.recording { animation: pulse 1.5s ease-in-out infinite; background: linear-gradient(135deg, var(--accent), #27AE60); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.4); } 50% { box-shadow: 0 0 0 20px rgba(39,174,96,0); } }
.start-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--accent), #27AE60);
    color: white; border: none; border-radius: 10px;
    font-size: 1.05rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.start-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(39,174,96,0.4); }

/* =========== ABOUT SECTION =========== */
.about-section { padding: 100px 30px; background: var(--white); }
.section-container { max-width: 1200px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
.about-photo { text-align: center; }
.linda-avatar {
    width: 200px; height: 260px; border-radius: 12px;
    background: white;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover; object-position: center 20%;
    box-shadow: 0 10px 40px rgba(27,79,114,0.3);
    border: 3px solid white;
}
.linda-badge-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.linda-badge {
    background: rgba(27,79,114,0.08); color: var(--primary);
    border: 1px solid rgba(27,79,114,0.2);
    padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}
.linda-contact-quick { display: flex; flex-direction: column; gap: 10px; }
.contact-quick-btn {
    display: block; padding: 12px 20px;
    background: var(--light); border-radius: 8px;
    color: var(--dark); text-decoration: none;
    font-weight: 600; transition: var(--transition);
    font-size: 0.95rem;
}
.contact-quick-btn:hover { background: var(--primary); color: white; }
.about-tag {
    display: inline-block;
    background: rgba(231,76,60,0.08); color: var(--secondary);
    padding: 6px 16px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; margin-bottom: 15px;
}
.about-content h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--dark); }
.about-desc { color: var(--gray); margin-bottom: 15px; line-height: 1.8; font-size: 1.05rem; }
.about-credentials { margin: 25px 0; display: flex; flex-direction: column; gap: 15px; }
.credential-item { display: flex; align-items: flex-start; gap: 15px; }
.credential-icon { font-size: 1.5rem; }
.credential-item strong { display: block; color: var(--dark); margin-bottom: 3px; }
.credential-item p { color: var(--gray); font-size: 0.95rem; margin: 0; }
.about-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 25px; }

/* About Slogan & Services */
.about-slogan { margin: 20px 0; padding: 15px 20px; background: linear-gradient(135deg, rgba(27,79,114,0.05), rgba(46,134,193,0.05)); border-radius: 10px; border-left: 4px solid var(--primary); }
.slogan-en { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-bottom: 5px; font-style: italic; }
.slogan-cn { font-size: 1.05rem; color: var(--primary-light); font-weight: 500; }
.about-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }
.service-pillar { background: var(--light); padding: 15px; border-radius: 8px; text-align: center; }
.service-pillar h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 5px; }
.service-pillar p { font-size: 0.85rem; color: var(--gray); margin: 0; }

/* =========== FEATURES =========== */
.features { padding: 100px 30px; background: var(--light); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.4rem; color: var(--dark); margin-bottom: 15px; }
.section-header p { color: var(--gray); font-size: 1.1rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.feature-card {
    background: white; padding: 35px; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: var(--transition);
    position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.feature-icon {
    width: 65px; height: 65px;
    background: linear-gradient(135deg, rgba(27,79,114,0.1), rgba(46,134,193,0.1));
    border-radius: 16px; display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--dark); }
.feature-card p { color: var(--gray); line-height: 1.7; }

/* =========== HOW IT WORKS =========== */
.how-it-works { padding: 100px 30px; background: white; }
.steps-container { max-width: 1100px; margin: 0 auto; position: relative; }
.steps-line {
    position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
    width: 80%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 0;
}
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 1; }
.step-card { text-align: center; background: white; padding: 30px 20px; }
.step-number {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--secondary), #C0392B);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 700;
    margin: 0 auto 20px;
}
.step-icon { font-size: 2.5rem; margin-bottom: 15px; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--dark); }
.step-card p { color: var(--gray); font-size: 0.95rem; }

/* =========== INSURANCE TYPES =========== */
.insurance-types {
    padding: 100px 30px;
    background: linear-gradient(135deg, #0a1628 0%, #1B4F72 100%);
}
.insurance-types .section-header h2 { color: white; }
.insurance-types .section-header p { color: rgba(255,255,255,0.7); }
.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1300px; margin: 0 auto; }
.type-card {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 35px 25px;
    text-align: center; transition: var(--transition);
}
.type-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.type-icon { font-size: 3rem; margin-bottom: 15px; }
.type-card h3 { color: white; font-size: 1.2rem; margin-bottom: 12px; }
.type-card p { color: rgba(255,255,255,0.7); margin-bottom: 18px; font-size: 0.95rem; }
.type-features { text-align: left; list-style: none; }
.type-features li {
    color: rgba(255,255,255,0.8); padding: 6px 0;
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
}
.type-features li::before { content: '✓'; color: var(--accent); font-weight: bold; }

/* =========== TRUST SECTION =========== */
.trust-section { padding: 60px 30px; background: white; }
.trust-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item .icon { font-size: 2.5rem; margin-bottom: 10px; }
.trust-item h4 { color: var(--dark); margin-bottom: 5px; }
.trust-item p { color: var(--gray); font-size: 0.9rem; }

/* =========== CONTACT SECTION =========== */
.contact-section { padding: 100px 30px; background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; max-width: 1100px; margin: 0 auto; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 25px; color: var(--dark); }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon { font-size: 1.5rem; }
.contact-item strong { display: block; color: var(--dark); margin-bottom: 3px; }
.contact-item p { color: var(--gray); font-size: 0.95rem; margin: 0; }
.contact-form-wrap {
    background: white; border-radius: var(--radius);
    padding: 40px; box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 25px; color: var(--dark); }
.form-disclaimer { color: var(--gray); font-size: 0.85rem; margin-top: 12px; text-align: center; }

/* =========== CTA =========== */
.cta {
    padding: 100px 30px;
    background: linear-gradient(135deg, var(--secondary), #C0392B);
    text-align: center;
}
.cta h2 { font-size: 2.6rem; color: white; margin-bottom: 20px; }
.cta p { color: rgba(255,255,255,0.9); font-size: 1.2rem; max-width: 600px; margin: 0 auto 35px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--secondary); }
.btn-white:hover { background: var(--light); }
.btn-outline-white { border: 2px solid white; color: white !important; background: transparent; font-weight: 700; letter-spacing: 0.5px; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.btn-outline-white:hover { background: white; color: var(--secondary) !important; text-shadow: none; }

/* =========== FOOTER =========== */
.footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 60px 30px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; max-width: 1200px; margin: 0 auto 40px; }
.footer-brand .logo { color: white; margin-bottom: 20px; }
.footer-brand p { line-height: 1.8; margin-bottom: 10px; }
.social-links { display: flex; gap: 12px; margin-top: 15px; }
.social-links a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: white; text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover { background: var(--secondary); }
.footer-col h4 { color: white; font-size: 1.05rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); font-size: 0.95rem; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
    text-align: center; padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 1200px; margin: 0 auto;
}

/* =========== MATCHING PAGE =========== */
.matching-page { padding: 120px 30px 60px; background: var(--light); min-height: 100vh; }
.matching-container { max-width: 1000px; margin: 0 auto; }
.matching-header { text-align: center; margin-bottom: 50px; }
.matching-header h1 { font-size: 2.4rem; color: var(--dark); margin-bottom: 15px; }
.matching-header p { color: var(--gray); font-size: 1.1rem; }
.matching-progress { display: flex; justify-content: center; gap: 50px; margin-bottom: 40px; }
.progress-step { display: flex; align-items: center; gap: 10px; }
.progress-step .step-num {
    width: 35px; height: 35px; border-radius: 50%;
    background: #ddd; color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600;
}
.progress-step.active .step-num { background: var(--secondary); }
.progress-step.completed .step-num { background: var(--accent); }
.matching-form { background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-section { margin-bottom: 35px; padding-bottom: 35px; border-bottom: 1px solid #f0f0f0; }
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--dark); }
.form-group label span { color: var(--secondary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 18px;
    border: 2px solid #e0e0e0; border-radius: 8px;
    font-size: 1rem; transition: var(--transition);
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.insurance-type-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.type-option {
    border: 2px solid #e0e0e0; border-radius: 12px;
    padding: 22px 12px; text-align: center;
    cursor: pointer; transition: var(--transition);
}
.type-option:hover { border-color: var(--primary); }
.type-option.selected { border-color: var(--secondary); background: rgba(231,76,60,0.05); }
.type-option .icon { font-size: 2.2rem; margin-bottom: 8px; }
.type-option h4 { font-size: 1rem; margin-bottom: 4px; }
.type-option p { font-size: 0.85rem; color: var(--gray); }
.form-actions { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }

/* Results */
.results-section { display: none; margin-top: 40px; }
.results-section.show { display: block; }
.result-card {
    background: white; border-radius: var(--radius);
    padding: 30px; margin-bottom: 20px;
    box-shadow: var(--shadow); border-left: 5px solid var(--primary);
}
.result-card.recommended {
    border-left-color: var(--secondary);
    background: linear-gradient(135deg, rgba(231,76,60,0.03), white);
}
.result-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.result-company { display: flex; align-items: center; gap: 15px; }
.company-logo {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; color: white;
}
.company-info h3 { font-size: 1.2rem; margin-bottom: 5px; }
.company-info .rating { color: var(--gold); }
.result-price { text-align: right; }
.result-price .amount { font-size: 1.8rem; font-weight: 700; color: var(--secondary); }
.result-price .period { color: var(--gray); }
.result-recommended {
    display: inline-block; background: var(--secondary); color: white;
    padding: 4px 14px; border-radius: 20px; font-size: 0.82rem; margin-top: 8px;
}
.result-details {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    padding: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.detail-item h4 { font-size: 0.88rem; color: var(--gray); margin-bottom: 5px; }
.detail-item .value { font-size: 1.05rem; font-weight: 600; color: var(--dark); }
.result-actions { display: flex; gap: 15px; margin-top: 20px; }

/* Linda Direct Contact Card */
.linda-contact-card {
    background: linear-gradient(135deg, #0a1628, var(--primary));
    border-radius: var(--radius); padding: 35px;
    margin-top: 30px; color: white; text-align: center;
}
.linda-contact-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.linda-contact-card p { color: rgba(255,255,255,0.8); margin-bottom: 25px; }
.linda-contact-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.linda-contact-actions a {
    padding: 14px 28px; border-radius: 8px;
    font-weight: 600; text-decoration: none;
    transition: var(--transition); font-size: 1rem;
}
.btn-call { background: var(--accent); color: white; }
.btn-call:hover { background: #219A52; transform: translateY(-2px); }
.btn-email { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-email:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn-wechat { background: #07C160; color: white; }
.btn-wechat:hover { background: #06AD56; transform: translateY(-2px); }

/* =========== TOAST =========== */
.toast {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--accent); color: white;
    padding: 15px 25px; border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none; z-index: 3000; max-width: 350px;
    font-size: 0.95rem;
}
.toast.show { display: block; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* =========== ANIMATIONS =========== */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.loading {
    display: inline-block; width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: white;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========== RESPONSIVE =========== */
@media (max-width: 1200px) {
    .types-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.7rem; }
    .hero-stats { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .steps-line { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { display: flex; flex-direction: column; align-items: center; }
    .linda-contact-quick { flex-direction: row; justify-content: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 100px 20px 60px; }
    .hero h1 { font-size: 2.1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .features-grid, .types-grid, .team-grid, .steps-grid,
    .insurance-type-selector, .form-row, .result-details,
    .booking-services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .matching-progress { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .cta h2 { font-size: 2rem; }
    .linda-contact-actions { flex-direction: column; }
    .extracted-info { grid-template-columns: 1fr; }
    .booking-profile-banner { flex-direction: column; text-align: center; }
    .booking-cta-wrap { flex-direction: column; text-align: center; gap: 20px; }
    .booking-cta-buttons { flex-direction: column; align-items: center; }
}

/* =============================================
   One-on-One Booking Section
   ============================================= */

.booking-profile-banner {
    display: flex;
    align-items: center;
    gap: 36px;
    background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
    border-radius: 20px;
    padding: 40px 48px;
    margin: 0 auto 40px;
    max-width: 900px;
    color: #fff;
}

.booking-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.booking-profile-info h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}

.booking-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 12px;
    color: #FFD700;
    font-weight: 600;
}

.booking-desc {
    font-size: 0.95rem;
    opacity: 0.88;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #fff;
}

.booking-contact-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.booking-contact-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.booking-contact-btn:hover {
    background: rgba(255,255,255,0.3);
}

.booking-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 48px;
}

.booking-service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.booking-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.booking-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.booking-service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.booking-service-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 14px;
}

.booking-service-card ul {
    list-style: none;
    padding: 0;
}

.booking-service-card ul li {
    font-size: 0.85rem;
    color: var(--dark);
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.booking-service-card ul li::before {
    content: "✓";
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.8rem;
}

.booking-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f9fc;
    border-radius: 20px;
    padding: 40px 48px;
    max-width: 900px;
    margin: 0 auto;
    gap: 32px;
    border: 1px solid rgba(27,79,114,0.1);
}

.booking-cta-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.booking-cta-text p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

.booking-cta-buttons {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .booking-services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   Booking Calendar & Appointment Form
   ============================================= */

.booking-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.booking-note {
    margin-top: 24px;
    background: #EAF3DE;
    border-left: 4px solid var(--accent);
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #3B6D11;
    line-height: 1.6;
}

.booking-form-panel {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 28px 32px;
    border: 1px solid rgba(0,0,0,0.06);
}

.booking-step { }

.step-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

/* Calendar */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cal-header span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.cal-nav {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary);
    line-height: 1;
    transition: var(--transition);
}

.cal-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.cal-weekdays span {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray);
    padding: 4px 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: default;
    transition: var(--transition);
}

.cal-empty { }

.cal-disabled {
    color: #ccc;
    background: transparent;
}

.cal-today {
    font-weight: 700;
    border: 2px solid var(--primary-light);
    color: var(--primary);
}

.cal-available {
    color: var(--dark);
    cursor: pointer;
    background: #EAF3DE;
    color: #3B6D11;
    font-weight: 600;
}

.cal-available:hover {
    background: var(--primary);
    color: white;
}

.cal-selected {
    background: var(--primary) !important;
    color: white !important;
}

.cal-hint {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 10px;
    line-height: 1.5;
}

/* Timeslots */
.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.timeslot-btn {
    padding: 12px 8px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    background: white;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.timeslot-btn:hover {
    border-color: var(--primary-light);
    background: #E6F1FB;
    color: var(--primary);
}

.slot-selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.cal-back-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: var(--gray);
    cursor: pointer;
    margin-top: 8px;
    transition: var(--transition);
}

.cal-back-btn:hover {
    background: #f0f0f0;
    color: var(--dark);
}

/* Selected slot banner */
.selected-slot-banner {
    background: linear-gradient(135deg, #1B4F72, #2E86C1);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slot-confirm-icon { font-size: 1.1rem; }

/* Success State */
.booking-success {
    text-align: center;
    padding: 32px 16px;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.booking-success h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.booking-success p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* =============================================
   Promo Section · 保险促销专区（社交媒体引流）
   ============================================= */

.promo-section {
    background: #f7f9fc;
    padding: 80px 0;
}

.promo-hero-banner {
    position: relative;
    max-width: 960px;
    margin: 0 auto 48px;
    background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 60%, #F39C12 100%);
    border-radius: 20px;
    padding: 48px 52px;
    color: #fff;
    overflow: hidden;
}

.promo-badge-hot {
    position: absolute;
    top: 20px;
    right: -36px;
    background: #E74C3C;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 44px;
    transform: rotate(35deg);
    letter-spacing: 0.05em;
}

.promo-hero-content h3 {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: #fff;
}

.promo-hero-subtitle {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.92;
    max-width: 640px;
    color: #fff;
}

.promo-hero-highlights {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.promo-hero-highlights span {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

/* Promo Cards Grid */
.promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto 56px;
}

.promo-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.promo-card-tag {
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 36px;
    transform: rotate(35deg);
    letter-spacing: 0.04em;
}

.promo-card-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.promo-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.promo-card-desc {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 14px;
}

.promo-card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.promo-card-list li {
    font-size: 0.84rem;
    color: var(--dark);
    padding: 5px 0;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-card-list li::before {
    content: "✓";
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.78rem;
}

/* Bottom CTA for sharing */
.promo-bottom-cta {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.promo-bottom-cta h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.promo-bottom-cta p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.promo-share-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    color: #fff;
}

.share-whatsapp { background: #25D366; }
.share-whatsapp:hover { background: #1DA851; }

.share-email { background: var(--primary); }
.share-email:hover { background: var(--primary-dark); }

.share-sms { background: #E67E22; }
.share-sms:hover { background: #CA6F1E; }

/* Responsive */
@media (max-width: 1024px) {
    .promo-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .promo-cards-grid { grid-template-columns: 1fr; }
    .promo-hero-banner { padding: 32px 24px; }
    .promo-hero-content h3 { font-size: 1.2rem; }
    .promo-hero-highlights { flex-direction: column; gap: 8px; }
    .promo-bottom-cta { padding: 28px 20px; }
    .promo-share-row { flex-direction: column; align-items: center; }
}

/* =============================================
   Term Life Comparison Tool — 定期寿险比价（V3.0 全面升级版）
   Canadian AI Insure Match · Linda Liang
   ============================================= */
.compare-page {
    padding: 100px 30px 80px;
    background: linear-gradient(180deg, #F5F7FA 0%, #EDF2F7 50%, #F5F7FA 100%);
    min-height: 100vh;
}
.compare-container {
    max-width: 960px;
    margin: 0 auto;
}

/* ========== Page Header — Canadian Branding ========== */
.compare-page-header {
    margin-bottom: 28px;
    text-align: center;
    position: relative;
}
.header-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1B4F72, #2E86C1);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}
.compare-page-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a2a4a;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.header-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #2E86C1;
    font-style: italic;
}
.compare-page-header p {
    font-size: 0.95rem;
    color: #667085;
    line-height: 1.6;
    max-width: 600px;
    margin: 8px auto 0;
}

/* ========== Form Area — Two-row Grid with Brand Line ========== */
.compare-form {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 32px;
    border: 1px solid #E4E7EC;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.form-brand-line {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1B4F72, #2E86C1, #F39C12);
    border-radius: 14px 0 0 14px;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
    padding-left: 12px;
}
.form-row-2 {
    margin-top: 4px;
    align-items: flex-end;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}
.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #344054;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.form-group .req { color: #E74C3C; }
.form-group small {
    font-size: 0.72rem;
    color: #98A2B3;
    margin-top: 1px;
}
.form-group input[type="number"],
.form-group select {
    padding: 10px 13px;
    border: 1.5px solid #D0D5DD;
    border-radius: 9px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: #1a2a4a;
    transition: all 0.25s ease;
    min-width: 110px;
}
.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #2E86C1;
    box-shadow: 0 0 0 3px rgba(46,134,193,0.15), 0 0 12px rgba(46,134,193,0.08);
}

/* Radio Group — custom styled */
.radio-group {
    display: flex;
    gap: 14px;
    padding-top: 4px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    color: #344054;
    cursor: pointer;
    font-weight: 500;
    padding: 6px 14px;
    border: 1.5px solid #D0D5DD;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.radio-label:hover { border-color: #2E86C1; background: #F6FBFE; }
.radio-label input[type="radio"] { display: none; }
.radio-label:has(input:checked) {
    border-color: #1B4F72;
    background: #EBF5FF;
    color: #1B4F72;
    font-weight: 700;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #344054;
    cursor: pointer;
    padding-top: 22px;
    font-weight: 500;
}
.checkbox-label input[type="checkbox"] {
    accent-color: #E74C3C;
    cursor: pointer;
    width: 17px;
    height: 17px;
}

/* Health Class Selector — pill-style */
.form-group-health {
    min-width: 200px;
}
.health-select {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}
.health-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 11px;
    border: 1.5px solid #D0D5DD;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}
.health-option:hover { border-color: #98A2B3; }
.health-option.selected {
    box-shadow: 0 0 0 2px rgba(27,79,114,0.15);
}
.health-option[data-health="standard"].selected {
    border-color: #27AE60; background: #EEF9F0; color: #1B7A3A;
}
.health-option[data-health="preferred"].selected {
    border-color: #2E86C1; background: #EBF5FF; color: #1B4F72;
}
.health-option[data-health="substandard"].selected {
    border-color: #E67E22; background: #FEF5E7; color: #A04000;
}
.health-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.health-dot.green { background: #27AE60; }
.health-dot.blue { background: #2E86C1; }
.health-dot.orange { background: #E67E22; }

/* Submit Button — enhanced */
.form-group-btn { display: flex; align-items: flex-end; }
.btn-compare {
    padding: 11px 30px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #1B4F72, #2E86C1);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    height: 43px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(27,79,114,0.25);
}
.btn-compare:hover {
    background: linear-gradient(135deg, #164062, #1A6BA8);
    box-shadow: 0 5px 20px rgba(27,79,114,0.35);
    transform: translateY(-1px);
}
.btn-compare:active { transform: translateY(0); }
.btn-icon { font-size: 1.05rem; }

/* Loading — enhanced */
.compare-loading {
    display: none;
    text-align: center;
    padding: 48px 20px;
}
.compare-loading.show { display: block; }
.spinner {
    display: inline-block;
    width: 44px; height: 44px;
    border: 3.5px solid #E4E7EC;
    border-top-color: #2E86C1;
    border-right-color: #F39C12;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.compare-loading p {
    color: #667085; font-size: 0.95rem; margin-top: 16px; font-weight: 600;
}
.loading-hint {
    font-size: 0.8rem !important;
    color: #98A2B3 !important;
    font-weight: 400 !important;
    margin-top: 6px !important;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Results Area ========== */
.compare-results { display: none; }
.compare-results.show { display: block; }

/* Summary Panel — 3-card stats */
.results-summary-panel {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border: 1px solid #E4E7EC;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}
.summary-card {
    text-align: center;
    padding: 16px 12px;
    border-radius: 10px;
}
.summary-best { background: #EEF9F0; border: 1px solid #C3E6CB; }
.summary-avg { background: #EBF5FF; border: 1px solid #BFDEFC; }
.summary-save { background: #FEF5E7; border: 1px solid #F8D596; }
.summary-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.summary-best .summary-label { color: #1B7A3A; }
.summary-avg .summary-label { color: #1B4F72; }
.summary-save .summary-label { color: #A04000; }
.summary-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}
.summary-best .summary-value { color: #1B7A3A; }
.summary-avg .summary-value { color: #1B4F72; }
.summary-save .summary-value { color: #E67E22; }

.results-header { margin-bottom: 14px; }
.results-header h2 {
    font-size: 1.25rem; font-weight: 700; color: #1a2a4a; margin-bottom: 2px;
}
.results-sub {
    font-size: 0.88rem; color: #667085; margin: 0;
}
.results-sub h3 {
    font-size: 0.95rem; color: #1a2a4a; margin-bottom: 4px; font-weight: 700;
}
.best-price {
    font-size: 0.9rem; color: #1B7A3A; font-weight: 600;
}

/* ========== Bar Chart (CSS-only horizontal bars) ========== */
.chart-section {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #E4E7EC;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.chart-title {
    font-size: 1rem; font-weight: 700; color: #1a2a4a; margin-bottom: 18px;
}
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bar-label {
    width: 110px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #344054;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bar-track {
    flex: 1;
    height: 28px;
    background: #F2F4F7;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    min-width: 45px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bar-fill.best-bar { 
    box-shadow: 0 2px 8px rgba(39,174,96,0.3); 
}
.bar-value {
    width: 60px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a2a4a;
    flex-shrink: 0;
}

/* ========== Table — enhanced ========== */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #E4E7EC;
    background: #fff;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 0.93rem;
}
.compare-table thead th {
    background: linear-gradient(135deg, #1B4F72, #2E4A6E);
    color: #fff;
    padding: 13px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.compare-table thead th:first-child { text-align: left; border-radius: 0; }
.compare-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.compare-table thead th.sortable:hover {
    background: linear-gradient(135deg, #2E5F8E, #3A5F7E);
}
.compare-table thead th.sortable.active {
    background: linear-gradient(135deg, #2E86C1, #1B4F72);
}
.compare-table tbody td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid #F2F4F7;
    color: #344054;
    font-size: 0.9rem;
}
.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1a2a4a;
}
.compare-table tbody tr { transition: background 0.15s; }
.compare-table tbody tr:hover { background: #F9FBFD; }
.compare-table tbody tr.best-value { background: #EEF9F0; }
.compare-table tbody tr.best-value td:first-child { color: #1B7A3A; }

/* Premium styling */
.premium-lowest { color: #1B7A3A; font-weight: 800; font-size: 1.02rem; }
.premium-save { color: #E74C3C; font-weight: 700; font-size: 0.85rem; }
.badge-best {
    display: inline-block;
    background: linear-gradient(135deg, #27AE60, #1B7A3A);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    vertical-align: middle;
}
.badge-rating {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
}
.badge-aa { background: #F39C12; }
.badge-aplus { background: #27AE60; }
.badge-a { background: #2E86C1; }
.badge-bplus { background: #98A2B3; }

/* Company cell */
.company-cell {
    display: flex; align-items: center; gap: 8px;
}
.company-logo-small {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.75rem; font-weight: 800; flex-shrink: 0;
}
.company-name-text { font-weight: 600; }

/* Action button in table */
.btn-select-plan {
    padding: 5px 12px;
    border: 1.5px solid #2E86C1;
    border-radius: 6px;
    background: #fff;
    color: #2E86C1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-select-plan:hover {
    background: #2E86C1; color: #fff;
}

/* Note below table */
.compare-note {
    margin-top: 14px;
    padding: 14px 18px;
    background: #FFF9E6;
    border-radius: 10px;
    border: 1px solid #FFE58F;
}
.compare-note p {
    font-size: 0.8rem;
    color: #8B6914;
    line-height: 1.65;
    margin: 0;
}

/* ========== CTA — Blue-Gold Gradient ========== */
.compare-cta {
    border-radius: 14px;
    padding: 0;
    margin-top: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #1B4F72 0%, #2E4A6E 50%, #1a3a5c 100%);
    border: none;
    box-shadow: 0 6px 24px rgba(27,79,114,0.2);
}
.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 36px;
    gap: 28px;
}
.cta-text h3 {
    font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 8px;
}
.cta-text p {
    font-size: 0.88rem; color: rgba(255,255,255,0.85); line-height: 1.65; margin: 0 0 12px;
}
.cta-text strong { color: #F39C12; }
.cta-contact-preview {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
}
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.cta-btn-primary {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
    text-align: center;
    box-shadow: 0 3px 12px rgba(243,156,18,0.3);
}
.cta-btn-primary:hover {
    background: linear-gradient(135deg, #E67E22, #D35400);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(243,156,18,0.4);
}
.cta-btn-wa {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    text-align: center;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.cta-btn-wa:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

/* ========== Knowledge Card — Term Life 101 ========== */
.knowledge-card {
    background: #fff;
    border-radius: 14px;
    margin-top: 36px;
    border: 1px solid #E4E7EC;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.knowledge-header {
    background: linear-gradient(135deg, #f8f9fc, #eef3f9);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #E4E7EC;
}
.knowledge-icon { font-size: 1.4rem; }
.knowledge-header h3 {
    font-size: 1.08rem; font-weight: 700; color: #1a2a4a; margin: 0;
}
.knowledge-body { padding: 24px 28px; }
.knowledge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.knowledge-col h4 {
    font-size: 0.92rem; font-weight: 700; margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 2px solid;
}
.suitable h4 { color: #1B7A3A; border-color: #C3E6CB; }
.not-suitable h4 { color: #E74C3C; border-color: #FADBD8; }
.knowledge-col ul {
    list-style: none; padding: 0; margin: 0;
}
.knowledge-col li {
    font-size: 0.84rem; color: #444; padding: 5px 0;
    padding-left: 18px; position: relative; line-height: 1.55;
}
.suitable li::before { content: "✅"; position: absolute; left: 0; font-size: 0.75rem; }
.not-suitable li::before { content: "❌"; position: absolute; left: 0; font-size: 0.75rem; }

/* FAQ Accordion */
.faq-section h4 {
    font-size: 0.95rem; font-weight: 700; color: #1a2a4a; margin-bottom: 10px;
    padding-top: 16px; border-top: 1px solid #EEE;
}
.faq-item {
    background: #FAFBFC; border: 1px solid #E4E7EC;
    border-radius: 8px; margin-bottom: 8px; overflow: hidden;
}
.faq-item summary {
    padding: 12px 16px;
    font-size: 0.87rem; font-weight: 600; color: #1a2a4a;
    cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
    transition: background 0.2s;
}
.faq-item summary::before {
    content: "▸"; font-size: 0.8rem; color: #2E86C1; transition: transform 0.2s;
}
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item summary:hover { background: #F0F3F7; }
.faq-item p {
    padding: 0 16px 14px; margin: 0;
    font-size: 0.83rem; color: #555; line-height: 1.7;
}
.faq-item p strong { color: #1B4F72; }

/* ========== Floating Reset Button ========== */
.float-reset-btn {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 900;
    padding: 12px 22px;
    border: none; border-radius: 30px;
    background: linear-gradient(135deg, #1B4F72, #2E86C1);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(27,79,114,0.3);
    transition: all 0.25s;
    animation: floatPulse 2s infinite;
}
.float-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(27,79,114,0.4);
}
@keyframes floatPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(27,79,114,0.3); }
    50% { box-shadow: 0 4px 24px rgba(27,79,114,0.5); }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .compare-page { padding: 88px 14px 60px; }
    .compare-page-header h1 { font-size: 1.4rem; flex-direction: column; gap: 4px; }
    .header-subtitle { font-size: 0.88rem; }
    .compare-form { padding: 20px 16px 20px 20px; }
    .form-brand-line { width: 3px; }
    .form-row, .form-row-2 { flex-direction: column; align-items: stretch; gap: 14px; }
    .form-row { padding-left: 8px; }
    .form-group { min-width: unset; }
    .form-group input[type="number"],
    .form-group select { width: 100%; min-width: unset; }
    .health-select { flex-wrap: wrap; }
    .form-group-health { min-width: unset; }
    .btn-compare { width: 100%; justify-content: center; height: 48px; font-size: 1.05rem; }
    
    /* Summary cards stack */
    .summary-cards { grid-template-columns: 1fr; gap: 10px; }
    .summary-value { font-size: 1.2rem; }
    
    /* CTA stacks */
    .cta-content { flex-direction: column; padding: 24px 20px; text-align: center; }
    .cta-buttons { width: 100%; }
    .cta-btn-primary, .cta-btn-wa { width: 100%; }
    .cta-contact-preview { justify-content: center; }
    
    /* Knowledge card stacks */
    .knowledge-grid { grid-template-columns: 1fr; gap: 18px; }
    .knowledge-body { padding: 18px 18px; }
    
    /* Table responsive */
    .compare-table thead th { font-size: 0.76rem; padding: 9px 8px; }
    .compare-table tbody td { font-size: 0.82rem; padding: 9px 8px; }
    .bar-label { width: 80px; font-size: 0.75rem; }
    .bar-value { width: 50px; font-size: 0.78rem; }
    
    /* Float button adjust */
    .float-reset-btn { bottom: 18px; right: 16px; padding: 10px 18px; font-size: 0.82rem; }
}
