/* ============================================================
   Arrow Health — footer closing section
   Full-width SSLCOMMERZ payment strip, plain-language refund
   instructions, registered-entity lines and policy links.

   Default colours suit the dark site footer. The light legal
   pages and the checkout page override the variables below.
   ============================================================ */

.footer-closing {
    --fc-ink: rgba(255, 255, 255, 0.92);
    --fc-body: rgba(255, 255, 255, 0.68);
    --fc-muted: rgba(255, 255, 255, 0.5);
    --fc-rule: rgba(255, 255, 255, 0.13);
    --fc-card: rgba(255, 255, 255, 0.05);
    --fc-accent: #8fd9bf;
    --fc-accent-ink: #0d2a22;

    display: grid;
    gap: 36px;
    margin-top: 0;
    padding-top: 34px;
    /* room under the last line so the fixed "Why Arrow Health?" button never covers it */
    padding-bottom: 96px;
    text-align: center;
}

/* ---- payment strip: full width of the footer ---- */
.footer-pay-strip {
    background: #fff;
    border-radius: 18px;
    padding: 14px clamp(10px, 2vw, 24px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.footer-pay-strip img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .footer-pay-strip {
        padding: 14px 12px;
    }
    .footer-pay-strip img {
        max-width: 420px;
    }
}

/* ---- refund and cancellation instructions ---- */
.footer-refund-title {
    margin: 0 0 20px;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--fc-ink);
}

.footer-refund-grid {
    display: grid;
    gap: 14px;
    text-align: left;
}

@media (min-width: 820px) {
    .footer-refund-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

.fr-item {
    background: var(--fc-card);
    border: 1px solid var(--fc-rule);
    border-radius: 16px;
    padding: 18px 20px 20px;
}

.fr-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fc-ink);
}

.fr-num {
    flex: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fc-accent);
    color: var(--fc-accent-ink);
    font-size: 0.8rem;
    font-weight: 800;
}

.fr-item p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--fc-body);
}

.footer-refund-link {
    margin: 18px 0 0;
}

.footer-refund-link a {
    color: var(--fc-accent);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.footer-refund-link a:hover {
    color: var(--fc-ink);
}

/* ---- fine print, centred like a receipt ---- */
.footer-fineprint p {
    margin: 0 0 7px;
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--fc-muted);
}

.footer-fineprint .ff-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fc-body);
}

.footer-fineprint strong {
    color: var(--fc-body);
    font-weight: 700;
}

.footer-fineprint a {
    color: var(--fc-body);
    text-decoration: none;
    border-bottom: 1px solid var(--fc-rule);
}

.footer-fineprint a:hover {
    color: var(--fc-ink);
}

.footer-fineprint .ff-secure {
    max-width: 62ch;
    margin: 0 auto 16px;
    color: var(--fc-body);
}

/* ---- policy links: centred, away from the floating button ---- */
.footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 20px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--fc-rule);
}

.footer-policy-links a {
    color: var(--fc-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 0;
}

.footer-policy-links a:hover {
    color: var(--fc-ink);
}

/* ---- light variant: legal pages and checkout ---- */
.legal-foot .footer-closing,
.co-foot .footer-closing {
    --fc-ink: #1a2420;
    --fc-body: #4a5a54;
    --fc-muted: #7b8a84;
    --fc-rule: #e2dcd2;
    --fc-card: #ffffff;
    --fc-accent: #14432f;
    --fc-accent-ink: #ffffff;

    margin-top: 1.8rem;
    padding-top: 1.8rem;
    padding-bottom: 0;
    border-top: 1px solid var(--fc-rule);
    gap: 1.9rem;
}

.legal-foot .footer-pay-strip,
.co-foot .footer-pay-strip {
    box-shadow: none;
    border: 1px solid var(--fc-rule);
}

/* the legal pages space their own links with margin-right; keep ours flush */
.legal-foot .footer-closing a,
.co-foot .footer-closing a {
    margin-right: 0;
}

.legal-foot .footer-refund-link a,
.co-foot .footer-refund-link a {
    color: var(--fc-accent);
}

.legal-foot .footer-fineprint p,
.co-foot .footer-fineprint p {
    font-style: normal;
}

.legal-foot .footer-fineprint p:not(.ff-secure),
.co-foot .footer-fineprint p:not(.ff-secure) {
    margin: 0 0 7px;
}

.legal-foot .footer-fineprint .ff-secure,
.co-foot .footer-fineprint .ff-secure {
    margin: 0 auto 16px;
}

/* ============================================================
   Silver matte footer (iPhone anodised-aluminium finish)
   Palette sampled from the reference photo: aluminium #d8d8d6,
   bright edge #f4f4f2, faint rose reflection #b0a1a6.
   `footer.arrow-footer` out-ranks every page's own `.arrow-footer`
   rules, so one place restyles all 13 pages and the pop-up footers.
   Text is dark graphite; every pair clears WCAG AA on the silver.
   ============================================================ */

footer.arrow-footer {
    --ink: #1d1d1f;
    --body: #3f3f43;
    --muted: #55555a;
    --accent: #0b5f4f;
    --hair: rgba(0, 0, 0, 0.12);
    --glass: rgba(255, 255, 255, 0.55);

    color: var(--ink);
    background-color: #d8d8d6;
    background-image: linear-gradient(180deg, #e9e9e7 0%, #dcdcda 38%, #d3d3d1 100%);
}

/* light catching the bright edge of the metal, plus a faint rose reflection */
footer.arrow-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
    filter: none;
    background:
        radial-gradient(ellipse 70% 55% at 8% -8%, rgba(255, 255, 255, 0.75), transparent 62%),
        radial-gradient(ellipse 55% 45% at 102% 106%, rgba(176, 161, 166, 0.30), transparent 70%);
    pointer-events: none;
}

/* fine grain is what makes it read as matte rather than glossy */
footer.arrow-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
    filter: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    pointer-events: none;
}

/* ---- top call-to-action ---- */
footer.arrow-footer .footer-top,
footer.arrow-footer .footer-main {
    border-bottom-color: var(--hair);
}

footer.arrow-footer .footer-eyebrow {
    background: var(--glass);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--accent);
}

footer.arrow-footer .footer-title {
    color: var(--ink);
}

footer.arrow-footer .footer-title span {
    background: linear-gradient(135deg, #0a5c52, #0c7a7a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer.arrow-footer .footer-description {
    color: var(--body);
}

footer.arrow-footer .footer-btn.primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

footer.arrow-footer .footer-btn.primary:hover {
    background: #000;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

footer.arrow-footer .footer-btn.secondary {
    background: var(--glass);
    border-color: rgba(0, 0, 0, 0.14);
    color: var(--ink);
}

footer.arrow-footer .footer-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ---- brand and link columns ---- */
footer.arrow-footer .footer-logo,
footer.arrow-footer .footer-logo span {
    color: var(--ink);
}

footer.arrow-footer .footer-brand p {
    color: var(--body);
}

footer.arrow-footer .footer-trust-item {
    color: var(--ink);
}

footer.arrow-footer .footer-trust-dot {
    background: rgba(11, 95, 79, 0.12);
    border-color: rgba(11, 95, 79, 0.18);
    color: var(--accent);
}

footer.arrow-footer .footer-col h4 {
    color: var(--accent);
}

footer.arrow-footer .footer-col a,
footer.arrow-footer .footer-col span {
    color: var(--body);
}

footer.arrow-footer .footer-col a:hover {
    color: var(--ink);
}

/* ---- closing section: flip its palette to match ---- */
footer.arrow-footer .footer-closing {
    --fc-ink: var(--ink);
    --fc-body: var(--body);
    --fc-muted: var(--muted);
    --fc-rule: var(--hair);
    --fc-card: var(--glass);
    --fc-accent: var(--accent);
    --fc-accent-ink: #ffffff;
}

footer.arrow-footer .footer-pay-strip {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}
