/* Улучшение видимости иконки глаза для версии слабовидящих */
#specialButton img {
    filter: drop-shadow(0 0 3px white) drop-shadow(0 0 3px white) drop-shadow(0 0 5px white) !important;
}

/* Альтернативный селектор для иконки глаза */
a[href="#"] img[src*="special.png"] {
    filter: drop-shadow(0 0 3px white) drop-shadow(0 0 3px white) drop-shadow(0 0 5px white) !important;
}


/* ========================================== */
/* СТИЛИ ДЛЯ NEYROLIFE - ДОБАВИТЬ В ТИЛЬДУ */
/* Настройки сайта → Добавление CSS-кода */
/* ========================================== */

/* ========================================== */
/* ПРОГРЕСС-БАРЫ (для Apps Script) */
/* ========================================== */

.fundraising-block {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 30px;
}

.amounts {
    margin-bottom: 12px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}

.amount-label {
    color: #999999;
}

.amount-value {
    font-weight: 600;
    color: #000000;
}

.progress-bar {
    width: 100%;
    height: 32px;
    background: #F5F5F5;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1f4037 0%, #2d5a4d 100%);
    border-radius: 16px;
    transition: width 0.8s ease-out;
    display: flex;
    align-items: center;
    padding-left: 14px;
    min-width: 50px;
}

.progress-percent {
    font-size: 13px;
    font-weight: 700;
    color: white;
}

/* ========================================== */
/* ФОРМА ОПЛАТЫ */
/* ========================================== */

.payment-box {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.payment-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f4037;
    text-align: center;
    margin-bottom: 24px;
}

.amounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.amount-card {
    padding: 20px 12px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.amount-card .value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.amount-card .label {
    font-size: 14px;
    color: #999;
}

.amount-card:hover,
.amount-card:active {
    border-color: #1f4037;
    background: #f8faf9;
}

.amount-card.active {
    background: #1f4037;
    border-color: #1f4037;
}

.amount-card.active .value,
.amount-card.active .label {
    color: white;
}

.or-divider {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 20px 0;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 50px 18px 18px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.input-wrapper input:focus {
    border-color: #1f4037;
}

.input-wrapper .rub-sign {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #999;
    pointer-events: none;
}

.input-wrapper input::-webkit-outer-spin-button,
.input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slider-wrapper {
    margin-bottom: 24px;
}

#amountSlider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #E0E0E0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    touch-action: none;
}

#amountSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1f4037;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(31, 64, 55, 0.3);
    transition: transform 0.1s;
}

#amountSlider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

#amountSlider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1f4037;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(31, 64, 55, 0.3);
    transition: transform 0.1s;
}

#amountSlider::-moz-range-thumb:active {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

#sliderValue {
    font-size: 16px;
    font-weight: 700;
    color: #1f4037;
}

.checkboxes {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    line-height: 1.5;
}

.checkbox-text a {
    color: #1f4037;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-text a:hover,
.checkbox-text a:active {
    text-decoration: underline;
}

.pay-button {
    width: 80%;
    margin: 0 auto;
    display: block;
    padding: 18px;
    background: linear-gradient(135deg, #1f4037 0%, #2d5a4d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.pay-button:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(31, 64, 55, 0.2);
}

.pay-button:disabled {
    background: #CCC;
    cursor: not-allowed;
}

.secure-text {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 16px;
}

/* ========================================== */
/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ */
/* ========================================== */

@media (max-width: 640px) {
    /* Прогресс-бары */
    .amount-row {
        font-size: 13px;
    }
    
    /* Форма оплаты */
    .payment-box {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .payment-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .amounts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .amount-card {
        padding: 18px 16px;
    }
    
    .amount-card .value {
        font-size: 22px;
    }
    
    .input-wrapper input {
        padding: 16px 50px 16px 16px;
        font-size: 16px;
    }
    
    .input-wrapper .rub-sign {
        font-size: 16px;
    }
    
    #amountSlider {
        height: 12px;
    }
    
    #amountSlider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }
    
    #amountSlider::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }
    
    .slider-labels {
        font-size: 11px;
    }
    
    #sliderValue {
        font-size: 14px;
    }
    
    .checkbox-label {
        font-size: 12px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
    
    .pay-button {
        width: 100%;
        padding: 16px;
        font-size: 17px;
    }
    
    .secure-text {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .payment-box {
        padding: 16px 12px;
    }
    
    .payment-title {
        font-size: 18px;
    }
    
    .amount-card .value {
        font-size: 20px;
    }
    
    .slider-labels {
        font-size: 10px;
    }
}

/* ========================================== */
/* УЛУЧШЕНИЯ ДЛЯ iOS */
/* ========================================== */

@supports (-webkit-touch-callout: none) {
    .payment-box {
        -webkit-overflow-scrolling: touch;
    }
    
    .pay-button {
        -webkit-appearance: none;
    }
    
    input[type="number"] {
        -webkit-appearance: none;
    }
}

/* ========================================== */
/* ОБЩИЕ УЛУЧШЕНИЯ */
/* ========================================== */

* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}