/* MailPac help page (app/Views/front_end/support_view.php). Loaded after site.css,
   which holds the tokens, page header, headings, inputs, prose and pink band. */

/* ------------------------------------------------- page head (+ optional admin banner) */
.mp-pagehead--quick { padding-bottom: 156px; }
.mp-pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.mp-pagehead--art .mp-pagehead__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mp-pagehead__art img { width: 100%; max-height: 240px; object-fit: contain; }

/* ------------------------------------------------- ways to get help (overlap the band) */
.mp-helpnav {
    position: relative;
    z-index: 3;
    margin-top: -100px;
}
.mp-helpnav__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.mp-helpnav__grid li { display: flex; }
.mp-helpnav__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px 22px;
    border-radius: var(--mp-radius);
    background: var(--mp-white);
    border: 2px solid transparent;
    box-shadow: var(--mp-shadow-lg);
    text-align: center;
    text-decoration: none;
    color: var(--mp-blue);
    transition: transform .2s ease, border-color .2s ease;
}
.mp-helpnav__card:hover { transform: translateY(-4px); border-color: var(--mp-blue); }
.mp-helpnav__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--mp-sky);
    color: var(--mp-blue);
    transition: background-color .2s ease, color .2s ease;
}
.mp-helpnav__card:hover .mp-helpnav__icon { background: var(--mp-pink); color: var(--mp-white); }
.mp-helpnav__icon svg { width: 32px; height: 32px; }
.mp-helpnav__title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.mp-helpnav__card small {
    margin-top: -6px;
    font-size: 13px;
    color: var(--mp-muted);
}

/* ------------------------------------------------- FAQ */
.mp-faq-section { padding-top: 80px; }
.mp-faq { max-width: 860px; margin: 0 auto; }

.mp-faq__search { margin-bottom: 26px; }
.mp-faq__search .mp-label { display: block; margin-bottom: 8px; }
.mp-faq__field { position: relative; }
.mp-faq__field svg {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--mp-muted);
    pointer-events: none;
}
.mp-faq__field .mp-input {
    min-height: 54px;
    padding-left: 50px;
    border-radius: 999px;
    background: var(--mp-sky-2);
}
.mp-faq__field .mp-input:focus { background: var(--mp-white); }
.mp-faq__status { margin-top: 10px; font-size: 14px; color: var(--mp-muted); }

.mp-faq__group[hidden],
.mp-faq__item[hidden],
.mp-faq-none[hidden] { display: none; }
.mp-faq__group + .mp-faq__group { margin-top: 36px; }
.mp-faq__cat {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-pink-600);
}
.mp-faq__list { display: grid; gap: 12px; }
.mp-faq__item {
    border: 1px solid var(--mp-line);
    border-radius: 16px;
    background: var(--mp-white);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.mp-faq__item:hover { border-color: #B9C6E6; }
.mp-faq__item[open] { border-color: #B9C6E6; box-shadow: var(--mp-shadow); }
.mp-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 18px 24px;
    list-style: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mp-blue);
    border-radius: 16px;
}
.mp-faq__q::-webkit-details-marker { display: none; }
.mp-faq__q::marker { content: ""; }
.mp-faq__q span { overflow-wrap: anywhere; }
.mp-faq__chev {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 50%;
    background: var(--mp-sky);
    color: var(--mp-blue);
    transform: rotate(90deg);
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.mp-faq__item[open] .mp-faq__chev { transform: rotate(-90deg); background: var(--mp-pink); color: var(--mp-white); }
.mp-faq__a {
    max-width: none;
    padding: 0 24px 22px;
    font-size: 15px;
    color: var(--mp-ink);
    overflow-wrap: anywhere;
}
.mp-faq__a img { height: auto; }
.mp-faq__a table { display: block; max-width: 100%; overflow-x: auto; overflow-wrap: normal; }
.mp-faq__a th { white-space: nowrap; }

.mp-faq-none {
    margin-top: 8px;
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px dashed #C9D3EA;
    background: var(--mp-sky-2);
    color: var(--mp-ink);
}

/* no FAQs published yet */
.mp-faq-empty {
    max-width: 620px;
    margin: 0 auto;
    padding: 44px 32px;
    border-radius: var(--mp-radius);
    border: 1px dashed #C9D3EA;
    background: var(--mp-sky-2);
    text-align: center;
}
.mp-faq-empty__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--mp-white);
    color: var(--mp-blue);
    box-shadow: 0 6px 18px rgba(12, 62, 157, 0.08);
}
.mp-faq-empty__icon svg { width: 30px; height: 30px; }
.mp-faq-empty h3 { font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--mp-blue); }
.mp-faq-empty p { margin-top: 10px; color: var(--mp-muted); }
.mp-faq-empty .mp-btn { margin-top: 24px; }

/* ------------------------------------------------- responsive */
@media (max-width: 880px) {
    .mp-pagehead--quick { padding-bottom: 140px; }
    .mp-pagehead--art .mp-pagehead__grid { grid-template-columns: minmax(0, 1fr); }
    .mp-pagehead__art { display: none; }
    .mp-helpnav__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .mp-faq-section { padding-top: 64px; }
}

@media (max-width: 600px) {
    .mp-helpnav__card { padding: 20px 10px; }
    .mp-helpnav__icon { width: 54px; height: 54px; }
    .mp-faq__q { padding: 16px 16px 16px 18px; font-size: 16px; }
    .mp-faq__a { padding: 0 18px 18px; }
    .mp-faq-empty { padding: 36px 20px; }
}

/* ── Getting started, video guides, stores, talk to us (2026-10-15) ───────── */
.mp-start__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.mp-start__step { position: relative; background: var(--mp-white); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 28px 24px 26px; box-shadow: var(--mp-shadow); }
.mp-start__step + .mp-start__step::before { content: ""; position: absolute; left: -21px; top: 52px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--mp-blue), var(--mp-pink)); }
.mp-start__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mp-blue); color: var(--mp-white); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.mp-start__step:last-child .mp-start__n { background: var(--mp-pink); }
.mp-start__step h3 { font-size: 18px; font-weight: 600; color: var(--mp-ink); margin-bottom: 8px; }
.mp-start__step p { font-size: 15px; color: var(--mp-muted); line-height: 1.55; }
.mp-start__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.mp-guides__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 30px; padding: 6px; background: var(--mp-white); border: 1px solid var(--mp-line); border-radius: 999px; width: fit-content; max-width: 100%; }
.mp-guides__tab { border: 0; background: transparent; color: var(--mp-muted); font: inherit; font-weight: 600; font-size: 15px; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.mp-guides__tab:hover { color: var(--mp-blue); background: var(--mp-sky); }
.mp-guides__tab[aria-selected="true"] { background: var(--mp-blue); color: var(--mp-white); }
.mp-guides__tab:focus-visible { outline: 3px solid var(--mp-pink); outline-offset: 2px; }
.mp-guides__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.mp-guide { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); background: var(--mp-white); overflow: hidden; cursor: pointer; font: inherit; color: var(--mp-ink); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.mp-guide:hover, .mp-guide:focus-visible { transform: translateY(-4px); box-shadow: var(--mp-shadow); border-color: var(--mp-pink); outline: 0; }
.mp-guide__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--mp-blue-900); overflow: hidden; }
.mp-guide__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .16s ease; }
.mp-guide:hover .mp-guide__thumb img { opacity: 1; }
.mp-guide__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--mp-pink); color: var(--mp-white); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(246, 8, 173, .45); }
.mp-guide__play svg { width: 26px; height: 26px; margin-left: 3px; }
.mp-guide__text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.mp-guide__store { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mp-blue); background: var(--mp-sky); padding: 3px 10px; border-radius: 999px; }
.mp-guide__title { font-size: 16px; font-weight: 600; line-height: 1.35; }

.mp-video { position: fixed; inset: 0; z-index: 200; background: rgba(6, 31, 82, .78); display: grid; place-items: center; padding: 20px; }
.mp-video[hidden] { display: none; }
.mp-video__box { width: min(960px, 100%); background: var(--mp-blue-900); border-radius: var(--mp-radius); overflow: hidden; box-shadow: var(--mp-shadow-lg); }
.mp-video__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; color: var(--mp-white); }
.mp-video__head h2 { font-size: 16px; font-weight: 600; color: var(--mp-white); }
.mp-video__close { border: 0; background: rgba(255, 255, 255, .12); color: var(--mp-white); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.mp-video__close:hover { background: var(--mp-pink); }
.mp-video__close svg { width: 18px; height: 18px; }
.mp-video__frame { aspect-ratio: 16 / 9; background: #000; }
.mp-video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.mp-stores__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.mp-store { display: flex; flex-direction: column; gap: 10px; background: var(--mp-white); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 22px 22px 18px; }
.mp-store__name { font-size: 17px; font-weight: 600; color: var(--mp-ink); }
.mp-store__line { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--mp-muted); line-height: 1.45; }
.mp-store__line svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--mp-pink); margin-top: 2px; }
.mp-store__line a { color: var(--mp-blue); text-decoration: none; font-weight: 500; }
.mp-store__line a:hover { text-decoration: underline; }
.mp-store__map { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--mp-blue); text-decoration: none; padding-top: 6px; }
.mp-store__map svg { width: 16px; height: 16px; }
.mp-store__map:hover { color: var(--mp-pink-600); }

.mp-talk__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.mp-talk__card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 24px; background: var(--mp-white); border: 1px solid var(--mp-line); border-radius: var(--mp-radius); text-decoration: none; color: var(--mp-ink); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.mp-talk__card:hover { transform: translateY(-4px); border-color: var(--mp-pink); box-shadow: var(--mp-shadow); color: var(--mp-ink); }
.mp-talk__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mp-sky); color: var(--mp-blue); margin-bottom: 10px; }
.mp-talk__icon svg { width: 26px; height: 26px; }
.mp-talk__card--wa .mp-talk__icon { background: #E7F8EE; color: #128C4A; }
.mp-talk__card--ig .mp-talk__icon { background: var(--mp-pink-50); color: var(--mp-pink-600); }
.mp-talk__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mp-muted); }
.mp-talk__value { font-size: 17px; font-weight: 600; overflow-wrap: break-word; }

@media (max-width: 1000px) {
    .mp-start__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp-start__step + .mp-start__step::before { display: none; }
    .mp-talk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .mp-start__steps, .mp-talk__grid { grid-template-columns: minmax(0, 1fr); }
    .mp-guides__tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; scrollbar-width: none; }
    .mp-guides__tab { flex: 0 0 auto; padding: 10px 16px; }
}
