/* ==============================
   ZAM RESEARCH DONATION PORTAL
   ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00A650;
    --primary-hover: #008C44;
    --secondary-color: #F97316;
    --white: #FFFFFF;
    --dark-color: #1F2937;
    --text-color: #374151;
    --muted-color: #6B7280;
    --border-color: #D1D5DB;
    --background-color: #F3F4F6;
    --success-color: #15803D;
    --error-color: #DC2626;
    --pending-color: #92400E;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    line-height: 1.6;
}

/* Main container */

.donation-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* Donation card */

.donation-card {
    background: var(--white);
    width: 100%;
    padding: 38px 32px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(31, 41, 55, 0.12);
    border-top: 5px solid var(--primary-color);
}

/* Main heading */

.donation-card h1 {
    color: var(--dark-color);
    text-align: center;
    font-size: 29px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Description */

.donation-description {
    text-align: center;
    color: var(--muted-color);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Form */

#donationForm {
    width: 100%;
}

/* Amount section */

.amount-section {
    margin-bottom: 24px;
}

/* Labels */

.amount-section label,
.phone-section label {
    display: block;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}

/* Input fields */

.amount-section input,
.phone-section input {
    display: block;
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    font-size: 16px;
    color: var(--dark-color);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amount-section input:focus,
.phone-section input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 166, 80, 0.12);
}

.amount-section input::placeholder,
.phone-section input::placeholder {
    color: #9CA3AF;
}

/* Amount hint */

.amount-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted-color);
}

/* Suggested amounts */

.suggested-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 16px;
}

.amount-option {
    padding: 11px 5px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.amount-option:hover {
    background: #E8F7EF;
    transform: translateY(-1px);
}

.amount-option.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Phone section */

.phone-section {
    margin-bottom: 25px;
}

/* Payment button */

.pay-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 9px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pay-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 166, 80, 0.2);
}

.pay-button:active:not(:disabled) {
    transform: translateY(0);
}

.pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Donation status messages */

#donationMessage {
    margin-top: 18px;
    padding: 0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    overflow-wrap: anywhere;
}

#donationMessage:empty {
    display: none;
}

#donationMessage.pending {
    padding: 12px;
    background: #FEF3C7;
    color: var(--pending-color);
}

#donationMessage.success {
    padding: 12px;
    background: #DCFCE7;
    color: var(--success-color);
}

#donationMessage.error {
    padding: 12px;
    background: #FEE2E2;
    color: var(--error-color);
}

/* Security note */

.security-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #E5E7EB;
    color: var(--muted-color);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.security-note i {
    color: var(--success-color);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Keyboard accessibility */

.amount-option:focus-visible,
.pay-button:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Responsive layout */

@media (max-width: 480px) {

    body {
        padding: 15px;
    }

    .donation-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .donation-card h1 {
        font-size: 25px;
    }

    .donation-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .suggested-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .amount-option {
        padding: 12px 8px;
        font-size: 14px;
    }

    .pay-button {
        font-size: 15px;
    }
}