/* This file is reserved for overriding and extending the template styles. */

/* Perbaikan tampilan tombol dan pilihan nominal donasi */
.donation-section {
    padding: 2rem 0;
}

/* Perbaikan tampilan card program donasi */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 160px !important;
    object-fit: cover;
    width: 100%;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Container untuk card donasi yang responsif */
.donation-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.donation-card {
    min-height: 400px;
    max-width: 100%;
}

@media (max-width: 576px) {
    .donation-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .donation-card {
        min-height: 350px;
    }

    .card-img-top {
        height: 140px !important;
    }

    .card-body {
        padding: 0.75rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .donation-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .donation-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 993px) {
    .donation-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Perbaikan tampilan progress bar */
.progress {
    height: 8px !important;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
}

/* Perbaikan tampilan tombol nominal */
.nominal-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border-width: 2px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nominal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.nominal-btn.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 600;
}

/* Perbaikan spacing untuk container nominal */
.nominal-container {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Perbaikan tampilan form input */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

/* Perbaikan tampilan modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

/* Perbaikan tampilan tombol submit */
.btn-lg {
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

/* Perbaikan tampilan form check */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.25em;
}

.form-check-label {
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .nominal-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .card-title {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Perbaikan tampilan section "Why Donate" */
.why-donate-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin-top: 3rem;
    border-radius: 20px;
}

.why-donate-section .fs-1 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
}

.why-donate-section h5 {
    font-weight: 600;
    color: #212529;
}

/* Animation untuk tombol donasi */
.donate-btn-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Form untuk donasi anonim */
.anonymous-form {
    transition: all 0.3s ease;
}

.form-field-anonymous {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-field-anonymous.show {
    display: block;
    opacity: 1;
}

.anonymous-info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1565c0;
}

.whatsapp-field {
    position: relative;
}

.whatsapp-field .input-group-text {
    background-color: #25d366;
    color: white;
    border-color: #25d366;
}

.whatsapp-field .form-control:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Animation untuk form fields */
.form-group-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.form-group-collapse.expand {
    max-height: 200px;
    transition: max-height 0.3s ease-in;
}