/* WRAN Donate – front-end styles */

.wran-donate-container {
    max-width: 760px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Amount buttons ── */

.donate-amounts {
    margin-bottom: 2rem;
}

.donate-label {
    font-weight: 700;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: .5rem 1.25rem;
    border: 2px solid #b91c1c;
    background: transparent;
    color: #b91c1c;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.amount-btn:hover,
.amount-btn.is-selected {
    background: #b91c1c;
    color: #fff;
}

.custom-amount label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: #555;
}

.custom-amount-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 220px;
}

.currency-prefix {
    padding: .5rem .75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-weight: 700;
    font-size: .9rem;
    color: #374151;
}

.custom-amount-wrap input[type="number"] {
    border: 1px solid #d1d5db;
    border-radius: 0 4px 4px 0;
    padding: .5rem .75rem;
    font-size: .9rem;
    width: 140px;
    outline: none;
}

.custom-amount-wrap input[type="number"]:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185,28,28,.15);
}

/* ── Donor form ── */

.donate-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 1rem;
}

.form-field label {
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
}

.form-field input,
.form-field textarea {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: .55rem .75rem;
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185,28,28,.15);
}

.req { color: #b91c1c; }

.form-submit {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.selected-amount-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b91c1c;
    min-width: 80px;
}

.donate-btn {
    padding: .65rem 1.75rem;
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}

.donate-btn:hover:not(:disabled) {
    background: #991b1b;
}

.donate-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ── Error message ── */

.donate-error {
    margin-top: .75rem;
    padding: .6rem .9rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    color: #991b1b;
    font-size: .875rem;
}

.donate-error:empty { display: none; }

/* ── QR section ── */

.qr-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.75rem;
    margin-top: .5rem;
}

.qr-section h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
}

.qr-section p {
    color: #6b7280;
    font-size: .875rem;
    margin: 0 0 1rem;
}

.qr-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.qr-inner img {
    max-height: 180px;
    width: auto;
    border: 1px solid #e5e7eb;
    padding: 6px;
    background: #fff;
    border-radius: 6px;
}

.qr-details {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.qr-details strong {
    font-size: 1rem;
    color: #111827;
}

.qr-details span {
    font-size: .875rem;
    color: #6b7280;
    letter-spacing: .04em;
}

/* ── Success state ── */

.donate-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.donate-success h3 {
    margin: 0 0 .75rem;
    font-size: 1.3rem;
}

.success-body {
    color: #4b5563;
    font-size: .95rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto .75rem;
}

.success-ref {
    font-size: .8rem;
    color: #9ca3af;
}

/* ── Payment slip file input ── */

.form-field input[type="file"] {
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    padding: .45rem .6rem;
    font-size: .875rem;
    background: #f9fafb;
    cursor: pointer;
    width: 100%;
}

.form-field input[type="file"]:focus {
    border-color: #b91c1c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(185,28,28,.15);
}

.slip-hint {
    margin: .25rem 0 0;
    font-size: .775rem;
    color: #9ca3af;
}

.slip-error {
    margin: .25rem 0 0;
    font-size: .8rem;
    color: #b91c1c;
    min-height: 1rem;
}

.success-ref strong {
    color: #374151;
}
