/* Fixed contact buttons + WhatsApp quote panel */
.movo-contact-fabs,
.movo-contact-fabs *,
.movo-contact-fabs *::before,
.movo-contact-fabs *::after {
    box-sizing: border-box;
}

.movo-contact-fabs {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: var(--primary-font, sans-serif);
    transition: bottom 0.3s ease-in-out;
}

body:has(#scrollup.show) .movo-contact-fabs {
    bottom: 85px;
}

.movo-phone-fab,
.movo-whatsapp-fab {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color, #fff);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease;
}

.movo-phone-fab {
    background-color: var(--primary-color, #df1119);
}

.movo-whatsapp-fab {
    background-color: #25d366;
}

.movo-phone-fab:hover,
.movo-phone-fab:focus,
.movo-whatsapp-fab:hover,
.movo-whatsapp-fab:focus {
    color: var(--white-color, #fff);
    opacity: 0.85;
    text-decoration: none;
    transform: translateY(-1px);
}

/* WhatsApp panel */
.movo-wa__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 340px;
    max-width: min(340px, calc(100vw - 24px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(4, 34, 62, 0.22);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.movo-contact-fabs.is-open .movo-wa__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.movo-wa__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-dark, #04223e);
    color: #fff;
}

.movo-wa__header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.movo-wa__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 20px;
}

.movo-wa__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.movo-wa__subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.85;
}

.movo-wa__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.movo-wa__body {
    padding: 16px;
    max-height: 62vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.movo-wa__intro {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
}

.movo-wa__field {
    margin-bottom: 12px;
    min-width: 0;
    width: 100%;
}

.movo-wa__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-dark, #04223e);
}

.movo-wa__field input,
.movo-wa__field select,
.movo-wa__field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--bg-dark, #04223e);
    background: #fff;
    outline: none;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.movo-wa__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2304223e' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.movo-wa__field input:focus,
.movo-wa__field select:focus,
.movo-wa__field textarea:focus {
    border-color: var(--primary-color, #df1119);
    box-shadow: 0 0 0 3px rgba(223, 17, 25, 0.15);
}

.movo-wa__field textarea {
    min-height: 72px;
    resize: vertical;
}

.movo-wa__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.movo-wa__submit {
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    background: #25d366;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.movo-wa__submit:hover {
    background: #1ebe57;
    color: #fff;
}

.movo-wa__error {
    display: none;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff4f4;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
}

.movo-wa__error.is-visible {
    display: block;
}

/* Hide theme nice-select leftovers inside WA form if any */
#movo-wa-widget .nice-select {
    display: none !important;
}

#movo-wa-widget select {
    display: block !important;
}

/* Preloader: MOVO / NAKLIYAT on two lines */
.preloader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 0.12em;
    line-height: 1.05;
}

.preloader-text > .preloader-line {
    display: block;
    position: static;
}

.preloader-text > .preloader-line:before {
    content: none !important;
    animation: none !important;
}

.preloader-text > .preloader-line > span {
    display: inline-block;
    position: relative;
}

.preloader-text > .preloader-line > span:before {
    color: var(--bg-dark);
    position: absolute;
    top: 0;
    left: 0;
    animation: text-loading 4s infinite;
    content: attr(data-text);
    opacity: 0;
    line-height: 1;
}

.preloader-text > .preloader-line:first-child > span:nth-child(1):before { animation-delay: 0s; }
.preloader-text > .preloader-line:first-child > span:nth-child(2):before { animation-delay: 0.1s; }
.preloader-text > .preloader-line:first-child > span:nth-child(3):before { animation-delay: 0.2s; }
.preloader-text > .preloader-line:first-child > span:nth-child(4):before { animation-delay: 0.3s; }

.preloader-text > .preloader-line:last-child > span:nth-child(1):before { animation-delay: 0.4s; }
.preloader-text > .preloader-line:last-child > span:nth-child(2):before { animation-delay: 0.5s; }
.preloader-text > .preloader-line:last-child > span:nth-child(3):before { animation-delay: 0.6s; }
.preloader-text > .preloader-line:last-child > span:nth-child(4):before { animation-delay: 0.7s; }
.preloader-text > .preloader-line:last-child > span:nth-child(5):before { animation-delay: 0.8s; }
.preloader-text > .preloader-line:last-child > span:nth-child(6):before { animation-delay: 0.9s; }
.preloader-text > .preloader-line:last-child > span:nth-child(7):before { animation-delay: 1s; }
.preloader-text > .preloader-line:last-child > span:nth-child(8):before { animation-delay: 1.1s; }

@media (max-width: 991px) {
    .movo-contact-fabs {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    body:has(#scrollup.show) .movo-contact-fabs {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    /* Keep panel inside the viewport on mobile */
    .movo-wa__panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: auto;
        top: 50%;
        width: auto;
        max-width: none;
        max-height: min(82vh, 680px);
        display: flex;
        flex-direction: column;
        transform: translateY(calc(-50% + 12px)) scale(0.98);
    }

    .movo-contact-fabs.is-open .movo-wa__panel {
        transform: translateY(-50%) scale(1);
    }

    .movo-wa__body {
        max-height: none;
        flex: 1 1 auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .movo-wa__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .preloader-text {
        font-size: 36px;
        letter-spacing: 1px;
    }
}
