/* local/customfooter_v2/styles.css */

html, body {
  height: 100%;
  margin: 0;
}

#page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#region-main, #main-content {
  flex: 1; /* Chiếm hết chiều cao còn lại để đẩy footer xuống */
}

.custom-footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: -100px auto 0 auto;
    background: #441e0c;
    color: white;
    padding: 20px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    position: relative;
    z-index: 51;
    border-radius: 12px 12px 0 0;
}

.contact-box {
    font-size: 14px;
    line-height: 1.6;
}

.custom-footer-wrapper {
    width: 100%;
    background: #4a2614;
    color: #fff;
    padding: 30px 20px;
    margin-top: 100px;
    position: relative;
    z-index: 50;
}

.support-box,
.contact-box {
    flex: 1 1 300px;
    padding: 10px;
}

.contact-wrapper {
    border: none; /* Xóa hết viền nếu có */
    border-left: 2px solid rgba(0, 0, 0, 0.2); /* Chỉ hiện bên trái */
    box-shadow: none !important; /* Không đổ bóng */
    padding-left: 20px; /* Tạo khoảng cách nhẹ cho nội dung */
}

#page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#region-main {
    flex-grow: 1;
}

.hotrotructuyen-footer {
    display: flex;
    gap: 15px;
    width: auto; /* hoặc giữ 50px nếu muốn ảnh nhỏ */
}

.hotrotructuyen-footer a {
    display: block;
    width: 35px;
    height: 35px;
}

.hotrotructuyen-footer img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hotrotructuyen-footer img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 132, 255, 0.7);
}

.hotrotructuyen-footer-mobile {
    display: none;
}

.coppyright-mobile {
    display: none;
}

.footer-contact-action-btn {
    background: orange;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.footer-contact-action-btn:hover {
    transform: translateY(-1px);
    background: #ffad1f;
}

.cf-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.cf-contact-modal.show {
    display: block;
}

.cf-contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.cf-contact-dialog {
    position: relative;
    width: min(760px, calc(100vw - 30px));
    height: min(88vh, 820px);
    margin: 5vh auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}

.cf-contact-header {
    background: #441e0c;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cf-contact-header h3 {
    margin: 0;
    color: yellow;
    font-size: 22px;
}

.cf-contact-header p {
    margin: 4px 0 0 0;
    font-size: 14px;
}

.cf-contact-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 30px;
    line-height: 34px;
    cursor: pointer;
}

.cf-contact-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.cf-contact-body {
    flex: 1;
    background: #fff;
}

.cf-google-form-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

.cf-contact-modal-open {
    overflow: hidden;
}

.support-box {
    position: relative;
    flex: 1.35 1 430px;
    padding: 10px 28px 10px 10px;
}

.footer-contact-card {
    position: relative;
    overflow: hidden;
    min-height: 255px;
    padding: 26px 30px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 183, 77, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 190, 90, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-contact-card::before {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 166, 0, 0.14);
}

.footer-contact-card::after {
    content: "✉";
    position: absolute;
    right: 34px;
    top: 28px;
    font-size: 86px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    transform: rotate(-8deg);
}

.footer-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 166, 0, 0.16);
    color: #ffd67a;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.footer-contact-card h3 {
    position: relative;
    margin: 0 0 10px 0;
    color: #ffe600;
    font-family: "Segoe UI", Arial, Tahoma, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(255, 230, 0, 0.18);
}

.footer-contact-card,
.footer-contact-card * {
    font-family: "Segoe UI", Arial, Tahoma, sans-serif;
}

.footer-contact-desc {
    position: relative;
    max-width: 620px;
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    font-size: 15px;
}

.footer-contact-points {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px 0;
}

.footer-contact-point {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-contact-point span {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: orange;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    flex: 0 0 auto;
}

.footer-contact-point p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact-action-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-contact-small-note {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.footer-contact-action-btn {
    background: linear-gradient(135deg, #ff9800, #ffb22e);
    border: none;
    padding: 13px 30px;
    border-radius: 999px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.28);
}

.footer-contact-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffa000, #ffc04d);
    box-shadow: 0 10px 24px rgba(255, 152, 0, 0.38);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand-title {
    color: yellow;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 768px) {
    .cf-contact-dialog {
        width: calc(100vw - 16px);
        height: calc(100vh - 30px);
        margin: 15px auto;
        border-radius: 12px;
    }

    .cf-contact-header {
        padding: 12px 14px;
    }

    .cf-contact-header h3 {
        font-size: 19px;
    }

    .cf-contact-header p {
        font-size: 13px;
    }
}

@media (max-width: 1366px) {
    .contact-wrapper {
    display: none;
    }
 
    .contact-wrapper-mobile {
    margin-top: 15px;
    width: 100%;
    border: none; /* Xóa hết viền nếu có */
    border-top: 2px solid rgba(0, 0, 0, 0.2); /* Chỉ hiện bên trái */
    box-shadow: none !important; /* Không đổ bóng */
    }
    
    .hotrotructuyen-footer-mobile {
        justify-content: center; /* 👉 Canh giữa các icon */
        display: flex;
        gap: 15px;
        width: auto; /* hoặc giữ 50px nếu muốn ảnh nhỏ */
    }
    
    .hotrotructuyen-footer-mobile a {
        display: block;
        width: 35px;
        height: 35px;
    }
    
    .hotrotructuyen-footer-mobile img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .hotrotructuyen-footer-mobile img:hover {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(0, 132, 255, 0.7);
    }
    .coppyright-mobile {
        display: block;
        text-align: center;
        font-size: 12px;
        color: #ccc;
        padding: 10px 0;
    }
    
    .support-box {
        padding: 10px;
        flex: 1 1 100%;
    }
    
    .footer-contact-points {
        grid-template-columns: 1fr;
    }
    
    .footer-contact-card {
        min-height: auto;
        padding: 22px;
    }
    
    .footer-contact-card::after {
        font-size: 64px;
        right: 22px;
        top: 24px;
    }    

}