/* ================================================================
   pvi-thank-you.css
   Page-specific styles for the post-signup verify-email 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, --amber-warn, --amber-warn-bg,
   --amber-warn-text.
   ================================================================ */


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


/* ----------------------------------------------------------------
   2. White card section — the primary content panel.
      NOTE: duplicated in pvi-signup.css and pvi-account-confirmed.css;
      candidate to lift into pvi-master-frame.css on the next
      cross-page CSS pass.
   ---------------------------------------------------------------- */
.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 — top-of-page success notice.
   ---------------------------------------------------------------- */
.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. Masked email display — the email address the user must verify,
      inset in a soft panel inside the white card.
   ---------------------------------------------------------------- */
.email-prelabel {
    font-size: .93rem;
    color: var(--mid-grey);
    margin-bottom: .5rem;
}
.email-postlabel {
    font-size: .85rem;
    color: var(--mid-grey);
    margin-top: .8rem;
    margin-bottom: 1.2rem;
}
.email-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
    gap: .75rem;
}
.email-display .envelope {
    font-size: 1.8rem;
    color: var(--dull-blue);
}
.email-masked {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-grey);
    letter-spacing: .02em;
}


/* ----------------------------------------------------------------
   5. Resend block — engine renders <<resend_block>> as one of three
      states using these classes:
        • Resends available — .resend-wrap + .resend-form + .resend-btn + .resend-count
        • Just resent       — same, plus .resend-msg with success text
        • Max reached       — .resend-wrap + .resend-locked
      The engine emits the inner <form action="<<action_post>>"> and
      <input name="csrf_token" value="<<csrf_token>>"> as part of the
      block template; they do not appear in the page fragment.
      Visibility is engine-controlled (whether the element is rendered),
      not display:none toggles.
   ---------------------------------------------------------------- */
.resend-wrap { text-align: center; margin-bottom: 1.2rem; }
.resend-form { display: inline-block; margin: 0; }
.resend-btn {
    background: var(--dull-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: .55rem 1.6rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}
.resend-msg {
    margin-top: .6rem;
    font-size: .87rem;
    color: var(--green);
    font-weight: 600;
}
.resend-count {
    margin-top: .4rem;
    font-size: .8rem;
    color: var(--mid-grey);
}
.resend-locked {
    margin-top: .6rem;
    font-size: .87rem;
    color: var(--dull-red);
    font-weight: 600;
}
.resend-locked a { color: var(--dull-red); }


/* ----------------------------------------------------------------
   6. In-card divider — thin horizontal rule between sections.
   ---------------------------------------------------------------- */
.section-rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 1rem 0;
}


/* ----------------------------------------------------------------
   7. "Something wrong?" contact line — centered helper line.
   ---------------------------------------------------------------- */
.contact-line {
    text-align: center;
    font-size: .88rem;
    color: var(--mid-grey);
    margin: 0;
}
.contact-line a {
    color: var(--dull-blue);
    font-weight: 600;
}


/* ----------------------------------------------------------------
   8. Amber warning callout — "no account is active yet" notice.
      Uses the master frame's --amber-warn cluster.
   ---------------------------------------------------------------- */
.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;
}


/* ----------------------------------------------------------------
   9. Top-of-page error block — engine-rendered when <<error_block>>
      resolves to non-empty markup (e.g. the resend POST failed and
      the engine re-renders the page with an error). Uses the danger
      cluster pairing: --dull-red-bg fill behind --dull-red text/border.
   ---------------------------------------------------------------- */
.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;
}
