/* =====================================
   Hızlı iletişim — FAB altta; panel yukarı doğru açılır, yatay scrollbar yok
===================================== */

.quick-contact-wrap {
    position: fixed;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 750;
    width: min(720px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    pointer-events: none;
    box-sizing: border-box;
}

.quick-contact-wrap * {
    pointer-events: auto;
}

.quick-contact-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* ----- Kapalı: gradient FAB (yer kaplar; açıkken visibility:hidden ile korunur) ----- */
.quick-contact-fab {
    position: relative;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(105deg, #ff4e00 0%, #f24405 45%, #ec1c24 100%);
    color: #fff;
    box-shadow:
        0 8px 28px rgba(236, 28, 36, 0.38),
        0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.quick-contact-fab__glow {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.55;
    background: linear-gradient(105deg, #ff4e00, #ec1c24);
    filter: blur(12px);
    z-index: 0;
    animation: qc-fab-halo 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .quick-contact-fab__glow {
        animation: none;
        opacity: 0.35;
    }
}

@keyframes qc-fab-halo {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.04);
    }
}

.quick-contact-fab__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 12px;
    border-radius: inherit;
    background: linear-gradient(105deg, #ff4e00 0%, #f24405 48%, #ec1c24 100%);
}

.quick-contact-fab__icon-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #f24405;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.quick-contact-fab__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.quick-contact-fab__title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.quick-contact-fab__sub {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.25;
    margin-top: 2px;
}

.quick-contact-fab__chev {
    font-size: 1.1rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.quick-contact-fab:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 36px rgba(236, 28, 36, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.14);
}

.quick-contact-fab:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.85),
        0 0 0 6px rgba(242, 68, 5, 0.45);
}

/* Açıkken FAB görünmez ama yer tutar → panel bottom:% ile hizalanır */
.quick-contact-wrap.is-open .quick-contact-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ----- Panel: stack’in üstünde (yukarı doğru açılış) ----- */
.quick-contact-panel {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    width: 100%;
    max-width: min(720px, calc(100vw - 16px));
    transform: translate(-50%, 12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
}

.quick-contact-wrap.is-open .quick-contact-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.quick-contact-panel__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px 4px;
    padding: 8px 8px 8px 10px;
    background: #fff;
    border-radius: 50px;
    box-shadow:
        0 10px 40px rgba(15, 23, 42, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.quick-contact-panel__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: min(100%, 200px);
    max-width: 100%;
    padding: 4px 12px 4px 6px;
    margin: 2px 0;
    border-radius: 999px;
    background: linear-gradient(105deg, #ff4e00 0%, #f24405 50%, #ec1c24 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quick-contact-panel__brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #f24405;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.quick-contact-panel__brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 auto;
}

.quick-contact-panel__brand-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.quick-contact-panel__brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.95;
    line-height: 1.25;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.quick-contact-panel__brand-chev {
    font-size: 0.9rem;
    opacity: 0.85;
    flex-shrink: 0;
    margin-left: 2px;
}

.quick-contact-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    text-decoration: none;
    color: inherit;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    transition: background 0.18s ease;
    border-radius: 0;
    box-sizing: border-box;
}

.quick-contact-channel:first-of-type {
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.quick-contact-channel:hover {
    background: rgba(242, 68, 5, 0.06);
}

.quick-contact-channel__ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quick-contact-channel__ico--whatsapp {
    background: #25d366;
    color: #fff;
}

.quick-contact-channel__ico--phone {
    background: linear-gradient(145deg, #ff6a1a, #f24405);
    color: #fff;
}

.quick-contact-channel__ico--email {
    background: #0d6efd;
    color: #fff;
}

.quick-contact-channel__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.quick-contact-channel__title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.quick-contact-channel__hint {
    font-size: 0.68rem;
    font-weight: 650;
    line-height: 1.25;
    margin-top: 2px;
}

.quick-contact-channel--whatsapp .quick-contact-channel__hint {
    color: #25d366;
}

.quick-contact-channel--phone .quick-contact-channel__hint {
    color: #ea580c;
}

.quick-contact-channel--email .quick-contact-channel__hint {
    color: #0d6efd;
}

.quick-contact-collapse {
    flex: 0 0 auto;
    align-self: center;
    width: 40px;
    height: 40px;
    margin: 2px 0 2px 2px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.quick-contact-collapse:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.quick-contact-collapse:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(242, 68, 5, 0.35);
}

@media (max-width: 640px) {
    .quick-contact-fab__sub {
        display: none;
    }

    .quick-contact-fab__inner {
        gap: 10px;
        padding: 8px 14px 8px 10px;
    }

    .quick-contact-fab__icon-ring {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .quick-contact-panel__inner {
        border-radius: 22px;
        padding: 6px 6px 6px 8px;
        gap: 4px 2px;
    }

    .quick-contact-panel__brand {
        flex: 1 1 100%;
        min-width: 0;
        margin-bottom: 4px;
    }

    .quick-contact-panel__brand-sub {
        display: none;
    }

    .quick-contact-panel__brand-icon {
        width: 34px;
        height: 34px;
    }

    .quick-contact-channel {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
        border-left: none;
        border: 1px solid rgba(15, 23, 42, 0.06);
        border-radius: 12px;
        padding: 6px 8px;
    }

    .quick-contact-channel:first-of-type {
        border-left: 1px solid rgba(15, 23, 42, 0.06);
    }

    .quick-contact-collapse {
        flex: 1 1 100%;
        margin: 4px auto 0;
    }
}

@media (max-width: 380px) {
    .quick-contact-panel__brand-chev {
        display: none;
    }

    .quick-contact-channel__title {
        font-size: 0.78rem;
    }

    .quick-contact-channel {
        min-width: 0;
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-contact-panel {
        transition: none;
    }

    .quick-contact-fab {
        transition: none;
    }

    .quick-contact-fab:hover {
        transform: none;
    }
}
