/* ============================================================
   Policy pages (Return & Refund, etc.) — scoped under .pp-page.
   Reusable for other policy pages: same head / card / sidebar blocks.
   ============================================================ */

.pp-page {
    --pp-navy: #173a75;
    --pp-navy-2: #214687;
    --pp-blue: #3066be;
    --pp-light: #f0f5ff;
    --pp-chip: #dae7ff;
    --pp-yellow: #ffd812;
    --pp-text: #2b3a55;
    --pp-muted: #5f6f8c;
    --pp-border: #e1e8f5;

    color: var(--pp-text);
    background: var(--pp-light);
    overflow-x: hidden;
}

/* ---------- Head ---------- */
.pp-head {
    padding: 48px 0 40px;
    background:
        radial-gradient(circle at 100% 0%, rgba(48, 102, 190, .10), transparent 45%),
        #fff;
    border-bottom: 1px solid var(--pp-border);
}

/* .pp-page prefix beats product.css's global `nav { justify-content: space-between; width: 100% }` */
.pp-page .pp-crumbs {
    width: auto;
    justify-content: flex-start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--pp-muted);
}

.pp-crumbs a {
    color: var(--pp-blue);
    text-decoration: none;
}

.pp-crumbs a:hover {
    text-decoration: underline;
}

.pp-crumbs .fa-chevron-right {
    font-size: 10px;
    opacity: .6;
}

.pp-head h1 {
    margin: 0 0 10px;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pp-navy);
}

.pp-head h1 span {
    color: var(--pp-blue);
}

.pp-head > .container > p {
    max-width: 640px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--pp-muted);
}

.pp-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.pp-hl {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    background: var(--pp-light);
}

.pp-hl > i {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    color: #fff;
    background: var(--pp-navy);
}

.pp-hl strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--pp-navy);
}

.pp-hl small {
    font-size: 13px;
    line-height: 1.4;
    color: var(--pp-muted);
}

/* ---------- Body ---------- */
.pp-body {
    padding: 40px 0 64px;
}

.pp-card {
    margin-bottom: 20px;
    padding: 28px 30px;
    border: 1px solid var(--pp-border);
    border-radius: 20px;
    background: #fff;
    scroll-margin-top: 120px;
}

.pp-card:last-child {
    margin-bottom: 0;
}

.pp-card-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.pp-card-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--pp-navy);
}

.pp-card-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    color: var(--pp-blue);
    background: #e3edff;
}

.pp-icon-green { color: #0b9b62; background: #e3f7ee; }
.pp-icon-amber { color: #c98a00; background: #fff4d1; }

.pp-card p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--pp-muted);
}

.pp-card p b {
    color: var(--pp-navy);
}

.pp-note {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 4px solid var(--pp-yellow);
    border-radius: 0 12px 12px 0;
    background: #fffbe6;
}

.pp-note i {
    margin-top: 4px;
    color: #c98a00;
}

.pp-note p {
    font-size: 14.5px;
    line-height: 1.6;
}

/* steps timeline */
.pp-steps {
    position: relative;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.pp-steps li {
    position: relative;
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
}

.pp-steps li:last-child {
    padding-bottom: 0;
}

/* connecting line */
.pp-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 2px;
    width: 2px;
    background: var(--pp-chip);
}

.pp-step-no {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    color: var(--pp-navy);
    background: var(--pp-yellow);
}

.pp-steps strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    color: var(--pp-navy);
}

.pp-steps small {
    font-size: 14px;
    line-height: 1.55;
    color: var(--pp-muted);
}

/* ---------- Sidebar ---------- */
.pp-side {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pp-contact {
    padding: 26px 24px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 216, 18, .2), transparent 45%),
        linear-gradient(140deg, var(--pp-navy), var(--pp-blue));
}

.pp-contact h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.pp-contact h3 i {
    margin-right: 8px;
    color: var(--pp-yellow);
}

.pp-contact p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

.pp-contact p b {
    color: #fff;
}

.pp-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    text-decoration: none;
    word-break: break-word;
    transition: background .2s;
}

.pp-contact-row:hover {
    color: #fff;
    background: rgba(255, 255, 255, .2);
    text-decoration: none;
}

.pp-contact-row i {
    flex: 0 0 auto;
    color: var(--pp-yellow);
}

.pp-btn {
    display: block;
    margin-top: 6px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #1c2430;
    background: var(--pp-yellow);
    text-decoration: none;
    transition: background .2s, transform .15s;
}

.pp-btn:hover {
    color: #1c2430;
    background: #ffe04a;
    transform: translateY(-1px);
    text-decoration: none;
}

.pp-links {
    padding: 22px 20px;
    border: 1px solid var(--pp-border);
    border-radius: 20px;
    background: #fff;
}

.pp-links h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--pp-navy);
}

.pp-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #eef2f9;
    font-size: 14.5px;
    color: var(--pp-text);
    text-decoration: none;
    transition: color .2s, padding .2s;
}

.pp-links a:last-child {
    border-bottom: 0;
}

.pp-links a:hover {
    padding-left: 8px;
    color: var(--pp-blue);
    text-decoration: none;
}

.pp-links a > i:first-child {
    width: 18px;
    color: var(--pp-blue);
}

.pp-links a > .fa-chevron-right {
    margin-left: auto;
    font-size: 11px;
    opacity: .5;
}

/* ---------- Long policies: numbers, alert, table of contents ---------- */
.pp-num {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--pp-navy);
    background: var(--pp-chip);
}

.pp-card p + p,
.pp-card p + .pp-list,
.pp-card .pp-list + p {
    margin-top: 12px;
}

.pp-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-list li {
    position: relative;
    padding: 0 0 12px 30px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--pp-muted);
}

.pp-list li:last-child {
    padding-bottom: 0;
}

.pp-list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: var(--pp-navy);
    background: var(--pp-chip);
}

.pp-contact-static {
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
}

.pp-contact-static:hover {
    background: rgba(255, 255, 255, .12);
}

.pp-contact-static i {
    margin-top: 3px;
}

.pp-alert {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #f6d6a8;
    border-radius: 16px;
    background: #fff6e8;
}

.pp-alert > i {
    margin-top: 3px;
    font-size: 18px;
    color: #d98200;
}

.pp-alert p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #6b4a14;
}

.pp-alert b {
    color: #8a5200;
}

.pp-toc {
    padding: 20px 18px;
    border: 1px solid var(--pp-border);
    border-radius: 20px;
    background: #fff;
}

.pp-toc h3 {
    margin: 0 0 10px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pp-muted);
}

.pp-toc a {
    display: block;
    padding: 8px 10px;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    font-size: 14.5px;
    color: var(--pp-text);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}

.pp-toc a:hover,
.pp-toc a.active {
    color: var(--pp-navy);
    border-left-color: var(--pp-blue);
    background: var(--pp-light);
    text-decoration: none;
}

.pp-toc a.active {
    font-weight: 600;
}

/* mobile/tablet: section jump chips under the heading */
.pp-toc-chips {
    display: flex;
    gap: 8px;
    margin: 20px -16px 0;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pp-toc-chips::-webkit-scrollbar {
    display: none;
}

.pp-toc-chips a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--pp-navy);
    background: var(--pp-chip);
    text-decoration: none;
}

.pp-toc-chips a:hover {
    color: #fff;
    background: var(--pp-navy);
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .pp-head h1 {
        font-size: 32px;
    }

    .pp-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pp-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pp-head {
        padding: 32px 0 28px;
    }

    .pp-head h1 {
        font-size: 27px;
    }

    .pp-head > .container > p {
        font-size: 15px;
    }

    .pp-highlights {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .pp-hl {
        padding: 12px 14px;
    }

    .pp-hl > i {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pp-hl strong {
        font-size: 16px;
    }

    .pp-body {
        padding: 24px 0 44px;
    }

    .pp-card {
        margin-bottom: 14px;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .pp-card-title h2 {
        font-size: 19px;
    }

    .pp-card p {
        font-size: 15px;
        line-height: 1.7;
    }

    .pp-side {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* primary button placed above the contact rows */
.pp-btn.pp-btn-block-gap {
    margin: 0 0 14px;
}

/* ---------- Certificates (/legal) ---------- */
.pp-count-pill {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pp-navy);
    background: var(--pp-chip);
}

.pp-cert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 6px;
}

.pp-cert {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    font: inherit;
    text-align: left;
    color: var(--pp-text);
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.pp-cert:hover {
    transform: translateY(-3px);
    border-color: #c6d5ee;
    box-shadow: 0 14px 30px rgba(23, 58, 117, .12);
    color: var(--pp-text);
    text-decoration: none;
}

.pp-cert-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background: var(--pp-light);
}

.pp-cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pp-pdf-badge {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #d93025;
}

.pp-pdf-badge i {
    font-size: 48px;
}

.pp-pdf-badge b {
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #fff;
    background: #d93025;
}

.pp-cert-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 4px 4px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pp-navy);
    text-transform: capitalize;
}

.pp-cert-action {
    margin: 0 4px 2px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pp-blue);
}

.pp-cert-action i {
    margin-right: 4px;
}

.pp-empty {
    padding: 36px 20px;
    border: 2px dashed var(--pp-border);
    border-radius: 16px;
    text-align: center;
    background: var(--pp-light);
}

.pp-empty > i {
    margin-bottom: 12px;
    font-size: 42px;
    color: var(--pp-blue);
}

.pp-empty h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: var(--pp-navy);
}

.pp-empty p {
    max-width: 420px;
    margin: 0 auto 18px;
    font-size: 14.5px;
}

.pp-empty .pp-btn {
    display: inline-block;
    padding: 11px 28px;
}

.pp-cert-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.pp-cert-modal .modal-title {
    font-weight: 700;
    color: #173a75;
    text-transform: capitalize;
}

.pp-cert-modal .modal-body {
    padding: 12px;
    text-align: center;
    background: #f0f5ff;
}

.pp-cert-modal .modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

/* the modal sits outside .pp-page, so use literal colours instead of --pp-* vars */
.pp-cert-modal .pp-btn {
    margin: 0;
    padding: 9px 22px;
    color: #1c2430;
    background: #ffd812;
}

.pp-cert-modal .pp-btn:hover {
    color: #1c2430;
    background: #ffe04a;
}

@media (max-width: 991px) {
    .pp-cert-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .pp-cert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pp-cert {
        padding: 8px;
    }

    .pp-cert-name {
        font-size: 13px;
    }
}

/* ---------- Contact Us ---------- */
a.ct-card {
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

a.ct-card:hover {
    transform: translateY(-2px);
    border-color: #c6d5ee;
    box-shadow: 0 12px 26px rgba(23, 58, 117, .1);
    text-decoration: none;
}

.ct-card small {
    word-break: break-word;
}

.pp-card-title .ct-sub,
.pp-card .ct-sub {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.ct-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pp-navy);
}

.ct-form label span {
    color: #d93025;
}

.ct-form .form-control {
    height: auto;
    padding: 12px 14px;
    border: 1.5px solid var(--pp-border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--pp-text);
    background: #fbfcff;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.ct-form .form-control:focus {
    border-color: var(--pp-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(48, 102, 190, .12);
}

.ct-form.was-validated .form-control:invalid {
    border-color: #d93025;
}

.ct-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.ct-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
}

.ct-form-foot small {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--pp-muted);
}

.ct-form-foot small i {
    margin-right: 4px;
    color: var(--pp-blue);
}

.ct-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--pp-navy);
    box-shadow: 0 10px 22px rgba(23, 58, 117, .22);
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.ct-submit:hover {
    background: var(--pp-navy-2);
    transform: translateY(-1px);
}

.ct-map-card {
    margin-bottom: 0;
}

.ct-map {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    background: var(--pp-light);
}

.ct-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ct-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--pp-blue);
    text-decoration: none;
}

.ct-directions:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    /* map + quick help side by side under the form on tablets */
    .pp-side .ct-map-card {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .ct-form-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-submit {
        justify-content: center;
    }
}

/* ---------- FAQ ---------- */
.faq-search {
    position: relative;
    max-width: 620px;
    margin-top: 24px;
}

.faq-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pp-muted);
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 48px;
    border: 1.5px solid var(--pp-border);
    border-radius: 999px;
    font-size: 15px;
    color: var(--pp-text);
    background: #fff;
    outline: none;
    box-shadow: 0 8px 22px rgba(23, 58, 117, .06);
    transition: border-color .2s, box-shadow .2s;
}

.faq-search input:focus {
    border-color: var(--pp-blue);
    box-shadow: 0 0 0 4px rgba(48, 102, 190, .12);
}

.pp-page .pp-head .pp-toc-chips {
    margin-top: 18px;
}

.pp-toc-chips a i {
    margin-right: 6px;
}

/* chips wrap on desktop, scroll on phones (see mobile rule) */
@media (min-width: 768px) {
    .faq-search + .pp-toc-chips {
        flex-wrap: wrap;
        overflow: visible;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.faq-item {
    border-bottom: 1px solid #eef2f9;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-q {
    margin: 0;
}

.faq-q button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 2px;
    border: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    color: var(--pp-navy);
    background: transparent;
    cursor: pointer;
}

.faq-q button:hover {
    color: var(--pp-blue);
}

.faq-q button i {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    color: var(--pp-navy);
    background: var(--pp-chip);
    transition: transform .25s, background .2s, color .2s;
}

.faq-q button:not(.collapsed) i {
    transform: rotate(45deg);
    color: #fff;
    background: var(--pp-navy);
}

.faq-a {
    padding: 0 44px 18px 2px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--pp-muted);
}

.faq-a a {
    font-weight: 600;
    color: var(--pp-blue);
}

.faq-noresult {
    background: #fff;
}

@media (max-width: 767px) {
    .faq-search {
        margin-top: 18px;
    }

    .faq-search input {
        height: 48px;
        font-size: 14px;
    }

    .faq-q button {
        padding: 14px 0;
        font-size: 15px;
    }

    .faq-a {
        padding-right: 0;
        font-size: 14.5px;
    }
}
