/* ============================================
   BOOK PAGE STYLES
   ============================================ */

/* HERO */
.book-hero {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.book-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.book-hero-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.book-cover {
    position: relative;
    text-align: center;
}

.book-cover img {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 215, 0, 0.4);
    transition: transform 0.4s ease;
}

.book-cover img:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFD700;
    color: #0A0A0A;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.book-badge i { margin-right: 6px; }

.book-kicker {
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.book-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #FFD700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.book-tagline {
    font-size: 1.05rem;
    color: #ccc;
    font-style: italic;
    margin-bottom: 30px;
    border-left: 3px solid #FFD700;
    padding-left: 15px;
}

.book-formats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 14px 18px;
    border-radius: 12px;
    transition: all 0.3s;
}

.format-option:hover {
    background: rgba(255, 215, 0, 0.14);
    border-color: #FFD700;
}

.format-option i {
    font-size: 1.4rem;
    color: #FFD700;
    width: 28px;
    text-align: center;
}

.format-option div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.format-option strong {
    font-size: 0.95rem;
    color: #fff;
}

.format-option span:not(.format-price) {
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
}

.format-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFD700;
}

.btn-buy-book {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #ffc107 100%);
    color: #0A0A0A;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    margin-right: 12px;
    margin-bottom: 10px;
}

.btn-buy-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 215, 0, 0.55);
}

.btn-read-sample {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.btn-read-sample:hover {
    background: #FFD700;
    color: #0A0A0A;
    transform: translateY(-2px);
}

/* DESCRIPTION */
.book-description-section {
    padding: 70px 0;
    background: var(--off-white);
}

.description-block,
.about-author-block {
    max-width: 800px;
    margin: 0 auto 50px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.description-block h2,
.about-author-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-bottom: 3px solid #FFD700;
    display: inline-block;
    padding-bottom: 8px;
}

.description-block p,
.about-author-block p {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 18px;
}

.description-block .lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
    font-style: italic;
}

.description-block .closing-line {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #FFD700;
    color: var(--accent-red);
    font-size: 1.1rem;
}

/* ============================================
   MODAL (shared with events page)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.show { display: flex; }

.book-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}
.modal .close:hover { color: #FFD700; }

.book-modal-header {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
    color: #FFD700;
    padding: 25px 20px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.book-modal-header i {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 6px;
    display: block;
}

.book-modal-header h2 {
    color: #FFD700;
    font-size: 1.25rem;
    margin: 0;
}

.book-modal-header .modal-subtitle {
    color: #ccc;
    font-size: 0.8rem;
    margin-top: 5px;
}

.modal-body {
    padding: 20px;
    color: #333;
}

/* FORM GROUPS */
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
}
.form-group label i { color: var(--accent-red); margin-right: 8px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: all 0.3s;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}
.input-hint {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

/* FORMAT SELECTOR */
.format-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.format-btn i {
    font-size: 1.5rem;
    color: var(--accent-red);
}

.format-btn span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.format-btn small {
    font-size: 0.8rem;
    color: #666;
}

.format-btn:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
}

.format-btn.active {
    border-color: var(--accent-red);
    background: rgba(230, 57, 70, 0.08);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.15);
}

/* TERMS */
.terms-box {
    margin: 20px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #333;
}
.checkbox-label input { margin-top: 4px; }
.checkbox-label a { color: var(--accent-red); font-weight: 600; }

/* PAYMENT SECTION */
.payment-section-title {
    font-size: 1.05rem;
    margin: 25px 0 15px;
    color: #333;
}
.payment-section-title i { color: var(--accent-red); margin-right: 8px; }

.pay-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-method-wrapper { margin-bottom: 10px; }

.pay-method-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    box-sizing: border-box;
}
.pay-method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.pay-method-btn .btn-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pay-method-btn .btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pay-method-btn .btn-text span {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}
.pay-method-btn .btn-text small {
    font-size: 0.72rem;
    opacity: 0.9;
    margin-top: 2px;
}
.pay-method-btn .btn-arrow {
    transition: transform 0.3s;
    opacity: 0.85;
}
.pay-method-btn.active .btn-arrow { transform: rotate(180deg); }

.mpesa-btn { background: linear-gradient(135deg, #00c79c 0%, #009e7c 100%); }
.manual-btn { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }

/* SLIDE FORMS */
.slide-form {
    display: none;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    padding: 0 18px;
    margin-top: -6px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}
.slide-form.open {
    display: block;
    padding: 18px;
    margin-top: 6px;
    border: 1px solid #e5e7eb;
}

.btn-pay-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    box-sizing: border-box;
}
.btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.mpesa-pay { background: linear-gradient(135deg, #00c79c 0%, #009e7c 100%); }
.manual-pay { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }

/* SAMPLE MODAL BODY */
.sample-body {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    padding: 30px;
}
.sample-body p { margin-bottom: 18px; }
.sample-open {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    font-style: italic;
}
.sample-emphasis {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-red);
    margin: 30px 0 !important;
    padding: 15px;
    background: rgba(230, 57, 70, 0.06);
    border-radius: 12px;
    border-left: 4px solid var(--accent-red);
}
.sample-closing {
    text-align: center;
    color: #666;
    margin-top: 25px;
}
.sample-cta {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px dashed #e5e7eb;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .book-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .book-cover img { max-width: 260px; }
    .book-title { font-size: 2.3rem; }
    .book-subtitle { font-size: 1.05rem; }
    .book-tagline { text-align: left; }
    .format-option { text-align: left; }
}

@media (max-width: 600px) {
    .book-hero { padding: 45px 0; }
    .book-title { font-size: 1.9rem; }
    .description-block,
    .about-author-block { padding: 25px; }
    .description-block h2,
    .about-author-block h2 { font-size: 1.5rem; }
    .btn-buy-book,
    .btn-read-sample {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
    .format-selector { grid-template-columns: 1fr; }
    .book-modal-content { margin: 0; width: 100%; }
}