* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7f6;
    color: #222;
}

.donation-page {
    min-height: 100vh;
    padding: 90px 15px !important;
}

.donation-container {
    width: 100%;
    max-width: 1050px;
    margin: auto;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 130px;
    max-height: 70px;
}

h1 {
    text-align: center;
    margin: 10px 0;
    font-size: 32px;
}

.intro {
    text-align: center;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}


/* =========================================
   DONATION FORM
========================================= */




/* Form inputs */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 9px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: #16834b;
}


/* Amount */

.amount-label {
    display: block;
    font-weight: bold;
    margin: 5px 0 10px;
}

.amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.amount {
    padding: 12px 5px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.amount:hover,
.amount.selected {
    background: #16834b;
    color: white;
    border-color: #16834b;
}


/* Continue button */

.continue-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 9px;
    background: #16834b;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.continue-button:hover {
    background: #116d3e;
}

.continue-button:disabled {
    opacity: 0.6;
}


/* Error message */

#message {
    text-align: center;
    color: #d32f2f;
    margin-bottom: 12px;
    font-size: 14px;
}


/* =========================================
   QR + INFORMATION SECTION
========================================= */


/* Success icon */

.success {
    width: 45px;
    height: 45px;
    line-height: 45px;
    margin: auto;
    border-radius: 50%;
    background: #e5f6ec;
    color: #16834b;
    font-size: 25px;
    font-weight: bold;
}


/* QR image */

.qr {
    display: inline-block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px 0;
}

.qr img {
    width: 100%;
    height: 100%;
    display: block;
}

.scan {
    color: #666;
}


/* =========================================
   RIGHT INFORMATION CARD
========================================= */

.info-card h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 25px;
}

.payment-info p {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.payment-info strong {
    font-size: 13px;
    color: #555;
}


/* Copy button */

.copy-all {
    width: 100%;
    margin-top: 20px;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: #16834b;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.copy-all:hover {
    background: #116d3e;
}

#copyMessage {
    text-align: center;
    color: #16834b;
    font-size: 13px;
    margin-top: 10px;
}


/* =========================================
   OTHER EXISTING CARD
========================================= */

.donation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 25px;
}

.donation-info-box {
    background: linear-gradient(135deg, #16834b, #0d6338);
    color: white;
    padding: 35px 28px;
    border-radius: 18px;
    text-align: center;
    height: 100%;
}

.donation-info-box h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.info-main {
    font-size: 18px;
    line-height: 1.6;
}

.info-highlight {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.info-highlight span {
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    font-weight: bold;
}

.info-quote {
    font-style: italic;
    line-height: 1.6;
}

.copy-info-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    background: white;
    color: #16834b;
    cursor: pointer;
    font-weight: bold;
}

/* Common card design */

.donation-box,
.qr-card,
.info-card {
    position: relative;

    padding: 30px 25px;

    border-radius: 18px;

    border: 1px solid rgba(22, 131, 75, 0.12);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);

    overflow: hidden;
}

/* Green top border */

.donation-box::before,
.qr-card::before,
.info-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        #16834b,
        #2ca66b
    );
}

/* =========================================
   CARD 2 - QR
========================================= */

.qr-card {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f3f8ff 100%
        );

    text-align: center;
}


/* QR heading */

.qr-card h2 {
    margin-top: 12px;
    margin-bottom: 10px;
}


/* QR description */

.qr-card p {
    color: #666;
    line-height: 1.5;
}


/* QR container */

.qr {
    display: inline-block;

    padding: 12px;

    margin: 15px 0;

    background: #ffffff;

    border: 1px solid #dfe5e2;

    border-radius: 12px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);
}

/* =========================================
   CARD 3 - BANK DETAILS
========================================= */

.info-card {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fffaf1 100%
        );
}

/* Bank information heading */

.info-card h2 {
    margin-top: 12px;
    margin-bottom: 25px;

    text-align: center;
}

/* Information rows */

.payment-info p {
    margin: 0;

    padding: 12px 0;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    line-height: 1.5;
}

.payment-info p:last-child {
    border-bottom: none;
}

.payment-info strong {
    display: inline-block;

    margin-bottom: 2px;

    font-size: 13px;

    color: #555;
}

/* Copy button */

.copy-all {
    width: 100%;

    margin-top: 20px;

    padding: 13px;

    border: none;

    border-radius: 9px;

    background: #16834b;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.copy-all:hover {
    background: #116d3e;

    transform: translateY(-1px);
}

/* =========================================
   FORMAL CARD HOVER
========================================= */

.donation-box,
.qr-card,
.info-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.donation-box:hover,
.qr-card:hover,
.info-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.10),
        0 3px 8px rgba(0, 0, 0, 0.05);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 850px) {

    .donation-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

@media (max-width: 480px) {

    .donation-box,
    .qr-card,
    .info-card {
        padding: 20px 16px;
    }

    .amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .qr img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 27px;
    }

   

    .amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .qr img {
        max-width: 100%;
        height: auto;
    }
}

/* =========================================
   THREE DONATION CARDS
========================================= */

.donation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}


/* QR card */

.qr-card {
    text-align: center;
}

.qr-card h2 {
    margin-top: 10px;
}


/* Success icon */

.success {
    width: 45px;
    height: 45px;
    line-height: 45px;
    margin: auto;
    border-radius: 50%;
    background: #e5f6ec;
    color: #16834b;
    font-size: 25px;
    font-weight: bold;
}


/* QR */

.qr {
    display: inline-block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px 0;
}

.qr img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
}

.scan {
    color: #666;
}


/* =========================================
   BANK INFORMATION
========================================= */

.info-card h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 25px;
}

.payment-info p {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.payment-info strong {
    font-size: 13px;
    color: #555;
}


/* Copy button */

.copy-all {
    width: 100%;
    margin-top: 20px;
    padding: 13px;
    border: none;
    border-radius: 9px;
    background: #16834b;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.copy-all:hover {
    background: #116d3e;
}

#copyMessage {
    text-align: center;
    color: #16834b;
    font-size: 13px;
    margin-top: 10px;
}


/* =========================================
   SUCCESS POPUP
========================================= */

.success-popup {
    display: none;

    position: fixed;
    z-index: 9999;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.55);

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.success-popup-content {
    background: white;

    width: 100%;
    max-width: 420px;

    padding: 30px 25px;

    border-radius: 18px;

    text-align: center;

    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.popup-check {
    width: 55px;
    height: 55px;

    line-height: 55px;

    margin: auto;

    border-radius: 50%;

    background: #e5f6ec;

    color: #16834b;

    font-size: 30px;
    font-weight: bold;
}

.success-popup-content h3 {
    margin: 18px 0 10px;
}

.success-popup-content p {
    color: #666;
    line-height: 1.6;
}

#closePopup {
    width: 100%;

    padding: 13px;

    border: none;
    border-radius: 9px;

    background: #16834b;
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    margin-top: 10px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 850px) {

    .donation-cards {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   UPI ID BOX
========================================= */

.upi-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 15px;

    padding: 11px 12px;

    background: #ffffff;

    border: 1px solid #dfe5e2;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    color: #333;
}

.upi-box span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upi-box button {
    flex-shrink: 0;

    border: none;

    background: transparent;

    font-size: 18px;

    cursor: pointer;

    padding: 3px 6px;
}


/* =========================================
   PAY NOW BUTTON
========================================= */

.pay-now {
    width: 100%;

    margin-top: 10px;

    padding: 13px;

    border: none;

    border-radius: 9px;

    background: #16834b;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: background 0.2s ease,
                transform 0.2s ease;
}

.pay-now:hover {
    background: #116d3e;

    transform: translateY(-1px);
}


/* Copy message */

#upiMessage {
    min-height: 18px;

    margin-top: 7px;

    color: #16834b;

    font-size: 12px;
}

#payNow {
    display: none;
}

