/* =========================
   Donation Page Styles
   ========================= */

/* Error State */
.donate-error {
    padding: 4rem 0;
    background: #f8f9fa;
}

.error-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.error-card i {
    color: #ffc107;
}

.error-card h2 {
    color: #1a3353;
    margin-bottom: 1rem;
}

/* Donation Hero */
.donate-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.donate-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Gemach Info */
.gemach-info {
    background: linear-gradient(135deg, #1a3353 0%, #2C4E6D 100%);
    color: white;
    padding: 2rem;
}

.gemach-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gemach-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

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

.gemach-details {
    flex-grow: 1;
}

.gemach-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.gemach-category {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.gemach-category i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.gemach-location {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.gemach-location i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.memory-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: inline-block;
    font-size: 0.9rem;
}

.memory-badge i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.gemach-description {
    opacity: 0.9;
    line-height: 1.6;
}

.gemach-description p {
    margin: 0;
}

/* Donation Form */
.donation-form {
    padding: 2rem;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.form-label {
    font-weight: 600;
    color: #1a3353;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    outline: none;
}

/* Amount Options */
.amount-options {
    margin-top: 1rem;
}

.amount-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.amount-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1a3353;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.amount-btn:hover {
    border-color: #ffd700;
    transform: translateY(-1px);
}

.amount-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffd700;
    color: #1a3353;
}

.custom-amount {
    margin-top: 1rem;
}

.custom-amount label {
    font-weight: 600;
    color: #1a3353;
    margin-bottom: 0.5rem;
    display: block;
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    color: #1a3353;
    font-weight: 600;
}

.input-group .form-control {
    border-left: none;
}

/* Donation Summary */
.donation-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.donation-summary h4 {
    color: #1a3353;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item span:first-child {
    color: #666;
    font-weight: 500;
}

.summary-item span:last-child {
    color: #1a3353;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-total span:first-child {
    color: #1a3353;
}

.summary-total span:last-child {
    color: #28a745;
    font-size: 1.25rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.form-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-jshuk-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: none;
    color: #1a3353;
}

.btn-jshuk-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    color: #1a3353;
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item i {
    color: #28a745;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donate-hero {
        padding: 2rem 0;
    }
    
    .gemach-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .gemach-image {
        width: 100px;
        height: 100px;
    }
    
    .gemach-title {
        font-size: 1.5rem;
    }
    
    .donation-form {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .amount-buttons {
        justify-content: center;
    }
    
    .amount-btn {
        min-width: 70px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .donate-card {
        border-radius: 15px;
    }
    
    .gemach-info {
        padding: 1.5rem;
    }
    
    .donation-form {
        padding: 1rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .amount-btn {
        min-width: 60px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .donation-summary {
        padding: 1rem;
    }
    
    .summary-item {
        font-size: 0.9rem;
    }
    
    .summary-total {
        font-size: 1rem;
    }
    
    .summary-total span:last-child {
        font-size: 1.1rem;
    }
}

/* Loading States */
.form-control:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus States */
.form-control:focus,
.amount-btn:focus {
    transform: translateY(-1px);
}

/* Animation for form sections */
.donation-form {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Success animation */
.alert-success {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Amount button animations */
.amount-btn {
    position: relative;
    overflow: hidden;
}

.amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    transition: left 0.5s ease;
}

.amount-btn:hover::before {
    left: 100%;
}

/* Custom amount input styling */
.input-group .form-control:focus {
    border-left: 2px solid #ffd700;
}

.input-group .form-control:focus + .input-group-text {
    border-color: #ffd700;
} 