/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full height for better alignment */
}

/* Form Container */
.donation-container {
    background: #f8f3f3;
    max-width: 500px;
    width: 100%;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Form Headings */
.donation-container h2 {
    font-size: 26px;
    color: #6A1B1A; /* Deep Red */
    text-align: center;
    margin-bottom: 20px;
}

/* Labels */
.donation-form label {
    font-weight: bold;
    font-size: 15px;
    display: block;
    margin: 12px 0 5px;
    color: #6a0dad; /* Deep Purple */
    text-align: left;
}

/* Input Fields */
.donation-form input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #6A1B1A; /* Deep Red */
    border-radius: 5px;
    margin-bottom: 15px;
    outline: none;
    background: #fff;
    transition: border 0.3s ease;
}

.donation-form input:focus {
    border: 1px solid #6a0dad; /* Deep Purple */
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 1px solid #6A1B1A;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.payment-option:hover {
    background: #6a0dad;
    color: white;
}

.payment-option input {
    display: none;
}

.payment-option label {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}







/* Submit Button */
.donation-form button {
    width: 100%;
    background: #6A1B1A; /* Deep Red */
    color: white;
    font-size: 16px;
    border: none;
    padding: 14px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease;
    font-weight: bold;
}

.donation-form button:hover {
    background: #6a0dad; /* Deep Purple */
}

/* Payment Method Select */
#payment-method {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #6A1B1A;
    border-radius: 5px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#payment-method:focus {
    border-color: #6a0dad;
    outline: none;
}

/* Mobile Money & Bank Transfer Sections */
#mobile-money-section, 
#bank-transfer-section {
    display: none;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

/* Input Fields */
.donation-form input, 
.donation-form select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #6A1B1A;
    border-radius: 5px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

.donation-form input:focus, 
.donation-form select:focus {
    border-color: #6a0dad;
    outline: none;
}

/* Bank Details */
.donation-container p {
    font-size: 14px;
    text-align: center;
    color: #333;
    margin-top: 15px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 600px) {
    .donation-container {
        width: 90%;
        padding: 20px;
    }

    .donation-form input,
    .donation-form button,
    #back-btn {
        font-size: 14px;
        padding: 12px;
    }
}

/* Back Button Styling */
#back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6A1B1A; /* Deep Red */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Back Button Icon */
#back-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* Hover Effect */
#back-btn:hover {
    background-color: #6a0dad; /* Deep Purple */
    transform: scale(1.05);
}

/* Click Effect */
#back-btn:active {
    transform: scale(0.95);
}


/* Prevent horizontal scroll and shaking */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    touch-action: manipulation; /* Helps prevent weird touch behavior */
    overscroll-behavior-x: none; /* Prevents bounce on mobile */
    position: relative;
}