/**
 * Certificate-First Flow Donation Styles
 * Version: 4.0.0 - Certificate-First Flow
 * 
 * This CSS supports the new flow where:
 * 1. Certificate is shown first
 * 2. Downloads are immediately available
 * 3. Donation/review request comes after value delivery
 * 4. Gratitude-based messaging focused on "paying it forward"
 */

/* ==========================================================================
   Certificate-First Flow Specific Styles
   ========================================================================== */

/* Success Moment - Value Realization Section */
.success-moment {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.success-moment::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.success-moment h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    position: relative;
    z-index: 2;
}

.success-moment p {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.value-highlight {
    background-color: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #fbbf24;
    position: relative;
    z-index: 2;
}

.value-highlight strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

/* Download Section - Immediate Access */
.download-section {
    background-color: #10b981;
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.download-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.download-section p {
    margin-bottom: 20px;
    font-size: 16px;
}

.download-section .download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.download-section .btn {
    background-color: white;
    color: #10b981;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 180px;
}

.download-section .btn:hover {
    background-color: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Gratitude Section - Main Container for Donations/Reviews */
.gratitude-section {
    background-color: white;
    padding: 35px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.gratitude-header {
    text-align: center;
    margin-bottom: 30px;
}

.gratitude-header h3 {
    color: #1e40af;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.gratitude-subtitle {
    color: #6b7280;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Testimonial Styles */
.testimonial {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 10px;
    color: #374151;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: bold;
    color: #1e40af;
    font-size: 14px;
}

/* Support Options Grid */
.support-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 30px 0;
}

.support-choice {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.support-choice:hover {
    border-color: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.choice-header {
    margin-bottom: 20px;
}

.choice-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.choice-title {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.choice-subtitle {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

/* Skip Section - No Pressure Exit */
.skip-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.skip-btn {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.skip-btn:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

/* ==========================================================================
   Stripe Donation Form Styles (Updated for Certificate-First Flow)
   ========================================================================== */

/* Amount Selection */
.amount-selection {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.amount-btn {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #d1d5db;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 50px;
}

.amount-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.amount-btn.selected {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.amount-btn.selected:hover {
    background: #1e40af;
    border-color: #1e40af;
}

/* Custom Amount Input */
.custom-amount {
    text-align: center;
    margin: 15px 0;
}

.custom-amount input {
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    width: 150px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.custom-amount input:focus {
    outline: none;
    border-color: #2563eb;
}

/* Selected Amount Display */
.selected-amount {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #eff6ff;
    border-radius: 6px;
    color: #1e40af;
    font-weight: 600;
}

/* Donation Actions */
.donation-actions {
    text-align: center;
    margin: 20px 0;
}

.stripe-donate-btn {
    background: #2563eb;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.stripe-donate-btn:hover:not(:disabled) {
    background: #1e40af;
    transform: translateY(-2px);
}

.stripe-donate-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.stripe-donate-btn.loading {
    background: #6b7280;
    cursor: wait;
}

/* Stripe Payment Form */
.stripe-payment-form {
    display: none;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.stripe-payment-form h4 {
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

#stripe-elements-container {
    margin: 20px 0;
}

.stripe-submit-btn {
    background: #10b981;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.stripe-submit-btn:hover:not(:disabled) {
    background: #059669;
}

.stripe-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.stripe-submit-btn.loading {
    background: #6b7280;
    cursor: wait;
}

/* Thank You Message */
.donation-thank-you {
    display: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.donation-thank-you h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.donation-thank-you p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Review Button */
.review-btn {
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.review-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Error Messages */
.error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 15px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .support-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .support-choice {
        padding: 20px;
    }
    
    .amount-selection {
        gap: 8px;
    }
    
    .amount-btn {
        padding: 10px 14px;
        font-size: 14px;
        min-width: 45px;
    }
    
    .custom-amount input {
        width: 120px;
        font-size: 14px;
    }
    
    .stripe-donate-btn {
        font-size: 14px;
        padding: 12px 20px;
        min-width: 160px;
    }
    
    .download-section .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-section .btn {
        min-width: 200px;
    }
    
    .success-moment {
        padding: 20px;
    }
    
    .success-moment h2 {
        font-size: 22px;
    }
    
    .gratitude-section {
        padding: 25px 20px;
    }
    
    .gratitude-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .amount-selection {
        gap: 6px;
    }
    
    .amount-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
    }
    
    .custom-amount input {
        width: 100px;
        font-size: 13px;
        padding: 10px;
    }
    
    .stripe-donate-btn {
        font-size: 13px;
        padding: 10px 16px;
        min-width: 140px;
    }
    
    .stripe-payment-form {
        padding: 20px 15px;
    }
    
    .choice-title {
        font-size: 16px;
    }
    
    .choice-subtitle {
        font-size: 13px;
    }
    
    .success-moment {
        padding: 15px;
    }
    
    .value-highlight {
        padding: 12px;
    }
    
    .value-highlight strong {
        font-size: 16px;
    }
    
    .testimonial {
        padding: 15px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .download-section {
        padding: 20px 15px;
    }
    
    .download-section .btn {
        min-width: 160px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Animation and Polish Effects
   ========================================================================== */

/* Hover animations for interactive elements */
.support-choice,
.amount-btn,
.stripe-donate-btn,
.review-btn,
.skip-btn {
    position: relative;
    overflow: hidden;
}

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus states for accessibility */
.amount-btn:focus,
.stripe-donate-btn:focus,
.review-btn:focus,
.skip-btn:focus,
.custom-amount input:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Print styles - hide donation section when printing certificate */
@media print {
    .success-moment,
    .gratitude-section,
    .download-section {
        display: none !important;
    }
}
/* ==========================================================================
   Maybe Later Section - Continue to Downloads Button
   Add these styles to your bear_stripe-index-donations.css file
   ========================================================================== */

/* Maybe Later Section Container */
.maybe-later-section {
    text-align: center;
    margin: 35px 0 20px 0;
    padding: 25px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px dashed #d1d5db;
}

/* Maybe Later Text */
.maybe-later-text {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Continue to Downloads Button */
.maybe-later-btn {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.maybe-later-btn::before {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: right 0.3s ease;
}

.maybe-later-btn:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.maybe-later-btn:hover::before {
    right: 15px;
}

.maybe-later-btn:active {
    transform: translateY(0);
}

.maybe-later-btn:disabled {
    background: #9ca3af;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.maybe-later-btn:disabled::before {
    display: none;
}

/* Focus state for accessibility */
.maybe-later-btn:focus {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive Adjustments for Maybe Later Section
   ========================================================================== */

@media (max-width: 768px) {
    .maybe-later-section {
        padding: 20px;
        margin: 25px 0 15px 0;
    }
    
    .maybe-later-text {
        font-size: 14px;
        margin-bottom: 18px;
    }
    
    .maybe-later-btn {
        padding: 12px 28px;
        font-size: 15px;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .maybe-later-section {
        padding: 18px 15px;
        margin: 20px 0 12px 0;
    }
    
    .maybe-later-text {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .maybe-later-btn {
        padding: 11px 24px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .maybe-later-btn::before {
        font-size: 18px;
    }
}

/* ==========================================================================
   Animation Enhancement for Maybe Later Button
   ========================================================================== */

@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 6px 12px rgba(37, 99, 235, 0.35);
    }
}

/* Optional: Add subtle pulse animation to draw attention */
.maybe-later-btn:not(:hover):not(:disabled) {
    animation: pulse-subtle 3s ease-in-out infinite;
}