/* Edits 4 (Jayson, ONLINE IFA EDITS _ 4, 11/24): full quote results, plans and upload. */

/* ---------- step 3: once files are in, the upload box is the list of files with Read again beside it */
.bp-drop.r5-docs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .6rem 1rem; }
.bp-drop.r5-docs .bp-file { padding: .25rem 1.1rem; }
.bp-drop.r5-docs .bp-pick.mt-1 { margin-top: 0 !important; }
.bp-drop .r5-read { margin-top: 0; position: relative; z-index: 2; }
.bp-drop:not(.r5-docs) .r5-read { justify-content: center; margin-top: .6rem; }

/* ---------- results header: the two actions side by side */
.bp-hero .r4-acts { display: grid; grid-template-columns: auto auto; gap: .5rem; min-width: 0; }
.bp-hero .r4-acts .r4-sub { grid-column: 1 / -1; }
@media (max-width: 700px) { .bp-hero .r4-acts { grid-template-columns: 1fr; } }

/* ---------- design: one line under the goal; details in pop-ups */
.r4-design .r5-designline { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.1rem; margin-top: .7rem; padding-top: .55rem;
    border-top: 1px solid var(--bp-line, #e1e6ec); font-size: .84rem; }
.r4-design .r5-designline .btn-link { font-size: .84rem; vertical-align: baseline; }
.r4-design .r5-why { border: 0; background: var(--brand-accent-teal, #e3f4f4); color: var(--bp-teal, #00757a); font-weight: 700; border-radius: 999px; padding: .3rem .85rem; }
.r4-design .r5-why:hover { filter: brightness(.97); }
.r4-design .r5-metric { border: 1px solid var(--bp-line, #e1e6ec); background: #fff; border-radius: 999px; padding: .25rem .8rem; color: #2b3845; }
.r4-design .r5-metric b { font-size: 1rem; margin-right: .15rem; }
.r4-design .r5-metric.r b { color: #b3261e; } .r4-design .r5-metric.g b { color: #1e7a46; }
.r4-design .r5-metric i { font-size: .7rem; color: var(--bp-muted, #6b7785); margin-left: .2rem; }
.r4-design .r5-impact { font-weight: 600; color: var(--bp-teal, #00757a); text-decoration: none; }

/* ---------- financial snapshot: the projection and benchmarking in the same tab */
.r5-results .r4-snap .lbl .r5-tip { font-size: .75rem; color: var(--bp-muted, #6b7785); cursor: help; margin-left: .15rem; }
.r5-snap-more { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.2rem 1.6rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--bp-line, #e1e6ec); }
.r5-snap-more h4 { font-size: .95rem; margin: 0 0 .4rem; font-weight: 700; }
.r5-snap-more h5 { font-weight: 600; }
.r5-snap-more .bp-kpis { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .r5-snap-more { grid-template-columns: 1fr; } }

/* ---------- metal levels: a quieter selection; amounts on the bars */
.r5-metals .r4-mrow.on { border-color: transparent; background: transparent; box-shadow: inset 3px 0 0 var(--bp-teal, #00757a); border-radius: 0 10px 10px 0; }
.r5-metals .r4-mrow input[type=radio] { accent-color: var(--bp-teal, #00757a); width: .9rem; height: .9rem; }
.r5-metals .r4-mrow .lbl { font-weight: 500; }
.r5-metals .r4-mrow.on .lbl { font-weight: 600; }
.r5-priced { font-size: .72rem; font-weight: 600; color: var(--bp-teal, #00757a); margin-left: .35rem; }
.r5-metals .track .er, .r5-metals .track .ee { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; font-size: .72rem; font-weight: 600; }
.r5-metals .track .er span { color: #fff; } .r5-metals .track .ee span { color: #0f2b3d; }
.r5-metals .track .ee { border-radius: 0 6px 6px 0; }

/* ---------- carrier mapping: one line per place, the carriers under it */
.r5-loc .hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.r5-loc .hd .where b { font-size: .98rem; } .r5-loc .hd .where i { color: var(--bp-teal, #00757a); }
.r5-loc .hd .who { font-size: .82rem; color: var(--bp-muted, #6b7785); }
.r5-loc .hd .now { margin-left: auto; font-size: .84rem; }
.r5-loc .r5-carriers { margin-top: .45rem; }
.bp .r5-loc table.t.bp-tbl tr.chosen td { background: #f3f9f9; font-weight: 600; }
.bp .r5-loc table.t.bp-tbl tr.chosen td:first-child { box-shadow: inset 3px 0 0 var(--bp-teal, #00757a); }
.bp .r5-loc table.t.bp-tbl tr.muted td { color: var(--bp-muted, #6b7785); }
.r5-loc .r5-use { font-size: .75rem; padding: .1rem .6rem; border-radius: 999px; }
.r5-loc .r5-preview { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: .45rem; padding: .5rem .75rem; border-radius: 8px; background: #eef6fb; }
.r5-loc .r5-preview .acts { margin-left: auto; white-space: nowrap; }

/* ---------- step 1: qualification questions, each with why it matters; a clear stop when the group doesn't qualify */
.bp .r5-qual { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.bp .r5-q { display: flex; flex-direction: column; gap: .35rem; }
.bp .r5-q .q { font-weight: 600; }
.bp .r5-q .r5-list { font-size: .82rem; color: #3c4a57; margin-top: -.15rem; }
.bp .r5-q .bp-choice { align-self: flex-start; }
.bp .r5-q .why { font-size: .8rem; color: var(--bp-muted, #6b7785); }
.bp .r5-q .why summary { cursor: pointer; list-style: none; color: var(--bp-teal, #00757a); font-weight: 600; }
.bp .r5-q .why summary::-webkit-details-marker { display: none; }
.bp .r5-q .why[open] summary { margin-bottom: .2rem; }
.bp .r5-stop > i { color: #b3261e; }
@media (max-width: 900px) { .bp .r5-qual { grid-template-columns: 1fr; } }
.bp .r5-loc table.t.bp-tbl th.num { text-align: right; }
