/* assets/css/help.css
   "How it works" popups, info strip, promise box and extra FAQ.
   Kept separate from style.css on purpose. */

.help-link:focus-visible,
.help-modal-close:focus-visible {
    outline: 2px solid var(--accent-gold, #d4af37);
    outline-offset: 2px;
}

/* ---------- Info strip (replaces the old "Insta DM" line) ---------- */
.help-strip {
    margin: 4px 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.25);
    color: var(--text-secondary, #a09cb0);
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: left;
}
.help-strip p { margin: 0; }

/* ---------- "How it works" link on each card ---------- */
.help-link {
    display: inline-block;
    background: transparent;
    border: none;
    color: var(--accent-gold, #d4af37);
    font: inherit;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 6px 4px;
    margin: 0 auto 10px;
    min-height: 36px;
}
.help-link:hover { color: #fff; }

/* ---------- Promise box ---------- */
.help-promise {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-secondary, #a09cb0);
    font-size: 0.93rem;
    line-height: 1.65;
    text-align: left;
}
.help-promise p { margin: 0; }
.help-promise strong { color: var(--accent-gold, #d4af37); }

/* ---------- Extra FAQ block ---------- */
.help-faq { margin-bottom: 30px; }
.help-faq-group {
    color: var(--accent-gold, #d4af37);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.help-faq-group:first-child { margin-top: 8px; }

/* ---------- Popup ---------- */
.help-modal[hidden] { display: none; }
.help-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.help-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 12, 0.75);
}
.help-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: var(--bg-card, #1c182d);
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: 16px;
    padding: 14px 20px 22px;
    color: var(--text-primary, #e8e6f0);
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.help-modal-dialog:focus { outline: none; }
.help-modal-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 6px;
}
.help-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.help-modal-close:hover { background: rgba(255, 255, 255, 0.08); }
.help-modal-title { color: #fff; font-size: 1.2rem; margin: 4px 0 4px; }
.help-modal-tagline { color: var(--accent-gold, #d4af37); font-style: italic; margin: 0 0 6px; }
.help-modal-price { color: var(--text-secondary, #a09cb0); font-size: 0.9rem; margin: 0 0 12px; }
.help-modal-points { list-style: none; padding: 0; margin: 0; }
.help-modal-points li {
    position: relative;
    padding: 8px 0 8px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #a09cb0);
    font-size: 0.95rem;
    line-height: 1.6;
}
.help-modal-points li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--accent-gold, #d4af37);
}
html.help-modal-open, html.help-modal-open body { overflow: hidden; }

/* ---------- Success page: what happens next ---------- */
.help-next-steps {
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.25);
    text-align: left;
}
.help-next-steps h3 { color: var(--accent-gold, #d4af37); font-size: 1.05rem; margin: 0 0 8px; }
.help-next-steps ul { margin: 0; padding-left: 18px; }
.help-next-steps li { color: var(--text-secondary, #a09cb0); margin: 6px 0; line-height: 1.6; }

/* ---------- Phones ---------- */
@media (max-width: 480px) {
    /* Locked country label in the header: keep it on one line on phones */
    [aria-label="Your region"] { white-space: nowrap; font-size: 0.75rem !important; padding: 3px 8px !important; }
    .help-strip, .help-promise { font-size: 0.88rem; }
    .help-modal { padding: 0; align-items: flex-end; }
    .help-modal-dialog {
        max-width: 100%;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: 18px 18px 0 0;
        padding: 12px 16px 24px;
    }
}
