/**
 * Organization Donation Page Styles
 * Dynamic accent color support via CSS variables
 * Mobile-first responsive design
 */

/* ===========================
   CSS VARIABLES (defaults)
   =========================== */
   :root {
    --accent-color: #00A63E;
    --accent-lighter: #e6f7eb;
    --accent-darker: #008a34;
    --accent-text: #006627;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #4b5563;
    line-height: 1.5;
}

/* ===========================
   LAYOUT
   =========================== */
.donation-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--accent-lighter) 0%, #ffffff 50%, var(--accent-lighter) 100%);
    padding: 2rem 1rem;
}

.container {
    max-width: 42rem;
    margin: 0 auto;
}

/* ===========================
   HEADER & LOGO
   =========================== */
.header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-container {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.logo {
    height: 8rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.logo-small {
    height: 6rem;
    width: auto;
}

.tagline {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    margin: 0 -1rem 1.5rem;
}

.hero-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Desktop hero styles */
@media (min-width: 768px) {
    .hero-section {
        margin: 0 0 1.5rem;
    }

    .hero-image {
        height: 24rem;
        border-radius: 1rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===========================
   CARD STYLES
   =========================== */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .card {
        padding: 2rem;
    }
}

/* ===========================
   MISSION CARD
   =========================== */
.mission-card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mission-text {
    color: #374151;
    line-height: 1.625;
}

.mission-text p {
    margin-bottom: 1rem;
}

.mission-text p:last-child {
    margin-bottom: 0;
}

/* ===========================
   PROGRESS CARD
   =========================== */
.progress-card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.progress-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
}

.progress-bar-container {
    width: 100%;
    height: 0.75rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-percentage,
.progress-goal {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ===========================
   DONATION FORM
   =========================== */
.donation-card {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: block;
}

.field-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===========================
   AMOUNT GRID
   =========================== */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 1rem 0.75rem;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-lighter);
}

.amount-btn.selected {
    border-color: var(--accent-color);
    background: var(--accent-lighter);
    color: var(--accent-text);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .amount-btn {
        font-size: 1rem;
    }
}

/* ===========================
   CUSTOM AMOUNT INPUT
   =========================== */
.custom-amount-section {
    margin-top: 1rem;
}

.input-with-prefix {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 600;
}

.custom-amount-input {
    width: 100%;
    height: 3rem;
    padding-left: 2rem;
    font-size: 1.125rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-lighter);
}

/* ===========================
   TEXT INPUT & SELECT
   =========================== */
.text-input,
.select-input {
    width: 100%;
    height: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.text-input:focus,
.select-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-lighter);
}

.select-input {
    cursor: pointer;
    background: white;
}

/* ===========================
   CHECKBOX CARDS
   =========================== */
.checkbox-card {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

.checkbox-card-blue {
    background: #eff6ff;
    border-color: #dbeafe;
}

.checkbox-card-green {
    background: #f0fdf4;
    border-color: #dcfce7;
}

.checkbox-card-gray {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-input {
    margin-top: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--accent-color);
}

.checkbox-content {
    flex: 1;
}

.checkbox-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    display: block;
}

.checkbox-description {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 0.25rem;
}

/* ===========================
   TOTAL SUMMARY
   =========================== */
.total-summary {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.total-row:last-child {
    margin-bottom: 0;
}

.total-label {
    color: #6b7280;
}

.total-value {
    font-weight: 600;
    color: #111827;
}

.total-divider {
    height: 1px;
    background: #d1d5db;
    margin: 0.5rem 0;
}

.total-final {
    padding-top: 0.5rem;
}

.total-label-bold {
    font-weight: 700;
    color: #111827;
}

.total-amount {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.25rem;
}

/* ===========================
   DONATE BUTTON
   =========================== */
.donate-btn {
    width: 100%;
    height: 3.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(to right, var(--accent-color), var(--accent-darker));
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.donate-btn:hover:not(:disabled) {
    background: linear-gradient(to right, var(--accent-darker), var(--accent-text));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.donate-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.donate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.secure-text {
    font-size: 0.75rem;
    text-align: center;
    color: #6b7280;
    margin-top: 1rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    margin-top: 2rem;
    text-align: center;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.footer-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.copyright {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* ===========================
   TAG/FUND SELECTION
   =========================== */
.tag-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    background: white;
    transition: all 0.2s ease;
    display: inline-block;
}

.tag-pill:hover {
    border-color: var(--accent-color);
    background: var(--accent-lighter);
}

.tag-pill.selected {
    border-color: var(--accent-color);
    background: var(--accent-lighter);
    color: var(--accent-text);
}

/* ===========================
   TEXTAREA
   =========================== */
.textarea-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.textarea-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-lighter);
}

/* ===========================
   ADDRESS FIELDS
   =========================== */
.address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .address-grid {
        grid-template-columns: 1fr 1fr;
    }

    .address-grid .full-width {
        grid-column: 1 / -1;
    }
}

/* ===========================
   RADIO BUTTONS
   =========================== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--accent-color);
    background: var(--accent-lighter);
}

.radio-option.selected {
    border-color: var(--accent-color);
    background: var(--accent-lighter);
}

.radio-option input[type="radio"] {
    accent-color: var(--accent-color);
    width: 1.125rem;
    height: 1.125rem;
}

.radio-option-label {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.radio-option-price {
    font-weight: 600;
    color: var(--accent-color);
}

/* ===========================
   PRICE BADGE
   =========================== */
.price-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--accent-lighter);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    margin-left: 0.5rem;
}

/* ===========================
   LOADING STATE
   =========================== */
.donate-btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.donate-btn.loading .btn-icon {
    visibility: hidden;
}

.donate-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    border: 3px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================
   ERROR STATES
   =========================== */
.field-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.input-error {
    border-color: #dc2626 !important;
}

/* ===========================
   CONFIRMATION PAGE
   =========================== */
.confirmation-view {
    min-height: 100vh;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.confirmation-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3);
    color: white;
}

.confirmation-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.confirmation-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .confirmation-title {
        font-size: 2.25rem;
    }
}

/* ===========================
   CONFIRMATION CARD
   =========================== */
.confirmation-card {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.confirmation-amount-section {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.heart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-darker));
    border-radius: 50%;
    margin-bottom: 1rem;
}

.confirmation-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .confirmation-amount {
        font-size: 1.875rem;
    }
}

.amount-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===========================
   CONFIRMATION NUMBER CARD
   =========================== */
.confirmation-number-card {
    background: var(--accent-lighter);
    border: 1px solid var(--accent-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.conf-number-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .conf-number-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.conf-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.conf-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent-text);
}

.conf-date {
    font-weight: 600;
    color: #111827;
}

/* ===========================
   DONATION DETAILS
   =========================== */
.details-section {
    margin-bottom: 1.5rem;
}

.details-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-label {
    color: #6b7280;
}

.detail-value {
    font-weight: 600;
    color: #111827;
    text-transform: capitalize;
}

.detail-value.green {
    color: #16a34a;
}

/* ===========================
   WHAT'S NEXT CARD
   =========================== */
.whats-next-card {
    background: linear-gradient(to right, #eff6ff, #faf5ff);
    border: 1px solid #dbeafe;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.whats-next-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whats-next-heading svg {
    color: #3b82f6;
}

.whats-next-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whats-next-list li {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.whats-next-list li:last-child {
    margin-bottom: 0;
}

.whats-next-list li::before {
    content: '•';
    color: #3b82f6;
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* ===========================
   ACTION BUTTONS
   =========================== */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .action-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

.action-btn {
    height: 3rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-outline {
    background: white;
    border: 2px solid var(--accent-color);
    color: var(--accent-text);
}

.btn-outline:hover {
    background: var(--accent-lighter);
}

.btn-outline-gray {
    background: white;
    border: 2px solid #d1d5db;
    color: #374151;
}

.btn-outline-gray:hover {
    background: #f9fafb;
}

/* ===========================
   IMPACT CARD
   =========================== */
.impact-card {
    background: linear-gradient(to right, var(--accent-color), var(--accent-darker));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.impact-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.impact-stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   NEW DONATION SECTION
   =========================== */
.new-donation-section {
    text-align: center;
    margin-bottom: 2rem;
}

.new-donation-section .donate-btn {
    width: auto;
    padding: 0 2rem;
    margin: 0 auto;
}

/* ===========================
   UTILITIES
   =========================== */
.hidden {
    display: none;
}


/* ===========================
   CONFIRMATION PAGE SPECIFIC
   =========================== */
   .confirmation-page-wrapper {
    min-height: 100vh;
}

.org-name-fallback {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* ===========================
   RECEIPT CARD
   =========================== */
.receipt-card {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.receipt-header {
    text-align: center;
    padding-bottom: 1rem;
}

.receipt-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.receipt-details {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1.5rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.receipt-value {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 600;
    text-align: right;
}

/* ===========================
   BREAKDOWN SECTION
   =========================== */
.breakdown-section {
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.breakdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s ease;
}

.breakdown-toggle:hover {
    background: #e5e7eb;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.breakdown-content {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.breakdown-content.hidden {
    display: none;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.breakdown-label {
    color: #6b7280;
}

.breakdown-value {
    font-weight: 600;
    color: #111827;
}

.breakdown-fee {
    color: #16a34a;
}

.breakdown-divider {
    height: 1px;
    background: #d1d5db;
    margin: 0.75rem 0;
}

.breakdown-total {
    font-weight: 700;
    padding-top: 0.5rem;
}

.breakdown-total .breakdown-label,
.breakdown-total .breakdown-value {
    font-size: 1rem;
    color: #111827;
}

/* ===========================
   FUND DESIGNATION
   =========================== */
.fund-designation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.designation-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.designation-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

/* ===========================
   CUSTOM FIELDS SECTION
   =========================== */
.custom-fields-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.custom-fields-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.custom-field-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.custom-field-label {
    color: #6b7280;
    font-weight: 500;
}

.custom-field-value {
    color: #111827;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* ===========================
   DONOR NOTE SECTION
   =========================== */
.donor-note-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.donor-note-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.donor-note {
    padding: 1rem;
    background: #f9fafb;
    border-left: 4px solid var(--accent-color);
    border-radius: 0.375rem;
    font-style: italic;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   TAX DEDUCTIBLE CARD
   =========================== */
.tax-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
}

.tax-icon-wrapper {
    text-align: center;
    margin-bottom: 1rem;
}

.tax-icon {
    color: #3b82f6;
}

.tax-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 0.5rem;
}

.tax-text {
    font-size: 0.875rem;
    color: #374151;
    text-align: center;
    margin-bottom: 0.5rem;
}

.tax-ein {
    font-size: 0.875rem;
    color: #1e40af;
    text-align: center;
    font-weight: 600;
}

/* ===========================
   THANK YOU MESSAGE CARD
   =========================== */
.thank-you-message-card {
    background: linear-gradient(135deg, var(--accent-lighter) 0%, #ffffff 100%);
    border: 1px solid var(--accent-color);
}

.thank-you-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.thank-you-content {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.6;
}

/* ===========================
   SHARE CARD
   =========================== */
.share-card {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.share-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 0.5rem;
}

.share-description {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .share-buttons {
        grid-template-columns: repeat(5, 1fr);
    }
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #1664d4;
}

.share-twitter {
    background: #111827;
}

.share-twitter:hover {
    background: #000000;
}

.share-linkedin {
    background: #0a66c2;
}

.share-linkedin:hover {
    background: #08559f;
}

.share-email {
    background: #6b7280;
}

.share-email:hover {
    background: #4b5563;
}

.share-copy {
    background: #10b981;
}

.share-copy:hover {
    background: #059669;
}

.make-another-wrapper {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.make-another-btn {
    display: inline-flex;
    text-decoration: none;
}

/* ===========================
   FOOTER CONTACT CARD
   =========================== */
.footer-contact-card {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.footer-contact-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.footer-contact-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.contact-email {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

/* ===========================
   THANK YOU MESSAGE (INLINE)
   =========================== */
   .thank-you-inline {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--accent-lighter) 0%, #ffffff 100%);
    border: 1px solid var(--accent-color);
    border-radius: 0.5rem;
}

.thank-you-inline .thank-you-heading {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.thank-you-inline .thank-you-content {
    font-size: 0.875rem;
}