/* === Life Insurance Guide Page === */

/* Hero */
.guide-hero {
    background: linear-gradient(160deg, var(--charcoal) 0%, var(--ink) 100%);
    color: white;
    padding: var(--space-4xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}
.guide-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}
.guide-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.guide-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: white;
    padding: 6px var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-fine);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}
.guide-hero-text h1 {
    font-family: var(--font-heading);
    font-size: var(--text-display);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    letter-spacing: -0.3px;
}
.guide-hero-text > p {
    font-size: var(--text-lead);
    opacity: 0.75;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}
.guide-hero-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}
.guide-hero-meta span {
    font-size: var(--text-body-sm);
    font-weight: 500;
    opacity: 0.7;
    padding-left: 20px;
    position: relative;
}
.guide-hero-meta span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
}
.guide-hero-author {
    font-size: var(--text-body-sm);
    opacity: 0.5;
}

/* Hero Form */
.guide-hero-form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    backdrop-filter: blur(20px);
}
.guide-hero-form h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    margin-bottom: var(--space-sm);
}
.guide-hero-form > p {
    font-size: var(--text-body-sm);
    opacity: 0.6;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}
.guide-form-group {
    margin-bottom: var(--space-md);
}
.guide-form-label {
    display: block;
    font-size: var(--text-ui);
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.guide-form-input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    color: white;
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all var(--ease-short);
}
.guide-form-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.guide-form-input:focus {
    outline: none;
    border-color: var(--form-input-focus-border);
    background: rgba(255,255,255,0.12);
    box-shadow: var(--form-input-focus-shadow);
}
.guide-submit-btn {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-lead);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ease-short);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    box-shadow: 0 4px 14px rgba(4,120,87,0.25);
}
.guide-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4,120,87,0.35);
}
.guide-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.guide-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.guide-trust svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}
.field-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
}

/* Table of Contents */
.guide-toc {
    padding: 60px 0;
    background: white;
}
.guide-toc h2 {
    font-family: var(--font-heading);
    font-size: 33px;
    text-align: center;
    margin-bottom: 32px;
    color: var(--ink);
}
.toc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
.toc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--cloud);
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s ease;
}
.toc-item:hover {
    border-color: var(--green);
    background: var(--green-glow);
    transform: translateY(-2px);
}
.toc-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lead);
    margin-bottom: 12px;
}
.toc-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate);
}

/* Guide Sections */
.guide-section {
    padding: var(--space-4xl) 0;
}
.guide-section-alt {
    background: var(--warm);
}
.guide-section-label {
    color: var(--green);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.guide-section h2 {
    font-family: var(--font-heading);
    font-size: var(--text-display);
    color: var(--ink);
    margin-bottom: var(--space-xl);
    line-height: 1.15;
    letter-spacing: -0.3px;
}
.guide-prose {
    max-width: 780px;
    margin: 0 auto;
    font-size: var(--text-lead);
    line-height: 1.8;
    color: var(--slate);
}
.guide-prose h3 {
    font-family: var(--font-heading);
    font-size: 25px;
    color: var(--ink);
    margin: 40px 0 12px;
}
.guide-prose h3:first-child {
    margin-top: 0;
}
.guide-prose p {
    margin-bottom: 16px;
}

/* Pro Tip */
.guide-tip {
    background: var(--green-glow);
    border-left: 4px solid var(--green);
    padding: var(--space-lg) var(--space-lg);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--ink);
    line-height: 1.7;
}

/* Best For */
.guide-best-for {
    color: var(--green);
    font-style: italic;
    margin-bottom: 16px;
    font-size: 16px;
}

/* Story Cards */
.guide-story {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-lg) 0 var(--space-xl);
    box-shadow: var(--shadow-sm);
}
.guide-section-alt .guide-story {
    background: white;
}
.guide-story h4 {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 12px;
}
.guide-story p {
    font-style: italic;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Coverage Grid */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}
.coverage-item {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-medium);
}
.coverage-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.coverage-item h4 {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 8px;
}
.coverage-item p {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Tables */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: var(--space-lg) 0;
}
.guide-table th {
    background: linear-gradient(135deg, var(--charcoal), var(--ink));
    color: white;
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: 600;
    font-size: var(--text-base);
}
.guide-table td {
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--cloud);
    font-size: var(--text-ui);
    color: var(--slate);
    transition: background var(--ease-short);
}
.guide-table tbody tr:hover td {
    background: var(--green-glow);
}
.guide-table tr:nth-child(even) td {
    background: var(--warm);
}

/* CTA Section */
.guide-cta {
    background: linear-gradient(160deg, var(--charcoal) 0%, var(--ink) 100%);
    color: white;
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.guide-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(4, 120, 87, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.guide-cta h2 {
    font-family: var(--font-heading);
    font-size: var(--text-display);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.3px;
    position: relative;
}
.guide-cta > .container > p {
    max-width: 640px;
    margin: 0 auto 16px;
    opacity: 0.75;
    line-height: 1.7;
}
.guide-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 32px 0;
}
.guide-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-lead);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--ease-short);
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
    position: relative;
}
.guide-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.35);
}
.guide-cta-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.guide-cta-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}
.guide-cta-author {
    margin-top: 32px;
    font-size: 15px;
    opacity: 0.6;
    line-height: 1.6;
}
.guide-disclaimer {
    font-size: 12px;
    opacity: 0.35;
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-hero {
        padding: 80px 0 60px;
    }
    .guide-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .guide-hero-text h1 {
        font-size: 33px;
    }
    .guide-hero-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    .toc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .toc-item {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 16px 20px;
    }
    .toc-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .guide-section h2 {
        font-size: 29px;
    }
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    .guide-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .guide-cta-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .guide-hero-form {
        padding: 28px;
    }
    .guide-table {
        font-size: 14px;
    }
    .guide-table th,
    .guide-table td {
        padding: 10px 12px;
    }
}
