/* NGO LakiPay Donations — responsive styles */

.ngo-lakipay-wrap {
    max-width: 560px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
}

.ngo-lakipay-wrap *,
.ngo-lakipay-wrap *::before,
.ngo-lakipay-wrap *::after {
    box-sizing: border-box;
}

.ngo-lakipay-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ngo-lakipay-field {
    margin-bottom: 1.25rem;
}

.ngo-lakipay-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.ngo-lakipay-field .req {
    color: #dc2626;
}

.ngo-lakipay-field input[type="text"],
.ngo-lakipay-field input[type="tel"],
.ngo-lakipay-field input[type="number"],
.ngo-lakipay-field input[type="date"],
.ngo-lakipay-field select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.4;
    background: #fff;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ngo-lakipay-field select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.25rem;
}

.ngo-lakipay-field input:focus,
.ngo-lakipay-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ngo-lakipay-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Preset amounts */
.ngo-lakipay-amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.ngo-lakipay-preset {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.ngo-lakipay-preset input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ngo-lakipay-preset span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #f9fafb;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.ngo-lakipay-preset input[type="radio"]:checked + span {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.ngo-lakipay-preset input[type="radio"]:focus + span {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Submit */
.ngo-lakipay-actions {
    margin-top: 1.5rem;
}

.ngo-lakipay-submit {
    display: inline-block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.ngo-lakipay-submit:hover {
    background: #15803d;
}

.ngo-lakipay-submit:active {
    transform: translateY(1px);
}

.ngo-lakipay-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.ngo-lakipay-messages {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.ngo-lakipay-messages.is-error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.ngo-lakipay-messages.is-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* Thank you / Failed pages */
.ngo-lakipay-thank-you,
.ngo-lakipay-failed {
    max-width: 560px;
    margin: 3rem auto;
    padding: 2.5rem 1.75rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ngo-lakipay-thank-you h2,
.ngo-lakipay-failed h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #111827;
}

.ngo-lakipay-thank-you p,
.ngo-lakipay-failed p,
.ngo-lakipay-failed ul {
    color: #374151;
    line-height: 1.6;
}

.ngo-lakipay-failed ul {
    display: inline-block;
    text-align: left;
    margin: 0.5rem 0 1.25rem;
    padding-left: 1.25rem;
}

.ngo-lakipay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.ngo-lakipay-icon-success {
    background: #16a34a;
}

.ngo-lakipay-icon-failed {
    background: #dc2626;
}

.ngo-lakipay-ref {
    font-family: monospace;
    font-size: 0.9rem;
    color: #4b5563;
    word-break: break-all;
}

.ngo-lakipay-status-success {
    color: #166534;
    font-weight: 600;
}

.ngo-lakipay-home-link,
.ngo-lakipay-retry {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.4rem;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.ngo-lakipay-home-link:hover,
.ngo-lakipay-retry:hover {
    background: #1d4ed8;
}

/* Responsive */
@media (max-width: 600px) {
    .ngo-lakipay-wrap {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }

    .ngo-lakipay-form {
        padding: 1.5rem 1.25rem;
        border-radius: 10px;
    }

    .ngo-lakipay-submit {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .ngo-lakipay-preset span {
        padding: 0.45rem 0.85rem;
        font-size: 0.85rem;
    }

    .ngo-lakipay-thank-you,
    .ngo-lakipay-failed {
        padding: 2rem 1.25rem;
        margin: 1.5rem auto;
    }
}
/* Cloudflare Turnstile widget container */
.ngo-lakipay-captcha {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
    .ngo-lakipay-captcha {
        justify-content: center;
    }
}