/* ============================================================
   Donation V2 — Three-slide Stripe donation flow
   Matches the newspaper / FinancierDisplay design system
   ============================================================ */

/* --- Layout shell ----------------------------------------- */
.dv2-page {
    font-family: "FinancierDisplayWeb", Georgia, serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #FFF9F0;
}

.dv2-masthead {
    text-align: center;
    padding: 48px 0;
    border-bottom: 2px solid #000;
    margin-bottom: 40px;
}

.dv2-masthead h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
    font-family: "FinancierDisplayWeb", Georgia, serif;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.dv2-masthead p {
    font-size: 1.15rem;
    color: #666;
    font-family: Georgia, serif;
    font-style: italic;
    margin: 0;
}

/* --- Two-column grid -------------------------------------- */
.dv2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
}

/* --- Left: benefits --------------------------------------- */
.dv2-benefits {
    background: #fff;
    border: 1px solid #ddd;
    padding: 36px;
}

.dv2-benefits h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 28px;
    font-family: "FinancierDisplayWeb", Georgia, serif;
    border-bottom: 1px solid #ddd;
    padding-bottom: 14px;
}

.dv2-benefit {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.dv2-benefit:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dv2-benefit i {
    color: #c41230;
    font-size: 1.4rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.dv2-benefit h3 {
    font-family: "FinancierDisplayWeb", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000;
}

.dv2-benefit p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    font-family: Georgia, serif;
    line-height: 1.55;
}

/* --- Right: donation card --------------------------------- */
.dv2-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 36px;
    position: relative;
}

.dv2-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    font-family: "FinancierDisplayWeb", Georgia, serif;
    border-bottom: 1px solid #ddd;
    padding-bottom: 14px;
}

/* --- Progress indicator ----------------------------------- */
.dv2-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.dv2-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease;
}

.dv2-progress-dot.active {
    background: #c41230;
}

.dv2-progress-label {
    font-family: Georgia, serif;
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-left: 10px;
}

/* --- Slides container ------------------------------------- */
.dv2-slides {
    position: relative;
    overflow: hidden;
}

.dv2-slide {
    display: none;
    animation: dv2FadeIn 0.3s ease;
}

.dv2-slide.active {
    display: block;
}

@keyframes dv2FadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Slide 1: Amount + frequency -------------------------- */
.dv2-freq-tabs {
    display: flex;
    border: 1px solid #ddd;
    margin-bottom: 24px;
    overflow: hidden;
}

.dv2-freq-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #fff;
    color: #333;
    transition: all 0.2s ease;
    border-right: 1px solid #ddd;
}

.dv2-freq-tab:last-child {
    border-right: none;
}

.dv2-freq-tab.active {
    background: #c41230;
    color: #fff;
}

.dv2-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.dv2-amount-btn {
    padding: 14px 0;
    text-align: center;
    font-family: "FinancierDisplayWeb", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dv2-amount-btn:hover {
    border-color: #000;
}

.dv2-amount-btn.active {
    border-color: #c41230;
    background: #c41230;
    color: #fff;
}

.dv2-custom-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    margin-bottom: 24px;
    background: #fff;
    transition: border-color 0.2s;
}

.dv2-custom-wrap:focus-within {
    border-color: #000;
}

.dv2-custom-wrap .currency-symbol {
    padding: 0 14px;
    font-family: "FinancierDisplayWeb", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #666;
    user-select: none;
}

.dv2-custom-input {
    flex: 1;
    border: none;
    padding: 14px 14px 14px 0;
    font-family: Georgia, serif;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.dv2-custom-input::placeholder {
    color: #bbb;
}

/* --- Slide 2: Donor details ------------------------------- */
.dv2-field {
    margin-bottom: 18px;
}

.dv2-field label {
    display: block;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.dv2-field input[type="text"],
.dv2-field input[type="email"],
.dv2-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dv2-field input:focus,
.dv2-field textarea:focus {
    border-color: #000;
    outline: none;
}

.dv2-field textarea {
    resize: vertical;
    min-height: 60px;
}

.dv2-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dv2-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    cursor: pointer;
}

.dv2-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c41230;
    cursor: pointer;
}

.dv2-check span {
    font-family: Georgia, serif;
    font-size: 0.9rem;
    color: #333;
}

/* --- Logged-in user banner -------------------------------- */
.dv2-user-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFF9F0;
    border: 1px solid #ddd;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.dv2-user-avatar {
    width: 44px;
    height: 44px;
    background: #000;
    color: #FFF9F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dv2-user-banner strong {
    display: block;
    font-family: "FinancierDisplayWeb", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
}
.dv2-user-banner span {
    font-family: Georgia, serif;
    font-size: 0.85rem;
    color: #666;
}

/* --- Slide 3: Payment ------------------------------------- */
#dv2-express-checkout {
    margin-bottom: 20px;
    min-height: 48px;
}

#dv2-payment-element {
    margin-bottom: 20px;
}

.dv2-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    font-family: "FinancierDisplayWeb", Georgia, serif;
}

.dv2-summary-label {
    font-size: 0.95rem;
    color: #666;
}

.dv2-summary-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #000;
}

/* --- Confirmation state ----------------------------------- */
.dv2-confirmation {
    text-align: center;
    padding: 40px 0;
}

.dv2-confirmation .check-icon {
    width: 64px;
    height: 64px;
    border: 3px solid #22C55E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.dv2-confirmation .check-icon svg {
    width: 32px;
    height: 32px;
    stroke: #22C55E;
}

.dv2-confirmation h3 {
    font-family: "FinancierDisplayWeb", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.dv2-confirmation p {
    font-family: Georgia, serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* --- Buttons ---------------------------------------------- */
.dv2-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.dv2-btn {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.dv2-btn-primary {
    background: #c41230;
    color: #fff;
}

.dv2-btn-primary:hover {
    background: #a30f28;
}

.dv2-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dv2-btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.dv2-btn-secondary:hover {
    border-color: #000;
}

/* --- Error display ---------------------------------------- */
.dv2-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 10px 14px;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: none;
}

.dv2-error.visible {
    display: block;
}

/* --- Trust badges ----------------------------------------- */
.dv2-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.dv2-trust span {
    font-family: Georgia, serif;
    font-size: 0.78rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dv2-trust i {
    font-size: 0.85rem;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 968px) {
    .dv2-page {
        display: flex;
        flex-direction: column;
    }

    .dv2-grid {
        display: contents;
    }

    .dv2-card {
        order: 1;
        margin-bottom: 36px;
    }

    .dv2-masthead {
        order: 2;
        margin-bottom: 28px;
    }

    .dv2-benefits {
        order: 3;
    }
}

@media (max-width: 768px) {
    .dv2-page {
        padding: 20px;
    }

    .dv2-masthead {
        padding: 36px 0;
    }

    .dv2-masthead h1 {
        font-size: 2.25rem;
    }

    .dv2-benefits,
    .dv2-card {
        padding: 24px;
    }

    .dv2-amounts {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .dv2-masthead h1 {
        font-size: 1.875rem;
    }

    .dv2-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .dv2-row {
        grid-template-columns: 1fr;
    }

    .dv2-btn-row {
        flex-direction: column;
    }
}
