/**
 * Support/Funding Page Mobile Enhancements
 * Optimizes donation and newsletter signup for mobile supporters
 * 
 * Perfect for mobile funding and community building
 */

@media (max-width: 768px) {
    
    /* ============================================
       MOBILE LAYOUT OPTIMIZATION
       ============================================ */
    
    .container {
        padding: 30px 15px !important;
        min-height: auto !important;
        justify-content: flex-start !important;
    }
    
    /* ============================================
       MOBILE HEADER SECTION
       ============================================ */
    
    header {
        margin-bottom: 30px !important;
    }
    
    .logo {
        font-size: 2.2em !important;
        letter-spacing: 2px !important;
        margin-bottom: 8px !important;
    }
    
    .tagline {
        font-size: 1.1em !important;
        letter-spacing: 1px !important;
    }
    
    /* ============================================
       MOBILE MAIN CONTENT
       ============================================ */
    
    .main-content {
        padding: 25px !important;
        border-radius: 12px !important;
        margin-bottom: 25px !important;
        background: linear-gradient(135deg, #0a0a0a 0%, #111 100%) !important;
        border: 1px solid #333 !important;
    }
    
    h1 {
        font-size: 2em !important;
        margin-bottom: 15px !important;
        color: #fff;
    }
    
    .subtitle {
        font-size: 1em !important;
        margin-bottom: 25px !important;
        color: #999 !important;
        line-height: 1.5;
    }
    
    .explanation {
        font-size: 0.95em !important;
        line-height: 1.7 !important;
        margin-bottom: 25px !important;
    }
    
    .explanation p {
        margin-bottom: 15px !important;
        color: #e8e8e8;
    }
    
    .explanation strong {
        color: #4ecdc4;
        font-weight: 600;
    }
    
    /* ============================================
       MOBILE FORM SECTIONS
       ============================================ */
    
    .form-section {
        padding: 20px !important;
        border-radius: 10px !important;
        margin-bottom: 20px !important;
        background: #111 !important;
        border: 1px solid #444 !important;
    }
    
    .form-section h2 {
        font-size: 1.4em !important;
        color: #fff !important;
        margin-bottom: 12px !important;
        font-weight: 600;
        text-align: center;
    }
    
    .form-section p {
        font-size: 0.9em !important;
        color: #ccc !important;
        margin-bottom: 15px !important;
        text-align: center;
        line-height: 1.5;
    }
    
    /* ============================================
       MOBILE FORM INPUTS
       ============================================ */
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        font-size: 0.9em;
        color: #ccc;
        margin-bottom: 6px;
        font-weight: 500;
    }
    
    .form-group input[type="email"],
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        min-height: 48px !important;
        padding: 12px 16px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
        border: 2px solid #333 !important;
        border-radius: 10px !important;
        background: #222 !important;
        color: #fff !important;
        font-family: inherit;
        transition: border-color 0.3s ease;
    }
    
    .form-group textarea {
        min-height: 100px !important;
        resize: vertical;
        line-height: 1.5;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #4ecdc4 !important;
        outline: none;
        box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #666;
        font-style: italic;
    }
    
    /* Custom select styling */
    .form-group select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 16px;
        padding-right: 40px;
    }
    
    /* ============================================
       MOBILE DONATION AMOUNTS
       ============================================ */
    
    .donation-amounts {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 15px;
    }
    
    .amount-btn {
        min-height: 48px !important;
        padding: 12px 16px !important;
        font-size: 1em !important;
        border-radius: 10px !important;
        background: #333 !important;
        color: #ccc !important;
        border: 1px solid #444 !important;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .amount-btn.active {
        background: rgba(78, 205, 196, 0.2) !important;
        color: #4ecdc4 !important;
        border-color: #4ecdc4 !important;
    }
    
    .amount-btn:active {
        transform: scale(0.98);
    }
    
    .custom-amount {
        grid-column: 1 / -1;
        margin-top: 8px;
    }
    
    /* ============================================
       MOBILE SUBMIT BUTTONS
       ============================================ */
    
    .submit-btn,
    .donation-btn,
    .newsletter-btn {
        width: 100% !important;
        min-height: 54px !important;
        background: linear-gradient(135deg, #4ecdc4 0%, #44b3a8 100%) !important;
        color: #000 !important;
        border: none !important;
        border-radius: 12px !important;
        font-size: 1.1em !important;
        font-weight: 600 !important;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px;
        box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
        margin-top: 15px;
        text-transform: none;
        letter-spacing: 0.5px;
    }
    
    .submit-btn::before,
    .donation-btn::before {
        content: "💰";
        font-size: 1.3em;
    }
    
    .newsletter-btn::before {
        content: "📧";
        font-size: 1.3em;
    }
    
    .submit-btn:hover:not(:disabled),
    .donation-btn:hover:not(:disabled),
    .newsletter-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    }
    
    .submit-btn:active:not(:disabled),
    .donation-btn:active:not(:disabled),
    .newsletter-btn:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
    }
    
    .submit-btn:disabled,
    .donation-btn:disabled,
    .newsletter-btn:disabled {
        background: #333 !important;
        color: #666 !important;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
    
    /* Secondary action buttons */
    .secondary-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .secondary-btn::before {
        content: "🔗";
    }
    
    .secondary-btn:hover,
    .secondary-btn:active {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    
    /* ============================================
       MOBILE PAYMENT METHODS
       ============================================ */
    
    .payment-methods {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 20px;
    }
    
    .payment-method {
        display: flex !important;
        align-items: center !important;
        padding: 15px !important;
        background: #0a0a0a !important;
        border: 1px solid #333 !important;
        border-radius: 10px !important;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .payment-method.active {
        border-color: #4ecdc4 !important;
        background: rgba(78, 205, 196, 0.05) !important;
    }
    
    .payment-method:active {
        transform: scale(0.98);
    }
    
    .payment-icon {
        font-size: 1.5em;
        margin-right: 12px;
        width: 24px;
        text-align: center;
    }
    
    .payment-info {
        flex: 1;
    }
    
    .payment-name {
        font-size: 1em;
        color: #fff;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .payment-desc {
        font-size: 0.85em;
        color: #888;
    }
    
    /* ============================================
       MOBILE SUCCESS/ERROR MESSAGES
       ============================================ */
    
    .status-message {
        padding: 15px 20px !important;
        border-radius: 10px !important;
        font-size: 0.95em !important;
        text-align: center;
        margin-bottom: 20px;
        font-weight: 500;
        border: 1px solid transparent;
    }
    
    .status-success {
        background: rgba(78, 205, 196, 0.1) !important;
        color: #4ecdc4 !important;
        border-color: #4ecdc4 !important;
    }
    
    .status-error {
        background: rgba(255, 107, 107, 0.1) !important;
        color: #ff6b6b !important;
        border-color: #ff4444 !important;
    }
    
    .status-info {
        background: rgba(102, 126, 234, 0.1) !important;
        color: #667eea !important;
        border-color: #667eea !important;
    }
    
    /* ============================================
       MOBILE PROGRESS INDICATORS
       ============================================ */
    
    .progress-steps {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 25px !important;
        padding: 0 10px;
    }
    
    .progress-step {
        flex: 1;
        text-align: center;
        position: relative;
    }
    
    .progress-step::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 100%;
        width: 100%;
        height: 2px;
        background: #333;
        transform: translateY(-50%);
        z-index: -1;
    }
    
    .progress-step:last-child::before {
        display: none;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #333;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 8px;
        font-size: 0.8em;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .progress-step.active .step-circle {
        background: #4ecdc4;
        color: #000;
    }
    
    .progress-step.completed .step-circle {
        background: #4ecdc4;
        color: #000;
    }
    
    .step-label {
        font-size: 0.75em;
        color: #888;
        font-weight: 500;
    }
    
    .progress-step.active .step-label {
        color: #4ecdc4;
    }
    
    /* ============================================
       MOBILE TESTIMONIALS/QUOTES
       ============================================ */
    
    .testimonial {
        background: rgba(102, 126, 234, 0.1) !important;
        border: 1px solid #667eea !important;
        border-radius: 10px !important;
        padding: 20px !important;
        margin: 20px 0 !important;
        font-style: italic;
        position: relative;
    }
    
    .testimonial::before {
        content: """;
        font-size: 3em;
        color: #667eea;
        position: absolute;
        top: -5px;
        left: 15px;
        line-height: 1;
    }
    
    .testimonial-text {
        font-size: 0.95em;
        color: #ccc;
        line-height: 1.6;
        margin-bottom: 12px;
        padding-left: 20px;
    }
    
    .testimonial-author {
        font-size: 0.85em;
        color: #8fa7ff;
        text-align: right;
        font-weight: 500;
    }
    
    /* ============================================
       MOBILE FOOTER
       ============================================ */
    
    footer {
        margin-top: 30px !important;
        padding-top: 25px !important;
        font-size: 0.8em !important;
        color: #666 !important;
        text-align: center;
        border-top: 1px solid #333;
        line-height: 1.5;
    }
    
    /* ============================================
       MOBILE KEYBOARD OPTIMIZATIONS
       ============================================ */
    
    /* Ensure forms don't get covered by keyboard */
    .form-group input:focus,
    .form-group textarea:focus {
        scroll-margin-top: 20px;
        scroll-margin-bottom: 120px;
    }
    
    /* iOS keyboard handling */
    body.keyboard-open .footer,
    body.keyboard-open .testimonial {
        display: none !important;
    }
    
    /* ============================================
       MOBILE UTILITY CLASSES
       ============================================ */
    
    .mobile-hidden { display: none !important; }
    .mobile-only { display: block !important; }
    .mobile-center { text-align: center !important; }
    .mobile-full-width { width: 100% !important; }
    .mobile-stack { flex-direction: column !important; }
    .mobile-small-text { font-size: 0.85em !important; }
    
    /* ============================================
       MOBILE ACCESSIBILITY ENHANCEMENTS
       ============================================ */
    
    /* Enhanced touch targets */
    .amount-btn,
    .payment-method,
    .submit-btn,
    .donation-btn,
    .newsletter-btn {
        min-height: 48px !important;
        touch-action: manipulation;
    }
    
    /* Better focus indicators */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus,
    .submit-btn:focus {
        box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.5) !important;
    }
    
    /* Improved contrast for mobile screens */
    .explanation p,
    .form-section p {
        color: #e8e8e8 !important;
    }
    
    .form-group label {
        color: #ddd !important;
    }
}