* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --yellow-400: #facc15;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, var(--gray-50), white);
}

.give-page {
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1152px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.header-line {
    width: 5rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--orange-500), var(--yellow-400));
    margin: 0 auto;
    border-radius: 9999px;
}

.header-description {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    line-height: 1.8;
}

/* Instructions Box */
.instructions-box {
    background: linear-gradient(to bottom right, var(--gray-50), var(--gray-100));
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
}

.instructions-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-emoji {
    font-size: 1.125rem;
}

.instructions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.instructions-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.step-number {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, var(--orange-500), var(--orange-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.instructions-list li span:last-child {
    line-height: 1.6;
}

/* Add these CSS fixes to your give.css file */

/* Modal Fixes for Mobile and cPanel */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999 !important; /* Increased z-index */
    padding: 1rem;
    display: none; /* Start hidden */
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* When modal is shown */
.modal[style*="display: flex"],
.modal:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    -webkit-backdrop-filter: blur(4px); /* Safari support */
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 28rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
    z-index: 10000;
    /* Prevent iOS scroll issues */
    -webkit-overflow-scrolling: touch;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Fix for touch events on mobile */
.give-now-button,
.modal-close,
.done-button,
.copy-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Ensure buttons are clickable on mobile */
.give-now-button {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
    }
    
    body.modal-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
}

/* Responsive modal on very small screens */
@media (max-width: 480px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: auto;
    }
    
    .modal {
        padding: 0.5rem;
    }
}

/* Fix for landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }
}

/* Ensure modal is above everything */
.modal,
.modal-backdrop,
.modal-content {
    pointer-events: auto !important;
}

/* Hidden state */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* MOMO Code Box */
.momo-code-box {
    background: linear-gradient(to bottom right, rgba(249, 115, 22, 0.05), rgba(234, 179, 8, 0.05));
    border-radius: 1rem;
    padding: 1.25rem;
    border: 2px solid rgba(249, 115, 22, 0.2);
}

.code-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 500;
}

.code-display {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(249, 115, 22, 0.3);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.momo-code {
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-align: center;
    color: var(--gray-900);
    letter-spacing: 0.05em;
    word-break: break-all;
}

.copy-button {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.copy-button:hover {
    background: var(--gray-50);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.copy-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

#checkIcon {
    color: #10b981;
}

/* Account Info */
.account-info {
    background: linear-gradient(to bottom right, rgba(249, 115, 22, 0.1), rgba(234, 179, 8, 0.1));
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.account-info p {
    font-size: 0.875rem;
    color: #92400e;
    text-align: center;
}

.account-label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.account-name {
    font-size: 1rem;
}

/* Done Button */
.done-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--orange-500), var(--orange-600));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.done-button:hover {
    background: linear-gradient(to right, var(--orange-600), var(--orange-700));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Payment Section */
.payment-section {
    margin-bottom: 3rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 2rem;
}

.payment-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.payment-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.25rem);
}

.payment-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.payment-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: linear-gradient(to bottom right, rgba(249, 115, 22, 0.1), rgba(234, 179, 8, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.payment-icon svg {
    color: var(--orange-500);
}

.payment-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.75rem;
}

.payment-description {
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.give-now-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--orange-500), var(--orange-600));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.give-now-button:hover {
    background: linear-gradient(to right, var(--orange-600), var(--orange-700));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Impact Section */
.impact-section {
    background: linear-gradient(to bottom right, white, rgba(249, 115, 22, 0.05));
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
}

.impact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.impact-card {
    text-align: center;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.impact-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--orange-500), var(--yellow-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.impact-label {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.impact-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.impact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.impact-button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.875rem;
}

.impact-button.primary {
    background: linear-gradient(to right, var(--orange-500), var(--orange-600));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.impact-button.primary:hover {
    background: linear-gradient(to right, var(--orange-600), var(--orange-700));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.impact-button.secondary {
    background: white;
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.impact-button.secondary:hover {
    background: var(--gray-50);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (min-width: 640px) {
    .give-page {
        padding: 3rem 1rem;
    }

    .page-header {
        margin-bottom: 4rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .header-line {
        width: 8rem;
    }

    .header-description {
        font-size: 1.125rem;
        margin-top: 2rem;
    }

  
    .instructions-box h3 {
        font-size: 1.125rem;
    }

    .instructions-list li {
        font-size: 1rem;
    }

    .momo-code {
        font-size: 1.875rem;
    }

    .payment-section {
        margin-bottom: 4rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .payment-card {
        padding: 2rem;
    }

    .payment-icon {
        width: 6rem;
        height: 6rem;
    }

    .payment-card h3 {
        font-size: 1.5rem;
    }

    .payment-description {
        font-size: 1rem;
    }

    .give-now-button,
    .done-button {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }

    .impact-section {
        padding: 2rem;
    }

    .impact-title {
        font-size: 1.875rem;
    }

    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .impact-card {
        padding: 1.5rem;
    }

    .impact-number {
        font-size: 2.25rem;
    }

    .impact-label {
        font-size: 1rem;
    }

    .impact-description {
        font-size: 1rem;
    }

    .impact-buttons {
        flex-direction: row;
    }

    .impact-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }

    .impact-section {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .give-page {
        padding: 4rem 1rem;
    }

    .page-header h1 {
        font-size: 3.75rem;
    }

    .header-description {
        font-size: 1.25rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}