/**
 * Стили для блока контактов
 *
 * @package Empty_Theme
 */

/* Основные стили для секции контактов */
.contacts-section {
    padding: 70px 0 0;
    background: linear-gradient(135deg, #f2f6fa, #e9ecef, #e5edf5);
    position: relative;
    overflow: hidden;
    z-index: 1; /* Добавляем z-index для корректного порядка слоев */
}

/* Стили для заголовка */
.contacts-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #0071CE, #004b96, #0090ff, #00a1ff, #0071CE);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0071CE; /* Запасной цвет */
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
    animation: gradient-animation 5s ease infinite;
}

/* Анимация градиента для заголовка */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Стили для кнопок выбора локации */
.contacts-controls-container {
    margin-bottom: 30px;
}

.contacts-location-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.location-btn {
    padding: 12px 20px;
    background-color: #fff;
    border: 2px solid #0071CE;
    border-radius: 30px;
    color: #0071CE;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 113, 206, 0.1);
}

.location-btn:hover {
    background-color: #e5edf5;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 113, 206, 0.15);
}

.location-btn.active {
    background-color: #0071CE;
    color: #fff;
    font-weight: 700;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 113, 206, 0.25);
}

/* Контейнер для карты и информации */
.contacts-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Стили для карты */
.contacts-map-container {
    flex: 1 1 500px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 113, 206, 0.2);
}

/* Стили для блоков с информацией */
.contacts-info-blocks {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
}

.contact-info-block {
    display: none;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-block.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease forwards;
}

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

.contact-info-image {
    height: 200px;
    overflow: hidden;
}

.contact-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.contact-info-block:hover .contact-info-image img {
    transform: scale(1.05);
}

.contact-info-content {
    padding: 25px;
    flex-grow: 1;
}

.contact-info-title {
    font-size: 22px;
    font-weight: 700;
    color: #0071CE;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.contact-info-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.contact-info-item a {
    color: #0071CE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #005aa3;
    text-decoration: underline;
}

/* Иконки для контактной информации */
.contact-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-icon.location {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230071CE'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.contact-icon.phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230071CE'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.contact-icon.email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230071CE'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.contact-icon.time {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230071CE'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3Cpath d='M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

/* Стили для кнопки обратной связи */
.contacts-feedback-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 0; /* Убираем отступ снизу */
    padding-bottom: 30px; /* Добавляем нижний отступ в виде padding вместо margin */
}

.contact-feedback-button {
    display: inline-block;
    background-color: #0071CE;
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 113, 206, 0.3);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.contact-feedback-button:hover {
    background-color: #005da7;
    box-shadow: 0 8px 20px rgba(0, 113, 206, 0.4);
    transform: translateY(-3px);
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .contacts-section {
        padding: 60px 0 0;
    }

    .contacts-title {
        font-size: 32px;
    }

    .contacts-map-container {
        height: 350px;
    }

    .contact-info-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: 50px 0 0;
    }

    .contacts-title {
        font-size: 28px;
    }

    .location-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .contacts-map-container {
        flex: 1 1 100%;
        height: 300px;
        order: 1;
    }

    .contacts-info-blocks {
        flex: 1 1 100%;
        order: 2;
    }

    .contact-info-image {
        height: 180px;
    }

    .contact-info-content {
        padding: 20px;
    }

    .contact-info-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .contact-info-item {
        font-size: 14px;
        gap: 8px;
    }

    .contact-feedback-button {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .contacts-section {
        padding: 40px 0 0;
    }

    .contacts-title {
        font-size: 24px;
    }

    .contacts-location-buttons {
        gap: 10px;
    }

    .location-btn {
        padding: 8px 14px;
        font-size: 13px;
        flex: 1 1 auto;
    }

    .contacts-map-container {
        height: 250px;
    }

    .contact-info-image {
        height: 160px;
    }

    .contact-info-content {
        padding: 15px;
    }

    .contact-info-details {
        gap: 12px;
    }

    .contact-feedback-button {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }
}
