/* ===== Donate page css ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.donate-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;

}

.donate-image {
    width: 100%;
    display: block;
}

.donate-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 70%;

    background: linear-gradient(to right, rgba(22, 51, 44, 0.75) 0%, rgba(22, 51, 44, 0.35) 55%, transparent 100%);
}

.donate-image-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 15% 0.6rem;
}

.donate-image-overlay p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 15% 0.6rem;
}



.donate-image {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
}


.donation-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 20px 40px;
}


.donor-info,
.donation-items {
    flex: 1;
    min-width: 300px;
    max-width: 620px;
    border: 2px solid rgb(56, 26, 26);
    border-radius: 15px;
    padding: 20px;
}

.donor-info h1,
.donation-items h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    color: #a8b43c;
    margin-bottom: 12px;
}

.donation-items h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin-top: 18px;
    margin-bottom: 10px;
}


.contact-info-div {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
}

.donor-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
    padding-left: 4px;
}


.donor-input {
    border: 2px solid #a8b43c;
    border-radius: 5px;
    height: 36px;
    padding: 0 12px;
    width: 100%;
    font-size: 14px;
    background: #fff;
    color: #111;
}

.donor-input:focus {
    border-color: #2ed573;
    outline: none;
}

textarea.donor-input {
    height: 80px;
    padding: 10px 12px;
    resize: vertical;
}


.food-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
}

.food-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fdfdfd;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-height: 50px;
    padding: 8px 10px;
    font-size: 13px;
    flex-wrap: wrap;
    transition: border-color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.food-item label {
    flex: 1;
    line-height: 1.3;
}

.input-checkbox {
    accent-color: #a8b43c;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.input-quantity {
    border: 2px solid #a8b43c;
    border-radius: 5px;
    width: 52px;
    height: 28px;
    padding: 0 6px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.input-quantity:focus {
    border-color: #2ed573;
    outline: none;
}


.select-cake {
    width: 100%;
    border: 2px solid #a8b43c;
    border-radius: 10px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
    color: #111;
}

.select-cake:focus {
    border-color: #2ed573;
    outline: none;
}

.amount-area {
    border: 1px solid #a8b43c;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    margin-top: 14px;
    background-color: #eaf7ef;
    color: #1b5e20;
    border-radius: 15px;
}

.amount-area h1 {
    color: #1b5e20;
    font-size: 18px;
    margin-bottom: 8px;
}

.amount-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #1b5e20;
}

.amount-container span {
    font-size: 22px;
    font-weight: bold;
}

.totalamount {
    border: none;
    background: transparent;
    font-size: 22px;
    font-weight: bold;
    color: #1b5e20;
    width: 100px;
    text-align: center;
}

.totalamount:focus {
    outline: none;
}

.totalamount::placeholder {
    color: #1b5e20;
    font-weight: bold;
}

.highlet-text {
    color: red;
}


.pay-button {
    display: block;
    width: 100%;
    background-color: #ff6f00;
    margin-top: 12px;
    height: 40px;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.pay-button:hover {
    background-color: #e65c00;
}

.required {
    color: red;
}

@media (max-width: 680px) {
    .donate-image {
        height: 220px;
    }

    .donation-container {
        padding: 0 12px 32px;
        gap: 16px;
    }

    .donor-info,
    .donation-items {
        padding: 16px;
    }

    .food-grid {
        grid-template-columns: 1fr;
    }
}



.donor-input.invalid {
    border-color: #e53935 !important;
    background-color: #fdf2f1;
}

.field-error {
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
    padding-left: 4px;
    display: none;
}


.food-item.checked {
    background-color: #f3f8e3;
    border-color: #a8b43c;
}



.qty-stepper {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.qty-stepper.active {
    display: flex;
}

.qty-stepper button {
    width: 24px;
    height: 24px;
    border: 1px solid #a8b43c;
    background: #fff;
    color: #1b5e20;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 140ms ease;
}

.qty-stepper button:hover:not(:disabled) {
    background-color: #eaf7ef;
}

.qty-stepper button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

*/ .row-amount {
    min-width: 56px;
    text-align: right;
    font-size: 13px;
    font-weight: bold;
    color: #1b5e20;
    flex-shrink: 0;
}


.row-disabled {
    opacity: 0.42;
    pointer-events: none;
    filter: grayscale(35%);
}

.section-locked-note {
    font-size: 13px;
    font-style: italic;
    color: #777;
    margin: 0 0 10px;
    padding-left: 4px;
}

#cakeSection {
    margin-top: 6px;
}


.checkout-helper {
    font-size: 13px;
    color: #c0392b;
    margin: 10px 0 0;
    text-align: center;
    display: none;
}

/* --- Disabled Pay button --- */

.pay-button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.pay-button:disabled:hover {
    background-color: #ccc;
}


.donor-input:focus-visible,
.select-cake:focus-visible,
.qty-stepper button:focus-visible,
.pay-button:focus-visible,
.input-checkbox:focus-visible {
    outline: 2px solid #2ed573;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}



@media (max-width: 680px) {
    .qty-stepper {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .row-amount {
        width: 100%;
        text-align: left;
    }

    .amount-container span,
    .totalamount {
        font-size: 19px;
    }
}
