/* ================================================================
   pvi-account-confirmed.css
   Page-specific styles for the post-verification account-confirmed
   page. Loaded after pvi-master-frame.css via the <<stylesheet>> slot.
   Uses design tokens from the master frame: --white, --surface, --rule,
   --light-grey, --dark-grey, --mid-grey, --dull-blue, --dull-red,
   --dull-red-bg, --green, --green-hover, --mid-grey-hover, --amber-warn,
   --amber-warn-bg, --amber-warn-text.
   ================================================================ */


/* ----------------------------------------------------------------
   1. Page wrapper — centers content within the master frame's
      <main class="content-area"> slot. Parallel to .thank-you-wrap.
   ---------------------------------------------------------------- */
.account-confirmed-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem .75rem;
}


/* ----------------------------------------------------------------
   2. White card section — duplicated VERBATIM from pvi-thank-you.css.
      Candidate to consolidate into pvi-master-frame.css on the next
      cross-page CSS pass (same note carried over).
   ---------------------------------------------------------------- */
.su-section {
    background: var(--white);
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    margin-bottom: 1.5rem;
}
.su-section h3 {
    color: var(--dark-grey);
    font-weight: 700;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: .5rem;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}


/* ----------------------------------------------------------------
   3. Green confirmation banner — duplicated from pvi-thank-you.css.
   ---------------------------------------------------------------- */
.confirm-banner {
    background: var(--green);
    color: var(--white);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.confirm-banner .icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; }
.confirm-banner h2    { margin: 0 0 .2rem; font-size: 1.3rem; font-weight: 700; }
.confirm-banner p     { margin: 0; font-size: .92rem; opacity: .9; }


/* ----------------------------------------------------------------
   4. Top-of-page error block — duplicated from pvi-thank-you.css.
      Rendered when <<error_block>> resolves to non-empty markup.
   ---------------------------------------------------------------- */
.error-block {
    background: var(--dull-red-bg);
    border-left: 4px solid var(--dull-red);
    border-radius: 6px;
    padding: .9rem 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dull-red);
    font-size: .92rem;
}
.error-block ul {
    margin: .4rem 0 0 1.2rem;
    padding: 0;
}


/* ----------------------------------------------------------------
   5. Amber warning callout — duplicated from pvi-thank-you.css.
      Used here for the "max recalculations reached" notice. Hidden
      by default via .acct-recalc-locked (see §11); JS toggles it
      when remaining recalcs reach zero.
   ---------------------------------------------------------------- */
.warn-box {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: var(--amber-warn-bg);
    border-left: 4px solid var(--amber-warn);
    border-radius: 6px;
    padding: .9rem 1.1rem;
}
.warn-icon { font-size: 1.3rem; line-height: 1.2; }
.warn-text {
    margin: 0;
    font-size: .88rem;
    color: var(--amber-warn-text);
    line-height: 1.5;
}
.warn-text a { color: var(--amber-warn-text); font-weight: 600; }


/* ----------------------------------------------------------------
   6. Form field grids + canonical label + base input/select styles.
      NOTE: pvi-signup.css is the canonical source for .pv-grid,
      .su-lbl, and the input/select element styling under .su-section.
      That file was not in the project knowledge when this was
      written, so these rules are best-effort to match visual
      evidence. They are candidates to align verbatim with the
      canonical signup definitions on the next touch.
   ---------------------------------------------------------------- */
.pv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.pv-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.su-lbl {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .25rem;
}

.su-section input[type="text"],
.su-section input[type="email"],
.su-section input[type="tel"],
.su-section input[type="number"],
.su-section select {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid var(--light-grey);
    border-radius: 6px;
    background: var(--white);
    font-size: .95rem;
    color: var(--dark-grey);
    font-family: inherit;
    box-sizing: border-box;
}
/* Browser-readonly inputs — visually distinct from editable; uses
   the master frame's --surface inset-panel token. */
.su-section input[readonly] {
    background: var(--surface);
}
/* Hard read-only fields (email, country) — stronger no-edit cue. */
.acct-readonly-input {
    background: var(--surface) !important;
    cursor: not-allowed !important;
}
.acct-readonly-hint {
    font-size: .72rem;
    font-weight: 400;
    color: var(--mid-grey);
    text-transform: none;
    letter-spacing: 0;
    margin-left: .3rem;
}

/* Section description paragraph — small grey body text under an h3. */
.su-section-desc {
    font-size: .88rem;
    color: var(--mid-grey);
    margin-bottom: 1rem;
}


/* ----------------------------------------------------------------
   7. Account-Info card extras — phone widget + submit-action row.
      The legacy Edit-pencil / Save / Cancel toggle pattern was retired
      when the card was restructured to mirror the signup form's
      always-editable Contact + Address sections; .acct-edit-btn,
      .acct-edit-bar, and .acct-save-msg are gone with it. Email and
      Country still ship readonly via the .acct-readonly-input rule
      defined in §6 above.
   ---------------------------------------------------------------- */
/* Phone widget — prefix <select> + number <input> on one flex row.
   Mirrors the .phone-row pattern used on pvi-signup. */
.phone-row {
    display: flex;
    gap: .5rem;
}
.phone-prefix-select {
    flex: 0 0 120px;
}

/* Submit-action row at the bottom of the Account Information card —
   single .btn-save submit lives here. Replaces the old .acct-edit-bar
   which used to host Save + Cancel side-by-side. */
.acct-form-actions {
    display: flex;
    gap: .8rem;
    align-items: center;
    margin-top: 1.2rem;
}


/* ----------------------------------------------------------------
   8. Reusable Save / Cancel button pair — used by Account-Info
      and the Shoot-Types add panel.
   ---------------------------------------------------------------- */
.btn-save {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: .5rem 1.3rem;
    border-radius: 5px;
    font-size: .92rem;
    cursor: pointer;
    transition: background .2s;
}
.btn-save:hover { background: var(--green-hover); }
.btn-cancel {
    background: var(--mid-grey);
    color: var(--white);
    border: none;
    padding: .5rem 1.3rem;
    border-radius: 5px;
    font-size: .92rem;
    cursor: pointer;
    transition: background .2s;
}
.btn-cancel:hover { background: var(--mid-grey-hover); }
.btn-save--sm   { padding: .45rem 1.2rem; font-size: .9rem; }
.btn-cancel--sm { padding: .45rem 1.1rem; font-size: .9rem; }


/* ----------------------------------------------------------------
   9. Shoot-Types card — tag list, add button, expanding panel.
      Inside the panel, the engine emits a .radio-grid using the
      canonical option-list pattern defined in pvi-master-frame.css.
   ---------------------------------------------------------------- */
.shoot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.shoot-add-btn {
    font-size: .84rem;
    color: var(--dull-blue);
    background: none;
    border: 1px solid var(--dull-blue);
    border-radius: 5px;
    padding: .35rem .9rem;
    cursor: pointer;
}
/* Initial hidden state — JS sets style.display='block' when add clicked. */
.shoot-panel {
    display: none;
    margin-top: 1rem;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    padding: 1rem 1.2rem;
}
.shoot-panel__desc {
    font-size: .83rem;
    color: var(--mid-grey);
    margin-bottom: .7rem;
    line-height: 1.5;
}
.shoot-panel__label {
    font-size: .83rem;
    color: var(--mid-grey);
    margin-bottom: .7rem;
    font-weight: 600;
}
.shoot-actions {
    display: flex;
    gap: .7rem;
    align-items: center;
}
.shoot-saved-msg {
    display: none;
    color: var(--green);
    font-weight: 600;
    font-size: .88rem;
}


/* ----------------------------------------------------------------
   10. Pricing — original vs. updated tier badges + 3-col display grid.
      .pricing-badge-orig is emitted inside the <<original_pricing_block>>
      and is therefore always visible when the block renders — no JS
      toggle needed (audit §5.5, option a). .pricing-badge-new still
      starts hidden and is shown by the recalc JS path after a
      successful Recalculate submission.
   ---------------------------------------------------------------- */
.pricing-badge-orig,
.pricing-badge-new {
    color: var(--white);
    border-radius: 4px;
    padding: .15rem .55rem;
    font-size: .8rem;
    font-weight: 700;
    margin-left: .5rem;
}
.pricing-badge-orig {
    display: inline-block;
    background: var(--dark-grey);
}
.pricing-badge-new {
    display: none;
    background: var(--dull-blue);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin-top: .8rem;	
}

/* Pricing cell — the engine emits each cell as
     .pricing-cell > .pricing-cell-label, .pricing-cell-value, [.pricing-cell-sub]
   in that DOM order (label first). The card is laid out as a flex column
   and the value is given the lowest order so it floats ABOVE the label,
   reproducing the storyboard's value-on-top stat-card display
   (preview priceCellHtml). All colors come from master-frame tokens. */
.pricing-cell {
    background: var(--light-grey);
    border-radius: 7px;
    padding: .7rem .9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.pricing-cell-value {
    order: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-grey);
}
.pricing-cell-label {
    order: 2;
    font-size: .72rem;
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pricing-cell-sub {
    order: 3;
    font-size: .78rem;
    color: var(--mid-grey);
    margin-top: .15rem;
}

/* Initial hidden state for the "updated" grid; JS swaps display to grid. */
.pricing-grid--hidden {
    display: none;
    margin-top: 1.1rem;
}

/* Recalc grid stays hidden until at least one server-side recalculation
   has run. The recalc .su-section carries the engine's authoritative
   data-recalc-count; on a recalc POST the page re-renders with the count
   bumped to 1/2/3, so this selector stops matching and the grid shows.
   The separate Original Pricing card has no data-recalc-count, so it is
   never affected. Covers both "0" and an empty value, since either means
   no recalculation has happened yet. */
.su-section[data-recalc-count="0"] .pricing-grid,
.su-section[data-recalc-count=""]  .pricing-grid {
    display: none;
}

/* Mobile — stack the three pricing cells into a single column.
   Mirrors the storyboard preview's max-width:600px collapse. */
@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}


/* ----------------------------------------------------------------
   11. Refine-with-actual-numbers — recalc form, good-faith checkbox,
       recalc button + counter, max-reached warning.
   ---------------------------------------------------------------- */
.recalc-form-grid { margin-bottom: 1rem; }

.gf-row {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .9rem;
    margin-top: .5rem;
}
.gf-checkbox {
    margin-top: .2rem;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}
.gf-label {
    font-size: .88rem;
    color: var(--dark-grey);
    line-height: 1.4;
    cursor: pointer;
}

/* Disabled-until-checked initial state; JS toggles opacity / pointer-events
   in lock-step with goodFaithCheck. */
.btn-recalc {
    background: var(--dull-blue);
    color: var(--white);
    border: none;
    padding: .55rem 1.4rem;
    border-radius: 5px;
    font-size: .95rem;
    cursor: pointer;
    opacity: .5;
    pointer-events: none;
    transition: background .2s;
}
.btn-recalc:hover { background: var(--dull-blue); filter: brightness(.92); }

.recalc-counter {
    font-size: .82rem;
    color: var(--mid-grey);
    margin-left: .8rem;
}

/* Initial hidden state for the warn-box; JS toggles when remaining == 0. */
.acct-recalc-locked {
    display: none;
    margin-top: .8rem;
}


/* ----------------------------------------------------------------
   12. Support Package — light-blue accent banner, tier meta line,
       tier block (populated by pv_renderSupportTier), footnote.
       --light-blue is not registered in master :root; the inline
       fallback keeps the page rendering until that token lands.
   ---------------------------------------------------------------- */
.support-banner {
    background: var(--light-blue, #eef3fb);
    border-left: 4px solid var(--dull-blue);
    border-radius: 6px;
    padding: .85rem 1.1rem;
    margin-bottom: 1rem;
}
.support-banner__title {
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: .3rem;
    color: var(--dark-grey);
}
.support-banner__text {
    font-size: .87rem;
    color: var(--dark-grey);
    line-height: 1.5;
}
.support-meta {
    display: none;
    font-size: .82rem;
    color: var(--mid-grey);
    margin: -.2rem 0 .8rem;
}
.support-footnote {
    font-size: .8rem;
    color: var(--mid-grey);
    margin-top: 1rem;
}


/* ----------------------------------------------------------------
   13. Complete-Payment CTA — large green button below all sections.
   ---------------------------------------------------------------- */
.payment-cta-wrap {
    text-align: center;
    margin-bottom: 1rem;
}
.payment-cta {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    transition: background .2s;
}
.payment-cta:hover {
    background: var(--green-hover);
    color: var(--white);
    text-decoration: none;
}
