/* ==========================================================================
   FOOTER CSS - LIGHTUI CHILD THEME
   Bao gồm giao diện Footer 3 cột & Cụm nút liên hệ nổi (Floating Contacts)
   ========================================================================== */

.agency-peony-footer,
.agency-peony-footer * {
    box-sizing: border-box;
    font-family: var(--font-lexend, "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.agency-peony-footer {
    background-color: var(--footer-bg, var(--color-primary, #027CC5)) !important;
    color: var(--text-white, #ffffff) !important;
    padding-top: 48px;
    padding-bottom: 24px;
    width: 100%;
    margin-top: auto;
}

.agency-peony-footer .af-container {
    max-width: var(--container-max-w, 1200px);
    width: 100%;
    margin: 0 auto;
    padding-left: var(--container-pad-x, 15px);
    padding-right: var(--container-pad-x, 15px);
}

.agency-peony-footer .af-top-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

@media (max-width: 991px) {
    .agency-peony-footer .af-top-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* CỘT 1: THƯƠNG HIỆU & LIÊN HỆ */
.af-col.col-brand-contact .af-logo-link {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.af-col.col-brand-contact .af-main-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.af-col.col-brand-contact .af-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.af-quote-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
}

.agency-peony-footer .af-col-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.af-contact-info {
    margin-bottom: 20px;
}

.af-contact-info .contact-line {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 6px 0;
    color: rgba(255, 255, 255, 0.9);
}

.af-contact-info .contact-line a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.af-contact-info .contact-line a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* CỤM ICON MẠNG XÃ HỘI */
.af-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.af-icons .social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.af-icons .social-circle:hover {
    background: #ffffff;
    color: var(--color-primary, #027CC5);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.af-icons .social-circle .af-social-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.af-icons .social-circle .zalo-text {
    font-size: 11px;
    font-weight: 800;
}

/* CỘT 2: SẢN PHẨM / MENU */
.af-col.col-products .af-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.af-col.col-products .af-menu li {
    margin-bottom: 10px;
}

.af-col.col-products .af-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.af-col.col-products .af-menu li a:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-decoration: underline;
}

/* CỘT 3: BẢN ĐỒ MAPS */
.af-col.col-maps .af-map-box {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.af-col.col-maps .af-map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.af-no-map {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    margin: 0;
}

/* DÒNG BẢN QUYỀN (COPYRIGHT) */
.af-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.af-bottom .copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ==========================================================================
   CỤM NÚT LIÊN HỆ NỔI CỐ ĐỊNH (FLOATING CONTACTS)
   ========================================================================== */
.crb-floating-contacts {
    position: fixed !important;
    bottom: var(--crb-float-bottom, 30px) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    pointer-events: none !important;
}

.crb-floating-contacts.pos-right {
    right: 22px !important;
    left: auto !important;
}

.crb-floating-contacts.pos-left {
    left: 22px !important;
    right: auto !important;
}

.crb-float-btn {
    pointer-events: auto !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, filter 0.25s ease !important;
    outline: none !important;
    overflow: visible !important;
}

.crb-float-btn:not(.has-custom-img) {
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
    background: #ffffff !important;
}

.crb-float-btn:not(.has-custom-img):hover {
    transform: scale(1.12) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32) !important;
}

/* ẢNH TÙY CHỌN TẢI LÊN */
.crb-float-btn.has-custom-img {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25)) !important;
}

.crb-float-btn.has-custom-img:hover {
    transform: scale(1.12) !important;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)) !important;
}

.crb-float-icon-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.crb-float-icon-svg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}

.crb-float-icon-svg svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.crb-float-zalo:not(.has-custom-img) {
    background: #0068FF !important;
}

.crb-float-messenger:not(.has-custom-img) {
    background: transparent !important;
}

.crb-float-phone:not(.has-custom-img) {
    background: #25D366 !important;
    color: #ffffff !important;
}

.crb-float-phone .crb-float-icon-svg svg {
    width: 24px !important;
    height: 24px !important;
    color: #ffffff !important;
}

/* HIỆU ỨNG NHỊP SÓNG (PULSE) CHO NÚT ZALO & PHONE */
.crb-float-btn:not(.has-custom-img)::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 50% !important;
    z-index: -1 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.crb-float-zalo:not(.has-custom-img)::before {
    border: 2px solid #0068FF !important;
    animation: crbPulseZalo 2.2s infinite ease-out !important;
}

.crb-float-phone:not(.has-custom-img)::before {
    border: 2px solid #25D366 !important;
    animation: crbPulseZalo 2.2s infinite ease-out 0.4s !important;
}

@keyframes crbPulseZalo {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* TOOLTIP CHỮ GỢI Ý KHI RÊ CHUỘT */
.crb-float-tooltip {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(26, 32, 44, 0.92) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 5px 11px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.pos-right .crb-float-tooltip {
    right: calc(100% + 10px) !important;
}

.pos-left .crb-float-tooltip {
    left: calc(100% + 10px) !important;
}

.crb-float-btn:hover .crb-float-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

/* RESPONSIVE MOBILE CHO NÚT LIÊN HỆ NỔI */
@media (max-width: 768px) {
    .crb-floating-contacts {
        bottom: 18px !important;
        gap: 10px !important;
    }
    .crb-floating-contacts.pos-right {
        right: 15px !important;
    }
    .crb-floating-contacts.pos-left {
        left: 15px !important;
    }
    .crb-float-btn {
        width: 44px !important;
        height: 44px !important;
    }
    .crb-float-tooltip {
        display: none !important;
    }
}
