/**
 * DYNCRM quiz app styles.
 *
 * Uses the theme's :root tokens (assets/css/main.css loads via wp_head)
 * with literal fallbacks. Scope prefix: .mn-dq-*
 */

/* The quiz is a standalone document: neutralize the theme's html tint and
   any admin-bar margin bump so nothing shows above the sticky top bar. */
html {
    margin: 0 !important;
    padding: 0;
    background: var(--mn-forest-darkest, #14261F);
}
.mn-dq-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -8%, rgba(60, 100, 88, .4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 108%, rgba(232, 68, 10, .05) 0%, transparent 60%),
        var(--mn-forest-darkest, #14261F);
    font-family: var(--mn-font-body, 'DM Sans', system-ui, sans-serif);
    color: var(--mn-linen, #DED5BE);
}
.mn-dq-body ::selection { background: rgba(232, 68, 10, .3); }

.mn-dq-app {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(25, 46, 40, .4), rgba(20, 38, 31, .4));
    box-shadow: 0 0 0 1px rgba(222, 213, 190, .06), 0 30px 90px rgba(0, 0, 0, .5);
}

/* ── Top bar ─────────────────────────────────────────────────── */
.mn-dq-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 14px 18px 12px;
    background: rgba(22, 41, 31, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(222, 213, 190, .08);
}
.mn-dq-bar__row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
}
/* Button selectors are tag-qualified (button.mn-dq-*) per theme policy Known
   Gotcha #3: on ru.muncly.com the hello-elementor reset.css loads AFTER this
   sheet and its [type=button] rule (border/color #c36, transparent bg) wins
   0,1,0 ties by order. 0,1,1 keeps these rules on top on both installs. */
button.mn-dq-bar__back {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    border: 1px solid rgba(222, 213, 190, .16);
    background: rgba(222, 213, 190, .05);
    color: var(--mn-linen, #DED5BE);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
}
button.mn-dq-bar__back:hover { background: rgba(222, 213, 190, .12); }
.mn-dq-bar__logo { height: 20px; display: block; opacity: .9; }
.mn-dq-bar__count {
    flex: 1;
    text-align: right;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(222, 213, 190, .55);
    white-space: nowrap;
}
.mn-dq-bar__return {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(222, 213, 190, .35);
    color: var(--mn-linen, #DED5BE);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .18s ease;
}
.mn-dq-bar__return:hover {
    background: rgba(222, 213, 190, .1);
    border-color: var(--mn-linen, #DED5BE);
}
@media (max-width: 519px) {
    .mn-dq-bar__return { display: none; }
}
.mn-dq-bar__track {
    height: 5px;
    border-radius: 999px;
    background: rgba(222, 213, 190, .1);
    overflow: hidden;
}
.mn-dq-bar__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mn-orange, #E8440A), #F0813F);
    box-shadow: 0 0 10px rgba(232, 68, 10, .5);
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

/* ── Steps ───────────────────────────────────────────────────── */
.mn-dq-main { padding: 26px 22px 120px; }
.mn-dq-step { animation: mnDqFadeUp .4s cubic-bezier(.4, 0, .2, 1); }
@keyframes mnDqFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.mn-dq-q {
    font-family: var(--mn-font-display, 'Newsreader', Georgia, serif);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.25;
    color: var(--mn-linen, #DED5BE);
    margin: 8px 0 12px;
}
.mn-dq-sub {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(222, 213, 190, .6);
    margin: 0 0 24px;
}

/* ── Video (Q3) ──────────────────────────────────────────────── */
.mn-dq-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(222, 213, 190, .16);
    margin-bottom: 20px;
}
.mn-dq-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Option cards (letter chips) ─────────────────────────────── */
.mn-dq-opts {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
button.mn-dq-opt {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    padding: 20px;
    border-radius: 18px;
    cursor: pointer;
    background: rgba(255, 255, 255, .035);
    border: 1.5px solid rgba(222, 213, 190, .14);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
    font-family: inherit;
    white-space: normal; /* reset.css [type=button] sets nowrap; on RU it loads after this sheet (theme Gotcha #3) and long option descs overflow the card */
}
button.mn-dq-opt:hover,
button.mn-dq-opt:focus {
    border-color: rgba(222, 213, 190, .3);
    background: rgba(255, 255, 255, .05); /* declared explicitly: reset.css [type=button]:hover/:focus paints #c36 (pink) when unopposed */
    color: inherit;
}
button.mn-dq-opt.is-selected {
    background: rgba(232, 68, 10, .10);
    border-color: var(--mn-orange, #E8440A);
    box-shadow: 0 0 0 3px rgba(232, 68, 10, .14);
}
.mn-dq-opt__chip {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    background: rgba(222, 213, 190, .07);
    color: rgba(222, 213, 190, .7);
    border: 1px solid rgba(222, 213, 190, .16);
    transition: all .18s ease;
}
.mn-dq-opt.is-selected .mn-dq-opt__chip {
    background: var(--mn-orange, #E8440A);
    color: #fff;
    border-color: var(--mn-orange, #E8440A);
    box-shadow: 0 4px 16px rgba(232, 68, 10, .4);
}
.mn-dq-opt__text { flex: 1; }
.mn-dq-opt__title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.35;
    color: var(--mn-linen, #DED5BE);
}
.mn-dq-opt.is-selected .mn-dq-opt__title { color: var(--mn-linen-warm, #F4ECD8); }
.mn-dq-opt__desc {
    display: block;
    font-weight: 400;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(222, 213, 190, .6);
    margin-top: 5px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
button.mn-dq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 20px;
    padding: 15px 26px;
    border-radius: var(--mn-radius-sm, 8px);
    border: 2px solid var(--mn-orange, #E8440A);
    background: var(--mn-orange, #E8440A);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 68, 10, .35);
    transition: all .18s ease;
}
button.mn-dq-btn:hover {
    background: var(--mn-orange-hover, #C93A08);
    border-color: var(--mn-orange-hover, #C93A08);
    transform: translateY(-2px);
}
.mn-dq-btn--gated { opacity: .45; }
.mn-dq-btn--gated.is-ready { opacity: 1; }

/* ── Lead form ───────────────────────────────────────────────── */
.mn-dq-lead__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(232, 68, 10, .14);
    border: 1px solid rgba(232, 68, 10, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--mn-orange-soft, #F0A881);
}
.mn-dq-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}
.mn-dq-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(222, 213, 190, .65);
    margin-bottom: 7px;
}
.mn-dq-label__req { color: var(--mn-orange, #E8440A); }
.mn-dq-input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
    color: var(--mn-linen, #DED5BE);
    background: rgba(255, 255, 255, .06);
    border: 1.5px solid rgba(222, 213, 190, .2);
    border-radius: var(--mn-radius-sm, 8px);
    outline: none;
    transition: border-color .18s ease;
}
.mn-dq-input:focus { border-color: var(--mn-orange, #E8440A); }
.mn-dq-input::placeholder { color: rgba(222, 213, 190, .35); }
.mn-dq-error {
    display: block;
    font-size: 13px;
    color: #E8A39B;
    margin-top: 6px;
    font-weight: 500;
}
.mn-dq-error[hidden] { display: none; }
.mn-dq-privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0 22px;
    padding: 13px 14px;
    border-radius: 10px;
    background: rgba(222, 213, 190, .04);
    border: 1px solid rgba(222, 213, 190, .1);
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(222, 213, 190, .6);
}
.mn-dq-privacy svg { flex-shrink: 0; margin-top: 2px; color: var(--mn-orange-soft, #F0A881); }
.mn-dq-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ── Calculating interstitial ────────────────────────────────── */
.mn-dq-calc { text-align: center; padding-top: 50px; }
.mn-dq-calc__ring { position: relative; width: 132px; height: 132px; margin: 0 auto 30px; }
.mn-dq-calc__ring svg { transform: rotate(-90deg); }
.mn-dq-calc__ring [data-dq-ring] {
    stroke: var(--mn-orange, #E8440A);
    filter: drop-shadow(0 0 8px rgba(232, 68, 10, .5));
    transition: stroke-dashoffset .1s linear;
}
.mn-dq-calc__pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mn-font-display, 'Newsreader', Georgia, serif);
    font-weight: 600;
    font-size: 30px;
    color: var(--mn-linen, #DED5BE);
    font-variant-numeric: tabular-nums;
}
.mn-dq-calc__title { font-size: 24px; margin-bottom: 10px; }
.mn-dq-fallback {
    font-size: 13px;
    color: rgba(222, 213, 190, .55);
    margin-top: 26px;
}
.mn-dq-fallback a { color: var(--mn-orange-soft, #F0A881); }

/* ── Desktop ─────────────────────────────────────────────────── */
@media (min-width: 900px) {
    .mn-dq-app {
        max-width: none;
        background: transparent;
        box-shadow: none;
    }
    .mn-dq-bar {
        padding-left: max(48px, calc((100% - 680px) / 2));
        padding-right: max(48px, calc((100% - 680px) / 2));
    }
    .mn-dq-main {
        max-width: 680px;
        margin: 0 auto;
        padding-top: 48px;
    }
    .mn-dq-q { font-size: 30px; }
}
