/* ===== ОБЩИЕ СТИЛИ САЙТА ===== */

/* Улучшение touch handling для мобильных */
#header {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Убираем highlight для кнопок телефона и меню */
#header button,
#header a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Убираем highlight при нажатии на пункты меню */
#mobile-menu a,
#mobile-menu span {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Скрываем скроллбар */
::-webkit-scrollbar {
    display: none;
}

/* Запрет изменения размера textarea и автоскролл */
textarea {
    resize: none !important;
    overflow-y: auto !important;
}

/* ===== COUNTRY SELECTOR & PHONE INPUT ===== */

.country-selector-wrapper {
    position: relative;
}

.phone-field-container {
    transition: border-color 0.2s ease;
}

#feedback-country-dropdown,
#desktop-country-dropdown,
#mobile-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 200px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

#feedback-countries-list,
#desktop-countries-list,
#mobile-countries-list {
    max-height: 280px;
    overflow-y: auto;
}

#feedback-countries-list > div,
#desktop-countries-list > div,
#mobile-countries-list > div {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#feedback-countries-list > div:hover,
#desktop-countries-list > div:hover,
#mobile-countries-list > div:hover {
    background-color: #f3f4f6;
}

/* ===== MAP STYLES ===== */

.map-container {
    position: relative;
}

/* ===== MODAL & OVERLAY ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* ===== TAILWIND CUSTOM COLORS ===== */

.text-green-primary { color: #9cc11e; }
.bg-green-primary { background-color: #9cc11e; }
.border-green-primary { border-color: #9cc11e; }

.text-green-secondary { color: #b3d147; }
.bg-green-secondary { background-color: #b3d147; }

.text-green-light { color: #e8f5d0; }
.bg-green-light { background-color: #e8f5d0; }

.text-green-dark { color: #7a9818; }
.bg-green-dark { background-color: #7a9818; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .phone-field-container {
        flex-direction: row;
    }
}

/* ===== ACCESSIBILITY ===== */

/* Screen Reader Only - скрывает элемент визуально, но оставляет для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Показываем элемент при фокусе (для навигации с клавиатуры) */
.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: #9cc11e;
    color: white;
    z-index: 9999;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}
