/* =================================================================== */
/* ===== MODERN DONATE PAGE STYLES - YUVA 2025 (TRICOLOR THEME) ===== */
/* =================================================================== */

/* ===== Root Variables (Aligned with New Design System) ===== */
:root {
    /* India Theme Color Palette */
    --saffron-primary: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E67300;
    --saffron-pale: #FFE5CC;
    --white-primary: #FFFFFF;
    --white-warm: #FAFAF9;
    --white-cream: #F5F54;
    --green-primary: #138808;
    --green-light: #22C55E;
    --green-dark: #0F6606;
    --green-pale: #D1FAE5;
    --navy-chakra: #000080;
    --navy-dark: #00005C;

    /* Semantic Colors */
    --color-primary: var(--navy-chakra);
    --color-secondary: var(--green-primary);
    --color-accent: var(--saffron-primary);
    --color-error: #ef4444;
    --color-error-pale: #fef2f2;
    --color-info-pale: #EBF4FF;
    /* A light blue for info backgrounds */

    /* Text & Background */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-on-dark: var(--white-primary);
    --text-on-accent: var(--white-primary);
    --bg-base: var(--white-warm);
    --bg-elevated: var(--white-primary);
    --bg-subtle: var(--white-cream);
    --bg-muted: #F1F5F9;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--saffron-light) 0%, var(--white-primary) 50%, var(--green-light) 100%);
    --gradient-saffron: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    --gradient-green: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 100%);
    --gradient-navy: linear-gradient(135deg, var(--navy-chakra) 0%, var(--navy-dark) 100%);

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Mapped Radii */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    /* New */
    --radius-lg: 0.75rem;
    /* Was 1rem, mapped to new --radius-lg */
    --radius-xl: 1rem;
    /* Was 1.5rem, mapped to new --radius-xl */
    --radius-2xl: 1.5rem;
    /* Was 2rem, mapped to new --radius-2xl */

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== FLASH NOTIFICATION SYSTEM (THEMED) ===== */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.flash-notification {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-bounce);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.flash-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-notification.success {
    border-left: 4px solid var(--green-primary);
    background: var(--green-pale);
}

.flash-notification.error {
    border-left: 4px solid var(--color-error);
    background: var(--color-error-pale);
}

.flash-notification.warning {
    border-left: 4px solid var(--saffron-primary);
    background: var(--saffron-pale);
}

.flash-notification.info {
    border-left: 4px solid var(--color-primary);
    background: var(--color-info-pale);
}

.flash-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--white-primary);
    /* Icons are white text on solid bg */
}

.flash-notification.success .flash-icon {
    background: var(--green-primary);
}

.flash-notification.error .flash-icon {
    background: var(--color-error);
}

.flash-notification.warning .flash-icon {
    background: var(--saffron-primary);
}

.flash-notification.info .flash-icon {
    background: var(--color-primary);
}

.flash-content {
    flex: 1;
}

.flash-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.flash-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.flash-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    transition: var(--transition);
    flex-shrink: 0;
}

.flash-close:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}

/* ===== DONATE PAGE LAYOUT ===== */
.donate-page {
    min-height: 100vh;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
    top: calc(60px + 1rem * 2);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ===== HERO SECTION (CHAKRA THEME) ===== */
.donate-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* @keyframes spin ADDED for Chakra */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* .hero-chakra-bg and .donate-hero-content positioning ADDED */
.hero-chakra-bg,
.donate-hero-content {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.hero-chakra-bg {
    width: 500px;
    height: 500px;
    z-index: 1;
    color: var(--navy-chakra);
    opacity: 0.08;
    stroke: currentColor;
    fill: currentColor;
    animation: spin 60s linear infinite;
    pointer-events: none;
}

.donate-hero-content {
    position: relative;
    z-index: 3;
    /* Above chakra */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Kept horizontal padding */
    text-align: center;
    color: var(--text-primary);
    /* Changed to primary text for light bg */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Removed glassmorphism, added new theme style */
    background: var(--saffron-pale);
    border: 1px solid var(--saffron-light);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
    color: var(--saffron-dark);
    /* Added for text color */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    /* Mapped to new saffron gradient */
    background: var(--gradient-saffron);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    color: var(--text-secondary);
    /* Mapped to new secondary text */
}

.donate-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.donate-impact-item {
    /* Removed glassmorphism, added new theme style */
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    /* Added shadow */
}

.donate-impact-item:hover {
    transform: translateY(-4px);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
    /* Updated hover shadow */
}

.impact-icon {
    width: 48px;
    height: 48px;
    /* Mapped to new green gradient */
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: var(--white-primary);
    /* Added icon color */
}

.impact-content {
    text-align: left;
}

.donate-impact-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text-primary);
    /* Mapped text color */
}

.donate-impact-label {
    font-size: 14px;
    opacity: 1;
    /* Removed opacity */
    font-weight: 500;
    color: var(--text-secondary);
    /* Mapped text color */
}

/* ===== DONATION FORM ===== */
.donation-form-container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    /* The 100vh hero + this negative margin centers the form */
    margin: -100px auto 0;
    padding: 0 20px;
}

.form-card {
    background: var(--bg-elevated);
    /* Mapped */
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-navy);
    /* Mapped */
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-navy);
    /* Mapped */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--white-primary);
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    /* Mapped */
    margin: 0 0 8px 0;
}

.form-header p {
    color: var(--text-secondary);
    /* Mapped */
    font-size: 16px;
    margin: 0;
}

/* Form Sections */
.form-section {
    margin-bottom: 32px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    /* Mapped */
    margin-bottom: 16px;
}

.section-label i {
    color: var(--color-primary);
    /* Mapped */
}

/* Donation Type Selector */
.donation-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.type-option {
    position: relative;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--border-light);
    /* Mapped */
    border-radius: var(--radius-xl);
    /* Mapped */
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-elevated);
    /* Mapped */
}

.type-option input[type="radio"]:checked+.type-label {
    border-color: var(--color-primary);
    /* Mapped */
    background: var(--color-info-pale);
    /* Mapped */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.type-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-subtle);
    /* Mapped */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    /* Mapped */
    transition: var(--transition);
}

.type-option input[type="radio"]:checked+.type-label .type-icon {
    background: var(--color-primary);
    /* Mapped */
    color: var(--white-primary);
}

.type-content {
    flex: 1;
}

.type-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    /* Mapped */
    margin-bottom: 4px;
}

.type-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    /* Mapped */
}

/* Amount Selector */
.amount-selector {
    margin-top: 16px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.amount-option {
    position: relative;
}

.amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid var(--border-light);
    /* Mapped */
    border-radius: var(--radius-xl);
    /* Mapped */
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-elevated);
    /* Mapped */
    text-align: center;
}

.amount-option input[type="radio"]:checked+.amount-label {
    border-color: var(--color-primary);
    /* Mapped */
    background: var(--color-info-pale);
    /* Mapped */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.amount-currency {
    font-size: 14px;
    color: var(--text-muted);
    /* Mapped */
    font-weight: 500;
}

.amount-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    /* Mapped */
    margin-top: 4px;
}

.custom-label {
    flex-direction: row;
    gap: 8px;
}

.custom-label i {
    font-size: 16px;
    color: var(--text-secondary);
    /* Mapped */
}

.custom-amount-container {
    margin-top: 20px;
}

.custom-amount-input-wrapper {
    position: relative;
    max-width: 200px;
    margin: 0 auto;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    /* Mapped */
    z-index: 1;
}

.custom-amount-input {
    width: 100%;
    padding: 16px 16px 16px 40px;
    border: 2px solid var(--border-light);
    /* Mapped */
    border-radius: var(--radius-xl);
    /* Mapped */
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    background: var(--bg-elevated);
    /* Mapped */
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--color-primary);
    /* Mapped */
    box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.2);
    /* Mapped */
}

.amount-display {
    text-align: center;
    margin-top: 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    /* Mapped */
    display: none;
}

.amount-display.show {
    display: block;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Donor Information */
.donor-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    /* Mapped */
    margin-bottom: 8px;
}

.form-label i {
    color: var(--color-primary);
    /* Mapped */
    font-size: 12px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    /* Mapped */
    border-radius: var(--radius-xl);
    /* Mapped */
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-elevated);
    /* Mapped */
}

/* ADDED: Style for textarea.form-input */
textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    /* Mapped */
    box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.2);
    /* Mapped */
}

.form-input.error {
    border-color: var(--color-error);
    /* Mapped */
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    /* Mapped */
}

/*
 *
 * ===== CSS FIX APPLIED =====
 * Removed 'position: absolute' and related properties
 * to fix the overlapping error message bug.
 *
 */
.error-message {
    background: var(--color-error);
    /* Mapped */
    color: var(--white-primary);
    font-size: 12px;
    padding: 8px 12px;
    border-radius: var(--radius);
    margin-top: 4px;
    /* position: absolute, top, left, right, and z-index REMOVED */
}

/* Donate Button */
.donate-button {
    width: 100%;
    padding: 20px;
    /* Mapped to new ACCENT color for donation */
    background: var(--gradient-saffron);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--text-on-accent);
    /* Mapped */
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 32px;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-saffron);
    /* Keep gradient on hover */
}

.donate-button:active {
    transform: translateY(0);
}

.donate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.button-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
}

.donate-button.loading .button-content {
    opacity: 0;
}

.donate-button.loading .button-loading {
    opacity: 1;
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.donate-hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.form-card {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.form-input:focus,
.donate-button:focus,
.type-label:focus,
.amount-label:focus {
    outline: 2px solid var(--color-primary);
    /* Mapped */
    outline-offset: 2px;
}

/* ===== MOBILE MEDIA QUERIES FOR DONATE PAGE - 2025 ===== */

/* ===== Tablets and Small Laptops (1024px and below) ===== */
@media screen and (max-width: 1024px) {
    .donate-hero {
        min-height: 85vh;
        padding: 70px 20px 100px;
    }

    .hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }

    .donation-form-container {
        margin-top: -80px;
        padding: 0 20px;
    }

    .form-card {
        padding: 36px 28px;
    }

    .donor-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 18px;
    }
}

/* ===== Large Mobile / Small Tablets (768px and below) ===== */
@media screen and (max-width: 768px) {

    /* Flash Notifications */
    .flash-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
        gap: 10px;
    }

    .flash-notification {
        min-width: auto;
        max-width: 100%;
        padding: 14px 16px;
    }

    .flash-title {
        font-size: 13px;
    }

    .flash-message {
        font-size: 12px;
    }

    .flash-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    /* Donate Page Layout */
    .donate-page {
        top: calc(60px + 0.5rem * 4);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    /* Hero Section */
    .donate-hero {
        min-height: 80vh;
        padding: 60px 16px 80px;
    }

    .hero-chakra-bg {
        width: 350px;
        height: 350px;
        opacity: 0.06;
    }

    .donate-hero-content {
        max-width: 100%;
        padding: 0 12px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 7px 14px;
        margin-bottom: 20px;
        gap: 7px;
    }

    .hero-badge i {
        font-size: 13px;
    }

    .hero-title {
        font-size: clamp(1.85rem, 5.5vw, 2.75rem);
        margin-bottom: 20px;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    /* Donate Impact */
    .donate-impact {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .donate-impact-item {
        padding: 20px;
        border-radius: var(--radius-xl);
    }

    .impact-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .donate-impact-number {
        font-size: 22px;
    }

    .donate-impact-label {
        font-size: 13px;
    }

    /* Form Container */
    .donation-form-container {
        margin-top: -60px;
        padding: 0 16px 60px;
    }

    .form-card {
        padding: 28px 20px;
        border-radius: var(--radius-xl);
    }

    .form-card::before {
        height: 3px;
    }

    /* Form Header */
    .form-icon {
        width: 58px;
        height: 58px;
        font-size: 22px;
        margin-bottom: 14px;
    }

    .form-header h2 {
        font-size: 24px;
        margin-bottom: 7px;
    }

    .form-header p {
        font-size: 15px;
    }

    /* Form Sections */
    .form-section {
        margin-bottom: 28px;
    }

    .section-label {
        font-size: 15px;
        margin-bottom: 14px;
    }

    /* Donation Type Selector */
    .donation-type-selector {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .type-label {
        padding: 18px;
        border-radius: var(--radius-lg);
    }

    .type-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .type-title {
        font-size: 15px;
    }

    .type-subtitle {
        font-size: 13px;
    }

    /* Amount Grid */
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }

    .amount-label {
        padding: 14px 10px;
        border-radius: var(--radius-lg);
    }

    .amount-currency {
        font-size: 13px;
    }

    .amount-value {
        font-size: 17px;
    }

    .custom-amount-input {
        padding: 14px 14px 14px 38px;
        font-size: 15px;
        border-radius: var(--radius-lg);
    }

    .currency-symbol {
        left: 14px;
        font-size: 15px;
    }

    .amount-display {
        font-size: 22px;
        margin-top: 14px;
    }

    /* Donor Info Grid */
    .donor-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 7px;
    }

    .form-label i {
        font-size: 11px;
    }

    .form-input {
        padding: 14px;
        font-size: 15px;
        border-radius: var(--radius-lg);
    }

    textarea.form-input {
        min-height: 75px;
    }

    /* Tax Exemption Fields */
    .tax-exemption-fields {
        padding: 14px;
        margin-top: 14px;
        border-radius: var(--radius-lg);
    }

    /* Terms Checkbox */
    .terms-checkbox-container {
        margin-top: 20px;
        gap: 9px;
    }

    .terms-checkbox-container label {
        font-size: 13px;
    }

    .terms-checkbox-container input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    /* Donate Button */
    .donate-button {
        padding: 18px;
        font-size: 17px;
        margin-top: 28px;
        border-radius: var(--radius-lg);
    }

    .button-content {
        gap: 10px;
    }

    .button-loading {
        gap: 7px;
    }

    /* Error Message */
    .error-message {
        font-size: 11px;
        padding: 7px 11px;
        margin-top: 3px;
    }
}

/* ===== Medium Mobile (480px - 600px) ===== */
@media screen and (max-width: 600px) {
    .donate-hero {
        min-height: 75vh;
        padding: 50px 12px 70px;
    }

    .hero-chakra-bg {
        width: 300px;
        height: 300px;
        opacity: 0.05;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 18px;
        gap: 6px;
    }

    .hero-badge i {
        font-size: 12px;
    }

    .hero-title {
        font-size: clamp(1.65rem, 5vw, 2.25rem);
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 28px;
        padding: 0 4px;
    }

    .donate-impact {
        gap: 14px;
    }

    .donate-impact-item {
        padding: 18px 16px;
        gap: 14px;
    }

    .impact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .donate-impact-number {
        font-size: 20px;
    }

    .donate-impact-label {
        font-size: 12px;
    }

    .donation-form-container {
        margin-top: -50px;
        padding: 0 12px 50px;
    }

    .form-card {
        padding: 24px 18px;
    }

    .form-icon {
        width: 54px;
        height: 54px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .form-header h2 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .form-header p {
        font-size: 14px;
    }

    .form-section {
        margin-bottom: 24px;
    }

    .section-label {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .type-label {
        padding: 16px;
    }

    .type-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .type-title {
        font-size: 14px;
    }

    .type-subtitle {
        font-size: 12px;
    }

    .amount-grid {
        gap: 9px;
        margin-bottom: 16px;
    }

    .amount-label {
        padding: 12px 9px;
    }

    .amount-currency {
        font-size: 12px;
    }

    .amount-value {
        font-size: 16px;
    }

    .custom-amount-input {
        padding: 13px 13px 13px 36px;
        font-size: 14px;
    }

    .currency-symbol {
        left: 13px;
        font-size: 14px;
    }

    .amount-display {
        font-size: 20px;
        margin-top: 12px;
    }

    .donor-info-grid {
        gap: 14px;
    }

    .form-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .form-input {
        padding: 13px;
        font-size: 14px;
    }

    textarea.form-input {
        min-height: 70px;
    }

    .tax-exemption-fields {
        padding: 12px;
    }

    .terms-checkbox-container {
        margin-top: 18px;
        gap: 8px;
    }

    .terms-checkbox-container label {
        font-size: 12px;
    }

    .terms-checkbox-container input[type="checkbox"] {
        width: 17px;
        height: 17px;
    }

    .donate-button {
        padding: 16px;
        font-size: 16px;
        margin-top: 24px;
    }

    .error-message {
        font-size: 10px;
        padding: 6px 10px;
    }
}

/* ===== Small Mobile (320px - 480px) ===== */
@media screen and (max-width: 480px) {

    /* Flash Notifications */
    .flash-notification {
        padding: 12px 14px;
        border-radius: var(--radius-lg);
    }

    .flash-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .flash-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .flash-message {
        font-size: 11px;
    }

    .flash-close {
        padding: 2px;
        font-size: 12px;
        min-width: 28px;
        min-height: 28px;
    }

    /* Donate Page */
    .donate-page {
        top: calc(60px + 0.25rem * 6);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    /* Hero Section */
    .donate-hero {
        min-height: 70vh;
        padding: 40px 10px 60px;
    }

    .hero-chakra-bg {
        width: 250px;
        height: 250px;
        opacity: 0.04;
    }

    .donate-hero-content {
        padding: 0 6px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 16px;
        gap: 5px;
    }

    .hero-badge i {
        font-size: 11px;
    }

    .hero-title {
        font-size: clamp(1.45rem, 4.5vw, 1.95rem);
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 24px;
        padding: 0;
    }

    .donate-impact {
        gap: 12px;
    }

    .donate-impact-item {
        padding: 16px 14px;
        gap: 12px;
        border-radius: var(--radius-lg);
        flex-direction: column;
        text-align: center;
    }

    .impact-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .impact-content {
        text-align: center;
    }

    .donate-impact-number {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .donate-impact-label {
        font-size: 11px;
    }

    /* Form Container */
    .donation-form-container {
        margin-top: -45px;
        padding: 0 10px 40px;
    }

    .form-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .form-card::before {
        height: 3px;
    }

    /* Form Header */
    .form-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .form-header {
        margin-bottom: 32px;
    }

    .form-header h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .form-header p {
        font-size: 13px;
    }

    /* Form Sections */
    .form-section {
        margin-bottom: 20px;
    }

    .section-label {
        font-size: 13px;
        margin-bottom: 10px;
        gap: 6px;
    }

    .section-label i {
        font-size: 12px;
    }

    /* Donation Type Selector */
    .donation-type-selector {
        gap: 12px;
    }

    .type-label {
        padding: 14px;
        gap: 10px;
        border-radius: var(--radius-lg);
    }

    .type-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .type-title {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .type-subtitle {
        font-size: 11px;
    }

    /* Amount Selector */
    .amount-selector {
        margin-top: 14px;
    }

    .amount-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 14px;
    }

    .amount-label {
        padding: 11px 8px;
        border-radius: var(--radius-lg);
    }

    .amount-currency {
        font-size: 11px;
    }

    .amount-value {
        font-size: 15px;
        margin-top: 3px;
    }

    .custom-label {
        gap: 7px;
    }

    .custom-label i {
        font-size: 14px;
    }

    .custom-label span {
        font-size: 15px;
    }

    .custom-amount-container {
        margin-top: 14px;
    }

    .custom-amount-input-wrapper {
        max-width: 180px;
    }

    .custom-amount-input {
        padding: 12px 12px 12px 34px;
        font-size: 13px;
        border-radius: var(--radius-lg);
    }

    .currency-symbol {
        left: 12px;
        font-size: 13px;
    }

    .amount-display {
        font-size: 18px;
        margin-top: 10px;
    }

    /* Donor Information */
    .donor-info-grid {
        gap: 12px;
    }

    .form-group {
        position: relative;
    }

    .form-label {
        font-size: 11px;
        margin-bottom: 5px;
        gap: 5px;
    }

    .form-label i {
        font-size: 10px;
    }

    .form-input {
        padding: 12px;
        font-size: 13px;
        border-radius: var(--radius-lg);
    }

    textarea.form-input {
        min-height: 65px;
        resize: vertical;
    }

    /* Tax Exemption */
    .tax-exemption-fields {
        padding: 10px;
        margin-top: 12px;
        border-radius: var(--radius-lg);
    }

    /* Terms Checkbox */
    .terms-checkbox-container {
        margin-top: 16px;
        gap: 7px;
    }

    .terms-checkbox-container label {
        font-size: 11px;
        line-height: 1.4;
    }

    .terms-checkbox-container input[type="checkbox"] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* Donate Button */
    .donate-button {
        padding: 14px;
        font-size: 15px;
        margin-top: 20px;
        border-radius: var(--radius-lg);
    }

    .button-content {
        gap: 8px;
    }

    .button-content i {
        font-size: 14px;
    }

    .button-loading {
        gap: 6px;
        font-size: 14px;
    }

    .button-loading i {
        font-size: 14px;
    }

    /* Error Message */
    .error-message {
        font-size: 10px;
        padding: 6px 9px;
        margin-top: 3px;
        border-radius: var(--radius-sm);
    }
}

/* ===== Extra Small Mobile (320px - 375px) ===== */
@media screen and (max-width: 375px) {
    .donate-hero {
        min-height: 68vh;
        padding: 36px 9px 55px;
    }

    .hero-chakra-bg {
        width: 220px;
        height: 220px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 4px 9px;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: clamp(1.35rem, 4vw, 1.75rem);
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .donate-impact {
        gap: 11px;
    }

    .donate-impact-item {
        padding: 14px 12px;
    }

    .impact-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .donate-impact-number {
        font-size: 17px;
    }

    .donate-impact-label {
        font-size: 10px;
    }

    .donation-form-container {
        margin-top: -42px;
        padding: 0 9px 36px;
    }

    .form-card {
        padding: 18px 14px;
    }

    .form-icon {
        width: 46px;
        height: 46px;
        font-size: 17px;
        margin-bottom: 9px;
    }

    .form-header {
        margin-bottom: 28px;
    }

    .form-header h2 {
        font-size: 19px;
        margin-bottom: 4px;
    }

    .form-header p {
        font-size: 12px;
    }

    .form-section {
        margin-bottom: 18px;
    }

    .section-label {
        font-size: 12px;
        margin-bottom: 9px;
    }

    .type-label {
        padding: 13px;
    }

    .type-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .type-title {
        font-size: 12px;
    }

    .type-subtitle {
        font-size: 10px;
    }

    .amount-grid {
        gap: 7px;
        margin-bottom: 12px;
    }

    .amount-label {
        padding: 10px 7px;
    }

    .amount-currency {
        font-size: 10px;
    }

    .amount-value {
        font-size: 14px;
    }

    .custom-label {
        width: 100%;
        max-width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }

    .custom-label span {
        font-size: 14px;
    }

    .custom-amount-container {
        width: 100%;
        max-width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }

    .custom-amount-input-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .custom-amount-input {
        width: 100%;
        max-width: 100%;
        padding: 11px 11px 11px 32px;
        font-size: 12px;
        box-sizing: border-box;
    }

    .currency-symbol {
        left: 11px;
        font-size: 12px;
    }

    .amount-display {
        font-size: 17px;
    }

    .donor-info-grid {
        gap: 11px;
    }

    .form-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .form-input {
        padding: 11px;
        font-size: 12px;
    }

    textarea.form-input {
        min-height: 60px;
    }

    .tax-exemption-fields {
        padding: 9px;
    }

    .terms-checkbox-container {
        margin-top: 14px;
    }

    .terms-checkbox-container label {
        font-size: 10px;
    }

    .terms-checkbox-container input[type="checkbox"] {
        width: 15px;
        height: 15px;
    }

    .donate-button {
        padding: 13px;
        font-size: 14px;
        margin-top: 18px;
    }

    .error-message {
        font-size: 9px;
        padding: 5px 8px;
    }
}

/* ===== Ultra Small Mobile (320px and below) ===== */
@media screen and (max-width: 320px) {
    .donate-page {
        top: calc(60px);
    }

    .donate-hero {
        min-height: 66vh;
        padding: 32px 8px 50px;
    }

    .hero-chakra-bg {
        width: 200px;
        height: 200px;
        opacity: 0.03;
    }

    .hero-badge {
        font-size: 9px;
        padding: 4px 8px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .donate-impact {
        gap: 10px;
    }

    .donate-impact-item {
        padding: 12px 10px;
        gap: 10px;
    }

    .impact-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .donate-impact-number {
        font-size: 16px;
    }

    .donate-impact-label {
        font-size: 9px;
    }

    .donation-form-container {
        margin-top: -38px;
        padding: 0 8px 32px;
    }

    .form-card {
        padding: 16px 12px;
    }

    .form-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .form-header {
        margin-bottom: 24px;
    }

    .form-header h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .form-header p {
        font-size: 11px;
    }

    .form-section {
        margin-bottom: 16px;
    }

    .section-label {
        font-size: 11px;
        margin-bottom: 8px;
        gap: 5px;
    }

    .section-label i {
        font-size: 10px;
    }

    .donation-type-selector {
        gap: 10px;
    }

    .type-label {
        padding: 12px;
        gap: 8px;
    }

    .type-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .type-title {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .type-subtitle {
        font-size: 9px;
    }

    .amount-selector {
        margin-top: 12px;
    }

    .amount-grid {
        gap: 6px;
        margin-bottom: 10px;
    }

    .amount-label {
        padding: 9px 6px;
    }

    .amount-currency {
        font-size: 9px;
    }

    .amount-value {
        font-size: 13px;
        margin-top: 2px;
    }

    .custom-label {
        gap: 6px;
    }

    .custom-label i {
        font-size: 12px;
    }

    .custom-label {
        width: 100%;
        max-width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }

    .custom-label span {
        font-size: 13px;
    }

    .custom-amount-container {
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
        padding: 0 2px;
        box-sizing: border-box;
    }

    .custom-amount-input-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .custom-amount-input {
        width: 100%;
        max-width: 100%;
        padding: 10px 10px 10px 30px;
        font-size: 11px;
        box-sizing: border-box;
    }

    .currency-symbol {
        left: 10px;
        font-size: 11px;
    }

    .amount-display {
        font-size: 16px;
        margin-top: 9px;
    }

    .donor-info-grid {
        gap: 10px;
    }

    .form-label {
        font-size: 9px;
        margin-bottom: 4px;
        gap: 4px;
    }

    .form-label i {
        font-size: 9px;
    }

    .form-input {
        padding: 10px;
        font-size: 11px;
    }

    textarea.form-input {
        min-height: 55px;
    }

    .tax-exemption-fields {
        padding: 8px;
        margin-top: 10px;
    }

    .terms-checkbox-container {
        margin-top: 12px;
        gap: 6px;
    }

    .terms-checkbox-container label {
        font-size: 9px;
    }

    .terms-checkbox-container input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .donate-button {
        padding: 12px;
        font-size: 13px;
        margin-top: 16px;
    }

    .button-content {
        gap: 7px;
    }

    .button-content i {
        font-size: 12px;
    }

    .button-loading {
        gap: 5px;
        font-size: 12px;
    }

    .error-message {
        font-size: 8px;
        padding: 5px 7px;
    }

    .flash-notification {
        padding: 10px 12px;
        gap: 8px;
    }
}

/* ===== Tiny Mobile (345px and below) ===== */
@media screen and (max-width: 345px) {

    /* Form Container - Reduce padding to prevent overflow */
    .donation-form-container {
        padding: 0 6px 32px;
    }

    .form-card {
        padding: 14px 10px;
    }

    /* Form Inputs - Ensure they fit within screen */
    .form-input {
        width: 100%;
        max-width: 100%;
        padding: 9px 8px;
        font-size: 11px;
        box-sizing: border-box;
    }

    textarea.form-input {
        min-height: 50px;
        padding: 9px 8px;
    }

    /* Form Groups - Ensure no overflow */
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .donor-info-grid {
        gap: 9px;
    }

    /* Labels - Smaller to save space */
    .form-label {
        font-size: 9px;
        margin-bottom: 3px;
        gap: 3px;
    }

    .form-label i {
        font-size: 8px;
    }

    /* Section Labels */
    .section-label {
        font-size: 10px;
        margin-bottom: 7px;
        gap: 4px;
    }

    .section-label i {
        font-size: 9px;
    }

    /* Form Header */
    .form-header h2 {
        font-size: 17px;
    }

    .form-header p {
        font-size: 10px;
    }

    /* Amount Grid */
    .amount-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        width: 100%;
        max-width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }

    .amount-option {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .amount-label {
        width: 100%;
        max-width: 100%;
        padding: 8px 5px;
        box-sizing: border-box;
    }

    /* Custom Amount Input */
    /* Custom Amount Input */
    .custom-label {
        width: 100%;
        max-width: 100%;
        padding: 8px 5px;
        box-sizing: border-box;
        justify-content: center;
    }

    .custom-label span {
        font-size: 11px;
    }

    .custom-label i {
        font-size: 10px;
    }

    .custom-amount-container {
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        padding: 0;
        box-sizing: border-box;
    }

    .custom-amount-input-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .custom-amount-input {
        width: 100%;
        max-width: 100%;
        padding: 9px 9px 9px 28px;
        font-size: 10px;
        box-sizing: border-box;
    }

    .currency-symbol {
        font-size: 10px;
        left: 10px;
    }

    /* Tax Exemption Fields */
    .tax-exemption-fields {
        padding: 7px;
        margin-top: 9px;
    }

    /* Terms Checkbox */
    .terms-checkbox-container {
        margin-top: 10px;
        gap: 5px;
        padding: 0 2px;
    }

    .terms-checkbox-container label {
        font-size: 9px;
        line-height: 1.3;
    }

    .terms-checkbox-container input[type="checkbox"] {
        width: 13px;
        height: 13px;
    }

    /* Donate Button */
    .donate-button {
        padding: 11px 8px;
        font-size: 12px;
        margin-top: 14px;
    }

    .button-content {
        gap: 6px;
    }

    .button-content i {
        font-size: 11px;
    }

    .button-loading {
        gap: 5px;
        font-size: 11px;
    }

    /* Error Messages */
    .error-message {
        font-size: 8px;
        padding: 4px 6px;
    }

    /* Type Labels */
    .type-label {
        padding: 11px 8px;
        gap: 7px;
    }

    .type-icon {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .type-title {
        font-size: 10px;
    }

    .type-subtitle {
        font-size: 8px;
    }

    /* Hero Section */
    .donate-hero {
        padding: 30px 6px 48px;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 11px;
    }

    /* Impact Items */
    .donate-impact-item {
        padding: 11px 9px;
    }

    .impact-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .donate-impact-number {
        font-size: 15px;
    }

    .donate-impact-label {
        font-size: 8px;
    }
}