/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Inter", sans-serif;

    color: #222;

    background: #fff;
}


/* =====================================================
   DONATION SECTION
===================================================== */

.donation-section {
    width: 100%;

    padding: 80px 20px;

    background: #f7f7f7;
}

.donation-wrapper {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 45px;

    align-items: center;
}


/* =====================================================
   LEFT SIDE
===================================================== */

.donation-info {
    width: 100%;
}

.donation-heading {
    margin-bottom: 22px;
}

.donation-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    color: #c1121f;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.donation-heading h1 {
    margin: 0 0 12px;

    font-family: "Montserrat", sans-serif;

    font-size: 36px;
    line-height: 1.2;

    color: #222;
}

.donation-heading p {
    margin: 0;

    max-width: 520px;

    font-size: 15px;
    line-height: 1.7;

    color: #666;
}


/* =====================================================
   MPESA IMAGE
===================================================== */

.mpesa-image-wrapper {
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    margin: 15px 0 20px;
}

.mpesa-image {
    display: block;

    width: auto;
    max-width: 100%;

    height: 210px;

    object-fit: contain;

    border-radius: 8px;
}


/* =====================================================
   M-PESA TILL CARD
===================================================== */

.till-card {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 16px;

    padding: 20px;

    background: #fff;

    border: 1px solid #e3e3e3;

    border-radius: 9px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.05);
}

.till-icon {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #c1121f;

    color: #fff;

    font-size: 18px;
    font-weight: 700;
}

.till-details {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.till-label {
    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    color: #777;
}

.till-number {
    font-family: "Montserrat", sans-serif;

    font-size: 22px;

    color: #222;

    letter-spacing: 0.5px;
}

.till-details p {
    margin: 2px 0 0;

    font-size: 12px;

    line-height: 1.5;

    color: #777;
}

/* =====================================================
   THANK YOU
===================================================== */

.thank-you-message {
    display: flex;

    gap: 14px;

    margin-top: 18px;

    padding: 18px;

    background: #fff;

    border-left: 4px solid #c1121f;

    border-radius: 8px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.04);
}

.thank-you-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #c1121f;

    color: #fff;

    font-size: 16px;
}

.thank-you-content h3 {
    margin: 0 0 5px;

    font-family: "Montserrat", sans-serif;

    font-size: 19px;
}

.thank-you-content p {
    margin: 0;

    font-size: 13px;

    line-height: 1.6;

    color: #666;
}


/* =====================================================
   FORM CARD
===================================================== */

.donation-form-card {
    width: 100%;

    padding: 35px;

    background: #fff;

    border-radius: 13px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}

.form-header {
    margin-bottom: 25px;
}

.form-header h2 {
    margin: 0 0 9px;

    font-family: "Montserrat", sans-serif;

    font-size: 28px;

    line-height: 1.25;
}

.form-header p {
    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: #666;
}


/* =====================================================
   FORM FIELDS
===================================================== */

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 600;

    color: #333;
}

.form-field input {
    width: 100%;

    height: 49px;

    padding: 0 14px;

    border: 1px solid #d8d8d8;

    border-radius: 7px;

    outline: none;

    background: #fff;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    color: #222;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus {
    border-color: #c1121f;

    box-shadow:
        0 0 0 3px rgba(193, 18, 31, 0.08);
}

.form-field input::placeholder {
    color: #aaa;
}

.field-help {
    display: block;

    margin-top: 5px;

    font-size: 11px;

    color: #888;
}


/* =====================================================
   AMOUNT
===================================================== */

.amount-input {
    display: flex;

    width: 100%;

    height: 49px;

    border: 1px solid #d8d8d8;

    border-radius: 7px;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.amount-input:focus-within {
    border-color: #c1121f;

    box-shadow:
        0 0 0 3px rgba(193, 18, 31, 0.08);
}

.amount-input span {
    display: flex;

    align-items: center;

    padding: 0 14px;

    background: #f4f4f4;

    border-right: 1px solid #ddd;

    font-size: 12px;

    font-weight: 700;

    color: #555;
}

.amount-input input {
    flex: 1;

    height: 100%;

    border: none;

    outline: none;

    box-shadow: none;

    border-radius: 0;
}

.amount-input input:focus {
    border: none;

    box-shadow: none;
}


/* =====================================================
   STK BUTTON
===================================================== */

.stk-button {
    width: 100%;

    min-height: 51px;

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    border: none;

    border-radius: 7px;

    background: #c1121f;

    color: #fff;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.stk-button:hover:not(:disabled) {
    background: #a90f1a;

    transform: translateY(-1px);
}

.stk-button:disabled {
    opacity: 0.7;

    cursor: not-allowed;
}

.button-arrow {
    font-size: 19px;
}

.button-loader {
    display: none;

    width: 15px;
    height: 15px;

    border: 2px solid rgba(255, 255, 255, 0.4);

    border-top-color: #fff;

    border-radius: 50%;

    animation: donationSpinner 0.7s linear infinite;
}

@keyframes donationSpinner {

    to {
        transform: rotate(360deg);
    }

}


/* =====================================================
   NOTICE
===================================================== */

.stk-notice {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin-top: 14px;

    padding: 12px 14px;

    background: #fff8e7;

    border-radius: 7px;
}

.notice-icon {
    font-size: 14px;
}

.stk-notice p {
    margin: 0;

    font-size: 11.5px;

    line-height: 1.5;

    color: #665b43;
}


/* =====================================================
   RESULT
===================================================== */

.donation-result {
    display: none;

    margin-top: 16px;

    padding: 13px 14px;

    border-radius: 7px;

    font-size: 13px;

    line-height: 1.55;
}

.donation-result.success {
    display: block;

    background: #edf8f0;

    border: 1px solid #cde9d4;

    color: #216b35;
}

.donation-result.error {
    display: block;

    background: #fff0f0;

    border: 1px solid #efcccc;

    color: #9b1b1b;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 992px) {

    .donation-section {
        padding: 65px 20px;
    }

    .donation-wrapper {
        gap: 28px;
    }

    .donation-heading h1 {
        font-size: 31px;
    }

    .mpesa-image {
        height: 175px;
    }

    .donation-form-card {
        padding: 28px;
    }

    .form-header h2 {
        font-size: 25px;
    }

    .payment-detail strong {
        font-size: 17px;
    }

}


/* =====================================================
   MOBILE / SMALL TABLET
===================================================== */

@media (max-width: 768px) {

    .donation-section {
        padding: 55px 18px;
    }

    .donation-wrapper {
        grid-template-columns: 1fr;

        max-width: 620px;

        gap: 30px;
    }

    .donation-heading h1 {
        font-size: 28px;
    }

    .donation-heading p {
        font-size: 14px;
    }

    .mpesa-image {
        height: 190px;
    }

    .donation-form-card {
        padding: 27px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {

    .donation-section {
        padding: 45px 15px;
    }

    .donation-wrapper {
        gap: 24px;
    }

    .donation-eyebrow {
        font-size: 10px;
    }

    .donation-heading h1 {
        font-size: 24px;
    }

    .donation-heading p {
        font-size: 13px;
    }

    .mpesa-image {
        height: 150px;
    }

    .paybill-card {
        padding: 16px;
    }

    .payment-detail span {
        font-size: 9px;
    }

    .payment-detail strong {
        font-size: 15px;
    }

    .payment-divider {
        margin: 0 10px;
    }

    .thank-you-message {
        padding: 15px;
    }

    .donation-form-card {
        padding: 22px 17px;

        border-radius: 10px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-header p {
        font-size: 13px;
    }

}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 360px) {

    .donation-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .donation-heading h1 {
        font-size: 22px;
    }

    .mpesa-image {
        height: 130px;
    }

    .donation-form-card {
        padding: 19px 14px;
    }

    .payment-detail strong {
        font-size: 13px;
    }

}