/*
 * getbooklet-modern.css
 * Phase 1 optimized CSS for getbooklet.pk
 *
 * Purpose:
 * - New lightweight structure for homepage/header/footer.
 * - Keep old style.css available for legacy pages only.
 * - Add page-wise CSS below in clear sections as the site is audited.
 */

:root {
    --get-blue: #003366;
    --get-blue-2: #002F99;
    --get-navy: #323a45;
    --get-red: #dc3545;
    --get-gold: #ffd700;
    --get-green: #25d366;
    --get-bg: #f5f7fb;
    --get-surface: #ffffff;
    --get-text: #1f2937;
    --get-muted: #667085;
    --get-border: #e5e7eb;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--get-text);
    background: var(--get-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.site-header,
.footer {
    flex: 0 0 auto;
}

main,
.site-main,
.tracking-page {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container,
.container-fluid {
    width: 100%;
}

.container {
    max-width: var(--container-max);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 10000;
    padding: 10px 14px;
    color: #fff;
    background: #000;
    border-radius: 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--get-surface);
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.06);
}

.top-bar {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 215, 0, 0.10), transparent 24%),
        linear-gradient(135deg, #0f1f35 0%, #123d73 56%, #0b2f5d 100%);
    color: #fff;
    font-size: 13.5px;
}

.top-bar__inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.top-bar__journey {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.top-bar__journey:hover,
.top-bar__journey:focus {
    color: var(--get-gold);
    transform: translateY(-1px);
}

.top-bar__helpline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.top-bar__whatsapp-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.top-bar__helpline-text {
    display: inline;
}

.top-bar__helpline-number,
.top-bar__helpline-meta {
    display: inline;
}

.top-bar__helpline-number {
    font-weight: 650;
}

.top-bar__helpline-meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12.5px;
    font-weight: 500;
}

.logo-bar {
    padding: 14px 0;
    background: #fff;
}

.logo-bar__row {
    row-gap: 14px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-logo--premium {
    gap: 13px;
    max-width: 100%;
}

.site-logo img {
    width: min(200px, 58vw);
    max-height: 50px;
    object-fit: contain;
}

.site-logo__divider {
    width: 2px;
    height: 38px;
    flex: 0 0 2px;
    background: linear-gradient(180deg, rgba(19, 35, 61, 0.18), rgba(19, 35, 61, 0.72), rgba(19, 35, 61, 0.18));
    border-radius: 999px;
}

.site-logo__tagline {
    color: #13233d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: clamp(16px, 1.55vw, 22px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.header-ad {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-ad__image {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    display: block;
}

.track-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.track-form__input {
    min-width: 0;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--get-border);
    font-size: 14px;
    box-shadow: none;
}

.track-form__input::placeholder {
    color: var(--get-blue-2);
    font-weight: 650;
}

.track-form__button {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 650;
    padding-inline: 18px;
}

.track-form input::-webkit-outer-spin-button,
.track-form input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================================================
   Desktop Navigation
   ========================================================= */
.desktop-nav {
    background:
        linear-gradient(135deg, #0f1f35 0%, #123d73 56%, #0b2f5d 100%);
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 52px;
    margin: 0;
    padding: 0 12px;
}

.desktop-nav__item {
    position: relative;
}

.desktop-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 17px;
    color: rgba(255, 255, 255, 0.92);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15.5px !important;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav__link:hover,
.desktop-nav__link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.desktop-nav__dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 5px);
    width: 235px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: #10233f;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 2000;
}

.desktop-nav__item--has-menu:hover .desktop-nav__dropdown,
.desktop-nav__item--has-menu:focus-within .desktop-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav__dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, 0.90);
    padding: 10px 12px;
    border-radius: 11px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14.5px !important;
    line-height: 20px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav__dropdown a:hover,
.desktop-nav__dropdown a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.desktop-nav__gold {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    color: #111827;
    background: linear-gradient(135deg, #ffd700, #e6c200);
    border-radius: 999px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px !important;
    line-height: 18px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(255, 215, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-nav__gold:hover,
.desktop-nav__gold:focus {
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.24);
}

/* =========================================================
   Mobile Navigation
   ========================================================= */
.phone-nav {
    display: none;
    background:
        linear-gradient(135deg, #0f1f35 0%, #123d73 56%, #0b2f5d 100%);
    padding: 10px 14px;
}

.phone-nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 12px;
    padding: 9px 11px;
    margin-left: auto;
}

.navbar-toggler-icon-custom {
    position: relative;
    display: block;
    width: 26px;
    height: 18px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.navbar-toggler-icon-custom::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 100%;
    border-top: 2px solid #fff;
}

.phone-nav__list {
    width: 100%;
    padding: 12px 0 4px;
}

.phone-nav .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 500;
    padding: 11px 12px;
    border-radius: 12px;
}

.phone-nav .nav-link:hover,
.phone-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.phone-nav .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 8px;
}

.phone-nav .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 10px;
}

.phone-nav .dropdown-item:active,
.phone-nav .dropdown-item:hover {
    color: var(--get-blue);
    background: #eef4ff;
}

.phone-nav__gold {
    color: #111827 !important;
    background: linear-gradient(135deg, #ffd700, #e6c200);
    text-align: center;
    margin-top: 6px;
    font-weight: 650 !important;
}


/* =========================================================
   Homepage - legacy visual layout, optimized loading
   ========================================================= */
.site-main {
    min-height: 50vh;
}

body.home-page {
    background: #fff;
}

.home-books-legacy {
    background: #fff;
    color: #555;
    font-size: 13px;
    line-height: 20px;
}

.home-books-legacy .outer {
    width: 100%;
}

.home-book-row {
    margin-left: auto;
    margin-right: auto;
}

.home-book-row--second {
    margin-top: 50px;
}

.home-book-col {
    text-align: center;
    margin-bottom: 24px;
}

.home-book-img {
    border: 4px solid #c1c1c1;
    border-radius: 3px;
    background: #fff;
    object-fit: contain;
}

.home-book-title {
    color: #333;
    font-size: 13px;
    line-height: 20px;
}

.home-book-title img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

.home-book-btn {
    margin-top: 10px;
}


/* Homepage modern book-card layout uses the same card system as PIEAS MS Dashboard */
.home-dashboard-main {
    padding: 26px 0 56px;
    background: #fff;
}

.home-dashboard-container {
    max-width: 1180px;
}

.home-books-section {
    padding-top: 8px;
    padding-bottom: 10px;
}

.home-book-card .pieas-book-card__title {
    min-height: 42px;
}

@media (max-width: 991px) {
    .home-dashboard-main {
        padding: 20px 0 44px;
    }
}

@media (max-width: 767px) {
    .home-dashboard-main {
        padding: 14px 0 36px;
    }

    .home-book-card .pieas-book-card__title {
        min-height: 0;
    }
}


/* =========================================================
   Footer
   ========================================================= */
.footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 215, 0, 0.10), transparent 24%),
        linear-gradient(135deg, #0f1f35 0%, #123d73 56%, #0b2f5d 100%);
    color: #fff;
    padding: 0;
    text-align: left;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.020) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.45;
}

.footer-modern__container {
    position: relative;
    z-index: 1;
    padding-top: 30px;
    padding-bottom: 18px;
}

.footer-modern__top,
.footer-modern__brand,
.footer-modern__logo,
.footer-modern__support,
.footer-modern__label,
.footer-modern__journey-badge,
.footer-modern__mini-note {
    display: none !important;
}

.footer-modern__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.08fr 0.92fr;
    gap: 18px;
}

.footer-modern__col {
    min-height: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 20px;
}

.footer-modern__col h2 {
    position: relative;
    margin: 0 0 16px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 750;
}

.footer-modern__col h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, rgba(255, 215, 0, 0));
    border-radius: 999px;
}

.footer-modern__links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-modern__links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14.5px;
    line-height: 1.45;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-modern__links a::before {
    content: "›";
    margin-right: 8px;
    color: #ffd700;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.footer-modern__links a:hover,
.footer-modern__links a:focus {
    color: #fff;
    transform: translateX(3px);
}

.footer-modern__delivery-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    margin-bottom: 13px;
    padding: 8px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.footer-modern__delivery-icon {
    font-size: 16px;
    line-height: 1;
}

.footer-modern__payment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.footer-modern__payment-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #10233f;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.footer-modern__pill-list {
    display: none;
}

.footer-modern__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 15px;
    color: #062312 !important;
    background: linear-gradient(135deg, #34d399, #25d366);
    border-radius: 999px;
    font-size: 15px;
    
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-modern__whatsapp:hover,
.footer-modern__whatsapp:focus {
    color: #062312 !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.26);
}

.footer-modern__whatsapp i {
    font-size: 18px;
}

.footer-modern__whatsapp--inside {
    margin-bottom: 14px;
     display:flex;
    width:max-content;
    margin:0 auto 14px;
}

.footer-social.footer-modern__social {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
}

.footer-social.footer-modern__social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 999px;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.footer-social.footer-modern__social a:hover,
.footer-social.footer-modern__social a:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.footer-modern__social-facebook {
    background: #1877f2 !important;
}

.footer-modern__social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 42%, #d6249f 60%, #285aeb 90%) !important;
}

.footer-modern__social-whatsapp {
    background: #25d366 !important;
}

.footer-bottom.footer-modern__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0 0;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13.5px;
}

.footer-bottom.footer-modern__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.footer-bottom.footer-modern__bottom a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 650;
}

.footer-bottom.footer-modern__bottom a:hover,
.footer-bottom.footer-modern__bottom a:focus {
    color: #ffd700;
}

.footer__row,
.footer__col,
.footer__whatsapp,
.footer__note,
.footer__delivery,
.payment-images,
.payment-images__row,
.footer__journey {
    /* kept only for legacy footer markup safety */
}

@media (max-width: 991px) {
    .footer-modern__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom.footer-modern__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .footer-modern__container {
        padding-top: 24px;
        padding-bottom: 16px;
    }

    .footer-modern__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-modern__col {
        padding: 18px;
        border-radius: 18px;
    }

    .footer-modern__whatsapp {
        width: 100%;
        min-height: 46px;
        font-size: 15px;
    }

    .footer-modern__payment-list span {
        flex: 1 1 calc(50% - 9px);
    }

    .footer-social.footer-modern__social {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .footer-modern__payment-list {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-modern__payment-list span {
        width: 100%;
    }
}

/* =========================================================
   Page: Tracking Order
   ========================================================= */
.page-tracking {
    background: linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%);
}

.tracking-page {
    padding: 28px 0 54px;
}

.tracking-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.tracking-page-header {
    padding: 24px;
    margin-bottom: 22px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--get-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tracking-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--get-red);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tracking-page-header h1 {
    margin: 0;
    color: #10233f;
    font-size: clamp(1.65rem, 3.2vw, 2.55rem);
    line-height: 1.15;
    font-weight: 900;
}

.tracking-page-header p {
    max-width: 620px;
    margin: 10px auto 0;
    color: var(--get-muted);
    font-size: 1rem;
}

.tracking-search-form {
    width: min(100%, 560px);
    margin: 20px auto 0;
    display: flex;
    gap: 10px;
}

.tracking-search-form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--get-border);
    border-radius: 12px;
    color: var(--get-text);
    background: #fff;
    font-weight: 700;
    outline: none;
}

.tracking-search-form input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
}

.tracking-search-form button {
    min-width: 112px;
    height: 46px;
    color: #fff;
    background: var(--get-red);
    border: 0;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tracking-search-form button:hover,
.tracking-search-form button:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(220, 53, 69, 0.22);
    outline: none;
}

.tracking-result-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(520px, 100%);
    min-height: 44px;
    margin: 0 auto 18px;
    padding: 10px 24px;
    color: #fff;
    background: var(--get-red);
    border-radius: 12px;
    text-align: center;
    font-size: 1.12rem;
    line-height: 1.25;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.18);
}

.tracking-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--get-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.tracking-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #344054;
    font-size: 13px;
}

.tracking-table th,
.tracking-table td {
    padding: 12px 10px;
    border-right: 1px solid #111827;
    border-bottom: 1px solid #111827;
    text-align: center;
    vertical-align: middle;
}

.tracking-table th:first-child,
.tracking-table td:first-child {
    border-left: 1px solid #111827;
}

.tracking-table th {
    background: #f2f4f7;
    border-top: 1px solid #111827;
    color: #111827;
    font-weight: 900;
}

.tracking-table th:first-child {
    border-top-left-radius: 14px;
}

.tracking-table th:last-child {
    border-top-right-radius: 14px;
}

.tracking-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    color: #fff;
    background: #17a2b8;
    border-radius: 6px;
    font-weight: 900;
}

.tracking-status-img {
    width: 100px;
    height: 40px;
    object-fit: contain;
}

.tracking-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.tracking-status--access {
    color: #118a11;
    background: #eaf8ea;
    border: 1px solid #c5ecc5;
}

.tracking-status--unknown {
    color: #fff;
    background: #dc3545;
}

.tracking-book-cell {
    min-width: 170px;
}

.tracking-books-list {
    margin: 0;
    padding-left: 18px;
    text-align: left;
}

.tracking-books-list li + li {
    margin-top: 3px;
}

.tracking-courier-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    color: #0056d6 !important;
    background: #eaf3ff;
    border: 1px solid #b8d7ff;
    border-radius: 9px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 86, 214, 0.08);
}

.tracking-courier-link:hover,
.tracking-courier-link:focus {
    color: #003f9e !important;
    background: #dcebff;
    border-color: #87bcff;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.tracking-courier-link i {
    font-size: 0.82em;
}

.tracking-alert {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1.65;
    box-shadow: var(--shadow-sm);
}

.tracking-alert--success {
    color: #0f2f16;
    background: #dff0d8;
    border: 1px solid #bde4b7;
}

.tracking-alert--danger {
    color: #7f1d1d;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.tracking-alert--danger strong,
.tracking-alert--danger span {
    display: block;
}

.tracking-delay {
    color: #dc3545;
}

.tracking-empty-state {
    padding: 28px;
    color: #344054;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.tracking-empty-state strong,
.tracking-empty-state span {
    display: block;
}

.tracking-empty-state span {
    margin-top: 4px;
    color: var(--get-muted);
}

.dispatch-proof-form {
    margin: 20px auto 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--get-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.dispatch-proof-form label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 900;
}

.dispatch-proof-form__row {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.dispatch-proof-form__row span {
    height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #667085;
    background: #f2f4f7;
    border: 1px solid #ced4da;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
}

.dispatch-proof-form__row input {
    width: 110px;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 0;
    outline: none;
}

.dispatch-proof-form__row button {
    height: 36px;
    padding: 0 18px;
    color: #fff;
    background: #ff6600;
    border: 0;
    border-radius: 0 8px 8px 0;
    font-weight: 900;
    cursor: pointer;
}

.tracking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    overflow: auto;
    background: rgba(15, 23, 42, 0.55);
    padding: 60px 16px;
}

.tracking-modal__content {
    position: relative;
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.tracking-modal__header {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--get-border);
    color: #111827;
    font-size: 0.95rem;
    font-weight: 900;
}

.tracking-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #111827;
    background: transparent;
    border: 0;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.tracking-modal img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}





/* Desktop/laptop only: center the short "No Record Found" message vertically
   in the available content area, without affecting mobile or valid tracking results. */
@media (min-width: 768px) {
    .page-tracking .tracking-page:has(.tracking-alert--danger) {
        display: flex;
        align-items: center;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .page-tracking .tracking-page:has(.tracking-alert--danger) .container,
    .page-tracking .tracking-page:has(.tracking-alert--danger) .tracking-shell {
        width: 100%;
    }

    .page-tracking .tracking-page:has(.tracking-alert--danger) .tracking-alert--danger {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .tracking-page {
        padding: 18px 0 36px;
    }

    .tracking-page-header {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .tracking-search-form {
        flex-direction: column;
    }

    .tracking-search-form button {
        width: 100%;
    }

    .tracking-result-title {
        width: 100%;
        min-width: 0;
        margin-bottom: 14px;
    }

    .tracking-table-wrap {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .tracking-table,
    .tracking-table thead,
    .tracking-table tbody,
    .tracking-table tr,
    .tracking-table th,
    .tracking-table td {
        display: block;
        width: 100%;
    }

    .tracking-table thead {
        display: none;
    }

    .tracking-table tr {
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--get-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .tracking-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 14px;
        border: 0;
        border-bottom: 1px solid var(--get-border);
        text-align: right;
        word-break: break-word;
    }

    .tracking-table td:last-child {
        border-bottom: 0;
    }

    .tracking-table td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: #111827;
        font-weight: 900;
        text-align: left;
    }

    .tracking-book-cell {
        min-width: 0;
    }

    .tracking-books-list {
        text-align: right;
        list-style-position: inside;
        padding-left: 0;
    }

    .dispatch-proof-form,
    .tracking-alert,
    .tracking-empty-state {
        border-radius: 16px;
    }

    .dispatch-proof-form__row {
        display: flex;
        width: 100%;
    }

    .dispatch-proof-form__row input {
        flex: 1;
        min-width: 0;
    }
}

/* =========================================================
   Future Page-Wise CSS Sections
   Keep adding audited CSS here slowly.
   ========================================================= */
/*
.page-product {}
.page-tracking {}
.page-receipt {}
.page-contact {}
*/


/* =========================================================
   Page: Gold Membership
   ========================================================= */
.gold-membership-page {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 215, 0, 0.10), transparent 28%),
        linear-gradient(180deg, #f6f8fc 0%, #eef3f9 100%);
}

.gold-page {
    padding: 34px 0 56px;
}

.gold-page__container {
    max-width: 1240px;
}

.gold-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.78fr);
    gap: 34px;
    align-items: start;
}

.gold-benefits-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    padding: 26px 30px 30px;
}

.gold-benefits-card__header {
    border-bottom: 2px solid rgba(230, 184, 0, 0.34);
    margin-bottom: 20px;
    padding-bottom: 13px;
}

.gold-benefits-card__eyebrow {
    display: inline-block;
    color: #b78900;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.gold-benefits-card h1 {
    color: #252b35;
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0;
    text-transform: uppercase;
}

.gold-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gold-benefits-list li {
    color: #3f4652;
    font-size: 17px;
    line-height: 1.72;
    margin: 0 0 12px;
    padding-left: 34px;
    position: relative;
}

.gold-benefits-list li::before {
    content: "✓";
    color: #e6b800;
    font-size: 24px;
    font-weight: 900;
    left: 0;
    line-height: 1;
    position: absolute;
    top: 3px;
}

.gold-login-btn {
    align-items: center;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    border-radius: 999px;
    box-shadow: 0 9px 20px rgba(184, 134, 11, 0.24);
    color: #050505;
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    min-height: 48px;
    padding: 11px 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.gold-login-btn:hover,
.gold-login-btn:focus {
    color: #050505;
    filter: saturate(1.08);
    box-shadow: 0 12px 26px rgba(184, 134, 11, 0.28);
    transform: translateY(-1px);
}

.gold-card-wrap {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.gold-member-card {
    aspect-ratio: 1.586 / 1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 36%),
        linear-gradient(145deg, #c7a454 0%, #f1d280 44%, #c5a05a 100%);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 18px;
    box-shadow: 0 20px 42px rgba(64, 50, 10, 0.22);
    color: #25211a;
    isolation: isolate;
    max-width: 390px;
    overflow: hidden;
    padding: 24px 24px 22px;
    position: relative;
    width: 100%;
}

.gold-member-card__shine {
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.42) 48%, transparent 100%);
    height: 180%;
    left: -58%;
    opacity: 0.45;
    position: absolute;
    top: -48%;
    transform: rotate(22deg);
    width: 72%;
    z-index: 0;
}

.gold-member-card__watermark {
    color: rgba(128, 88, 0, 0.16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 28px;
    z-index: 0;
}

.gold-member-card__top,
.gold-member-card__body,
.gold-member-card__footer {
    position: relative;
    z-index: 1;
}

.gold-member-card__top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.gold-member-card__top img {
    display: block;
    object-fit: contain;
}

.gold-member-card__tag {
    background: rgba(164, 112, 4, 0.88);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    line-height: 1;
    margin-top: 42px;
    padding: 8px 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.gold-member-card__body {
    margin-top: 24px;
}

.gold-member-card__name {
    color: #232833;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
}

.gold-member-card__number {
    color: #221d15;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.35;
    word-spacing: 0.12em;
}

.gold-member-card__footer {
    bottom: 22px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    right: 24px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

@media (min-width: 1200px) {
    .gold-card-wrap {
        padding-top: 4px;
    }
}

@media (max-width: 991px) {
    .gold-page {
        padding: 26px 0 44px;
    }

    .gold-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gold-card-wrap {
        order: -1;
        padding-top: 0;
    }

    .gold-member-card {
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    .gold-benefits-card {
        border-radius: 16px;
        padding: 22px 18px 24px;
    }

    .gold-benefits-card h1 {
        font-size: 25px;
    }

    .gold-benefits-list li {
        font-size: 15.5px;
        line-height: 1.62;
        padding-left: 30px;
    }

    .gold-login-btn {
        width: 100%;
    }

    .gold-member-card {
        border-radius: 16px;
        max-width: 360px;
        padding: 20px 18px;
    }

    .gold-member-card__tag {
        font-size: 11px;
        letter-spacing: 0.14em;
        margin-top: 38px;
        padding: 7px 9px;
    }

    .gold-member-card__name {
        font-size: 21px;
    }

    .gold-member-card__number {
        font-size: 16px;
        letter-spacing: 0.15em;
    }

    .gold-member-card__footer {
        bottom: 18px;
        font-size: 13px;
        right: 18px;
    }
}

@media (max-width: 420px) {
    .gold-page {
        padding-top: 18px;
    }

    .gold-member-card__top img {
        width: 96px;
    }

    .gold-member-card__tag {
        margin-top: 34px;
    }

    .gold-member-card__body {
        margin-top: 20px;
    }
}



/* =========================================================
   Page: Gold Member Login / E-Portal
   ========================================================= */
.gold-member-login-page {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 215, 0, 0.12), transparent 28%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%);
}

.gold-login-page {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 0 58px;
}

.gold-login-shell {
    width: min(100%, 460px);
    margin: 0 auto;
}

.gold-login-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94)),
        linear-gradient(145deg, #ffe9a8 0%, #f7d470 52%, #d6ad36 100%);
    border: 1px solid rgba(230, 184, 0, 0.35);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(64, 50, 10, 0.16);
    padding: 30px 28px 28px;
    text-align: center;
}

.gold-login-card::before {
    content: "";
    position: absolute;
    inset: -80px auto auto -80px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}
.gold-login-card::before{display:none!important;}
.gold-login-card__logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.gold-login-card__logo img {
    width: 56px;
    height: auto;
    object-fit: contain;
}

.gold-login-card h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.gold-login-card__subtitle {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: #506070;
    font-size: 15px;
    line-height: 1.55;
}

.gold-login-form {
    position: relative;
    z-index: 1;
    text-align: left;
}

.gold-login-form__group {
    margin-bottom: 14px;
}

.gold-login-form label {
    display: block;
    margin-bottom: 7px;
    color: #273142;
    font-size: 14px;
    font-weight: 600;
}

.gold-login-form input {
    width: 100%;
    height: 48px;
    padding: 11px 14px;
    color: #1f2937;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gold-login-form input:focus {
    border-color: #d6ad36;
    box-shadow: 0 0 0 4px rgba(214, 173, 54, 0.18);
}

.gold-login-form input::placeholder {
    color: #98a2b3;
    font-weight: 500;
}

.gold-login-password-wrap {
    position: relative;
}

.gold-login-password-wrap input {
    padding-right: 52px;
}

.gold-login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.18s ease, background 0.18s ease;
}

.gold-login-password-toggle:hover,
.gold-login-password-toggle:focus {
    color: #1f2937;
    background: rgba(214, 173, 54, 0.16);
    outline: none;
}

.gold-login-btn-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    color: #111827;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(184, 134, 11, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.gold-login-btn-submit:hover,
.gold-login-btn-submit:focus {
    filter: saturate(1.08);
    box-shadow: 0 14px 28px rgba(184, 134, 11, 0.30);
    transform: translateY(-1px);
    outline: none;
}

.gold-login-error {
    margin-top: 14px;
    padding: 12px 13px;
    color: #8a1f1f;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
}

.gold-login-help {
    margin: 16px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.gold-login-help strong {
    color: #1f2937;
}

@media (min-width: 768px) {
    .gold-login-page {
        padding: 28px 0 46px;
    }

    .gold-login-shell {
        width: min(100%, 410px);
    }

    .gold-login-card {
        border-radius: 20px;
        padding: 24px 26px 24px;
    }

    .gold-login-card__logo {
        width: 64px;
        height: 64px;
        margin-bottom: 10px;
    }

    .gold-login-card__logo img {
        width: 48px;
    }

    .gold-login-card h1 {
        font-size: clamp(23px, 2vw, 28px);
        font-weight: 600;
        letter-spacing: 0.005em;
        line-height: 1.18;
    }

    .gold-login-card__subtitle {
        margin-bottom: 18px;
        font-size: 14px;
    }

    .gold-login-form__group {
        margin-bottom: 12px;
    }

    .gold-login-form input {
        height: 44px;
    }

    .gold-login-btn-submit {
        min-height: 46px;
    }
}

@media (max-width: 767px) {
    .gold-login-page {
        align-items: flex-start;
        padding: 22px 0 38px;
    }

    .gold-login-card {
        border-radius: 18px;
        padding: 24px 18px 22px;
    }

    .gold-login-card__logo {
        width: 68px;
        height: 68px;
    }

    .gold-login-card h1 {
        font-size: 25px;
    }
}


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199px) {
    .desktop-nav__link {
        padding-inline: 13px;
    }
}

@media (max-width: 991px) {
    .top-bar__inner {
        justify-content: center;
        text-align: center;
        padding: 6px 0;
    }

    .desktop-nav {
        display: none;
    }

    .phone-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .track-form {
        justify-content: center;
        max-width: 520px;
        margin: 4px auto 0;
    }

    .header-ad {
        min-height: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .top-bar {
        font-size: 13px;
    }

    .top-bar__inner {
        gap: 6px;
        flex-direction: column;
        line-height: 1.35;
    }

    .top-bar__helpline {
        align-items: flex-start;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    .top-bar__whatsapp-icon {
        flex: 0 0 auto;
        margin-top: 1px;
    }

    .top-bar__helpline-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .top-bar__helpline-number,
    .top-bar__helpline-meta {
        display: block;
    }

    .logo-bar {
        padding: 12px 0;
    }

    .site-logo--premium {
        justify-content: center;
        gap: 9px;
    }

    .site-logo img {
        width: min(185px, 48vw);
        max-height: 58px;
    }

    .site-logo__divider {
        height: 30px;
    }

    .site-logo__tagline {
        font-size: 13.5px;
        white-space: normal;
        max-width: 130px;
        text-align: left;
    }

    .track-form {
        flex-direction: column;
        gap: 8px;
    }

    .track-form__input,
    .track-form__button {
        width: min(100%, 330px);
    }

    .home-book-row--second {
        margin-top: 12px;
    }

    .home-book-col {
        margin-bottom: 34px;
    }

    .home-book-img {
        max-width: 285px;
    }

    .footer {
        padding: 32px 0 24px;
    }
}

@media (max-width: 420px) {
    .site-logo img {
        width: min(165px, 46vw);
    }

    .site-logo__tagline {
        font-size: 12.5px;
        max-width: 112px;
    }

    .home-book-img {
        width: 78%;
        max-width: 250px;
    }
}
/* =========================================================
   Page: PIEAS MS Dashboard
   ========================================================= */
.pieas-dashboard-page {
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.pieas-dashboard-main {
    padding: 26px 0 56px;
}

.pieas-dashboard-container {
    max-width: 1180px;
}

.pieas-dashboard-hero {
    padding: 4px 0 22px;
}

.pieas-dashboard-heading {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 18px 16px 12px;
}

.pieas-dashboard-kicker {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--get-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pieas-dashboard-heading h1 {
    margin: 0;
    color: #13233d;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pieas-dashboard-heading p {
    max-width: 640px;
    margin: 10px auto 0;
    color: var(--get-muted);
    font-size: 16px;
    line-height: 1.55;
}

.pieas-books-section {
    padding-bottom: 10px;
}

.pieas-book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 34px;
}

.pieas-book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 22px 18px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pieas-book-card:hover {
    transform: translateY(-3px);
    border-color: rgba(220, 53, 69, 0.22);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11);
}

.pieas-book-card__image-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pieas-book-card__image {
    width: min(73%, 260px);
    max-height: 350px;
    object-fit: contain;
    background: #fff;
    border: 4px solid #c1c1c1;
    border-radius: 3px;
}

.pieas-book-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-top: 18px;
}

.pieas-book-card__title {
    display: block;
    min-height: 44px;
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
}

.pieas-book-card__new {
    display: inline-block;
    width: 35px;
    height: auto;
    margin-right: 3px;
    vertical-align: -4px;
}

.pieas-book-card__subtitle {
    margin: 4px 0 0;
    color: #344054;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.pieas-book-card__button {
    min-width: 118px;
    margin-top: 12px;
    border-radius: 9px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(220, 53, 69, 0.18);
}

@media (max-width: 991px) {
    .pieas-dashboard-main {
        padding: 20px 0 44px;
    }

    .pieas-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .pieas-book-card__image {
        width: min(78%, 250px);
    }
}

@media (max-width: 767px) {
    .pieas-dashboard-main {
        padding: 14px 0 36px;
    }

    .pieas-dashboard-hero {
        padding-bottom: 16px;
    }

    .pieas-dashboard-heading {
        padding: 12px 10px 8px;
    }

    .pieas-dashboard-heading h1 {
        font-size: 22px;
    }

    .pieas-dashboard-heading p {
        font-size: 14px;
    }

    .pieas-book-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pieas-book-card {
        width: min(100%, 390px);
        margin: 0 auto;
        padding: 18px 14px;
        border-radius: 16px;
    }

    .pieas-book-card__image {
        width: min(78%, 270px);
        max-height: 365px;
    }

    .pieas-book-card__title {
        min-height: 0;
        font-size: 15px;
    }
}
/* =========================================================
   Page: Book Product Detail (PIEAS MS General Part)
   ========================================================= */
.product-page {
    background:
        radial-gradient(circle at 7% 3%, rgba(15, 49, 93, 0.07), transparent 27%),
        radial-gradient(circle at 94% 5%, rgba(215, 180, 74, 0.07), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #edf2f8 100%);
}

.book-product-main {
    flex: 1 0 auto;
    padding: 32px 0 62px;
}

.book-product-container {
    max-width: 1180px;
}

.book-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 34px;
    align-items: start;
}

.book-gallery-card,
.book-detail-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid rgba(215, 222, 232, 0.96);
    border-radius: 28px;
    box-shadow:
        0 24px 54px rgba(15, 23, 42, 0.09),
        0 2px 8px rgba(15, 23, 42, 0.035);
}

.book-gallery-card::before,
.book-detail-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #0b2f5d 0%, #1f5b9d 58%, #d8b54c 100%);
}

.book-gallery-card {
    padding: 25px 25px 21px;
    text-align: center;
}

.book-gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 552px;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.98), transparent 38%),
        linear-gradient(180deg, #f9fbfd 0%, #eef3f8 100%);
    border: 1px solid #dfe6ef;
    border-radius: 21px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -18px 40px rgba(15, 49, 93, 0.025);
    overflow: hidden;
}

.book-gallery-main::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 15px;
    height: 24px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.13);
    filter: blur(14px);
    pointer-events: none;
}

.book-gallery-main__image {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    max-height: 640px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #c9d3df;
    border-radius: 6px;
    box-shadow:
        0 26px 44px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.08);
    cursor: grab;
}

.book-gallery-main__image:active {
    cursor: grabbing;
}

.book-gallery-arrow {
    display: none;
}

.book-gallery-caption {
    margin: 19px 0 13px;
    color: #10233f;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.book-gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 11px;
    overflow-x: auto;
    padding: 5px 4px 11px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.book-gallery-thumb {
    flex: 0 0 84px;
    height: 108px;
    padding: 5px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    box-shadow: 0 8px 17px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.book-gallery-thumb:hover,
.book-gallery-thumb:focus,
.book-gallery-thumb.is-active {
    border-color: #1f5b9d;
    box-shadow: 0 10px 22px rgba(31, 91, 157, 0.16);
    outline: none;
    transform: translateY(-2px);
}

.book-gallery-thumb.is-active {
    box-shadow:
        0 0 0 3px rgba(31, 91, 157, 0.11),
        0 10px 22px rgba(31, 91, 157, 0.16);
}

.book-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

.book-gallery-swipe-hint {
    display: none;
    margin: 6px 0 0;
    color: var(--get-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.book-detail-card {
    padding: 28px 34px 29px;
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 180, 74, 0.09), transparent 31%),
        radial-gradient(circle at 0% 100%, rgba(31, 91, 157, 0.055), transparent 34%),
        rgba(255, 255, 255, 0.99);
}

.book-detail-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(222, 228, 236, 0.7);
    border-radius: 20px;
    pointer-events: none;
}

.book-detail-card > * {
    position: relative;
    z-index: 1;
}

.book-detail-header {
    padding-bottom: 14px;
    border-bottom: 1px solid #e7ebf1;
}

.book-detail-overline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #8c6d16;
    font-size: 11.5px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.book-detail-overline span {
    width: 31px;
    height: 1px;
    background: linear-gradient(90deg, #d8b54c, rgba(216, 181, 76, 0));
}

.book-detail-card h1 {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 0;
    color: #10233f;
    line-height: 1.08;
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.book-detail-header h1 { white-space: normal; overflow-wrap: break-word; }
.book-detail-title-main,
.book-detail-title-edition {
    display: inline;
}

.book-detail-title-main {
    max-width: none;
    font-size: clamp(25px, 2.15vw, 30px);
    font-weight: 620;
}

.book-detail-title-edition {
    margin-top: 0;
    color: #576579;
    font-size: clamp(19px, 1.65vw, 22px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.012em;
}

.book-detail-intro {
    max-width: 625px;
    margin: 18px 0 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.74;
    font-weight: 400;
}

.book-stock-card {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 12px 0;
    padding: 8px 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #fbfcfe 0%, #ffffff 100%);
    border: 1px solid #dde5ee;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.book-stock-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.book-stock-card.is-available::before {
    background: linear-gradient(180deg, #24b66b, #087443);
}

.book-stock-card.is-unavailable::before {
    background: linear-gradient(180deg, #e05b50, #b42318);
}

.book-stock-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 15px;
}

.book-stock-card.is-available .book-stock-icon {
    color: #087443;
    background: linear-gradient(145deg, #e7f8ef, #f5fcf8);
    border: 1px solid #c1e9d2;
}

.book-stock-card.is-unavailable .book-stock-icon {
    color: #b42318;
    background: linear-gradient(145deg, #fff0ef, #fff9f8);
    border: 1px solid #f2cbc7;
}

.book-stock-content {
    min-width: 0;
}

.book-stock-label {
    display: block;
    margin-bottom: 6px;
    color: #697586;
    font-size: 11.5px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #10233f;
    font-size: 14.8px;
    line-height: 1.22;
    font-weight: 620;
}

.book-stock-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.book-stock-badge--available {
    color: #087443;
}

.book-stock-badge--out {
    color: #b42318;
}

.book-stock-badge--out .book-stock-dot {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.09);
}

.book-stock-content > small {
    display: block;
    margin-top: 5px;
    color: #7b8797;
    font-size: 12.8px;
    line-height: 1.45;
    font-weight: 400;
}

.book-ebook-badge {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    margin-top: 2px;
    padding: 12px 13px;
    color: #174a7e;
    background: linear-gradient(135deg, #edf5ff, #f8fbff);
    border: 1px solid #c9ddf5;
    border-radius: 14px;
}

.book-ebook-badge > i {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid #d8e6f6;
    border-radius: 12px;
    font-size: 16px;
}

.book-ebook-badge span {
    display: grid;
    gap: 2px;
}

.book-ebook-badge small {
    color: #6884a2;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-ebook-badge strong {
    color: #174a7e;
    font-size: 13.8px;
    line-height: 1.35;
    font-weight: 620;
}

.book-includes-panel {
    padding: 15px;
    background:
        linear-gradient(135deg, rgba(247, 249, 252, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid #dfe6ef;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.book-includes-heading {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5eaf0;
}

.book-includes-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #1f5b9d;
    background: linear-gradient(145deg, #eef5fc, #ffffff);
    border: 1px solid #d6e3f1;
    border-radius: 13px;
    font-size: 16px;
}

.book-detail-card h2 {
    margin: 0;
    color: #13233d;
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 620;
    letter-spacing: -0.01em;
}

.book-includes-heading p {
    margin: 4px 0 0;
    color: #7b8797;
    font-size: 12.8px;
    line-height: 1.45;
    font-weight: 400;
}

.book-feature-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.book-feature-list li {
    position: relative;
    margin: 0;
    padding: 8px 10px 8px 39px;
    color: #344054;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(224, 230, 238, 0.88);
    border-radius: 13px;
    font-size: 14.4px;
    line-height: 1.42;
    font-weight: 400;
}

.book-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #087443;
    background: #eaf8f0;
    border: 1px solid #c8ead6;
    border-radius: 50%;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    transform: translateY(-50%);
}

.book-order-support {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 10px 12px;
    color: #576579;
    background: linear-gradient(135deg, #fffaf0, #ffffff);
    border: 1px solid #ebdfbd;
    border-radius: 17px;
    font-size: 13.5px;
    line-height: 1.48;
}

.book-order-support__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #8c6d16;
    background: #ffffff;
    border: 1px solid #eadcb4;
    border-radius: 13px;
    font-size: 16px;
}

.book-order-support small {
    display: block;
    margin-bottom: 2px;
    color: #9b7b23;
    font-size: 10.5px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-order-support a {
    color: #174a7e;
    font-weight: 620;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.book-order-support a:hover,
.book-order-support a:focus {
    color: #0f315d;
}

.book-action-row {
    display: grid;
    gap: 8px;
    margin-top: 11px;
}

.book-order-btn {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 11px 18px;
    color: #fff !important;
    background: linear-gradient(135deg, #25ba62 0%, #0f8f47 100%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 16px;
    font-size: 15.5px;
    line-height: 1.3;
    font-weight: 680;
    box-shadow:
        0 14px 29px rgba(15, 143, 71, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.book-order-btn::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -35%;
    width: 28%;
    height: 240%;
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(24deg);
    transition: left 0.35s ease;
}

.book-order-btn:hover,
.book-order-btn:focus {
    color: #fff !important;
    filter: saturate(1.05);
    box-shadow:
        0 18px 36px rgba(15, 143, 71, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    outline: none;
}

.book-order-btn:hover::before,
.book-order-btn:focus::before {
    left: 112%;
}

.book-order-btn .fa-whatsapp {
    font-size: 20px;
}

.book-order-btn .fa-arrow-right {
    font-size: 13px;
}

.book-action-note {
    margin: 0;
    color: #8590a0;
    font-size: 11.8px;
    line-height: 1.45;
    text-align: center;
}

@media (min-width: 992px) {
    .book-detail-card {
        position: sticky;
        top: 12px;
    }
}

@media (max-width: 991px) {
    .book-product-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .book-gallery-main {
        min-height: 470px;
    }

    .book-gallery-main__image {
        max-height: 570px;
    }
}

@media (max-width: 767px) {
    .book-product-main {
        padding: 18px 0 40px;
    }

    .book-gallery-card,
    .book-detail-card {
        border-radius: 20px;
    }

    .book-gallery-card::before,
    .book-detail-card::before {
        height: 4px;
    }

    .book-gallery-card {
        padding: 16px 13px 14px;
    }

    .book-gallery-main {
        min-height: 0;
        padding: 14px;
        border-radius: 16px;
    }

    .book-gallery-main__image {
        width: min(100%, 330px);
        max-height: 510px;
        box-shadow: 0 16px 27px rgba(15, 23, 42, 0.15);
    }

    .book-gallery-caption {
        margin-top: 14px;
        font-size: 0.97rem;
    }

    .book-gallery-thumbs {
        justify-content: flex-start;
    }

    .book-gallery-thumb {
        flex-basis: 74px;
        height: 96px;
    }

    .book-gallery-swipe-hint {
        display: block;
    }

    .book-detail-card {
        padding: 23px 16px 19px;
    }

    .book-detail-card::after {
        inset: 9px;
        border-radius: 15px;
    }

    .book-detail-header {
        padding-bottom: 12px;
    }

    .book-detail-overline {
        margin-bottom: 12px;
        font-size: 10.5px;
    }

    .book-detail-card h1 {
        gap: 5px;
    }

    .book-detail-title-main {
        font-size: clamp(17px, 5.1vw, 22px);
    }

    .book-detail-title-edition {
        font-size: clamp(13px, 3.9vw, 17px);
    }

    .book-detail-intro {
        font-size: 14.8px;
        line-height: 1.66;
    }

    .book-stock-card {
        grid-template-columns: 34px minmax(0, 1fr);
        margin: 11px 0;
        padding: 7px 10px;
        border-radius: 13px;
    }

    .book-stock-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .book-stock-badge {
        font-size: 14px;
    }

    .book-ebook-badge {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .book-includes-panel {
        padding: 13px;
        border-radius: 17px;
    }

    .book-includes-heading {
        grid-template-columns: 39px minmax(0, 1fr);
    }

    .book-includes-icon,
    .book-order-support__icon {
        width: 39px;
        height: 39px;
    }

    .book-feature-list li {
        padding: 7px 9px 7px 38px;
        font-size: 14px;
    }

    .book-feature-list li::before {
        left: 11px;
    }

    .book-order-support {
        grid-template-columns: 36px minmax(0, 1fr);
        margin-top: 10px;
        padding: 9px 11px;
        font-size: 13.2px;
    }

    .book-order-btn {
        min-height: 49px;
        border-radius: 15px;
        font-size: 15px;
    }
}


/* =========================================================
   Page: Payment Receipt
   ========================================================= */
.payment-receipt-page {
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.payment-receipt-main {
    flex: 1 0 auto;
    padding: 26px 0 56px;
}

.payment-receipt-container {
    max-width: 1120px;
}

.receipt-page-title {
    width: min(100%, 650px);
    margin: 0 auto 22px;
    padding: 12px 20px;
    color: #fff;
    background: #d6010d;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(214, 1, 13, 0.18);
}

.receipt-page-title h1 {
    margin: 0;
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.receipt-lookup-card {
    width: min(100%, 520px);
    margin: 0 auto 26px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--get-border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.receipt-lookup-form {
    display: grid;
    gap: 15px;
}

.receipt-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #273142;
    font-size: 14px;
    font-weight: 600;
}

.receipt-input-group {
    display: flex;
    align-items: stretch;
}

.receipt-input-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: #475467;
    background: #f2f4f7;
    border: 1px solid #d0d5dd;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    font-weight: 600;
    white-space: nowrap;
}

.receipt-input,
.receipt-input-group .receipt-input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 10px 13px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 650;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.receipt-input-group .receipt-input {
    border-radius: 0 12px 12px 0;
}

.receipt-input:focus {
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.13);
}

.receipt-help-text {
    margin-top: 6px;
    color: var(--get-muted);
    font-size: 12px;
    line-height: 1.45;
}

.receipt-submit-row {
    text-align: center;
}

.receipt-submit-btn,
.receipt-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 22px;
    color: #fff;
    background: #198754;
    border: 0;
    border-radius: 999px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.receipt-submit-btn:hover,
.receipt-submit-btn:focus,
.receipt-download-btn:hover,
.receipt-download-btn:focus {
    color: #fff;
    background: #157347;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(25, 135, 84, 0.22);
    outline: none;
}

.receipt-download-row {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 12px;
}

.receipt-screen-title {
    width: min(100%, 650px);
    margin: 22px auto 18px;
    padding: 12px 20px;
    color: #fff;
    background: #d6010d;
    border-radius: 16px;
    text-align: center;
    font-size: clamp(18px, 2.3vw, 24px);
    line-height: 1.25;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(214, 1, 13, 0.16);
}

.receipt-screen-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--get-border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.receipt-summary-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: #1f2937;
    font-size: 15px;
}

.receipt-summary-table th,
.receipt-summary-table td {
    padding: 12px 10px;
    border: 1px solid #111827;
    text-align: center;
    vertical-align: middle;
}

.receipt-summary-table th {
    background: #f2f4f7;
    color: #111827;
    font-weight: 900;
}

.receipt-order-badge {
    display: inline-flex;
    padding: 7px 10px;
    color: #fff;
    background: #17a2b8;
    border-radius: 7px;
    font-weight: 900;
}

.receipt-paid-box img,
.receipt-received-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.receipt-paid-box strong {
    display: block;
    margin-top: 2px;
}

.receipt-terms-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    padding: 15px;
    background: #fff;
    border: 2px double #111827;
    border-radius: 14px;
}

.receipt-terms-box p {
    margin: 0 0 7px;
}

.receipt-terms-box__urdu {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    font-size: 20px;
    line-height: 1.8;
}

.receipt-generated-note {
    margin: 18px auto 12px;
    padding: 8px 14px;
    color: #fff;
    background: #198754;
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
    font-style: italic;
    font-weight: 700;
}

.receipt-print-date {
    margin: 0;
    color: #344054;
    font-size: 14px;
}

.receipt-alert {
    width: min(100%, 620px);
    margin: 22px auto;
    padding: 16px 18px;
    border-radius: 16px;
    text-align: center;
    line-height: 1.65;
    box-shadow: var(--shadow-sm);
}

.receipt-alert--danger {
    color: #7f1d1d;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.receipt-pdf-area {
    position: absolute;
    left: -99999px;
    top: 0;
    width: 1120px;
    background: #fff;
}

.receipt-pdf-document {
    width: 1080px;
    padding: 26px;
    color: #111827;
    background: #fff;
    font-family: Arial, sans-serif;
}

.receipt-pdf-red-header {
    min-height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 34px;
    color: #fff;
    background: #d6010d;
    text-align: right;
    font-size: 24px;
    font-weight: 900;
}

.receipt-pdf-logo {
    margin: 22px 0;
}

.receipt-pdf-logo img {
    width: 200px;
    height: auto;
}

.receipt-pdf-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 10px;
}

.receipt-pdf-box {
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.receipt-pdf-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.receipt-pdf-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    font-size: 16px;
    white-space: nowrap;
}

.receipt-pdf-info-row strong {
    flex: 0 0 auto;
    display: inline;
    margin: 0;
    font-size: 16px;
}

.receipt-pdf-info-row span {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: right;
}

.receipt-pdf-line {
    margin: 20px 0;
    border-bottom: 2px solid #e6e6e6;
}

.receipt-pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.receipt-pdf-table th,
.receipt-pdf-table td {
    padding: 10px;
    border: 2px solid #e6e6e6;
}

.receipt-pdf-table th {
    background: #f4f4f4;
}

.receipt-pdf-total {
    background: #f4f4f4;
    font-size: 24px;
    font-weight: 900;
}

.receipt-portal-voucher {
    max-width: 760px;
    margin: 16px auto 10px;
    padding: 14px 22px;
    background: #f6fff8;
    border: 4px dashed #198754;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.receipt-portal-voucher__title {
    margin-bottom: 8px;
    color: #198754;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.receipt-portal-voucher__text {
    color: #1f1f1f;
    font-size: 18px;
    line-height: 1.8;
}

.receipt-pdf-terms {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
}

@media print {
    body * {
        visibility: hidden;
    }

    .receipt-screen-card,
    .receipt-screen-card * {
        visibility: visible;
    }

    .receipt-screen-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: 0;
    }
}

@media (max-width: 767px) {
    .payment-receipt-main {
        padding: 18px 0 38px;
    }

    .receipt-page-title,
    .receipt-screen-title {
        border-radius: 14px;
    }

    .receipt-lookup-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .receipt-download-row {
        justify-content: center;
    }

    .receipt-summary-table,
    .receipt-summary-table thead,
    .receipt-summary-table tbody,
    .receipt-summary-table tr,
    .receipt-summary-table th,
    .receipt-summary-table td {
        display: block;
        width: 100%;
    }

    .receipt-summary-table thead {
        display: none;
    }

    .receipt-summary-table tr {
        display: block;
    }

    .receipt-summary-table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 14px;
        border: 0;
        border-bottom: 1px solid var(--get-border);
        text-align: right;
        word-break: break-word;
    }

    .receipt-summary-table td:last-child {
        border-bottom: 0;
    }

    .receipt-summary-table td::before {
        content: attr(data-label);
        flex: 0 0 40%;
        color: #111827;
        font-weight: 900;
        text-align: left;
    }

    .receipt-terms-box {
        grid-template-columns: 1fr;
    }

    .receipt-terms-box__urdu {
        font-size: 18px;
    }

    .receipt-generated-note {
        border-radius: 14px;
    }
}


/* =========================================================
   Page: Our Journey
   ========================================================= */
.journey-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 215, 0, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.journey-main {
    flex: 1 0 auto;
}

.journey-container {
    max-width: 1120px;
}

.journey-hero {
    padding: 34px 0 18px;
    text-align: center;
}

.journey-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-bottom: 10px;
    padding: 6px 14px;
    color: #9a6b00;
    background: rgba(255, 215, 0, 0.16);
    border: 1px solid rgba(230, 184, 0, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.journey-hero h1 {
    margin: 0;
    color: #13233d;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.journey-hero p {
    width: min(100%, 760px);
    margin: 12px auto 0;
    color: var(--get-muted);
    font-size: 17px;
    line-height: 1.65;
}

.journey-timeline-section {
    padding: 18px 0 60px;
}

.journey-timeline {
    position: relative;
    display: grid;
    gap: 24px;
    padding: 16px 0;
}

.journey-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, #ffd700, #e6b800, #003366);
    border-radius: 999px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.08);
}

.journey-event {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    align-items: center;
    min-height: 152px;
}

.journey-event:nth-child(odd) .journey-card {
    grid-column: 1;
}

.journey-event:nth-child(even) .journey-card {
    grid-column: 3;
}

.journey-year {
    position: relative;
    z-index: 2;
    grid-column: 2;
    justify-self: center;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    color: #111827;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    border: 7px solid #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(184, 134, 11, 0.26);
}

.journey-card {
    position: relative;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.journey-card::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    background: #fff;
    border-top: 1px solid rgba(229, 231, 235, 0.95);
    border-right: 1px solid rgba(229, 231, 235, 0.95);
    transform: translateY(-50%) rotate(45deg);
}

.journey-event:nth-child(odd) .journey-card::before {
    right: -12px;
}

.journey-event:nth-child(even) .journey-card::before {
    left: -12px;
    transform: translateY(-50%) rotate(225deg);
}

.journey-card h2 {
    margin: 0 0 10px;
    color: #13233d;
    font-size: clamp(20px, 2.1vw, 25px);
    line-height: 1.22;
    font-weight: 650;
}

.journey-card p {
    margin: 0;
    color: #344054;
    font-size: 15.5px;
    line-height: 1.72;
}

.journey-card p + p {
    margin-top: 10px;
}

.journey-card strong {
    color: #172033;
    font-weight: 750;
}

@media (max-width: 991px) {
    .journey-timeline::before {
        left: 38px;
    }

    .journey-event {
        grid-template-columns: 78px minmax(0, 1fr);
        align-items: start;
        min-height: auto;
    }

    .journey-event:nth-child(odd) .journey-card,
    .journey-event:nth-child(even) .journey-card {
        grid-column: 2;
    }

    .journey-year {
        grid-column: 1;
        width: 64px;
        height: 64px;
        border-width: 5px;
        font-size: 15px;
    }

    .journey-card {
        padding: 20px;
        border-radius: 18px;
    }

    .journey-card::before,
    .journey-event:nth-child(even) .journey-card::before {
        left: -10px;
        right: auto;
        transform: translateY(-50%) rotate(225deg);
    }
}

@media (max-width: 767px) {
    .journey-hero {
        padding: 24px 0 12px;
    }

    .journey-hero h1 {
        font-size: 30px;
    }

    .journey-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .journey-timeline-section {
        padding: 12px 0 40px;
    }

    .journey-timeline {
        gap: 18px;
    }

    .journey-timeline::before {
        left: 30px;
        width: 3px;
    }

    .journey-event {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .journey-year {
        width: 54px;
        height: 54px;
        font-size: 13px;
        border-width: 4px;
    }

    .journey-card {
        padding: 17px 16px;
        border-radius: 16px;
    }

    .journey-card h2 {
        font-size: 19px;
    }

    .journey-card p {
        font-size: 14.5px;
        line-height: 1.65;
    }
}

@media (max-width: 420px) {
    .journey-timeline::before {
        left: 27px;
    }

    .journey-event {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .journey-year {
        width: 48px;
        height: 48px;
        font-size: 12px;
    }

    .journey-card::before {
        display: none;
    }
}


/* =========================================================
   Page: Contact / Complaints & Suggestions
   ========================================================= */
.contact-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 215, 0, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.contact-main {
    flex: 1 0 auto;
}

.contact-container {
    max-width: 1120px;
}

.contact-hero {
    padding: 34px 0 18px;
    text-align: center;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-bottom: 10px;
    padding: 6px 14px;
    color: #9a6b00;
    background: rgba(255, 215, 0, 0.16);
    border: 1px solid rgba(230, 184, 0, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-hero h1 {
    margin: 0;
    color: #13233d;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.contact-hero p {
    width: min(100%, 760px);
    margin: 12px auto 0;
    color: var(--get-muted);
    font-size: 17px;
    line-height: 1.65;
}

.contact-status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 18px;
    padding: 11px 20px;
    color: #fff;
    background: linear-gradient(135deg, #dc3545, #b91c1c);
    border-radius: 999px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.18);
}

.contact-status-btn:hover,
.contact-status-btn:focus {
    color: #fff;
    transform: translateY(-1px);
}

.contact-section {
    padding: 18px 0 60px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 20px;
    align-items: start;
}

/* Full width layout for contact page when only the complaint/suggestion form is shown */
.contact-page .contact-layout.contact-layout--form-only {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}

.contact-page .contact-layout--form-only .contact-form-card {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
}

/* Keep the full-width form balanced on desktop/laptop */
@media (min-width: 901px) {
    .contact-page .contact-layout--form-only .contact-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-page .contact-layout--form-only .contact-order-row {
        grid-template-columns: minmax(0, 1fr) 220px;
        align-items: start;
    }

    .contact-page .contact-layout--form-only .contact-fetch-btn {
        width: 100%;
    }
}

.contact-info-card,
.contact-form-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.contact-info-card {
    padding: 24px;
    position: sticky;
    top: 18px;
}

.contact-info-card h2,
.contact-form-heading h2 {
    margin: 0;
    color: #13233d;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 650;
}

.contact-info-card ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.contact-info-card li {
    position: relative;
    padding-left: 26px;
    color: #344054;
    line-height: 1.55;
    font-size: 14.5px;
}

.contact-info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 850;
}

.contact-help-box {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fff8dc, #ffffff);
    border: 1px solid rgba(230, 184, 0, 0.28);
    border-radius: 18px;
}

.contact-help-box span,
.contact-help-box small {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-help-box strong {
    display: block;
    margin: 5px 0;
    color: #13233d;
    font-size: 22px;
    font-weight: 750;
}

.contact-form-card {
    padding: clamp(18px, 2.5vw, 26px);
}

.contact-form-heading {
    margin-bottom: 18px;
}

.contact-form-heading p {
    margin: 8px 0 0;
    color: var(--get-muted);
    line-height: 1.6;
    font-size: 14.5px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.contact-field label {
    display: block;
    margin-bottom: 7px;
    color: #172033;
    font-size: 13.5px;
    font-weight: 750;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 11px 13px;
    color: #172033;
    background: #fff;
    font-size: 14.5px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #123d73;
    box-shadow: 0 0 0 3px rgba(18, 61, 115, 0.12);
}

.contact-field small {
    display: block;
    margin-top: 7px;
    color: #667085;
    font-size: 12.5px;
    line-height: 1.45;
}

.is-autofetch-field {
    background: #f2f4f7 !important;
    font-weight: 750;
}

.contact-fetch-btn,
.contact-submit-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-fetch-btn {
    min-height: 46px;
    padding: 11px 18px;
    color: #fff;
    background: linear-gradient(135deg, #123d73, #0b2f5d);
    box-shadow: 0 10px 20px rgba(18, 61, 115, 0.16);
    white-space: nowrap;
    align-self: start;
    margin-top: 27px;
}

.contact-submit-btn {
    min-height: 50px;
    padding: 12px 24px;
    color: #fff;
    background: linear-gradient(135deg, #dc3545, #b91c1c);
    box-shadow: 0 12px 24px rgba(220, 53, 69, 0.18);
    justify-self: end;
    min-width: 180px;
    margin-top: -6px;
}

.contact-fetch-btn:hover,
.contact-fetch-btn:focus,
.contact-submit-btn:hover,
.contact-submit-btn:focus {
    transform: translateY(-1px);
}

.contact-fetch-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.contact-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #344054;
    font-size: 14px;
    line-height: 1.5;
}

.contact-terms input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.contact-terms a {
    color: #0b5ed7;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-alert {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
}

.contact-alert strong {
    font-weight: 850;
}

.contact-alert--danger {
    color: #991b1b;
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.contact-alert--success {
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

@media (max-width: 900px) {
    .contact-layout,
    .contact-field-grid,
    .contact-order-row {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        position: static;
    }

    .contact-fetch-btn,
    .contact-submit-btn {
        width: 100%;
        margin-top: 0;
        align-self: stretch;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        padding: 24px 0 12px;
    }

    .contact-hero h1 {
        font-size: 30px;
    }

    .contact-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .contact-section {
        padding: 12px 0 40px;
    }

    .contact-info-card,
    .contact-form-card {
        border-radius: 18px;
    }

    .contact-info-card {
        padding: 18px;
    }

    .contact-form-card {
        padding: 18px 16px;
    }

    .contact-help-box strong {
        font-size: 20px;
    }

    .contact-submit-btn {
        justify-self: stretch;
    }
}


/* Phase v57: Contact page email fetch + terms modal */
.contact-terms-link {
    border: 0;
    padding: 0;
    color: #0b5ed7;
    background: transparent;
    font: inherit;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.contact-terms input:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.contact-token {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 7px 12px;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    font-weight: 850;
}

.contact-alert-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    color: #0b5ed7;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-modal-open {
    overflow: hidden;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
}

.contact-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: min(92vh, 760px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.28);
}

.contact-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff8dc, #eef6ff);
    border-bottom: 1px solid var(--get-border);
}

.contact-modal__header h2 {
    margin: 0;
    color: #13233d;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.25;
    font-weight: 650;
}

.contact-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    color: #172033;
    background: rgba(255,255,255,0.9);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.contact-modal__body {
    overflow-y: auto;
    padding: 20px;
    color: #344054;
    line-height: 1.7;
    scroll-behavior: smooth;
}

.contact-modal__body:focus {
    outline: none;
}

.contact-modal__body h3 {
    margin: 18px 0 8px;
    color: #13233d;
    font-size: 18px;
    font-weight: 650;
}

.contact-modal__body p {
    margin: 0 0 12px;
}

.contact-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--get-border);
}

.contact-modal__footer small {
    color: var(--get-muted);
    line-height: 1.45;
}

.contact-modal__agree {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #15803d);
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.contact-modal__agree:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .contact-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .contact-modal__dialog {
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }

    .contact-modal__header,
    .contact-modal__body,
    .contact-modal__footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-modal__agree {
        width: 100%;
    }

    .contact-token,
    .contact-alert-link {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   Page: Complaint Status
   ========================================================= */
.complaint-status-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 215, 0, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.complaint-status-main {
    flex: 1 0 auto;
}

.complaint-status-container {
    max-width: 1060px;
}

.complaint-status-hero {
    padding: 34px 0 18px;
    text-align: center;
}

.complaint-status-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-bottom: 10px;
    padding: 6px 14px;
    color: #9a6b00;
    background: rgba(255, 215, 0, 0.16);
    border: 1px solid rgba(230, 184, 0, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.complaint-status-hero h1 {
    margin: 0;
    color: #13233d;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 750;
}

.complaint-status-hero p {
    width: min(100%, 720px);
    margin: 12px auto 0;
    color: var(--get-muted);
    font-size: 17px;
    line-height: 1.65;
}

.complaint-status-section {
    padding: 18px 0 60px;
}

.complaint-status-search-card,
.complaint-result-card,
.complaint-status-empty,
.complaint-status-alert {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.complaint-status-search-card {
    width: min(100%, 660px);
    margin: 0 auto;
    padding: 22px;
}

.complaint-status-form {
    display: grid;
    gap: 10px;
}

.complaint-status-form label {
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.complaint-status-input-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.complaint-status-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: #172033;
    background: #f2f4f7;
    border: 1px solid #d0d5dd;
    border-right: 0;
    border-radius: 14px 0 0 14px;
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
}

.complaint-status-input-row input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    border: 1px solid #d0d5dd;
    border-radius: 0;
    padding: 11px 13px;
    color: #172033;
    background: #fff;
    font-size: 15px;
    font-weight: 650;
    outline: none;
}

.complaint-status-input-row input:focus {
    border-color: #123d73;
    box-shadow: inset 0 0 0 1px #123d73;
}

.complaint-status-input-row button {
    min-height: 48px;
    border: 0;
    border-radius: 0 14px 14px 0;
    padding: 11px 18px;
    color: #fff;
    background: linear-gradient(135deg, #dc3545, #b91c1c);
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.complaint-status-form small {
    display: block;
    color: var(--get-muted);
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
}

.complaint-status-alert,
.complaint-status-empty {
    width: min(100%, 760px);
    margin: 18px auto 0;
    padding: 18px;
    text-align: center;
    line-height: 1.6;
}

.complaint-status-alert--danger {
    color: #991b1b;
    background: #fff5f5;
    border-color: #fecaca;
}

.complaint-status-empty h2 {
    margin: 0 0 8px;
    color: #13233d;
    font-size: 23px;
    font-weight: 650;
}

.complaint-status-empty p {
    margin: 0;
    color: #344054;
}

.complaint-result-card {
    margin-top: 22px;
    overflow: hidden;
}

.complaint-result-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #f8fafc;
    border-bottom: 1px solid var(--get-border);
}

.complaint-meta-item {
    padding: 16px;
    border-right: 1px solid var(--get-border);
}

.complaint-meta-item:last-child {
    border-right: 0;
}

.complaint-meta-item span,
.complaint-detail-box span {
    display: block;
    color: var(--get-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.complaint-meta-item strong,
.complaint-detail-box strong {
    display: inline-flex;
    margin-top: 7px;
    color: #172033;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.complaint-token,
.complaint-badge {
    padding: 6px 10px;
    border-radius: 999px;
}

.complaint-token {
    color: #fff !important;
    background: #dc3545;
}

.complaint-badge--progress {
    color: #fff !important;
    background: #0b5ed7;
}

.complaint-badge--success {
    color: #fff !important;
    background: #16a34a;
}

.complaint-result-details {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0;
}

.complaint-detail-box {
    padding: 18px;
    border-right: 1px solid var(--get-border);
    border-bottom: 1px solid var(--get-border);
}

.complaint-detail-box:nth-child(2n),
.complaint-detail-box--wide {
    border-right: 0;
}

.complaint-detail-box--wide {
    grid-column: 1 / -1;
    border-bottom: 0;
}

.complaint-detail-box p {
    margin: 8px 0 0;
    color: #344054;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .complaint-result-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .complaint-meta-item:nth-child(2n) {
        border-right: 0;
    }

    .complaint-meta-item {
        border-bottom: 1px solid var(--get-border);
    }

    .complaint-meta-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

@media (max-width: 767px) {
    .complaint-status-hero {
        padding: 24px 0 12px;
    }

    .complaint-status-hero h1 {
        font-size: 30px;
    }

    .complaint-status-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .complaint-status-section {
        padding: 12px 0 40px;
    }

    .complaint-status-search-card,
    .complaint-result-card,
    .complaint-status-empty,
    .complaint-status-alert {
        border-radius: 18px;
    }

    .complaint-status-search-card {
        padding: 18px 16px;
    }

    .complaint-status-input-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .complaint-status-prefix,
    .complaint-status-input-row input,
    .complaint-status-input-row button {
        width: 100%;
        border-radius: 14px;
        border: 1px solid #d0d5dd;
    }

    .complaint-status-input-row button {
        border: 0;
    }

    .complaint-result-meta,
    .complaint-result-details {
        grid-template-columns: 1fr;
    }

    .complaint-meta-item,
    .complaint-detail-box {
        border-right: 0;
        border-bottom: 1px solid var(--get-border);
    }

    .complaint-meta-item:last-child,
    .complaint-detail-box:last-child {
        border-bottom: 0;
    }
}


/* =========================================================
   Page: Policy / Legal Pages
   ========================================================= */
.policy-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 215, 0, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.policy-main {
    flex: 1 0 auto;
}

.policy-container {
    max-width: 980px;
}

.policy-hero {
    padding: 34px 0 18px;
    text-align: center;
}

.policy-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-bottom: 10px;
    padding: 6px 14px;
    color: #9a6b00;
    background: rgba(255, 215, 0, 0.16);
    border: 1px solid rgba(230, 184, 0, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.policy-hero h1 {
    margin: 0;
    color: #13233d;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 750;
}

.policy-hero p {
    width: min(100%, 720px);
    margin: 12px auto 0;
    color: var(--get-muted);
    font-size: 17px;
    line-height: 1.65;
}

.policy-section {
    padding: 18px 0 60px;
}

.policy-card {
    padding: clamp(20px, 3vw, 32px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.policy-block {
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--get-border);
}

.policy-block:last-of-type {
    margin-bottom: 0;
}

.policy-block h2 {
    margin: 0 0 10px;
    color: #13233d;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.25;
    font-weight: 650;
}

.policy-block p {
    margin: 0;
    color: #344054;
    font-size: 15.8px;
    line-height: 1.78;
}

.policy-block p + p {
    margin-top: 10px;
}

.policy-block strong {
    color: #172033;
    font-weight: 800;
}

.policy-block a {
    color: #0b5ed7;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-note {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    padding: 16px 18px;
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    line-height: 1.6;
}

.policy-note strong {
    color: #14532d;
    font-weight: 850;
}

.policy-note span {
    color: #166534;
}

.policy-note--warning {
    color: #854d0e;
    background: #fffbeb;
    border-color: #fde68a;
}

.policy-note--warning strong {
    color: #713f12;
}

.policy-note--warning span {
    color: #854d0e;
}

@media (max-width: 767px) {
    .policy-hero {
        padding: 24px 0 12px;
    }

    .policy-hero h1 {
        font-size: 30px;
    }

    .policy-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .policy-section {
        padding: 12px 0 40px;
    }

    .policy-card {
        border-radius: 18px;
        padding: 18px 16px;
    }

    .policy-block {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .policy-block p {
        font-size: 14.8px;
        line-height: 1.7;
    }

    .policy-note {
        border-radius: 16px;
    }
}


/* =========================================================
   Page: PIEAS MS Success Stories
   ========================================================= */
.success-stories-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 215, 0, 0.12), transparent 28%),
        radial-gradient(circle at 84% 6%, rgba(0, 51, 102, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.success-main {
    flex: 1 0 auto;
}

.success-container {
    max-width: 1180px;
}

.success-hero {
    padding: 40px 0 24px;
    text-align: center;
}

.success-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 12px;
    padding: 7px 16px;
    color: #9a6b00;
    background: rgba(255, 215, 0, 0.18);
    border: 1px solid rgba(230, 184, 0, 0.32);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.success-hero h1 {
    margin: 0;
    color: #13233d;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.success-hero p {
    width: min(100%, 820px);
    margin: 14px auto 0;
    color: var(--get-muted);
    font-size: 18px;
    line-height: 1.7;
}

.success-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.success-primary-btn,
.success-secondary-btn,
.success-cta-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.success-primary-btn,
.success-cta-card a {
    color: #111827;
    background: linear-gradient(135deg, #ffd700, #e6b800);
    box-shadow: 0 12px 24px rgba(184, 134, 11, 0.20);
}

.success-secondary-btn {
    color: #fff;
    background: linear-gradient(135deg, #123d73, #0b2f5d);
    box-shadow: 0 12px 24px rgba(18, 61, 115, 0.16);
}

.success-primary-btn:hover,
.success-primary-btn:focus,
.success-secondary-btn:hover,
.success-secondary-btn:focus,
.success-cta-card a:hover,
.success-cta-card a:focus {
    transform: translateY(-1px);
}

.success-overview-section,
.success-wall-section,
.success-note-section,
.success-cta-section {
    padding: 18px 0;
}

.success-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.success-overview-card,
.success-stat-card,
.success-student-card,
.success-note-card,
.success-cta-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.success-overview-card {
    padding: 20px;
    text-align: center;
}

.success-overview-card--gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.24), rgba(255, 255, 255, 0.98));
}

.success-overview-card span,
.success-stat-card span {
    display: block;
    color: var(--get-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.success-overview-card strong {
    display: block;
    margin-top: 8px;
    color: #13233d;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    font-weight: 800;
}

.success-overview-card small,
.success-stat-card small {
    display: block;
    margin-top: 7px;
    color: #667085;
    line-height: 1.45;
}

.success-dept-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.success-stat-card {
    padding: 17px 14px;
    text-align: center;
    border-radius: 20px;
}

.success-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #9a6b00;
    font-size: 32px;
    line-height: 1;
    font-weight: 850;
}

.success-section-heading {
    margin-bottom: 18px;
    text-align: center;
}

.success-section-heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: #9a6b00;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.success-section-heading h2 {
    margin: 0;
    color: #13233d;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.12;
    font-weight: 750;
}

.success-section-heading p {
    width: min(100%, 760px);
    margin: 10px auto 0;
    color: var(--get-muted);
    font-size: 16px;
    line-height: 1.65;
}

.success-student-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.success-student-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 22px;
}

.success-student-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd700, #e6b800, #123d73);
}

.success-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.success-badge,
.success-dept {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
}

.success-badge {
    color: #166534;
    background: #dcfce7;
}

.success-dept {
    color: #123d73;
    background: #eef6ff;
}

.success-student-card h2 {
    min-height: 54px;
    margin: 0;
    color: #13233d;
    font-size: 21px;
    line-height: 1.28;
    font-weight: 700;
}

.success-student-meta {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.success-student-meta p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.success-student-meta span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.success-student-meta strong {
    color: #172033;
    font-size: 13.5px;
    font-weight: 750;
    text-align: right;
}

.success-thankyou {
    margin-top: 14px;
    padding: 11px 12px;
    color: #9a6b00;
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(230, 184, 0, 0.24);
    border-radius: 16px;
    text-align: center;
    font-weight: 850;
}

.success-note-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    padding: clamp(18px, 2.6vw, 26px);
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.success-note-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #16a34a;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.success-note-card h2 {
    margin: 0;
    color: #13233d;
    font-size: 24px;
    font-weight: 700;
}

.success-note-card p {
    margin: 8px 0 0;
    color: #344054;
    font-size: 15.5px;
    line-height: 1.7;
}

.success-note-card strong {
    display: block;
    margin-top: 10px;
    color: #166534;
    font-weight: 850;
}

.success-cta-section {
    padding-bottom: 60px;
}

.success-cta-card {
    padding: clamp(22px, 3vw, 34px);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(19, 35, 61, 0.92), rgba(11, 47, 93, 0.92)),
        radial-gradient(circle at 20% 10%, rgba(255, 215, 0, 0.22), transparent 30%);
}

.success-cta-card span {
    display: inline-block;
    color: #ffd700;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.success-cta-card h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.1;
    font-weight: 800;
}

.success-cta-card p {
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.6;
}

.success-cta-card a {
    margin-top: 20px;
}

@media (max-width: 1050px) {
    .success-dept-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .success-student-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .success-hero {
        padding: 28px 0 16px;
    }

    .success-hero h1 {
        font-size: 36px;
    }

    .success-hero p,
    .success-section-heading p {
        font-size: 15px;
        line-height: 1.6;
    }

    .success-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .success-primary-btn,
    .success-secondary-btn {
        width: 100%;
    }

    .success-overview-grid,
    .success-dept-grid,
    .success-student-grid {
        grid-template-columns: 1fr;
    }

    .success-student-card,
    .success-overview-card,
    .success-stat-card,
    .success-note-card,
    .success-cta-card {
        border-radius: 18px;
    }

    .success-card-top {
        align-items: stretch;
        flex-direction: column;
    }

    .success-student-card h2 {
        min-height: auto;
    }

    .success-note-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .success-note-icon {
        margin: 0 auto;
    }

    .success-student-meta p {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .success-student-meta strong {
        text-align: left;
    }

    .success-cta-section {
        padding-bottom: 40px;
    }
}


/* Phase v61: Success Stories card refinements */
.success-card-top {
    justify-content: flex-start;
}

.success-badge {
    width: 100%;
    justify-content: center;
    color: #14532d;
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border: 1px solid #bbf7d0;
    font-size: 12px;
}

.success-dept {
    display: none !important;
}

.success-department-row {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.17), rgba(255, 255, 255, 0.98)) !important;
    border-color: rgba(230, 184, 0, 0.30) !important;
}

.success-department-row span {
    color: #9a6b00 !important;
}

.success-department-row strong {
    color: #13233d !important;
    font-size: 15px !important;
    font-weight: 850 !important;
}

.success-list-continues {
    width: min(100%, 720px);
    margin: 26px auto 0;
    padding: 18px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    border: 1px dashed rgba(230, 184, 0, 0.55);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.success-list-continues span {
    display: block;
    color: #9a6b00;
    font-size: 20px;
    font-weight: 850;
}

.success-list-continues p {
    margin: 7px 0 0;
    color: var(--get-muted);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .success-list-continues {
        border-radius: 18px;
        padding: 16px;
    }
}


/* Phase v62: Success Stories simplified layout */
.success-overview-section,
.success-note-section,
.success-thankyou {
    display: none !important;
}

.success-wall-section {
    padding-top: 28px;
}

.success-student-card h2 {
    min-height: auto;
}

.success-student-meta {
    margin-top: 16px;
}

@media (max-width: 767px) {
    .success-wall-section {
        padding-top: 18px;
    }
}


/* Phase v63: PIEAS Dashboard Success Stories CTA */
.pieas-dashboard-success-link {
    margin-top: 18px;
    text-align: center;
}

.pieas-dashboard-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 28px;
    border-radius: 999px;

    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff !important;

    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.18);

    font-size: 16px;
    font-weight: 600; /* was 850 */

    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;

    transition: all .25s ease;
}

.pieas-dashboard-success-btn:hover,
.pieas-dashboard-success-btn:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.28);
}
@media (max-width: 767px) {
    .pieas-dashboard-success-link {
        margin-top: 16px;
    }

    .pieas-dashboard-success-btn {
        width: 100%;
        max-width: 430px;
        min-height: 52px;
        padding: 13px 18px;
        font-size: 15px;
    }
}
/* =========================================================
   Phase v67/v68: Homepage Clean Polished Layout
   Scope: .home-page only
   Visible order after latest update:
   1) PIEAS MS product slider
   2) Books
   3) Latest Updates for Students as blog-style posts
   4) Testimonial slider with review, student name and university/program
   Note: Vision/Mission and FAQ markup is removed in index.php;
   related old CSS remains harmless for cache/backward compatibility.
   ========================================================= */

/* Hard hide the crossed/removed homepage sections if any older cached markup is still present. */
.home-page .home-hero-section,
.home-page .home-trust-section,
.home-page .home-why-section,
.home-page .home-why-grid,
.home-page .home-trust-grid,
.home-page .home-hero-shell,
.home-page .home-hero-content,
.home-page .home-hero-card {
    display: none !important;
}

.home-page {
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 215, 0, 0.06), transparent 28%),
        radial-gradient(circle at 88% 4%, rgba(0, 51, 102, 0.045), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f9 48%, #ffffff 100%);
}

.home-page .home-dashboard-main {
    padding: 0 0 58px;
    background: transparent;
}

.home-page .home-dashboard-container {
    max-width: 1180px;
}

.home-page .home-dashboard-main h1,
.home-page .home-dashboard-main h2,
.home-page .home-dashboard-main h3,
.home-page .home-dashboard-main summary,
.home-page .home-dashboard-main strong,
.home-page .home-dashboard-main .pieas-book-card__title,
.home-page .home-dashboard-main .pieas-book-card__subtitle,
.home-page .home-dashboard-main .pieas-book-card__button,
.home-page .home-dashboard-main a,
.home-page .home-dashboard-main button {
    font-weight: 600;
}

.home-page .home-dashboard-main p {
    font-weight: 400;
}

.home-page .home-books-section {
    padding: 24px 0 28px;
}

.home-books-intro {
    width: min(100%, 820px);
    margin: 0 auto 24px;
    text-align: center;
}

.home-books-intro span,
.home-eyebrow,
.home-section-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    margin-bottom: 10px;
    padding: 6px 13px;
    color: #956800;
    background: rgba(255, 215, 0, 0.13);
    border: 1px solid rgba(230, 184, 0, 0.24);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-books-intro h1,
.home-books-intro h2,
.home-section-heading h2,
.home-store-card h2 {
    margin: 0;
    color: #13233d;
    font-size: clamp(27px, 3.1vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.012em;
}

.home-books-intro p,
.home-section-heading p {
    margin: 10px auto 0;
    color: #667085;
    font-size: 15.5px;
    line-height: 1.65;
}

.home-page .home-book-card {
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.home-page .home-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

.home-page .home-book-card .pieas-book-card__image {
    border-color: #d0d5dd;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.home-page .home-book-card .pieas-book-card__title {
    color: #13233d;
    font-size: 15px;
    line-height: 1.35;
}

.home-page .home-book-card .pieas-book-card__subtitle {
    color: #344054;
    font-size: 14px;
}

.home-page .home-book-card .pieas-book-card__button {
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.16);
}

.home-notice-section,
.home-testimonial-section,
.home-store-section,
.home-faq-section {
    padding: 22px 0;
}

.home-section-heading {
    width: min(100%, 800px);
    margin: 0 auto 22px;
    text-align: center;
}

.home-section-heading--compact {
    margin-bottom: 18px;
}

.home-section-heading span {
    margin-left: auto;
    margin-right: auto;
}

.home-section-heading h2 {
    font-size: clamp(26px, 3vw, 40px);
}

/* Latest Updates as clean blog-style posts */
.home-notice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-notice-card,
.home-testimonial-card,
.home-store-card,
.home-faq-item,
.home-value-card {
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid rgba(229, 231, 235, 0.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.065);
}

.home-notice-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 22px;
    border-radius: 22px;
}

.home-notice-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #e9b949, #123d73);
}

.home-notice-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.home-notice-card__meta span,
.home-notice-card__meta small {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-notice-card__meta span {
    color: #123d73;
    background: #eef6ff;
    border: 1px solid #cfe5ff;
}

.home-notice-card__meta small {
    color: #956800;
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(230, 184, 0, 0.24);
}

.home-notice-card h3 {
    margin: 0;
    color: #13233d;
    font-size: 18px;
    line-height: 1.38;
}

.home-notice-card p {
    flex: 1 1 auto;
    margin: 10px 0 0;
    color: #475467;
    font-size: 14.7px;
    line-height: 1.65;
}

.home-notice-card a,
.home-store-card__content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 39px;
    margin-top: 16px;
    padding: 9px 16px;
    color: #fff !important;
    background: linear-gradient(135deg, #123d73, #0b2f5d);
    border-radius: 999px;
    box-shadow: 0 9px 18px rgba(18, 61, 115, 0.13);
    font-size: 14px;
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-notice-card a::after {
    content: "›";
    margin-left: 7px;
    font-size: 18px;
    line-height: 1;
}

.home-notice-card a:hover,
.home-notice-card a:focus,
.home-store-card__content a:hover,
.home-store-card__content a:focus {
    color: #fff !important;
    filter: saturate(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(18, 61, 115, 0.18);
}

/* Testimonial slider */
.home-testimonial-slider {
    overflow: hidden;
    padding: 4px;
    border-radius: 24px;
}

.home-testimonial-track {
    display: flex;
    width: max-content;
    gap: 16px;
    animation: homeTestimonialSlide 38s linear infinite;
}

.home-testimonial-slider:hover .home-testimonial-track {
    animation-play-state: paused;
}

.home-testimonial-card {
    position: relative;
    overflow: hidden;
    width: 350px;
    min-height: 222px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 22px;
}

.home-testimonial-card::before {
    content: "\201C";
    position: absolute;
    right: 18px;
    top: 6px;
    color: rgba(255, 215, 0, 0.22);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 76px;
    line-height: 1;
}

.home-testimonial-card__review {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #344054;
    font-size: 15px;
    line-height: 1.72;
}

.home-testimonial-card__student {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.home-testimonial-card__student span {
    color: #13233d;
    font-size: 15px;
    line-height: 1.35;
}

.home-testimonial-card__student small {
    color: #667085;
    font-size: 13px;
    line-height: 1.35;
}

@keyframes homeTestimonialSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 8px));
    }
}

/* Online Book Store Pakistan Vision & Mission box */
.home-store-card {
    display: grid;
    grid-template-columns: minmax(245px, 0.54fr) minmax(0, 1.46fr);
    gap: 22px;
    align-items: stretch;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)),
        radial-gradient(circle at 0% 0%, rgba(255, 215, 0, 0.20), transparent 30%);
}

.home-store-card__heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 8px;
}

.home-store-card h2 {
    font-size: clamp(24px, 2.8vw, 36px);
}

.home-store-card__heading p {
    margin: 12px 0 0;
    color: #667085;
    font-size: 15.5px;
    line-height: 1.65;
}

.home-store-card__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-value-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 22px;
}

.home-value-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ffd700, #123d73);
}

.home-value-card span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 5px 10px;
    color: #956800;
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(230, 184, 0, 0.24);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-value-card h3 {
    margin: 0;
    color: #13233d;
    font-size: 18px;
    line-height: 1.38;
}

.home-value-card p {
    margin: 10px 0 0;
    color: #475467;
    font-size: 14.8px;
    line-height: 1.68;
}

/* FAQs */
.home-faq-list {
    display: grid;
    gap: 12px;
    width: min(100%, 900px);
    margin: 0 auto;
}

.home-faq-item {
    overflow: hidden;
    border-radius: 18px;
}

.home-faq-item summary {
    position: relative;
    display: block;
    padding: 17px 54px 17px 18px;
    color: #13233d;
    font-size: 15.5px;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #13233d;
    background: rgba(255, 215, 0, 0.16);
    border-radius: 999px;
    font-size: 20px;
    transform: translateY(-50%);
}

.home-faq-item[open] summary::after {
    content: "−";
}

.home-faq-item p {
    margin: 0;
    padding: 0 18px 18px;
    color: #475467;
    font-size: 14.8px;
    line-height: 1.68;
}

@media (prefers-reduced-motion: reduce) {
    .home-testimonial-track {
        animation: none;
    }
}

@media (max-width: 991px) {
    .home-notice-grid,
    .home-store-card,
    .home-store-card__content {
        grid-template-columns: 1fr;
    }

    .home-testimonial-card {
        width: 320px;
    }

    .home-store-card__heading {
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .home-page .home-dashboard-main {
        padding-bottom: 40px;
    }

    .home-page .home-books-section {
        padding-top: 18px;
        padding-bottom: 22px;
    }

    .home-notice-section,
    .home-testimonial-section,
    .home-store-section,
    .home-faq-section {
        padding: 15px 0;
    }

    .home-books-intro,
    .home-section-heading {
        margin-bottom: 18px;
    }

    .home-books-intro h1,
    .home-books-intro h2,
    .home-section-heading h2,
    .home-store-card h2 {
        font-size: 25px;
    }

    .home-books-intro p,
    .home-section-heading p,
    .home-store-card__heading p,
    .home-value-card p {
        font-size: 14.5px;
        line-height: 1.62;
    }

    .home-notice-card,
    .home-testimonial-card,
    .home-store-card,
    .home-faq-item,
    .home-value-card {
        border-radius: 18px;
    }

    .home-notice-card,
    .home-testimonial-card,
    .home-value-card {
        padding: 18px;
    }

    .home-notice-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .home-testimonial-slider {
        overflow: visible;
        padding: 0;
    }

    .home-testimonial-track {
        width: 100%;
        display: grid;
        gap: 14px;
        animation: none;
    }

    .home-testimonial-track .home-testimonial-card[aria-hidden="true"] {
        display: none;
    }

    .home-testimonial-card {
        width: 100%;
        min-height: 0;
    }

    .home-store-card {
        padding: 20px 18px;
    }

    .home-faq-item summary {
        padding: 15px 48px 15px 16px;
        font-size: 15px;
    }

    .home-faq-item p {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 420px) {
    .home-books-intro h1,
    .home-books-intro h2,
    .home-section-heading h2,
    .home-store-card h2 {
        font-size: 23px;
    }

    .home-books-intro span,
    .home-eyebrow,
    .home-section-heading span {
        font-size: 10.5px;
        letter-spacing: 0.09em;
    }
}
/* =========================================================
   Phase v69: Homepage PIEAS MS Single Showcase Slider
   Scope: .home-page only
   Notes:
   - Single static showcase, no multi-slide movement.
   - Uses PIEAS MS dashboard cover links in a premium cover wall.
   - Keeps header, footer, order tracking and existing book cards untouched.
   ========================================================= */
.home-pieas-slider-section {
    padding: 24px 0 18px;
}

.home-pieas-showcase {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 34px;
    background:
        radial-gradient(circle at 9% 16%, rgba(220, 53, 69, 0.18), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(255, 215, 0, 0.24), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #fff8f8 42%, #ffe4e7 100%);
    border: 1px solid rgba(220, 53, 69, 0.22);
    box-shadow: 0 24px 55px rgba(185, 28, 28, 0.13);
}

.home-pieas-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(220, 53, 69, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(220, 53, 69, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.8;
}

.home-pieas-showcase::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -110px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.13);
    filter: blur(2px);
}

.home-pieas-slide {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(24px, 3.4vw, 44px);
    align-items: center;
    min-height: 430px;
    padding: clamp(30px, 4vw, 46px);
}

.home-pieas-slide__content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.home-pieas-slide__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    margin-bottom: 14px;
    padding: 7px 14px;
    color: #b91c1c;
    background: #ffffff;
    border: 1px solid rgba(220, 53, 69, 0.24);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.08);
    font-size: 12px;
    font-weight: 750 !important;
    letter-spacing: 0.10em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-pieas-slide h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.02;
    font-weight: 720 !important;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.home-pieas-slide__lead {
    max-width: 620px;
    margin: 15px 0 0;
    color: #344054;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
    font-weight: 560 !important;
}

.home-pieas-slide__lead span {
    display: block;
    margin-top: 5px;
    color: #b91c1c;
    font-size: clamp(15.5px, 1.55vw, 18px);
    line-height: 1.45;
    font-weight: 650 !important;
}

.home-pieas-slide__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.home-pieas-slide__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #7f1d1d;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(220, 53, 69, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(185, 28, 28, 0.055);
    font-size: 13px;
    font-weight: 650 !important;
}

.home-pieas-slide__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    margin-top: 24px;
    padding: 13px 28px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(185, 28, 28, 0.26);
    font-size: 16px;
    font-weight: 760 !important;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-pieas-slide__button::after {
    content: "›";
    font-size: 23px;
    line-height: 1;
}

.home-pieas-slide__button:hover,
.home-pieas-slide__button:focus {
    color: #ffffff !important;
    filter: saturate(1.06);
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(185, 28, 28, 0.32);
    outline: none;
}

.home-pieas-cover-wall {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    padding: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 22px 44px rgba(185, 28, 28, 0.11);
    backdrop-filter: blur(10px);
}

.home-pieas-cover-wall::before {
    content: "All Department Books";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.18);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-pieas-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.13);
    transform: translateY(0) rotate(-1deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-pieas-cover:nth-child(2n) {
    transform: translateY(10px) rotate(1.2deg);
}

.home-pieas-cover:nth-child(3n) {
    transform: translateY(-6px) rotate(-1.4deg);
}

.home-pieas-cover:hover {
    transform: translateY(-5px) rotate(0deg) scale(1.025);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

@media (max-width: 991px) {
    /*
     * Keep the same showcase composition as desktop.
     * Earlier mobile CSS stacked the cover wall above the text; that made the slide
     * feel different from the laptop view. These rules only scale the same two-column
     * banner down for tablet/mobile.
     */
    .home-pieas-slide {
        grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
        gap: clamp(14px, 2.6vw, 24px);
        min-height: 0;
        text-align: left;
        padding: clamp(24px, 3.6vw, 34px);
    }

    .home-pieas-slide__content {
        max-width: 560px;
        margin: 0;
    }

    .home-pieas-slide__chips {
        justify-content: flex-start;
    }

    .home-pieas-cover-wall {
        order: initial;
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .home-pieas-slider-section {
        padding: 16px 0 12px;
    }

    .home-pieas-showcase {
        border-radius: 22px;
    }

    .home-pieas-slide {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        gap: 9px;
        align-items: center;
        padding: 20px 9px 18px;
    }

    .home-pieas-slide__content {
        min-width: 0;
    }

    .home-pieas-slide__eyebrow {
        min-height: 25px;
        margin-bottom: 8px;
        padding: 5px 8px;
        font-size: 8.7px;
        letter-spacing: 0.06em;
        box-shadow: 0 5px 10px rgba(185, 28, 28, 0.07);
        white-space: normal;
    }

    .home-pieas-slide h1 {
        font-size: clamp(22px, 7.2vw, 31px);
        line-height: 1.06;
        letter-spacing: -0.028em;
    }

    .home-pieas-slide__lead {
        margin-top: 8px;
        font-size: clamp(12.5px, 3.9vw, 16px);
        line-height: 1.36;
    }

    .home-pieas-slide__lead span {
        margin-top: 4px;
        font-size: clamp(10.5px, 3.35vw, 13.5px);
        line-height: 1.36;
    }

    .home-pieas-slide__chips {
        gap: 5px;
        margin-top: 10px;
    }

    .home-pieas-slide__chips span {
        min-height: 25px;
        padding: 4px 7px;
        font-size: 9.5px;
        line-height: 1.15;
    }

    .home-pieas-slide__button {
        width: auto;
        max-width: 100%;
        min-height: 38px;
        margin-top: 12px;
        padding: 8px 12px;
        font-size: 11.5px;
        line-height: 1.2;
        box-shadow: 0 10px 18px rgba(185, 28, 28, 0.22);
        white-space: normal;
    }

    .home-pieas-slide__button::after {
        font-size: 17px;
    }

    .home-pieas-cover-wall {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        align-self: center;
        padding: 15px 6px 8px;
        border-radius: 16px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.92),
            0 14px 24px rgba(185, 28, 28, 0.10);
    }

    .home-pieas-cover-wall::before {
        top: -11px;
        min-height: 24px;
        padding: 5px 9px;
        font-size: 8px;
        letter-spacing: 0.055em;
    }

    .home-pieas-cover {
        border-width: 2px;
        border-radius: 7px;
        box-shadow: 0 8px 14px rgba(15, 23, 42, 0.13);
    }

    /*
     * Do not flatten the covers on mobile. Keeping the same slight rotations
     * preserves the laptop-style collage instead of a plain tiny image grid.
     */
    .home-pieas-cover:nth-child(2n) {
        transform: translateY(6px) rotate(1.2deg);
    }

    .home-pieas-cover:nth-child(3n) {
        transform: translateY(-4px) rotate(-1.4deg);
    }
}

@media (max-width: 420px) {
    .home-pieas-slide {
        grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
        gap: 7px;
        padding: 18px 7px 16px;
    }

    .home-pieas-slide h1 {
        font-size: clamp(20px, 7.8vw, 28px);
    }

    .home-pieas-slide__lead {
        font-size: clamp(12px, 3.85vw, 15px);
    }

    .home-pieas-slide__lead span {
        font-size: clamp(10px, 3.25vw, 12.5px);
    }

    .home-pieas-slide__chips {
        gap: 4px;
    }

    .home-pieas-slide__chips span {
        min-height: 23px;
        padding: 4px 6px;
        font-size: 8.8px;
    }

    .home-pieas-slide__button {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 10.8px;
    }

    .home-pieas-cover-wall {
        gap: 3px;
        padding: 14px 5px 8px;
    }

    .home-pieas-cover-wall::before {
        min-height: 22px;
        padding: 4px 7px;
        font-size: 7.2px;
    }
}
/* =========================================================
   Phase v69: Contact + Complaint Status Premium Typography
   Scope: contact_us.php and complaint-status.php only
   Purpose: soften overly bold text and make danger/empty alerts visibly red.
   ========================================================= */

/* -------------------------
   Contact Us / Complaints Page
   ------------------------- */
.contact-main,
.contact-main p,
.contact-main span,
.contact-main small,
.contact-main label,
.contact-main input,
.contact-main select,
.contact-main textarea,
.contact-main button,
.contact-main a,
.contact-modal,
.contact-modal p,
.contact-modal span,
.contact-modal small,
.contact-modal button {
    font-weight: 400;
}

.contact-kicker {
    font-weight: 600;
}

.contact-hero h1 {
    font-weight: 600;
    letter-spacing: 0;
}

.contact-info-card h2,
.contact-form-heading h2,
.contact-modal__header h2 {
    font-weight: 600;
}

.contact-form-heading p,
.contact-field small,
.contact-modal__footer small {
    font-weight: 400;
}

.contact-field label {
    font-weight: 500;
}

.contact-field input,
.contact-field select,
.contact-field textarea,
.contact-field input::placeholder,
.contact-field textarea::placeholder {
    font-weight: 400;
}

.contact-main .contact-field input.is-autofetch-field {
    color: #0f172a;
    font-weight: 700;
}

.contact-main .contact-field input.is-autofetch-field::placeholder {
    font-weight: 400;
}

.contact-status-btn,
.contact-fetch-btn,
.contact-submit-btn,
.contact-modal__agree {
    font-weight: 600;
}

.contact-terms,
.contact-terms span,
.contact-terms-link,
.contact-terms a {
    font-weight: 400;
}

.contact-alert {
    font-weight: 400;
}

.contact-alert strong {
    font-weight: 600;
}

.contact-token,
.contact-alert-link {
    font-weight: 500;
}

.contact-modal__body h3 {
    font-weight: 600;
}

.contact-modal__body strong {
    font-weight: 500;
}

/* -------------------------
   Complaint Status Page
   ------------------------- */
.complaint-status-main,
.complaint-status-main p,
.complaint-status-main span,
.complaint-status-main small,
.complaint-status-main label,
.complaint-status-main input,
.complaint-status-main button,
.complaint-status-main strong {
    font-weight: 400;
}

.complaint-status-kicker {
    font-weight: 600;
}

.complaint-status-hero h1 {
    font-weight: 600;
}

.complaint-status-form label,
.complaint-status-prefix {
    font-weight: 500;
}

.complaint-status-input-row input,
.complaint-status-input-row input::placeholder {
    font-weight: 400;
}

.complaint-status-input-row button {
    font-weight: 600;
}

.complaint-meta-item span,
.complaint-detail-box span {
    font-weight: 500;
}

.complaint-meta-item strong,
.complaint-detail-box strong {
    font-weight: 400;
}

.complaint-token,
.complaint-badge {
    font-weight: 500;
}

.complaint-detail-box p {
    font-weight: 400;
}

/* Red alert style for empty/no-record and danger messages */
.complaint-status-alert--danger,
.complaint-status-empty {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    box-shadow: 0 12px 26px rgba(220, 53, 69, 0.12);
}

.complaint-status-empty h2 {
    color: #721c24;
    font-weight: 600;
}

.complaint-status-empty p,
.complaint-status-empty strong {
    color: #721c24;
    font-weight: 400;
}

.complaint-status-alert--danger strong {
    color: #721c24;
    font-weight: 600;
}

/* =========================================================
   Phase v70: Contact Page Button Alignment
   Scope: contact_us.php only
   Purpose: align "Fetch Your Data" with the Order Number input,
            and move Submit button slightly upward.
   ========================================================= */

@media (min-width: 901px) {
    .contact-page .contact-order-row,
    .contact-page .contact-layout--form-only .contact-order-row {
        align-items: start;
    }

    .contact-page .contact-fetch-btn {
        align-self: start;
        margin-top: 27px;
    }

    .contact-page .contact-submit-btn {
        margin-top: -44px;
    }
}

@media (max-width: 900px) {
    .contact-page .contact-fetch-btn,
    .contact-page .contact-submit-btn {
        margin-top: 0;
        align-self: stretch;
    }
}

@media (min-width:901px){.contact-page .contact-fetch-btn{width:180px!important;}}
@media (min-width:901px){.contact-page .contact-order-row{grid-template-columns:minmax(0,calc(50% - 10px)) 180px!important;justify-content:start;}}

/* =========================================================
   Phase v71: Contact Complaint Success Alert Refinement
   Scope: contact_us.php only
   Purpose: make main success heading/token bold and keep the duplicate
            in-form success alert hidden for complaint submissions via PHP.
   ========================================================= */
.contact-page .contact-alert--success > strong,
.contact-page .contact-alert--success .contact-token {
    font-weight: 700;
}

/* =========================================================
   Phase v72: Complaint Status Label Emphasis
   Scope: complaint-status.php only
   Purpose: make marked labels and REQ year prefix bold without
            affecting the rest of the complaint status page.
   ========================================================= */
.complaint-status-page .complaint-status-form label,
.complaint-status-page .complaint-status-prefix,
.complaint-status-page .complaint-meta-item span,
.complaint-status-page .complaint-detail-box span {
    font-weight: 700;
}

.complaint-status-page .complaint-token,
.complaint-status-page .complaint-badge,
.complaint-status-page .complaint-detail-box strong {
    font-weight: 700;
}