/* Плавающая кнопка почты + модалка «написать нам».
 * Подключается через MailContactAsset из views/layouts/_mailContact.php.
 */

.mail-contact-floating-btn {
    position: fixed;
    right: 39px;      /* место бывшей плавающей кнопки WhatsApp */
    bottom: 100px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    cursor: pointer;
    /* над шапкой (9999), но под backdrop модалки (10040) */
    z-index: 10030;
    transition: transform 0.3s ease;
    animation: mailContactFadeIn 0.4s ease 0.3s backwards;
}

.mail-contact-floating-btn:hover {
    transform: scale(1.1);
}

.mail-contact-floating-btn svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 22%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

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

/* На мобильных кнопка почты живёт в шапке (contact-mobile-btn), плавающая не нужна */
@media (max-width: 767px) {
    .mail-contact-floating-btn {
        display: none;
    }
}

/* Модалки выше фиксированной шапки (z-index 9999). Значения те же, что в
 * booking-modal-fix.css (он грузится только на страницах бронирования) -
 * на общих страницах правила совпадают, конфликта нет. */
.modal-backdrop {
    z-index: 10040 !important;
}
.modal {
    z-index: 10050 !important;
}

#modalMailContact .modal-dialog {
    max-width: 420px;
}

@media (min-width: 768px) {
    #modalMailContact .modal-dialog {
        margin: 90px auto 30px;
    }
}

/* Honeypot: за экран, не display:none (часть ботов его распознаёт) */
.mail-contact-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#mailContactSuccess .fa-check-circle {
    font-size: 48px;
    color: #27ae60;
}
