/* ========= СТРАНИЦА КОНТАКТОВ ========= */
.contact-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
    position: relative; /* Добавлено */
    z-index: 1; /* Добавлено */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(42,125,46,0.12);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(42,125,46,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.work-hours-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.work-hours-item:last-child {
    border-bottom: none;
}

.work-hours-day {
    font-weight: 600;
    color: #495057;
}

.work-hours-time {
    color: var(--primary-color);
    font-weight: 500;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
    position: relative; /* Добавлено */
    z-index: 2; /* Добавлено */
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn.telegram { background: #0088cc; }
.social-btn.vk { background: #4c75a3; }
.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
}
.social-btn.whatsapp { background: #25d366; }
.social-btn.youtube { background: #ff0000; }

/* ========= СТИЛИ ДЛЯ ФОРМЫ ========= */
.contact-card .form-control,
.contact-card .form-select {
    background: white;
    border: 1px solid #ced4da;
    position: relative; /* Добавлено */
    z-index: 3; /* Добавлено */
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(42, 125, 46, 0.15);
    outline: none;
    transform: none; /* Убираем transform */
    position: relative;
    z-index: 4;
}

/* Стили для поля телефона */
.contact-card input[name="phone"] {
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Упрощенные стили для автозаполнения - убираем конфликтующие свойства */
.contact-card input:-webkit-autofill,
.contact-card input:-webkit-autofill:hover,
.contact-card input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    background-color: white !important;
    -webkit-text-fill-color: #495057 !important;
    /* Убираем лишние свойства, которые могут вызывать конфликты */
    transition: none !important;
    -webkit-transition: none !important;
    position: relative;
    z-index: 9999;
}

/* Для Firefox */
.contact-card input:autofill {
    background-color: white !important;
    color: #495057 !important;
    box-shadow: 0 0 0 30px white inset !important;
}

/* Добавляем стили для окна автозаполнения */
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

/* Обеспечиваем, что окно автозаполнения не перекрывается */
input {
    position: relative;
    z-index: 9999;
}

/* Убираем transform и transition у всех инпутов при любых состояниях */
.contact-card input,
.contact-card input:hover,
.contact-card input:focus,
.contact-card input:active {
    transform: none !important;
    transition: none !important;
}

/* Убираем transform у родительских элементов при hover */
.contact-card:hover {
    transform: translateY(-5px); /* Оставляем, но проверяем */
}

/* Убираем transform у самой формы и ее родителей */
form,
.contact-card,
.container,
.row,
.col-lg-6 {
    transform: none !important;
    transition: none !important;
}

/* Добавляем это для отладки - если ничего не поможет */
.contact-card input:-webkit-autofill {
    animation: none !important;
    -webkit-animation: none !important;
}