/* ============================================
   DONATION PAGE - Matthew 25 Project
   Inspired by Personal Christianity Podcast
   ============================================ */

:root {
    --donate-gradient: linear-gradient(135deg, #004E89 0%, #1a4e6b 100%);
    --donate-success: #28a745;
    --donate-warning: #ffc107;
    --donate-card-bg: #ffffff;
    --donate-border: rgba(255, 107, 53, 0.15);
    --donate-shadow: 0 20px 40px rgba(0, 78, 137, 0.08);
    --donate-hover-shadow: 0 30px 60px rgba(255, 107, 53, 0.15);
}

/* ============================================
   DONATION HERO SECTION
   ============================================ */

.donation-hero {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.65) 0%,
        rgba(0, 78, 137, 0.763) 100%),
        url('../public/src/images/b4.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
}

.donation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path fill="white" d="M20 30 L25 20 L30 30 L40 30 L32 40 L36 52 L25 45 L14 52 L18 40 L10 30 L20 30"/></svg>');
    background-size: 60px 60px;
    opacity: 0.1;
    pointer-events: none;
}

.donation-hero .hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
}

.donation-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.donation-hero .scripture {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
    border-left: 4px solid var(--white);
    padding-left: 20px;
}

.donation-hero .scripture-ref {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    animation: slideInLeft 0.8s ease-out 0.3s backwards;
}

/* ============================================
   MATTHEW 25 PROJECT CARD
   ============================================ */

.matthew-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--donate-shadow);
    border: 1px solid var(--donate-border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -60px;
    z-index: 10;
}

.matthew-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--donate-hover-shadow);
}

.matthew-card::before {
    content: 'Matthew 25:35-40';
    position: absolute;
    top: 20px;
    right: -40px;
    background: var(--primary);
    color: white;
    padding: 8px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(255,107,53,0.3);
    letter-spacing: 1px;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--orange-shadow);
}

.project-badge i {
    font-size: 1.2rem;
}

/* ============================================
   DONATION FORM - Consistent with your style
   ============================================ */

.donation-form-container {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,107,53,0.1);
}

.donation-form-container h2 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.donation-form-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--primary);
    font-size: 1.2rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px !important; /* Rectangular per your style */
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
    background: var(--white);
}

.form-control.is-valid, .form-select.is-valid {
    border-color: var(--donate-success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* ============================================
   AMOUNT PRESET BUTTONS
   ============================================ */

.amount-presets {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.amount-preset {
    flex: 1;
    min-width: 100px;
    padding: 0.8rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amount-preset span:first-child {
    font-size: 1.2rem;
    color: var(--secondary);
}

.amount-preset small {
    font-size: 0.8rem;
    color: #6c757d;
}

.amount-preset:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--orange-shadow);
}

.amount-preset:hover span:first-child,
.amount-preset:hover small {
    color: white;
}

.amount-preset.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px var(--orange-shadow);
}

.amount-preset.active span:first-child,
.amount-preset.active small {
    color: white;
}

/* ============================================
   CURRENCY SELECTOR WITH FLAGS
   ============================================ */

.currency-selector {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.currency-option {
    flex: 1;
    min-width: 80px;
    padding: 0.6rem 0.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.currency-option img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.currency-option.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* ============================================
   CONVERSION PREVIEW - Calendar Flip Style
   ============================================ */

.conversion-preview {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 6px solid var(--primary);
    position: relative;
    animation: flipIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.conversion-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.conversion-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.conversion-amount .original {
    font-size: 1.2rem;
    color: #6c757d;
    text-decoration: line-through;
    opacity: 0.7;
}

.conversion-rate {
    background: rgba(255,107,53,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
}

@keyframes flipIn {
    0% {
        opacity: 0;
        transform: rotateX(-90deg) scaleY(0.7);
    }
    100% {
        opacity: 1;
        transform: rotateX(0) scaleY(1);
    }
}

/* ============================================
   DONATE BUTTON - Matches your style
   ============================================ */

.btn-donate {
    background: var(--primary-gradient) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--white) !important;
    font-weight: 700;
    padding: 1rem 2rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 25px var(--orange-shadow) !important;
    border-radius: 8px !important;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-donate:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(255,107,53,0.4) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.btn-donate i {
    transition: all 0.3s ease;
}

.btn-donate:hover i {
    transform: scale(1.2);
}

/* ============================================
   IMPACT METER
   ============================================ */

.impact-meter {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255,107,53,0.2);
    margin-top: 2rem;
}

.impact-progress {
    height: 12px;
    background: #e9ecef;
    border-radius: 50px;
    margin: 1rem 0;
    overflow: hidden;
}

.impact-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 50px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.impact-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   WHY DONATE SECTION
   ============================================ */

.why-donate {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.reason-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.4s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.reason-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary);
    box-shadow: 0 15px 30px rgba(255,107,53,0.1);
}

.reason-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px var(--orange-shadow);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .donation-hero h1 {
        font-size: 2.8rem;
    }
    
    .matthew-card {
        margin-top: -30px;
        padding: 2rem;
    }
    
    .conversion-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .donation-hero {
        padding: 100px 0 60px;
    }
    
    .donation-hero h1 {
        font-size: 2.2rem;
    }
    
    .donation-hero .scripture {
        font-size: 1.2rem;
    }
    
    .matthew-card {
        margin-top: -20px;
        padding: 1.5rem;
    }
    
    .donation-form-container {
        padding: 1.5rem;
    }
    
    .amount-presets {
        gap: 0.5rem;
    }
    
    .amount-preset {
        min-width: calc(50% - 0.5rem);
    }
    
    .currency-option {
        min-width: calc(33.333% - 0.5rem);
    }
    
    .conversion-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .donation-hero h1 {
        font-size: 1.8rem;
    }
    
    .donation-hero .scripture {
        font-size: 1rem;
    }
    
    .matthew-card {
        padding: 1.25rem;
    }
    
    .project-badge {
        font-size: 0.85rem;
    }
    
    .amount-preset {
        min-width: 100%;
    }
    
    .currency-option {
        min-width: calc(50% - 0.5rem);
    }
}