/* ===============================
   GLOBAL RESET & BASE
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    color: #1f2937;
}

/* ===============================
   MAIN WRAPPER
================================ */
.donation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

/* ===============================
   GLASS CARD
================================ */
.glass-card {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    padding: 35px;
    border-radius: 26px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
    animation: fadeUp 0.7s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===============================
   LEFT FORM SECTION
================================ */
.form-container {
    flex: 1;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-header p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* ===============================
   INPUT BOX
================================ */
.input-box {
    margin-bottom: 22px;
}

.input-box label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.input-box input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #dbe2ff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-box input:focus {
    border-color: #4f7cff;
    box-shadow: 0 0 0 3px rgba(79,124,255,0.15);
}

/* ===============================
   PRESET AMOUNT BUTTONS
================================ */
.preset-amounts {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.amt-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #4f7cff;
    background: transparent;
    color: #4f7cff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.amt-btn:hover {
    background: linear-gradient(135deg, #4f7cff, #6b8cff);
    color: #fff;
    transform: translateY(-2px);
}

.amt-btn.active {
    background: linear-gradient(135deg, #4f7cff, #6b8cff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79,124,255,0.4);
}

/* ===============================
   SUBMIT BUTTON
================================ */
.submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #4f7cff, #6b8cff);
    box-shadow: 0 12px 30px rgba(79,124,255,0.4);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(79,124,255,0.55);
}

/* ===============================
   RIGHT QR SECTION
================================ */
.qr-container {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-box {
    width: 100%;
    background: #ffffff;
    padding: 25px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    animation: slideIn 0.7s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* QR Glow */
#qrcode {
    margin: 0 auto;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    animation: pulse 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79,124,255,0.4); }
    70% { box-shadow: 0 0 0 20px rgba(79,124,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(79,124,255,0); }
}

/* QR INFO */
.qr-info p {
    font-weight: 700;
    margin-top: 14px;
}

.amount-badge {
    display: inline-block;
    margin: 10px 0;
    padding: 6px 14px;
    background: #eef2ff;
    border-radius: 20px;
    font-weight: 700;
    color: #4f7cff;
}

.qr-info small {
    color: #6b7280;
}

/* ===============================
   RECEIPT MODAL
================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-overlay.show {
    display: flex;
}

.receipt-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 22px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeUp 0.4s ease;
}

.success-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.receipt-data p {
    margin: 8px 0;
}

.modal-btns {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-print, .btn-close {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.btn-print {
    background: #4f7cff;
    color: #fff;
}

.btn-close {
    background: #e5e7eb;
}

.confirm-btn {
    margin-top: 14px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 8px 20px rgba(34,197,94,0.4);
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34,197,94,0.6);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .glass-card {
        flex-direction: column;
    }

    .qr-container {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================
   NOTE  FOR DONATION
================================ */
.donation-message {
    background-color: #f4f7fb; /* Light background for the container */
    padding: 20px;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Light shadow for a soft elevation */
    max-width: 600px; /* Limit width for better readability */
    margin: 20px auto; /* Center the div horizontally */
    text-align: center; /* Center text */
    font-family: 'Hind', sans-serif; /* Clean and readable font */
}

.donation-message p {
    font-size: px; /* Slightly larger text */
    color: #333; /* Dark text for good contrast */
    line-height: 1.6; /* Improve line spacing */
    font-weight: 500; /* Slightly bold text */
}

.donation-message p::before {
    content: "“"; /* Opening quote for a quote effect */
    font-size: 36px; /* Big quote mark */
    color: #4f7cff; /* Blue color for the quote mark */
    margin-right: 10px; /* Space between quote and text */
    vertical-align: middle; /* Align with text */
}

.donation-message p::after {
    content: "”"; /* Closing quote */
    font-size: 36px;
    color: #4f7cff;
    margin-left: 10px; /* Space between text and quote mark */
    vertical-align: middle;
}

.donation-message p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .donation-message {
        padding: 15px; /* Reduce padding on smaller screens */
        font-size: 16px; /* Slightly smaller text for mobile */
    }
}


