.donate-form-wrap {
    max-width: 640px;
    margin: 0 auto 30px;
}

.donate-form fieldset {
    border: none;
    padding: 0;
}

.donate-form legend {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #15201b;
    font-size: 15px;
    padding: 0;
}

.amount-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #c8c0ad;
    border-radius: 4px;
    overflow: hidden;
    background-color: #faf6ee;
}

.amount-row .currency {
    background-color: #f1ead6;
    padding: 11px 16px;
    font-size: 20px;
    font-weight: bold;
    color: #1f4d3a;
    border-right: 1px solid #c8c0ad;
}

.amount-row input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    font-size: 18px;
    padding: 11px 14px;
    width: 100%;
    font-family: inherit;
    color: #15201b;
}

.amount-row input:focus {
    outline: 3px solid #ffb84d;
    outline-offset: -3px;
}

.freq-field {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 18px;
    align-items: center;
}

.freq-field legend {
    width: 100%;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    font-size: 15px;
    cursor: pointer;
}

.form-section-heading {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e0d8c2;
    font-size: 18px;
    color: #1f4d3a;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.error-msg {
    display: none;
    color: #b3261e;
    font-size: 13px;
    margin: 6px 0 0;
    line-height: 1.4;
}

.error-msg::before {
    content: "\26A0";
    display: inline-block;
    margin-right: 6px;
    font-weight: bold;
}

.field.is-invalid .error-msg,
.amount-field.is-invalid .error-msg {
    display: block;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: #b3261e !important;
    background-color: #fdecea !important;
}

.amount-field.is-invalid .amount-row {
    border-color: #b3261e;
    background-color: #fdecea;
}

.amount-field.is-invalid .amount-row .currency {
    background-color: #f8d7d3;
    color: #b3261e;
    border-right-color: #b3261e;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 30, 25, 0.55);
}

.modal-box {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 36px 28px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    animation: modal-pop 0.18s ease-out;
}

@keyframes modal-pop {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.modal-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background-color: #dff0d8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box h2 {
    margin-bottom: 12px;
    color: #1f4d3a;
}

.modal-box p {
    color: #333;
    margin-bottom: 22px;
}

.modal-close {
    min-width: 140px;
}

@media (min-width: 600px) {
    .donate-form-wrap {
        padding: 32px 36px;
    }
}
