﻿/* ================================
   newsite.css
   Pippsino V2 Public-Facing Styles

   PURPOSE:
   - Loaded on public/marketing pages through SiteV2.Master.
   - Contains .pps-* public page sections, nonprofit directory,
     homepage, winners, login, join, and other public-facing styles.
   
    NAMING CONVENTION:
   - .pps-*

   DEPENDS ON:
   - v2-base.css for brand tokens, header/nav, footer, and global spinner.

   NOTES:
   - Keep logged-in/account/checkout/dashboard styles in portal.css.
   - Keep reusable sitewide .ps-* base helpers in v2-base.css.
   ================================ */

.pps-scope {
    --pps-red: var(--ps-red, #df1f26);
    --pps-ink: #000000;
    --pps-bg: #ffffff;
    --pps-line: #f0f0f0;
    --pps-muted: #666666;
    --pps-badge-bg: #fff5f5;
    --pps-shadow: 0 6px 18px rgba(0,0,0,.06);
    --pps-radius: 8px;
}

/* Center the content and cap the width */
.pps-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Base typography & sections
   ========================================= */

.pps-scope,
.pps-scope p,
.pps-scope li,
.pps-scope input,
.pps-scope select,
.pps-scope button {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pps-ink);
}

.text-uppercase {
    text-transform: uppercase;
}

.pps-scope .pps-section {
    padding: 45px 0;
    border-bottom: 1px solid var(--pps-line);
    background-color: var(--pps-bg);
}

/* Hero logo + subtitle */

.pps-scope .pps-logo {
    width: 90px;
    margin-bottom: 8px;
}

.pps-scope .pps-subtitle {
    color: var(--pps-muted);
    margin: 0 0 5px;
    letter-spacing: .06em;
}

/* Headings */

.pps-scope .pps-h1 {
    margin: 20px 0 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pps-red);
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: .5px;
}

.pps-scope .pps-h2 {
    margin: 0 0 16px;
    font-weight: 700;
    font-size: 24px;
}

.pps-scope .pps-h3 {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 20px;
}

.pps-scope .pps-lead {
    margin: 0 auto 15px;
    max-width: 720px;
    line-height: 1.6;
}

.pps-scope .pps-copy {
    margin: 0 auto 10px;
    max-width: 720px;
    line-height: 1.5;
}

.pps-scope .pps-micro {
    font-size: 12px;
    color: var(--pps-muted);
    letter-spacing: .02em;
}
/* Hero trust chips/badges */
.pps-scope .pps-hero .pps-badge {
    padding: 6px 16px;
    letter-spacing: 0.05em;
    font-size: 11px;
    background-color: #fff7f7;
    border-color: rgba(223, 31, 38, 0.35);
}

.pps-scope .pps-hero .pps-badge i {
    margin-right: 7px;
}

/* Larger-screen heading tweaks */
@media (min-width: 768px) {
    .pps-scope .pps-h1 {
        font-size: 42px;
    }

    .pps-scope .pps-h2 {
        font-size: 30px;
    }

    .pps-scope .pps-h3 {
        font-size: 24px;
    }
}

/* =========================================
   Buttons / CTAs
   ========================================= */

.pps-scope .pps-cta {
    padding-top: 30px;
    padding-bottom: 20px;
}

/* Mobile-first: stacked, full-width */
.pps-scope .pps-cta .btn {
    display: block;
    width: 100%;
    margin: 0 0 10px;
}
/* Disabled: Coming Soon Btn */
.pps-scope .pps-btn-disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}
/* Inline layout on ≥576px */
@media (min-width: 576px) {
    .pps-scope .pps-cta .btn {
        display: inline-block;
        width: auto;
        margin-right: 10px;
        margin-bottom: 0;
    }
}

/* Primary/secondary look (works with Bootstrap .btn / .btn-outline-danger) */

.pps-scope .pps-btn-primary {
    border-width: 2px;
}

.pps-scope .pps-btn-secondary,
.pps-scope .btn-outline-danger {
    border-width: 2px;
    border-color: var(--pps-red) !important;
    color: var(--pps-red) !important;
}

.pps-scope .btn-outline-danger:hover,
.pps-scope .pps-btn-secondary:hover {
    background-color: var(--pps-red) !important;
    color: #fff !important;
}

/* "View Details" button in cards should always be full-width */
.pps-scope .pps-details.btn {
    display: block;
    width: 100%;
    margin-top: 6px;
}

/* =========================================
   Partner Levels strip
   ========================================= */

.pps-scope .pps-levels {
    margin-top: 10px;
    justify-content: center;
}

.pps-scope .pps-level {
    margin-bottom: 15px;
    display: flex;
}

.pps-scope .pps-level-card {
    background: #fff;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    padding: 14px;
    box-shadow: var(--pps-shadow);
    text-align: center;
    height: 100%;
    width: 100%;
}

.pps-scope .pps-level-icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 999px;
    margin: 0 auto 8px;
    background: var(--pps-badge-bg);
    color: var(--pps-red);
    font-size: 18px;
}

.pps-scope .pps-level-title {
    font-weight: 700;
    margin: 0 0 2px;
    text-transform: uppercase;
}

.pps-scope .pps-level-meta {
    color: var(--pps-muted);
    margin: 0;
    font-size: 14px;
}
/*Homepage Community Stats */
.pps-level-card .pps-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--pps-red);
    line-height: 1.1;
    margin-top: 4px;
}
/* =========================================
   Homepage Live Stats + Winners Board
   ========================================= */

.pps-scope .pps-live-section .pps-stats-grid {
    height: auto;
}

.pps-scope .pps-live-section .pps-stats-grid > div {
    display: flex;
}

.pps-scope .pps-live-section .pps-stats-grid .pps-level-card {
    flex: 1 1 auto;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pps-scope .pps-winners-card {
    padding: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.pps-scope .pps-winners-header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--pps-line);
    background: #fff;
}

.pps-scope .pps-winners-kicker {
    margin: 0 0 4px;
    color: var(--pps-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.pps-scope .pps-winners-title {
    margin: 0 0 5px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
}

.pps-scope .pps-winners-scroll {
    max-height: 360px;
    overflow-y: auto;
    padding: 12px;
    background: #fafafa;
}

.pps-scope .pps-winner-card {
    display: block;
    padding: 13px;
    margin-bottom: 10px;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.pps-scope .pps-winner-card:last-child {
    margin-bottom: 0;
}

.pps-scope .pps-winner-top {
    display: flex;
    gap: 12px;
}

.pps-scope .pps-winner-rank {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff7f7;
    border: 1px solid rgba(223, 31, 38, 0.22);
    color: var(--pps-red);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
}

.pps-scope .pps-winner-content {
    flex: 1 1 auto;
    min-width: 0;
}

.pps-scope .pps-winner-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pps-scope .pps-winner-name {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.15;
}

.pps-scope .pps-winner-location {
    margin: 4px 0 0;
    color: var(--pps-muted);
    font-size: 12px;
    font-weight: 600;
}

.pps-scope .pps-winner-prize {
    text-align: right;
    white-space: nowrap;
}

.pps-scope .pps-winner-prize span {
    display: block;
    color: var(--pps-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1;
}

.pps-scope .pps-winner-prize strong {
    display: block;
    margin-top: 3px;
    color: var(--pps-red);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.pps-scope .pps-winner-impact {
    margin-top: 10px;
    margin-left: 0;
    margin-right: 0;
    padding: 9px 10px;
    border-radius: 6px;
    background: #fff7f7;
    border: 1px solid rgba(223, 31, 38, 0.12);
}

.pps-scope .pps-impact-label {
    display: block;
    margin-bottom: 4px;
    color: var(--pps-red);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pps-scope .pps-impact-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pps-scope .pps-impact-name {
    min-width: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.pps-scope .pps-impact-amount {
    flex: 0 0 auto;
    color: var(--pps-red);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.pps-scope .pps-winners-footer {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--pps-line);
    background: #fff;
    text-align: center;
    margin-top: auto;
}

    .pps-scope .pps-winners-footer .btn {
        width: 100%;
        max-width: 230px;
    }
/* =========================================
   Historical Winners ("Winners Page")
   ========================================= */
.pps-scope .pps-winners-page .pps-winners-card {
    padding: 14px;
}

.pps-scope .pps-winners-page .pps-winner-card {
    margin-bottom: 14px;
}

    .pps-scope .pps-winners-page .pps-winner-card:last-child {
        margin-bottom: 0;
    }

.pps-scope .pps-winners-page .pps-impact-game {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    color: var(--pps-red);
    white-space: nowrap;
}
/* =========================================
   Filters row
   ========================================= */
.pps-scope .pps-filters {
    margin: 10px 0 18px;
}

.pps-scope .pps-input,
.pps-scope .pps-select {
    border-radius: 6px;
    border: 1px solid var(--pps-line);
    font-size: 16px;
}

/* =========================================
   Partner cards grid ("Our Partners")
   ========================================= */

.pps-scope .pps-cards {
    margin-top: 5px;
}

/* Make each column act as a flex container */
.pps-scope .pps-cards .pps-card {
    margin-bottom: 18px;
    display: flex;
}

/* Inner card stretches to equalize card heights, but stays row layout */
.pps-scope .pps-cards .pps-card-inner {
    flex: 1 1 auto;
    background: #fff;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    padding: 12px;
    box-shadow: var(--pps-shadow);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Shared avatar base styles (card + modal) */
.pps-scope .pps-avatar,
.pps-scope .pps-avatar-lg {
    background: #fafafa;
    color: #999;
    text-align: center;
    overflow: hidden;
}

/* Card avatar */
.pps-scope .pps-avatar {
    margin-top: 15px;
    width: 66px;
    height: 66px;
    border-radius: 8px;
    line-height: 66px;
    font-size: 22px;
    flex-shrink: 0;
}

/* Modal avatar (large) */
.pps-scope .pps-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    line-height: 110px;
    font-size: 28px;
}

.pps-scope .pps-avatar img,
.pps-scope .pps-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card body (right side) laid out as column so button can sit at bottom */
.pps-scope .pps-card-body {
    padding-left: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badge = level chip (card + modal share this) */
.pps-scope .pps-badge,
.pps-scope .pps-modal-badge {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    border: 1px solid var(--pps-red);
    color: var(--pps-red);
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.pps-scope .pps-badge i,
.pps-scope .pps-modal-badge i {
    margin-right: 5px;
    font-size: 0.85rem;
}

/* Card text */
.pps-scope .pps-name {
    margin: 0 0 4px;
    font-weight: 700;
}

.pps-scope .pps-type,
.pps-scope .pps-location {
    color: var(--pps-muted);
    margin: 0 10px 6px 0;
    font-size: 13px;
}

/* Pin the "View Details" button to the bottom inside the card body */
.pps-scope .pps-card-body .pps-details {
    margin-top: auto;
}

/* =========================================
   CTA boxes at bottom
   ========================================= */

.pps-scope .pps-cta-box {
    border: 2px solid var(--pps-red);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}
.pps-scope .pps-cta-box .btn {
    margin: 8px 6px 0;
}
/* =========================================
   Featured Nonprofits (homepage cards)
   ========================================= */
/* FEATURED NONPROFITS: vertical stack + bottom stats */
.pps-scope .pps-featured-nonprofits .pps-cards .pps-card {
    display: flex !important;
}
.pps-scope .pps-featured-nonprofits .pps-card-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    padding: 0;
}
.pps-scope .pps-featured-nonprofits .pps-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    padding: 20px;
}
.pps-scope .pps-featured-nonprofits .pps-location {
    margin-top: 8px;
    font-weight: bold;
}
.pps-scope .pps-featured-nonprofits .pps-mission {
    margin-top: 10px;
    margin-bottom: 30px !important;
}
/* Pin stats to bottom */
.pps-scope .pps-featured-nonprofits .pps-np-stats {
    margin-top: auto !important;
    /* FULL BLEED: cancel the card-body padding */
    margin-left: calc(20px * -1);
    margin-right: calc(20px * -1);
    margin-bottom: calc(20px * -1);
    padding: 14px 12px;
    border-top: 1px solid rgba(223, 31, 38, 0.18);
    background: #fff7f7;
    border-radius: 0 0 8px 8px;
}
.pps-scope .pps-featured-nonprofits .pps-np-stats .fw-bold {
    font-size: 18px;
}
.pps-scope .pps-featured-nonprofits .pps-badge {
    margin-bottom: 10px;
}
/* =========================================
   Nonprofit Directory View Toggle + List View 
    (Directory page only)
   ========================================= */
.pps-scope .pps-np-directory .pps-filters .pps-select {
    background-color: #f4f4f4;
}
/* toggle buttons */
.pps-scope .pps-np-directory .pps-view-toggle {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}
.pps-scope .pps-np-directory .pps-view-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--pps-line);
    border-radius: 8px;
    background: #fff;
    color: var(--pps-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pps-scope .pps-np-directory .pps-view-btn:hover,
.pps-scope .pps-np-directory .pps-view-btn.active {
    border-color: rgba(223, 31, 38, 0.35);
    color: var(--pps-red);
    background: #fff7f7;
}
/* default layout behavior inside directory */
.pps-scope .pps-np-directory .pps-grid-layout {
    display: block;
}
.pps-scope .pps-np-directory .pps-list-layout {
    display: none;
}
.pps-scope .pps-np-directory .pps-grid-layout {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
}
.pps-scope .pps-np-directory .pps-grid-layout .pps-card-body {
    flex: 1 1 auto;
    height: 100%;
}
/* when list view is active */
.pps-scope .pps-np-directory .pps-cards.list-view .pps-card {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    margin-bottom: 10px;
}
.pps-scope .pps-np-directory .pps-cards.list-view .pps-grid-layout {
    display: none;
}
.pps-scope .pps-np-directory .pps-cards.list-view .pps-list-layout {
    display: block;
}
.pps-scope .pps-np-directory .pps-cards.list-view .pps-card-inner {
    padding: 0;
}
/* compact row */
.pps-scope .pps-np-directory .pps-list-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
}
.pps-scope .pps-np-directory .pps-list-main {
    flex: 1 1 auto;
    min-width: 0;
}
.pps-scope .pps-np-directory .pps-list-top {
    margin-bottom: 4px;
}

.pps-scope .pps-np-directory .pps-list-body .pps-badge {
    margin-bottom: 4px;
    font-size: 10px;
    padding: 4px 7px;
}

.pps-scope .pps-np-directory .pps-list-body .pps-name {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.pps-scope .pps-np-directory .pps-list-body .pps-location {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--pps-muted);
    font-weight: 400;
}

.pps-scope .pps-np-directory .pps-list-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.pps-scope .pps-np-directory .pps-list-stats {
    display: flex;
    gap: 8px;
}

.pps-scope .pps-np-directory .pps-list-stat {
    min-width: 56px;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .pps-scope .pps-np-directory .pps-list-stat .fw-bold,
    .pps-scope .pps-np-directory .pps-list-stat span {
        font-size: 14px;
    }

    .pps-scope .pps-np-directory .pps-list-stat small {
        font-size: 10px;
        color: var(--pps-muted);
    }

.pps-scope .pps-np-directory .pps-list-btn {
    min-width: 74px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}
/* =========================================
   HOW IT WORKS PAGE
========================================= */

.pps-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--pps-radius);
    box-shadow: var(--pps-shadow);
    border: 1px solid var(--pps-line);
}

.pps-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pps-feature-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--pps-muted);
    line-height: 1.5;
}
.pps-feature-list li {
    margin-bottom: 8px;
}
.pps-feature-list.pps-feature-list-plain {
    list-style: none !important;
    padding-left: 0;
}

.pps-feature-list.pps-feature-list-plain li {
    padding-left: 0;
}
.pps-feature-list strong {
    color: var(--pps-ink);
}
.pps-level-card.text-start .pps-level-icon {
    margin-left: 0;
    margin-right: 0;
}
.pps-role-actions {
    padding-top: 12px;
    padding-bottom: 0;
}
/* =========================================
   Flip It Forward (secondary CTA block)
   ========================================= */

.pps-scope .pps-flip .pps-copy {
    max-width: 820px;
}

/* Card container */
.pps-scope .pps-flip-card {
    border: 1px solid rgba(223, 31, 38, 0.18);
    border-radius: 14px;
    background: #fff7f7;
    box-shadow: var(--pps-shadow);
    padding: 18px;
    text-align: left;
}

/* Icon */
.pps-scope .pps-flip-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(223, 31, 38, 0.18);
    color: var(--pps-red);
    font-size: 20px;
}

/* Text */
.pps-scope .pps-flip-title {
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin: 0;
}

.pps-scope .pps-flip-sub {
    color: var(--pps-muted);
    line-height: 1.45;
}

/* Small footnote band */
.pps-scope .pps-flip-foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(223, 31, 38, 0.14);
}

.pps-scope .pps-flip-note {
    color: var(--pps-muted);
    font-size: 13px;
    line-height: 1.45;
    display: inline-block;
}

/* Compact CTA spacing (so it doesn't add huge padding like normal pps-cta) */
.pps-scope .pps-cta.pps-cta-compact {
    padding-top: 0;
    padding-bottom: 0;
}
/* =========================================
   Details Modal (Bootstrap 5)
   ========================================= */

/* Mobile-first: narrower dialog */
.pps-scope #ppsModal .modal-dialog {
    max-width: 95%;
    margin: 0 auto;
}

/* Wider, centered dialog on larger screens */
@media (min-width: 768px) {
    .pps-scope #ppsModal .modal-dialog {
        max-width: 900px;
    }
}

/* Card-like modal shell */
.pps-scope #ppsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* Header */
.pps-scope #ppsModal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.5rem 0.75rem;
}

.pps-scope #ppsModal .modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Body spacing */
.pps-scope #ppsModal .modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Name + meta */
.pps-scope .pps-modal-name {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 1.2rem;
}

.pps-scope .pps-modal-meta {
    color: var(--pps-muted);
    margin: 0 0 6px;
    font-size: 0.95rem;
}

/* Description */
.pps-scope .pps-modal-desc {
    margin: 14px 0 10px;
    line-height: 1.5;
    font-size: 0.98rem;
}

/* Visit Website button – outlined red */
.pps-scope .pps-modal-links .btn-outline-danger {
    border-width: 2px;
    border-color: var(--pps-red);
    color: var(--pps-red);
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.pps-scope .pps-modal-links .btn-outline-danger:hover,
.pps-scope .pps-modal-links .btn-outline-danger:focus {
    background-color: var(--pps-red);
    color: #fff;
}
/* ================================
   Nonprofit Getting Started - FAQs
   ================================ */

.pps-scope .accordion-item {
    border: 1px solid var(--pps-line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--pps-shadow);
    box-shadow: none;
    margin-bottom: 10px;
}

.pps-scope .accordion-button {
    font-weight: 700;
}

.pps-scope .accordion-button:not(.collapsed) {
    color: var(--pps-red);
    background: #fff7f7;
}

.pps-scope .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(223, 31, 38, 0.15);
    border-color: rgba(223, 31, 38, 0.25);
}
/* ACTIVE (expanded) state */
.pps-scope .accordion-button:not(.collapsed) {
    background-color: #fff7f7; /* muted red */
    color: var(--pps-red); /* red text */
    box-shadow: inset 0 -1px 0 rgba(223, 31, 38, 0.15);
}

/* Chevron icon color when active */
.pps-scope .accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(18%) sepia(84%) saturate(3600%) hue-rotate(346deg) brightness(92%) contrast(98%);
}
/* Accordion body */
.pps-scope .accordion-body {
    background-color: #ffffff;
    color: var(--pps-ink);
    line-height: 1.55;
    padding: 16px 18px;
}
/* =========================================
   LOGIN PAGE
========================================= */

.pps-login-page {
    padding: 45px 0 80px;
    background: #fff;
}

.pps-login-card {
    background: #fff;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    padding: 22px;
    box-shadow: var(--pps-shadow);
}

.pps-login-header {
    padding: 8px 4px 22px;
    border-bottom: 1px solid var(--pps-line);
    margin-bottom: 22px;
}

.pps-login-logo {
    width: 90px;
    height: auto;
    margin-bottom: 8px;
}

.pps-login-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(223,31,38,.35);
    color: var(--pps-red);
    background: #fff7f7;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.pps-login-title {
    margin-top: 0;
    margin-bottom: 8px;
}

.pps-login-subtitle {
    color: var(--pps-muted);
    margin: 0 auto;
    line-height: 1.5;
    max-width: 360px;
}

.pps-field-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--pps-ink);
    margin-bottom: 6px;
}

.pps-input-icon-wrap {
    position: relative;
}

.pps-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 2;
}

.pps-input-icon-wrap .pps-login-input,
.pps-input-icon-wrap .pps-form-control {
    padding-left: 42px;
}

.pps-login-input {
    min-height: 48px;
    border-radius: 6px;
    border: 1px solid var(--pps-line);
    font-size: 16px;
}

.pps-password-input {
    padding-right: 48px;
}

.pps-login-input:focus {
    border-color: rgba(223,31,38,.45);
    box-shadow: 0 0 0 .2rem rgba(223,31,38,.12);
}

.pps-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #999;
    z-index: 3;
}

.pps-password-toggle:hover {
    color: var(--pps-red);
}

.pps-login-validator {
    display: block;
    margin-top: 6px;
    color: var(--pps-red);
    font-size: 12px;
    font-weight: 800;
}

.pps-login-alert {
    border: 1px solid rgba(223,31,38,.25);
    background: #fff7f7;
    color: var(--pps-red);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.pps-login-alert i {
    margin-right: 6px;
}

.pps-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0 18px;
    font-size: 14px;
}

.pps-remember-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pps-muted);
    cursor: pointer;
}

.pps-login-link,
.pps-login-create a {
    color: var(--pps-red);
    font-weight: 700;
    text-decoration: none;
}

.pps-login-link:hover,
.pps-login-create a:hover {
    color: var(--ps-red-dark);
    text-decoration: underline;
}

.pps-login-create {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--pps-line);
}

.pps-login-create p {
    margin: 0;
    color: var(--pps-muted);
}
/* =========================================
   JOIN PAGE
========================================= */

.pps-join-page {
    padding: 45px 0 80px;
    background: #fff;
}

.pps-join-card {
    background: #fff;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    padding: 22px;
    box-shadow: var(--pps-shadow);
}

.pps-join-header {
    padding: 8px 4px 22px;
    border-bottom: 1px solid var(--pps-line);
    margin-bottom: 22px;
}

.pps-join-logo {
    width: 90px;
    height: auto;
    margin-bottom: 8px;
}

.pps-join-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(223,31,38,.35);
    color: var(--pps-red);
    background: #fff7f7;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.pps-join-title {
    margin-top: 0;
    margin-bottom: 8px;
}

.pps-join-subtitle {
    color: var(--pps-muted);
    margin: 0 auto;
    line-height: 1.5;
    max-width: 520px;
}

.pps-status-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--pps-red);
}

.pps-form-control {
    min-height: 48px;
    border-radius: 6px;
    border: 1px solid var(--pps-line);
    font-size: 16px;
}

    .pps-form-control:focus {
        border-color: rgba(223,31,38,.45);
        box-shadow: 0 0 0 .2rem rgba(223,31,38,.12);
    }

.pps-help-text {
    margin: 6px 0 0;
    color: var(--pps-muted);
    font-size: 12px;
}

.pps-validator {
    display: block;
    margin-top: 6px;
    color: var(--pps-red);
    font-size: 12px;
    font-weight: 800;
}

.pps-join-terms {
    margin-top: 22px;
    padding: 14px;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    background: #fafafa;
    color: var(--pps-muted);
    font-size: 13px;
    line-height: 1.5;
}

    .pps-join-terms a,
    .pps-join-login a {
        color: var(--pps-red);
        font-weight: 700;
        text-decoration: none;
    }

        .pps-join-terms a:hover,
        .pps-join-login a:hover {
            color: var(--ps-red-dark);
            text-decoration: underline;
        }

.pps-join-actions {
    margin-top: 18px;
}

.pps-join-card .pps-btn-primary {
    min-height: 52px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pps-join-login {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--pps-line);
}

.pps-join-login p {
    margin: 0;
    color: var(--pps-muted);
}
/* =========================================
   NONPROFIT REGISTRATION PAGE
========================================= */

.pps-register-page {
    padding: 45px 0 80px;
    background: #fff;
}

.pps-register-card {
    background: #fff;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    padding: 22px;
    box-shadow: var(--pps-shadow);
}

.pps-register-header {
    padding: 8px 4px 22px;
    border-bottom: 1px solid var(--pps-line);
    margin-bottom: 22px;
}

.pps-register-logo {
    width: 90px;
    height: auto;
    margin-bottom: 8px;
}

.pps-register-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(223,31,38,.35);
    color: var(--pps-red);
    background: #fff7f7;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.pps-register-title {
    margin-top: 0;
    margin-bottom: 8px;
}

.pps-register-subtitle {
    color: var(--pps-muted);
    margin: 0 auto;
    line-height: 1.5;
    max-width: 640px;
}

.pps-form-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--pps-line);
}

    .pps-form-section:first-of-type {
        padding-top: 0;
        margin-top: 0;
        border-top: 0;
    }

.pps-form-section-title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 900;
    color: var(--pps-red);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pps-textarea {
    min-height: 120px;
}

.pps-register-confirm {
    margin-top: 22px;
    padding: 14px;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    background: #fafafa;
}

.pps-check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--pps-muted);
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 10px;
}

    .pps-check-row:last-child {
        margin-bottom: 0;
    }

    .pps-check-row input {
        margin-top: 4px;
    }

    .pps-check-row a {
        color: var(--pps-red);
        font-weight: 700;
        text-decoration: none;
    }

        .pps-check-row a:hover {
            color: var(--ps-red-dark);
            text-decoration: underline;
        }

.pps-register-actions {
    margin-top: 18px;
}

.pps-register-card .pps-btn-primary {
    min-height: 52px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Registration Modals */

.pps-register-modal .modal-dialog {
    max-width: 460px;
}

.pps-register-modal-card {
    border: 0;
    border-radius: var(--pps-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,.22);
    overflow: hidden;
}

.pps-register-modal-body {
    padding: 32px 24px 20px;
}

.pps-register-modal-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 24px;
    background: #fff7f7;
    border: 1px solid rgba(223,31,38,.25);
    color: var(--pps-red);
}

.pps-register-modal-kicker {
    margin: 0 0 8px;
    color: var(--pps-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.pps-register-modal-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    color: #000;
    line-height: 1.15;
}

.pps-register-modal-copy {
    margin: 0 0 8px;
    color: var(--pps-muted);
    line-height: 1.5;
}

.pps-register-modal-footer {
    border-top: 1px solid var(--pps-line);
    padding: 16px 20px 20px;
    background: #fff;
}
/* =========================================
   CONTACT PAGE
========================================= */

.pps-contact-card {
    background: #fff;
    border: 1px solid var(--pps-line);
    border-radius: var(--pps-radius);
    padding: 22px;
    box-shadow: var(--pps-shadow);
}

.pps-contact-header {
    padding: 8px 4px 22px;
    border-bottom: 1px solid var(--pps-line);
    margin-bottom: 22px;
}

.pps-contact-actions {
    margin-top: 18px;
}

.pps-contact-card .pps-btn-primary {
    min-height: 52px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pps-contact-thanks {
    margin: 18px 0 0;
    color: var(--pps-muted);
    text-align: center;
    font-size: 14px;
}

/* =========================================
   Larger-screen breathing room
   ========================================= */

@media (min-width: 992px) {
    .pps-scope .pps-live-section > .row {
        align-items: stretch !important;
    }

    .pps-scope .pps-live-section .col-lg-5,
    .pps-scope .pps-live-section .col-lg-7 {
        display: flex;
    }

    .pps-scope .pps-live-section .pps-stats-grid {
        flex: 1 1 auto;
    }

    .pps-scope .pps-live-section .pps-stats-grid > div {
        display: flex;
    }

    .pps-scope .pps-live-section .pps-stats-grid .pps-level-card {
        flex: 1 1 auto;
    }

    .pps-scope .pps-winners-card {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .pps-scope .pps-winners-scroll {
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
    }
}

@media (min-width: 768px) {
    .pps-scope .pps-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .pps-scope .pps-flip-card {
        padding: 16px;
    }

    .pps-scope .pps-cta.pps-cta-compact .btn {
        width: 100%;
        margin-top: 10px;
    }
    /*Homepage Community Stats */
    .pps-level-card .pps-stat-value {
        font-size: 34px;
    }
}

@media (max-width: 575.98px) {
    /* Homepage Winners Board */
    .pps-scope .pps-winner-topline,
    .pps-scope .pps-impact-row {
        flex-direction: column;
        gap: 6px;
    }

    .pps-scope .pps-winner-prize {
        text-align: left;
    }
    /* Login Page */
    .pps-login-page {
        padding: 24px 0 60px;
    }

    .pps-login-card {
        padding: 16px;
    }

    .pps-login-options {
        flex-direction: column;
        align-items: flex-start;
    }
    /* Join Page */
    .pps-join-page {
        padding: 24px 0 60px;
    }

    .pps-join-card {
        padding: 16px;
    }

    .pps-join-header {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }
    /* Register Page */
    .pps-register-page {
        padding: 24px 0 60px;
    }

    .pps-register-card {
        padding: 16px;
    }

    .pps-register-header {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .pps-register-modal .modal-dialog {
        max-width: calc(100% - 24px);
    }

    .pps-register-modal-body {
        padding: 28px 20px 18px;
    }

    .pps-register-modal-title {
        font-size: 22px;
    }
    /* Contact Page */
    .pps-contact-card {
        padding: 16px;
    }

    .pps-contact-header {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }
}
