/* Interactive Donation Tier Slider */

/* ==================== DONATION TIER SECTION ==================== */

.donation-tier-section {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    padding: 6rem 0;
    position: relative;
}

.tier-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tier-selector {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(26, 95, 60, 0.1);
}

.tier-display {
    text-align: center;
    margin-bottom: 3rem;
}

.tier-amount-display {
    font-size: 5rem;
    font-weight: 700;
    color: #1A5F3C;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.tier-name {
    font-size: 2rem;
    color: #D4A017;
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 3rem;
}

.tier-impact {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    min-height: 3rem;
    line-height: 1.6;
}

/* ==================== TIER SLIDER ==================== */

.tier-slider-container {
    position: relative;
    padding: 2rem 0;
}

.tier-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(90deg,
            #1A5F3C 0%,
            #3A9D7C 25%,
            #5ABDA0 50%,
            #8ACDB8 75%,
            #D4A017 100%);
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tier-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 4px solid #1A5F3C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.tier-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tier-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 4px solid #1A5F3C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.tier-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tier-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.tier-marker {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.tier-marker-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
}

/* ==================== CUSTOM AMOUNT ==================== */

.custom-amount-toggle {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-amount-input {
    display: none;
    margin-top: 1rem;
}

.custom-amount-input.active {
    display: block;
}

.custom-input-wrapper {
    position: relative;
    max-width: 300px;
    margin: 1rem auto;
}

.custom-input-wrapper::before {
    content: '$';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #1A5F3C;
    font-weight: 700;
}

.custom-input-wrapper input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    font-size: 1.5rem;
    border: 2px solid #1A5F3C;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}

.custom-input-wrapper input:focus {
    outline: none;
    border-color: #D4A017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.toggle-custom-btn {
    background: transparent;
    border: 2px solid #1A5F3C;
    color: #1A5F3C;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.toggle-custom-btn:hover {
    background: #1A5F3C;
    color: white;
}

/* ==================== DONATION ACTIONS ==================== */

.tier-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    justify-content: center;
}

.tier-btn {
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.tier-btn-primary {
    background: linear-gradient(135deg, #1A5F3C 0%, #0A3D0F 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(26, 95, 60, 0.3);
}

.tier-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26, 95, 60, 0.4);
}

.tier-btn-secondary {
    background: white;
    color: #1A5F3C;
    border: 2px solid #1A5F3C;
}

.tier-btn-secondary:hover {
    background: rgba(26, 95, 60, 0.05);
}

/* ==================== VISUAL FEEDBACK ==================== */

.tier-visual {
    margin: 2rem 0;
    text-align: center;
}

.waterfall-fill {
    max-width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, #E8F4F0 0%, #D0E8E0 100%);
    border: 3px solid #1A5F3C;
}

.waterfall-fill::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #3A9D7C 0%, #1A5F3C 100%);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .tier-amount-display {
        font-size: 3.5rem;
    }

    .tier-name {
        font-size: 1.5rem;
    }

    .tier-impact {
        font-size: 1.1rem;
    }

    .tier-selector {
        padding: 2rem 1.5rem;
    }

    .tier-actions {
        flex-direction: column;
    }

    .tier-btn {
        width: 100%;
        justify-content: center;
    }

    .tier-markers {
        font-size: 0.8rem;
    }

    .tier-marker-icon {
        font-size: 1.2rem;
    }
}