/* ==========================================================
   FOOTER
========================================================== */

.inh-footer {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 8px 15px;
    box-sizing: border-box;
}

/* Chặn thanh cuộn ngang do 100vw gồm cả thanh cuộn dọc */
html,
body {
    overflow-x: clip;
}

.inh-footer-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

/* ==========================================================
   TOP
========================================================== */

.inh-footer-top {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 2.4fr)
        minmax(0, 1.3fr)
        minmax(0, 1.4fr);
    gap: 30px;
    padding: 35px 30px;
    align-items: start;
    box-sizing: border-box;
}

.inh-footer-column {
    min-width: 0;
}

/* ==========================================================
   COMMON TITLE
========================================================== */

.inh-footer-member-title,
.inh-footer-consultant-title,
.inh-footer-menu-title,
.inh-footer-payment-title,
.inh-footer-address-title {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666666;
    white-space: nowrap;
}

/* ==========================================================
   MEMBER
========================================================== */

.inh-footer-member {
    width: 100%;
}

.inh-footer-member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.inh-footer-member-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
}

.inh-footer-member-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.inh-footer-member-item img {
    max-width: 100%;
    max-height: 55px;
    width: auto;
    height: auto;
}

/* ==========================================================
   ADDRESS
========================================================== */

.inh-footer-address {
    margin-top: 25px;
}

.inh-footer-address-content {
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
}

.inh-footer-address-content p {
    margin: 0 0 10px;
}

.inh-footer-address-content strong {
    color: #333333;
}

.inh-footer-address-content a {
    color: #123E76;
    text-decoration: none;
}

.inh-footer-address-content a:hover {
    text-decoration: underline;
}

/* ==========================================================
   CONSULTANT (số cột tự co theo độ rộng, không bị tràn)
========================================================== */

.inh-footer-consultant-wrapper {
    padding: 16px;
    background: var(--primary, #08265B);
    border-radius: 10px;
    box-sizing: border-box;
}

.inh-footer-consultant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 12px;
}

/* Mỗi nhân viên là một viên thuốc, bấm vào mở Zalo */
.inh-footer-consultant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

a.inh-footer-consultant-item:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.inh-footer-consultant-avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
}

.inh-footer-consultant-avatar img {
    display: block;
    width: 46px;
    height: 46px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    box-sizing: border-box;
}

.inh-footer-consultant-content {
    min-width: 0;
}

.inh-footer-consultant-name {
    margin: 0 0 2px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inh-footer-consultant-zalo {
    margin-right: 4px;
    color: #EF9B2D;
    font-weight: 600;
    text-transform: none;
}

.inh-footer-consultant-phone {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

/* ==========================================================
   MENU
========================================================== */

.inh-footer-menu {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.inh-footer-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.inh-footer-menu-list li {
    margin-bottom: 10px;
}

.inh-footer-menu-list a {
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    line-height: 1.6;
    transition: .3s;
}

.inh-footer-menu-list a:hover {
    color: #123E76;
}

/* ==========================================================
   PAYMENT
========================================================== */

.inh-footer-payment {
    width: 100%;
    min-width: 0;
}

.inh-footer-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.inh-footer-payment-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 6px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    box-sizing: border-box;
}

.inh-footer-payment-item img {
    max-width: 100%;
    max-height: 28px;
    width: auto;
    height: auto;
}

/* ==========================================================
   HỢP TÁC & GÓP Ý DỊCH VỤ
========================================================== */

.inh-footer-contact-card {
    margin-top: 25px;
    width: 100%;
    min-width: 0;
}

.inh-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    background: #F4F7FB;
    border-radius: 12px;
    text-decoration: none;
    transition: .3s;
}

.inh-contact-card:hover {
    background: #e8f3ee;
}

.inh-contact-card-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: block;
}

.inh-contact-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.inh-contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.inh-contact-card-info strong {
    font-size: 16px;
    line-height: 1.3;
    color: #123E76;
}

.inh-contact-card-info em {
    font-style: normal;
    font-size: 13px;
    line-height: 1.3;
    color: #666666;
}

.inh-contact-card-info small {
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    background: #ffffff;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    color: #555555;
    white-space: normal;
}

/* ==========================================================
   BOTTOM
========================================================== */

.inh-footer-bottom {
    padding: 20px 35px;
    border-top: 1px solid #eeeeee;
}

/* ==========================================================
   COPYRIGHT
========================================================== */

.inh-footer-copyright {
    text-align: center;
    padding: 10px 0;
}

.inh-footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: #999999;
    line-height: 1.8;
}

/* ==========================================================
   13 INCH
   (dùng fr thay cho % để cộng với gap không bị tràn)
========================================================== */

@media (max-width: 1366px) {

    .inh-footer-top {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 2.2fr)
            minmax(0, 1.2fr)
            minmax(0, 1.4fr);
        gap: 20px;
        padding: 30px 24px;
    }

    .inh-footer-payment-title,
    .inh-footer-contact-card .inh-footer-payment-title {
        white-space: normal;
    }

    .inh-footer-consultant-avatar,
    .inh-footer-consultant-avatar img {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 1200px) and (min-width: 768px) {

    .inh-footer-top > .inh-footer-column:nth-child(2) {
        grid-column: 1 / -1;
    }
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1200px) {

    .inh-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .inh-footer {
        padding: 10px 5px 0;
    }

    .inh-footer-top {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
    }

    .inh-footer-middle,
    .inh-footer-bottom {
        padding: 20px;
    }
}