/* =========================================================
   Lifestyle Medical Clinic Donation Landing Page
   Main colors:
   Navy: #082e57
   Blue: #0f4d92
   Gold: #cf8c2c
   Cream: #f7efe4
   ========================================================= */
/* ================================================
   Lifestyle Medical Clinic Donation Landing Page
   Main colors:
   Navy: #082e57
   Blue: #0f4d92
   Gold: #cf8c2c
   Cream: #f7efe4
================================================ */

@font-face {
    font-family: "BrittanySignature";
    src: url("../fonts/BrittanySignature.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #082e57;
    --blue: #0f4d92;
    --blue-light: #eaf3ff;
    --gold: #cf8c2c;
    --gold-light: #fff0d4;
    --cream: #f7efe4;
    --paper: #ffffff;
    --ink: #23374d;
    --muted: #5e6d7c;
    --border-gold: #e7bc78;
    --border-blue: #a9c9ee;
    --shadow: 0 22px 55px rgba(20, 39, 61, 0.18);
    --radius-lg: 28px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);

    background-color: #f7efe4;

    background-image:
        linear-gradient(
            to bottom,
            rgba(247, 239, 228, 1) 0%,
            rgba(247, 239, 228, 1) 62%,
            rgba(247, 239, 228, 0.92) 78%,
            rgba(247, 239, 228, 0.55) 90%,
            rgba(247, 239, 228, 0.10) 100%
        ),
        url("../images/desert-dunes.webp");

    background-position:
        center top,
        center bottom;

    background-size:
        100% 100%,
        100% auto;

    background-repeat: no-repeat;

    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.45;
    min-height: 100vh;
}

a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-shell {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.page-wrap {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
    margin-top: -180px !important;
    padding-top: 0 !important;
}

/* HERO */

.hero {
    position: relative;
    min-height: 700px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 31%, rgba(255,255,255,.30) 58%, rgba(255,255,255,.04) 100%),
        url("../images/hero-dubai.jpg") center right / cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 170px;
    background: linear-gradient(to bottom, transparent, rgba(247,239,228,.95));
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 26% 42%, rgba(255,255,255,.76), transparent 42%),
        linear-gradient(to bottom, rgba(255,255,255,.05), rgba(255,255,255,.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
}

.hero-copy {
    max-width: 580px;
}

.hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    margin-top: 50px;
    margin-bottom: 18px;
    color: var(--gold);
    font-family: "BrittanySignature", cursive !important;
    font-size: 0.95em !important;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.9;
}

.hero-copy p {
    max-width: 650px !important;
    margin-top: 50px !important;
    color: #23374d !important;
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* MAIN CARD */

.page-wrap {
    position: relative;
    z-index: 4;
    margin-top: -60px;
    padding-bottom: 190px;
}

.donation-card {
    width: min(100%, 980px);
    margin-inline: auto;
    padding: 44px 46px 40px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    margin-bottom: 38px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.12;
}

.heading-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.heading-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* DONATION METHODS */

.donation-method {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    gap: 28px;
    padding: 30px 30px 30px 24px;
    border-radius: var(--radius-md);
}

.method-check {
    border: 1.5px solid var(--border-gold);
    background: linear-gradient(135deg, #fffdf8, #fff);
}

.number-badge {
    position: absolute;
    top: -17px;
    left: -18px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.number-badge.gold {
    background: var(--gold);
}

.number-badge.blue {
    background: var(--blue);
}

.method-icon-wrap {
    display: grid;
    place-items: center;
    width: 130px;
    height: 130px;
    margin: auto;
    border-radius: 50%;
}

.gold-soft {
    background: var(--gold-light);
}

.blue-soft {
    background: var(--blue-light);
}

.method-icon {
    width: 72px;
    height: 72px;
}

.method-main {
    padding-right: 20px;
    border-right: 1px solid #ecd8b8;
}

.method-main h3,
.credit-intro h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.55rem;
}

.small-label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .9rem;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
}

.detail-list li {
    margin: 9px 0;
    font-size: .92rem;
}

.gold-text {
    display: block;
    margin-top: 5px;
    color: var(--gold);
}

.method-side {
    align-self: center;
}

.mini-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--navy);
}

.mini-title img {
    width: 34px;
    height: 34px;
}

address {
    font-size: .94rem;
    font-style: normal;
    line-height: 1.45;
}

/* NOTICES */

.notice {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 30px 0;
    padding: 18px 24px;
    border-radius: 12px;
}

.notice img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
}

.notice p {
    margin: 0;
    font-size: .9rem;
}

.notice-gold {
    background: linear-gradient(90deg, #fff9ef, #fbf0df);
}

.notice-blue {
    justify-content: space-between;
    background: linear-gradient(90deg, #edf6ff, #e7f1fd);
}

.notice-block {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 34%;
    padding: 13px 16px;
    border: 1px solid #a9c9ee;
    border-radius: 10px;
    background: rgba(255,255,255,.45);
    color: var(--blue);
    font-weight: 600;
}

.security-note img {
    width: 38px;
    height: 38px;
}

/* CREDIT CARD */

.credit-card-method {
    grid-template-columns: 150px 1fr;
    border: 1.5px solid var(--border-blue);
    background: linear-gradient(135deg, #fafdff, #fff);
}

.credit-intro {
    margin-bottom: 20px;
}

.credit-intro p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.credit-grid {
    display: grid;
    grid-template-columns: 1.28fr .9fr;
    gap: 22px;
}

.steps {
    display: grid;
    gap: 5px;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 34px 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #d9e6f3;
}

.step:last-child {
    border-bottom: 0;
}

.step-letter {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.step img {
    width: 34px;
    height: 34px;
}

.step p {
    margin: 0;
    font-size: .87rem;
}

.step strong {
    display: block;
    color: var(--blue);
}

.info-checklist {
    margin: 0;
    padding: 18px 18px 18px 44px;
    border-left: 1px solid #d2e1ef;
    border-radius: 10px;
    background: rgba(244,249,255,.68);
}

.info-checklist li {
    position: relative;
    margin: 9px 0;
    list-style: none;
    font-size: .9rem;
}

.info-checklist li::before {
    content: "✓";
    position: absolute;
    left: -28px;
    top: 0;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-size: .72rem;
    font-weight: 800;
}

.info-checklist strong {
    color: var(--blue);
}

/* CAPITAL */

.capital-section {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 22px;
    align-items: end;
    margin: 50px 0 46px;
}

.capital-total {
    display: grid;
    gap: 8px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    background: var(--navy);
    color: white;
    text-transform: uppercase;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.capital-label {
    margin-top: 6px;
    color: var(--navy);
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 800;
}

.capital-total > strong {
    color: var(--navy);
    font-size: 2rem;
}

.capital-total small,
.stat-box small {
    font-size: .65em;
    font-weight: 600;
}

.capital-gauge {
    display: grid;
    place-items: center;
}

.gauge-track {
    position: relative;
    width: 260px;
    height: 135px;
    overflow: hidden;
}

.gauge-track::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: conic-gradient(from 270deg, var(--navy) 0 67.1%, #d6a457 67.1% 100%);
}

.gauge-track::after {
    content: "";
    position: absolute;
    inset: 38px 38px auto;
    width: 184px;
    height: 184px;
    border-radius: 50%;
    background: white;
}

.gauge-center {
    position: absolute;
    z-index: 2;
    inset: 62px 0 auto;
    display: grid;
    text-align: center;
    color: var(--navy);
}

.gauge-center strong {
    font-family: Georgia, serif;
    font-size: 2.65rem;
    line-height: 1;
}

.gauge-center span {
    margin-top: 6px;
    text-transform: uppercase;
    font-family: Georgia, serif;
    font-weight: 700;
}

.capital-stats {
    border: 1px solid var(--border-gold);
    border-radius: 7px;
    overflow: hidden;
}

.stat-box {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 13px 72px 13px 14px;
}

.stat-box + .stat-box {
    border-top: 1px solid var(--border-gold);
}

.stat-box span {
    color: var(--navy);
    text-transform: uppercase;
    font-size: .67rem;
    font-weight: 800;
}

.stat-box strong {
    color: #202b35;
    font-size: 1.1rem;
}

.stat-box b {
    position: absolute;
    right: 14px;
    bottom: 13px;
    color: var(--navy);
    font-size: 1.6rem;
}

.stat-box.gap b {
    color: var(--gold);
}

/* THANK YOU */

.thank-you {
    padding: 34px 30px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(54,118,169,.45), transparent 50%),
        linear-gradient(135deg, #083864, #06284e);
    color: white;
    text-align: center;
}

.thank-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
}

.thank-you h2 {
    margin: 0;
    font-size: 1.8rem;
}

.script-line {
    margin: 8px 0 14px !important;
    color: #efbd68;
    font-family: "Dancing Script", cursive !important;
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}

.thank-you > p:not(.script-line) {
    max-width: 630px;
    margin: 0 auto;
    font-size: .92rem;
}

.cta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #e5ad4e, #f0c572);
    color: #fff;
    font-weight: 800;
}

.cta-label img {
    width: 23px;
    height: 23px;
}

/* IMPACT */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.impact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.impact-item img {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}

.impact-item strong,
.impact-item span {
    display: block;
}

.impact-item strong {
    color: var(--navy);
    font-size: .82rem;
}

.impact-item span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.35;
}

.site-footer {
    margin-top: -120px;
    padding: 22px 20px 34px;
    color: rgba(8,46,87,.75);
    text-align: center;
    font-size: .8rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        min-height: 590px;
       background-position: center top;
       background-size: cover;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.82) 56%, rgba(255,255,255,.12));
    }

    .donation-card {
        padding: 36px 28px;
    }

    .donation-method {
        grid-template-columns: 120px 1fr;
    }

    .method-check .method-side {
        grid-column: 2;
    }

    .method-main {
        padding-right: 0;
        border-right: 0;
    }

    .credit-grid {
        grid-template-columns: 1fr;
    }

    .info-checklist {
        border-left: 0;
        border-top: 1px solid #d2e1ef;
    }

    .capital-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .capital-total {
        justify-items: center;
    }

    .capital-stats {
        width: min(100%, 440px);
        margin-inline: auto;
        text-align: left;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body {
        background-size: auto 500px;
    }

    .site-shell,
    .page-wrap {
        width: min(100% - 20px, 1180px);
    }

    .hero {
        min-height: 530px;
        background-position: 68% center;
    }

    .hero-content {
        padding-top: 52px;
    }

    .hero-copy {
        max-width: 92%;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.3rem);
    }

    .hero-copy p {
        max-width: 88%;
        font-size: .98rem;
    }

    .page-wrap {
        margin-top: -115px;
        padding-bottom: 130px;
    }

    .donation-card {
        padding: 30px 17px;
        border-radius: 20px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .heading-line {
        display: none;
    }

    .section-heading h2 {
        font-size: 1.65rem;
    }

    .donation-method,
    .credit-card-method {
        grid-template-columns: 1fr;
        padding: 32px 18px 22px;
    }

    .method-icon-wrap {
        width: 105px;
        height: 105px;
    }

    .method-icon {
        width: 58px;
        height: 58px;
    }

    .method-check .method-side {
        grid-column: auto;
        padding-top: 18px;
        border-top: 1px solid #ecd8b8;
    }

    .credit-content {
        min-width: 0;
    }

    .step {
        grid-template-columns: 28px 34px 1fr;
        gap: 9px;
    }

    .notice,
    .notice-blue {
        align-items: flex-start;
        flex-direction: column;
    }

    .notice-block {
        align-items: flex-start;
    }

    .security-note {
        width: 100%;
    }

    .capital-total > strong {
        font-size: 1.65rem;
    }

    .gauge-track {
        transform: scale(.9);
        margin: -8px 0;
    }

    .thank-you {
        padding: 30px 18px;
    }

    .script-line {
        font-size: 1.55rem !important;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-top: -85px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 620px !important;
        height: auto !important;
        background-size: cover !important;
    }

    .hero-content {
        padding-top: 45px !important;
        padding-bottom: 100px !important;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 12vw, 4rem) !important;
    }

    .hero h1 span {
        font-size: 0.82em !important;
        margin-bottom: 24px !important;
    }

    .hero-copy p {
        font-size: 1rem !important;
    }

    .page-wrap {
        margin-top: -35px !important;
    }
}

/* FINAL: CARD 20PX BELOW THE INTRODUCTION TEXT */

.hero {
    min-height: 0 !important;
    height: auto !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

.hero-content {
    padding-top: 70px !important;
    padding-bottom: 20px !important;
}

.page-wrap {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* SHOW MORE OF THE CLINIC PHOTO */
.hero {
    min-height: 650px !important;
    height: 650px !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
}

.page-wrap {
    margin-top: -35px !important;
    padding-top: 0 !important;
}

main,
.page-wrap {
    background: transparent !important;
}

.hero h1 span,
.script-line {
    font-family: "BrittanySignature", cursive !important;
    font-weight: 300 !important;
}

/* HERO TYPOGRAPHY — MATCH REFERENCE IMAGE */

.hero {
    min-height: 720px !important;
    height: 720px !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

.hero-content {
    padding-top: 70px !important;
}

.hero-copy {
    max-width: 680px !important;
}

.hero h1 {
    margin: 0 !important;
    color: var(--navy);
    font-size: clamp(3.8rem, 5.2vw, 5.7rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.045em !important;
    font-weight: 800 !important;
}

.hero h1 span {
    display: block;
    margin-top: 14px !important;
    margin-bottom: 30px !important;
    color: var(--gold);
    font-family: "BrittanySignature", cursive !important;
    font-size: 0.86em !important;
    font-weight: 400 !important;
    line-height: 0.9 !important;
    letter-spacing: 0 !important;
}

.hero-copy p {
    max-width: 650px !important;
    margin-top: 0 !important;
    color: #23374d !important;
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

.page-wrap {
    margin-top: -55px !important;
    padding-top: 0 !important;
}

/* Readable cursive font under Thank You */
.thank-you .script-line,
.script-line {
    font-family: "Dancing Script", cursive !important;
    font-size: 1.65rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

/* Keep the clinic visible on large screens */
.hero {
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
}

/* Extra adjustment for wide desktop screens */
@media (min-width: 1400px) {
    .hero {
        min-height: 720px !important;
        height: 720px !important;
        background-size: cover !important;
        background-position: center 10% !important;
    }
}

@media (max-width: 768px) {
    .hero-copy {
        width: 100% !important;
        margin-inline: 0 !important;
    }
}

/* Align hero text with the left edge of the white donation card */
.hero-content {
    width: min(1180px, calc(100% - 36px)) !important;
    margin-inline: auto !important;
    margin-top:90px;
}

.hero-copy {
    width: min(840px, 100%) !important;
    max-width: none !important;
    margin-inline: auto !important;
}

/* Keep the text itself left-aligned */
.hero-copy h1,
.hero-copy p {
    text-align: left !important;
    margin-top: 50px;
}

/* Align hero text with left edge of donation card */
@media (min-width: 769px) {
    .hero-copy {
        position: relative !important;
        left: -80px !important;
    }
}

/* Replacement capital-secured graph */
.capital-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    max-width: 100%;
    margin-inline: auto;
}

.capital-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    max-width: 100%;
    margin-inline: auto;
}

.capital-graph img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.notice.notice-gold {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 10px !important;
}

.notice.notice-gold p {
    margin: 0 !important;
    text-align: center !important;
}

/* CREDIT CARD HEADER — ICON LEFT, TEXT RIGHT */

.credit-card-method {
    position: relative;
}

.credit-card-method .method-icon-wrap {
    float: left !important;
    width: 112px !important;
    height: 112px !important;
    margin: 18px 28px 20px 28px !important;
}

.credit-card-method .method-icon {
    width: 58px !important;
    height: 58px !important;
}

.credit-card-method .credit-content {
    padding-left: 0 !important;
}

.credit-card-method .credit-intro {
    min-height: 150px !important;
    padding: 28px 30px 20px 0 !important;
    text-align: left !important;
}

.credit-card-method .credit-intro h3 {
    margin: 0 0 8px !important;
    text-align: left !important;
}

.credit-card-method .credit-intro p {
    margin: 0 !important;
    text-align: left !important;
    max-width: 420px !important;
}

.credit-card-method .credit-grid {
    clear: both !important;
}

@media (max-width: 768px) {
    .credit-card-method .method-icon-wrap {
        float: none !important;
        margin: 20px auto 14px !important;
    }

    .credit-card-method .credit-intro {
        min-height: auto !important;
        padding: 0 20px 20px !important;
        text-align: center !important;
    }

    .credit-card-method .credit-intro h3,
    .credit-card-method .credit-intro p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Make section numbers 1 and 2 larger */
.number-badge {
    width: 90px !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* FINAL MOBILE CREDIT-CARD LAYOUT */
@media (max-width: 768px) {

    .credit-card-method,
    .credit-card-method .credit-content,
    .credit-card-method .credit-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    .credit-card-method .credit-grid .step {
        display: grid !important;

        /* Flexible sides + two centered icon columns */
        grid-template-columns: 1fr 58px 48px 1fr !important;
        grid-template-rows: auto auto !important;

        column-gap: 5px !important;
        row-gap: 18px !important;
        align-items: center !important;

        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 26px 10px !important;
        box-sizing: border-box !important;

        text-align: center !important;
        border-bottom: 1px solid #d9e6ef !important;
    }

    /* A, B and C badge */
    .credit-card-method .credit-grid .step .step-letter {
        position: static !important;
        grid-column: 2 !important;
        grid-row: 1 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 58px !important;
        height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;

        font-size: 1.5rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    /* Envelope, document and person icon */
    .credit-card-method .credit-grid .step > img,
    .credit-card-method .credit-grid .step .step-icon {
        position: static !important;
        grid-column: 3 !important;
        grid-row: 1 !important;

        display: block !important;
        width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
    }

    /* Full-width paragraph below the icons */
    .credit-card-method .credit-grid .step > p {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;

        display: block !important;
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;

        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: center !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    /* Long email address stays inside the border */
    .credit-card-method .credit-grid .step > p a,
    .credit-card-method .credit-grid .step > p strong {
        display: inline !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }

    .credit-card-method .credit-grid .step:last-child {
        border-bottom: 0 !important;
    }
}

/* FINAL MOBILE CREDIT-CARD LAYOUT */
@media (max-width: 768px) {

    .credit-card-method,
    .credit-card-method .credit-content,
    .credit-card-method .credit-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        box-sizing: border-box !important;
    }

    .credit-card-method .credit-grid .step {
        display: grid !important;

        /* Flexible sides + two centered icon columns */
        grid-template-columns: 1fr 58px 48px 1fr !important;
        grid-template-rows: auto auto !important;

        column-gap: 5px !important;
        row-gap: 18px !important;
        align-items: center !important;

        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 26px 10px !important;
        box-sizing: border-box !important;

        text-align: center !important;
        border-bottom: 1px solid #d9e6ef !important;
    }

    /* A, B and C badge */
    .credit-card-method .credit-grid .step .step-letter {
        position: static !important;
        grid-column: 2 !important;
        grid-row: 1 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 58px !important;
        height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;

        font-size: 1.5rem !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    /* Envelope, document and person icon */
    .credit-card-method .credit-grid .step > img,
    .credit-card-method .credit-grid .step .step-icon {
        position: static !important;
        grid-column: 3 !important;
        grid-row: 1 !important;

        display: block !important;
        width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
    }

    /* Full-width paragraph below the icons */
    .credit-card-method .credit-grid .step > p {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;

        display: block !important;
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;

        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: center !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    /* Long email address stays inside the border */
    .credit-card-method .credit-grid .step > p a,
    .credit-card-method .credit-grid .step > p strong {
        display: inline !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }

    .credit-card-method .credit-grid .step:last-child {
        border-bottom: 0 !important;
    }
}