/* =========================================================
   BookX website (makservices.in/bookx) - common styles
   Brand: purple #5B3FD9, blue #1A56DB, green #16A34A, navy #0F172A
   ========================================================= */

:root {
    --bx-primary: #5B3FD9;
    --bx-primary-dark: #4329B8;
    --bx-primary-light: #EEEAFE;
    --bx-blue: #1A56DB;
    --bx-green: #16A34A;
    --bx-orange: #F59E0B;
    --bx-navy: #0F172A;
    --bx-text: #1F2937;
    --bx-muted: #64748B;
    --bx-bg: #F8F7FF;
    --bx-border: #E5E7EB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: var(--bx-text);
    overflow-x: hidden;
    line-height: 1.7;
}
a { text-decoration: none; color: var(--bx-primary); }
a:hover { color: var(--bx-primary-dark); }
img { max-width: 100%; }


/* ---------- Fallback grid (Bootstrap CDN load kakapoyina layout padakudadhu) ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.row { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
.row > [class*="col-"] { width: 100%; padding-left: 12px; padding-right: 12px; }
.row.g-4 { row-gap: 24px; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
@media (min-width: 576px) { .col-6 { width: 50% !important; } }
.row > .col-6 { width: 50%; }
@media (min-width: 768px) { .row > .col-md-6 { width: 50%; } }
@media (min-width: 992px) {
    .row > .col-lg-2 { width: 16.6667%; }
    .row > .col-lg-3 { width: 25%; }
    .row > .col-lg-4 { width: 33.3333%; }
    .row > .col-lg-6 { width: 50%; }
    .row > .col-lg-8 { width: 66.6667%; }
    .row > .col-lg-9 { width: 75%; }
    .text-lg-end { text-align: right; }
}
/* FAQ fallback (JS lekapothe anni open) */
.accordion-button { width: 100%; text-align: left; background: #fff; border: 0; font-family: inherit; font-size: 16px; color: var(--bx-navy); cursor: pointer; }
.accordion-header { margin: 0; }

/* ---------- Header ---------- */
.bx-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(15,23,42,.06);
}
.bx-header .bx-nav {
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
}
.bx-brand { display: flex; align-items: center; gap: 10px; color: var(--bx-navy); font-weight: 800; font-size: 24px; }
.bx-brand img { height: 42px; width: 42px; border-radius: 10px; object-fit: cover; }
.bx-brand span b { color: var(--bx-primary); }
.bx-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; }
.bx-menu a { color: var(--bx-navy); font-weight: 600; font-size: 15px; }
.bx-menu a:hover, .bx-menu a.active { color: var(--bx-primary); }
.bx-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bx-primary); color: #fff !important;
    padding: 12px 26px; border-radius: 40px; font-weight: 600;
    transition: .3s; border: 0;
}
.bx-btn:hover { background: var(--bx-navy); transform: translateY(-2px); }
.bx-btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    border: 2px solid #fff; color: #fff !important;
    padding: 12px 26px; border-radius: 40px; font-weight: 600; transition: .3s;
}
.bx-btn-outline:hover { background: #fff; color: var(--bx-primary) !important; }
.bx-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--bx-navy); }

/* ---------- Hero ---------- */
.bx-hero {
    background: linear-gradient(135deg, #2E1A8F 0%, var(--bx-primary) 45%, var(--bx-blue) 100%);
    color: #fff; padding: 90px 0 80px; position: relative; overflow: hidden;
}
.bx-hero::after {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.bx-hero .bx-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15); padding: 6px 16px; border-radius: 30px;
    font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 18px;
}
.bx-hero h1 { font-size: 54px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.bx-hero h1 span { color: #FDE68A; }
.bx-hero p.lead { font-size: 18px; color: #E0E7FF; margin-bottom: 32px; max-width: 560px; }
.bx-hero .bx-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.bx-hero-img { position: relative; z-index: 2; text-align: center; }
.bx-hero-img img { max-height: 520px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); animation: bxFloat 4s ease-in-out infinite; }
.bx-hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.bx-hero-stats div b { display: block; font-size: 26px; font-weight: 800; }
.bx-hero-stats div small { color: #C7D2FE; }
@keyframes bxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Sections ---------- */
.bx-section { padding: 90px 0; }
.bx-section.alt { background: var(--bx-bg); }
.bx-title { text-align: center; margin-bottom: 50px; }
.bx-title h5 { color: var(--bx-primary); font-weight: 700; letter-spacing: 3px; font-size: 14px; }
.bx-title h2 { font-size: 38px; font-weight: 800; color: var(--bx-navy); margin-top: 8px; }
.bx-title p { color: var(--bx-muted); max-width: 640px; margin: 12px auto 0; }

.bx-card {
    background: #fff; border-radius: 20px; padding: 34px 28px; height: 100%;
    box-shadow: 0 12px 34px rgba(15,23,42,.07); transition: .35s;
    border: 1px solid transparent;
}
.bx-card:hover { transform: translateY(-8px); border-color: var(--bx-primary-light); box-shadow: 0 20px 44px rgba(91,63,217,.15); }
.bx-icon {
    width: 64px; height: 64px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 20px;
    background: var(--bx-primary-light); color: var(--bx-primary);
}
.bx-icon.green { background: #DCFCE7; color: var(--bx-green); }
.bx-icon.blue { background: #DBEAFE; color: var(--bx-blue); }
.bx-icon.orange { background: #FEF3C7; color: #D97706; }
.bx-icon.pink { background: #FCE7F3; color: #DB2777; }
.bx-card h3 { font-size: 20px; font-weight: 700; color: var(--bx-navy); margin-bottom: 10px; }
.bx-card p { color: var(--bx-muted); font-size: 15px; margin: 0; }

/* Steps */
.bx-step { display: flex; gap: 18px; margin-bottom: 26px; }
.bx-step .num {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
    background: var(--bx-primary); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.bx-step h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--bx-navy); }
.bx-step p { color: var(--bx-muted); margin: 0; font-size: 15px; }
.bx-panel { background: #fff; border-radius: 22px; padding: 36px; box-shadow: 0 12px 34px rgba(15,23,42,.07); height: 100%; }
.bx-panel h3 { font-weight: 800; color: var(--bx-navy); margin-bottom: 24px; }
.bx-panel h3 i { color: var(--bx-primary); margin-right: 8px; }

/* Categories */
.bx-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.bx-cats span {
    background: #fff; border: 1px solid var(--bx-border); border-radius: 40px;
    padding: 10px 20px; font-weight: 600; color: var(--bx-navy); font-size: 15px;
}
.bx-cats span i { color: var(--bx-primary); margin-right: 8px; }

/* CTA */
.bx-cta { background: linear-gradient(135deg, var(--bx-navy), var(--bx-primary)); color: #fff; padding: 80px 0; }
.bx-cta h2 { font-size: 40px; font-weight: 800; }
.bx-cta p { color: #E0E7FF; font-size: 17px; }
.bx-store {
    display: inline-flex; align-items: center; gap: 12px;
    background: #fff; color: var(--bx-navy) !important;
    padding: 12px 26px; border-radius: 14px; font-weight: 700; transition: .3s;
}
.bx-store i { font-size: 28px; color: var(--bx-green); }
.bx-store small { display: block; font-size: 11px; font-weight: 500; color: var(--bx-muted); }
.bx-store:hover { transform: translateY(-4px); }

/* FAQ */
.bx-faq .accordion-item { border: 0; margin-bottom: 14px; border-radius: 14px !important; overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.bx-faq .accordion-button { font-weight: 600; padding: 20px; }
.bx-faq .accordion-button:not(.collapsed) { background: var(--bx-primary); color: #fff; box-shadow: none; }
.bx-faq .accordion-button:focus { box-shadow: none; }
.bx-faq .accordion-body { color: var(--bx-muted); }

/* ---------- Legal pages ---------- */
.bx-page-hero { background: linear-gradient(135deg, #2E1A8F, var(--bx-primary)); color: #fff; padding: 60px 0 50px; }
.bx-page-hero h1 { font-size: 40px; font-weight: 800; }
.bx-page-hero p { color: #E0E7FF; margin: 0; }
.bx-legal { padding: 60px 0 80px; }
.bx-legal .bx-doc { background: #fff; border-radius: 20px; padding: 44px; box-shadow: 0 12px 34px rgba(15,23,42,.07); }
.bx-legal h2 { font-size: 22px; font-weight: 700; color: var(--bx-navy); margin: 34px 0 12px; scroll-margin-top: 90px; }
.bx-legal h2:first-child { margin-top: 0; }
.bx-legal h3 { font-size: 17px; font-weight: 700; color: var(--bx-navy); margin: 20px 0 8px; }
.bx-legal p, .bx-legal li { color: #374151; font-size: 15.5px; }
.bx-legal ul, .bx-legal ol { padding-left: 22px; margin-bottom: 14px; }
.bx-legal li { margin-bottom: 6px; }
.bx-legal table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14.5px; }
.bx-legal th, .bx-legal td { border: 1px solid var(--bx-border); padding: 10px 12px; vertical-align: top; text-align: left; }
.bx-legal th { background: var(--bx-primary-light); color: var(--bx-navy); }
.bx-toc { background: var(--bx-bg); border-radius: 16px; padding: 24px; position: sticky; top: 96px; }
.bx-toc h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.bx-toc a { display: block; color: var(--bx-muted); font-size: 14px; padding: 4px 0; }
.bx-toc a:hover { color: var(--bx-primary); }
.bx-note { background: var(--bx-primary-light); border-left: 4px solid var(--bx-primary); border-radius: 10px; padding: 14px 18px; margin: 16px 0; }
.bx-steps-box { background: var(--bx-bg); border-radius: 16px; padding: 22px 26px; margin: 14px 0; }

/* ---------- Footer ---------- */
.bx-footer { background: var(--bx-navy); color: #CBD5E1; padding: 60px 0 24px; }
.bx-footer h4 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.bx-footer a { color: #CBD5E1; display: block; padding: 3px 0; }
.bx-footer a:hover { color: #fff; }
.bx-footer p { font-size: 14.5px; }
.bx-footer i { color: #A5B4FC; margin-right: 8px; width: 16px; }
.bx-footer hr { border-color: rgba(255,255,255,.12); margin: 30px 0 18px; }
.bx-footer .copy { text-align: center; font-size: 13.5px; color: #94A3B8; }

/* Back to top */
#bxTop {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
    border-radius: 50%; background: var(--bx-primary); color: #fff; border: 0;
    display: none; align-items: center; justify-content: center; z-index: 999;
    box-shadow: 0 10px 26px rgba(91,63,217,.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .bx-toggle { display: block; }
    .bx-menu {
        position: absolute; top: 72px; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 20px;
        box-shadow: 0 14px 24px rgba(15,23,42,.08); display: none;
    }
    .bx-menu.open { display: flex; }
    .bx-menu li { width: 100%; padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
    .bx-hero { padding: 60px 0; text-align: center; }
    .bx-hero h1 { font-size: 38px; }
    .bx-hero p.lead { margin-left: auto; margin-right: auto; }
    .bx-hero .bx-actions, .bx-hero-stats { justify-content: center; }
    .bx-hero-img { margin-top: 40px; }
    .bx-hero-img img { max-height: 400px; }
    .bx-toc { position: static; margin-bottom: 24px; }
}
@media (max-width: 575px) {
    .bx-section { padding: 64px 0; }
    .bx-title h2, .bx-cta h2 { font-size: 28px; }
    .bx-hero h1 { font-size: 32px; }
    .bx-page-hero h1 { font-size: 30px; }
    .bx-legal .bx-doc { padding: 26px 20px; }
    .bx-legal table { font-size: 13px; }
}
