/* Ebook Generator Styles */
#ebook-app .step-container {
    animation: fadeIn 0.3s ease-in-out;
}

#ebook-app h2 {
    color: #1B3A6B;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #F7941D;
    padding-bottom: 10px;
    display: inline-block;
}

#ebook-app .cancer-grid, #ebook-app .stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

#ebook-app .cancer-tile, #ebook-app .stage-tile {
    border: 1px solid #C8DAE8;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

#ebook-app .cancer-tile:hover, #ebook-app .stage-tile:hover {
    border-color: #38B6FE;
    background: #F0F8FD;
}

#ebook-app .cancer-tile.active, #ebook-app .stage-tile.active {
    border-color: #1B3A6B;
    background: #E1EFF6;
    box-shadow: 0 4px 10px rgba(0,72,105,0.1);
}

#ebook-app .cancer-tile .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

#ebook-app .cancer-tile .label, #ebook-app .stage-tile .label {
    font-weight: 700;
    color: #1B3A6B;
}

#ebook-app .stage-tile .sub {
    font-size: 11px;
    color: #5A7384;
}

#ebook-app .form-row {
    display: flex;
    gap: 20px;
}

#ebook-app .form-group {
    margin-bottom: 20px;
    flex: 1;
}

#ebook-app label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #1B3A6B;
    font-size: 14px;
}

#ebook-app input, #ebook-app select {
    width: 100%;
    padding: 10px;
    border: 1px solid #C8DAE8;
    border-radius: 5px;
}

#ebook-app .btn-xp {
    background: #F7941D;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

#ebook-app .btn-xp:hover {
    background: #e08316;
}

#ebook-app .btn-xp:disabled {
    background: #C8DAE8;
    cursor: not-allowed;
}

#ebook-app .btn-xp.outline {
    background: transparent;
    border: 2px solid #1B3A6B;
    color: #1B3A6B;
}

#ebook-app .back-link {
    background: none;
    border: none;
    color: #38B6FE;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 0;
}

/* Guide Styles - Professional Report Look */
.guide-scroll-container {
    background: #f4f7f9;
    padding: 20px;
}

.guide-page {
    background: #fff;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 60px 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    min-height: 1000px;
    display: flex;
    flex-direction: column;
}

.cover-page {
    background: linear-gradient(135deg, #1B3A6B 0%, #0d1d36 100%);
    color: #fff;
    text-align: center;
    justify-content: center;
    padding: 0;
}

.cover-content {
    padding: 40px;
}

.brand-line {
    font-size: 14px;
    letter-spacing: 4px;
    color: #38B6FE;
    margin-bottom: 20px;
}

.guide-title {
    font-size: 56px !important;
    color: #fff !important;
    margin: 20px 0 !important;
    line-height: 1.1;
    text-transform: uppercase;
    border: none !important;
}

.stage-tag {
    background: #F7941D;
    padding: 8px 20px;
    display: inline-block;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 40px;
}

.personal-greeting {
    font-size: 20px;
    color: #C8DAE8;
    margin-bottom: 60px;
}

.cover-footer {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
}

.section-title {
    font-size: 32px;
    color: #1B3A6B;
    margin-bottom: 30px;
    font-weight: 700;
}

.section-header {
    font-size: 24px;
    color: #F7941D;
    margin-bottom: 20px;
    border-bottom: 2px solid #C8DAE8;
    padding-bottom: 10px;
}

.guide-text {
    font-size: 18px;
    line-height: 1.6;
    color: #1C2B38;
    margin-bottom: 25px;
}

.quote-box {
    background: #F0F8FD;
    padding: 30px;
    border-left: 5px solid #38B6FE;
    font-style: italic;
    font-size: 18px;
    margin: 40px 0;
    color: #1B3A6B;
}

.quote-author {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
    text-align: right;
}

.callout-box {
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.callout-box.orange {
    background: #FFF5E9;
    border: 1px solid #F7941D;
}

.brand-callout {
    background: #E1EFF6;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    margin-top: auto;
}

.brand-callout a {
    color: #1B3A6B;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.trial-card {
    border-bottom: 1px solid #C8DAE8;
    padding: 20px 0;
}

.trial-id {
    color: #38B6FE;
    font-weight: 700;
    font-size: 14px;
}

.trial-title {
    font-weight: 700;
    font-size: 18px;
    margin: 5px 0;
    color: #1B3A6B;
}

.trial-meta {
    font-size: 14px;
    color: #5A7384;
}

.questions-list {
    list-style: none;
    padding: 0;
}

.questions-list li {
    padding: 15px 0 15px 40px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
}

.questions-list li::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 15px;
    width: 25px;
    height: 25px;
    background: #38B6FE;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    font-size: 12px;
    font-weight: 700;
}

.notes-section {
    margin-top: 40px;
    border: 1px solid #C8DAE8;
    padding: 20px;
}

.notes-lines {
    min-height: 150px;
    background-image: linear-gradient(#eee 1px, transparent 1px);
    background-size: 100% 30px;
}

.resource-item {
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #C8DAE8;
}

.resource-item.priority {
    border-left: 5px solid #F7941D;
}

.res-name {
    font-weight: 700;
    font-size: 18px;
    color: #1B3A6B;
}

.encouragement-page {
    text-align: center;
    justify-content: center;
}

.loading-inline {
    padding: 40px;
    text-align: center;
    color: #5A7384;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
    .guide-scroll-container { padding: 0 !important; background: #fff !important; }
    .guide-page { 
        margin: 0 !important; 
        box-shadow: none !important; 
        min-height: 100vh !important;
        page-break-after: always !important;
        padding: 0.5in !important;
        /* Ensure backgrounds and images print */
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
    .cover-page {
        height: 100vh !important;
    }
}

@media (max-width: 768px) {
    .guide-page {
        padding: 40px 20px;
    }
    .guide-title {
        font-size: 36px !important;
    }
}
