/* Styles for the bKash order/redemption flow (books/order/buy.html, books/order/status.html) */

.muted { color: var(--text-gray); font-size: 0.9rem; }

.order-page-hero {
    background: linear-gradient(135deg, #0b4f27 0%, #124f36 60%, #1a3a2e 100%);
    text-align: center;
    padding: 48px 20px;
    color: #fff;
}
.order-page-hero h1 { font-size: 2rem; font-weight: 700; margin: 0; }
.order-page-hero .bn-inline { font-size: 0.6em; }

.order-section { padding: 50px 0 70px; }
.order-narrow { max-width: 700px; margin: 0 auto; padding: 0 20px; }

/* Short bilingual phrases (headings, labels, buttons, short notes): English
   followed by the Bangla translation inline in brackets — one line, easy to
   scan, nothing duplicated twice in full. */
.bn-inline {
    font-family: var(--font-bn);
    color: inherit;
    opacity: 0.8;
    font-weight: 400;
}

/* Longer explanatory sentences (result messages) still get a full,
   separate Bangla paragraph below — a bracket would be too heavy for a
   full sentence. */
.order-bn {
    display: block;
    font-family: var(--font-bn);
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 0.3rem;
}

/* ---- bKash-style payment card ----
   One continuous panel mirroring the real bKash checkout popup: white
   header (what you're paying for), solid bKash-pink body (how to pay +
   the confirmation form, white input boxes on pink — same pattern bKash's
   own checkout uses), white footer strip with the confirm action. Using
   bKash's real brand pink is legitimate here — this is a real bKash
   account receiving real payments, not an imitation of bKash itself. */
.bkash-card {
    background: var(--primary-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.8rem;
}

.bkash-card-header {
    padding: 1.4rem 1.6rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid #f2f2f2;
}

.bkash-card-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #E2136E;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
}

.bkash-card-header-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.8rem;
}

.bkash-card-header-title { font-size: 1.15rem; font-weight: 700; color: #212529; }

.bkash-card-body {
    background: #E2136E;
    padding: 1.8rem 1.6rem 2rem;
    text-align: center;
}

.bkash-card-footer {
    background: var(--primary-white);
    padding: 1.2rem 1.6rem 1.5rem;
    text-align: center;
}

.bkash-confirm-btn {
    width: 100%;
    max-width: 340px;
    background: #E2136E;
    color: var(--primary-white);
    border: none;
    border-radius: 50px;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bkash-confirm-btn:hover { background: #c10f5c; }
.bkash-confirm-btn:disabled { opacity: 0.6; cursor: default; }

.order-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: #E2136E;
    margin: 0;
}

.order-price .bn-inline { font-size: 0.6em; margin-left: 0.25rem; }

/* QR box: white on the pink body, matching how bKash's own checkout puts
   white input boxes on its pink background. */
.order-bkash-qr-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 16px;
    padding: 10px;
    background: var(--primary-white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    margin: 0.2rem 0 1rem;
}

.order-bkash-qr {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.order-bkash-row-label {
    font-size: 0.85rem;
    color: var(--primary-white);
    opacity: 0.9;
    margin: 0 0 0.6rem;
}

.order-bkash-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--primary-white);
    border-radius: 50px;
    padding: 0.6rem 0.7rem 0.6rem 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.order-bkash-account-name {
    color: var(--primary-white);
    opacity: 0.85;
    font-size: 0.82rem;
    margin: 0.6rem 0 0;
}

.order-leadin {
    text-align: center;
    color: var(--primary-white);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 1.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.order-bkash-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #E2136E;
    letter-spacing: 0.02em;
}

.order-copy-btn {
    background: #E2136E;
    border: none;
    border-radius: 50px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-white);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.order-copy-btn:hover { background: #c10f5c; }
.order-copy-btn.copied { background: var(--deep-green); }

/* ---- Custom book picker (pickN bundles) — lives on the white header,
   above the pink payment body, since choosing books is part of "what
   you're buying" rather than "how you're paying". ---- */
.order-pick-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: left;
}
.order-pick-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}
.order-pick-item input { margin: 0; }
.order-pick-item.disabled { opacity: 0.45; cursor: not-allowed; }
.order-pick-count { font-weight: 700; color: var(--deep-green); }

/* ---- Plain form (status.html's TrxID lookup — sits directly on the white
   page background, not inside a card) ---- */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    text-align: left;
}

.order-form label { font-weight: 700; font-size: 0.9rem; color: #212529; }

.order-form input {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-top: 0.4rem;
    margin-bottom: 1rem;
}

.order-form input:focus { outline: 2px solid var(--deep-green); outline-offset: 1px; }

.order-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--deep-green);
    color: var(--primary-white);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.order-form-submit:hover { background: #0a4a24; }

/* ---- Payment form (lives inside .bkash-card-body, on the pink background) ---- */
#order-buy-form {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
    margin-top: 1.4rem;
}

#order-buy-form label { font-weight: 700; margin-top: 0.9rem; font-size: 0.9rem; color: var(--primary-white); }

#order-buy-form input {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    margin-top: 0.4rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

#order-buy-form input:focus { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: 1px; }

#order-result:empty { margin: 0; }

/* ---- Result states ---- */
.order-receipt, .order-pending, .order-error {
    text-align: center;
    background: var(--primary-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2.2rem 1.6rem;
    margin-top: 1.5rem;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.order-receipt h3, .order-pending h3 { margin: 0.7rem 0 0.2rem; font-size: 1.3rem; }

.order-receipt p, .order-pending p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }

.order-invoice-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding: 0.55rem 1.3rem;
    border: 2px solid var(--deep-green);
    border-radius: 50px;
    color: var(--deep-green);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.order-invoice-link:hover { background: var(--deep-green); color: var(--primary-white); }

.order-error {
    color: #b02a2a;
    background: #fdecec;
    border-color: #f3c6c6;
}

.order-error p { margin: 0.3rem 0; }

.order-status-cta {
    text-align: center;
    margin-top: 2.2rem;
}

.order-status-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding: 0.65rem 1.5rem;
    border: 2px solid var(--deep-green);
    border-radius: 50px;
    color: var(--deep-green);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.order-status-link:hover { background: var(--deep-green); color: var(--primary-white); }

.order-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.order-book-card {
    background: var(--primary-white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.4rem;
    box-shadow: 0 5px 20px var(--shadow-light);
    text-align: center;
}

.order-book-card h4 { margin-top: 0; }

.order-book-card .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 600px) {
    .bkash-card-header, .bkash-card-body, .bkash-card-footer { padding-left: 1.2rem; padding-right: 1.2rem; }
    .order-receipt, .order-pending, .order-error { padding: 1.3rem; }
}
