/* ==========================================================================
   NHA KHOA I-DENT - BRAND STYLESHEET (SHARING & ELDERLY OPTIMIZED)
   ========================================================================== */

:root {
    /* Brand color palette */
    --primary-color: #025899;   /* Xanh dương chuẩn y tế */
    --secondary-color: #014374; /* Xanh dương đậm tạo độ sâu */
    --accent-color: #D52C2C;    /* Đỏ I-Dent cho ưu đãi/action */
    --gold-color: #DEB137;      /* Vàng Gold nổi bật */
    --gold-light: #F5EA83;      /* Vàng Gold sáng */
    --green-color: #80B155;     /* Xanh lá cây an tâm / thành công */
    --text-dark: #222222;       /* Chữ tối độ tương phản cao */
    --text-gray: #555555;
    --bg-light: #F4F8FB;        /* Nền nhạt vệ sinh/y tế */
    --white: #ffffff;
}

/* Base Settings - Legible for Seniors */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 18px; /* Cỡ chữ lớn dễ đọc */
    line-height: 1.7; /* Giãn dòng thoải mái tránh rối mắt */
    color: var(--text-dark);
    margin: 0;
    padding-top: 80px; /* Chừa khoảng trống cho header sticky */
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-color);
}

/* --- GOLD METALLIC EFFECTS --- */
.text-gradient-gold {
    background: linear-gradient(to right, var(--gold-color) 0%, var(--gold-light) 30%, #FFFFFF 50%, var(--gold-light) 70%, var(--gold-color) 100%);
    background-size: 200% auto;
    color: var(--gold-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShine 4s linear infinite;
    font-weight: 900;
}

@keyframes goldShine {
    to { background-position: 200% center; }
}

/* --- HEADER (STICKY & RESPONSIVE) --- */
.lp-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(2, 88, 153, 0.2);
    z-index: 1000;
    padding: 10px 0;
}

.lp-header-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-logo img {
    height: 55px;
    width: auto;
    display: block;
}

.lp-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav-menu li {
    display: flex;
    align-items: center;
}

.lp-nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 42px;
    box-sizing: border-box;
    line-height: 1.25;
}

.lp-nav-menu li a:hover,
.lp-nav-menu li a.active {
    color: var(--gold-color);
    background-color: rgba(255, 255, 255, 0.12);
}

.lp-header-ctas {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lp-header-hotline {
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lp-header-hotline i {
    color: var(--gold-color);
    font-size: 1.25rem;
}

.lp-hotline-btn {
    background: var(--gold-color);
    color: #000000;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(222, 177, 55, 0.45);
    border: 2px solid var(--gold-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lp-hotline-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* --- MOBILE SUB-NAVIGATOR (Seniors friendly navigation) --- */
.mobile-nav-scroll {
    display: none;
    background: var(--secondary-color);
    padding: 10px 5px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: none; /* Firefox */
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mobile-nav-scroll a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    margin: 0 4px;
    display: inline-block;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-scroll a.active {
    background: var(--gold-color);
    color: #000000;
}

/* --- COMMON SECTIONS & TYPOGRAPHY --- */
.lp-container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.lp-section {
    padding: 70px 0;
}

.lp-section-alt {
    background-color: var(--bg-light);
    border-top: 1px solid #eef3f7;
    border-bottom: 1px solid #eef3f7;
}

.lp-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 40px;
    text-transform: uppercase;
    line-height: 1.35;
}

.lp-title span {
    color: var(--gold-color);
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 8px;
}

/* Sub-heading decoration for seniors */
.lp-subtitle-brand {
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 6px solid var(--gold-color);
    padding-left: 15px;
    text-transform: uppercase;
}

/* --- BUTTONS (Large & highly visible) --- */
.lp-cta-large {
    background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
    color: #000000 !important;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(222, 177, 55, 0.45);
    cursor: pointer;
    border: 2px solid var(--white);
    text-align: center;
}

.lp-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(222, 177, 55, 0.6);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-color));
}

.lp-cta-red {
    background: linear-gradient(135deg, var(--accent-color), #b82323);
    color: var(--white) !important;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(213, 44, 44, 0.4);
    cursor: pointer;
    border: 2px solid var(--white);
    text-align: center;
}

.lp-cta-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(213, 44, 44, 0.55);
}

/* --- SENIOR TRUST HIGHLIGHT BOX --- */
.lp-trust-banner-senior {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(2, 88, 153, 0.1);
    max-width: 850px;
    margin: 30px auto;
    position: relative;
    border-left: 6px solid var(--gold-color);
}

.lp-trust-banner-senior i.quote-icon {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 2.5rem;
    color: var(--gold-color);
    text-shadow: 2px 2px 0 #fff;
    background: #fff;
    padding: 0 5px;
}

/* --- UNIFIED FORM STYLES --- */
.form-safe-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(2, 88, 153, 0.12);
    border: 2px solid var(--gold-color);
    position: relative;
    overflow: hidden;
}

.form-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-bottom-left-radius: 15px;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    z-index: 10;
}

.form-safe-title {
    text-align: center;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.7rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.form-safe-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.form-group-safe {
    margin-bottom: 18px;
    position: relative;
}

.form-group-safe i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.15rem;
}

.form-control-safe {
    width: 100%;
    height: 55px; /* Chiều cao lớn dễ thao tác */
    padding: 0 15px 0 50px;
    border: 1px solid #d1d5db;
    border-radius: 50px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #f9fafb;
    color: var(--text-dark);
}

.form-control-safe:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(2, 88, 153, 0.15);
}

.btn-submit-safe {
    width: 100%;
    height: 55px;
    background: linear-gradient(to right, var(--accent-color), #A11F1F);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(213, 44, 43, 0.3);
    transition: all 0.3s;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

.btn-submit-safe:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(213, 44, 43, 0.45);
}

/* --- FOOTER --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 70px 0 30px 0;
    border-top: 5px solid var(--gold-color);
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--gold-color);
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(222, 177, 55, 0.3);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-logo {
    max-width: 220px;
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #e2e8f0;
    margin: 0 0 15px 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.footer-col ul li i {
    margin-top: 4px;
    color: var(--gold-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-col ul li a {
    color: #e2e8f0;
}

.footer-col ul li a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

.footer-col .work-time li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    padding-bottom: 8px;
}

.footer-col .work-time li span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-hotline-box {
    border: 2px solid rgba(222, 177, 55, 0.4);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 15px;
}

.footer-hotline-box p:first-child {
    margin: 0;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-hotline-box .number {
    margin: 5px 0 0;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-color);
    letter-spacing: 1.5px;
    display: block;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* --- MODAL POPUP & OVERLAYS --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    color: #888888;
    cursor: pointer;
    line-height: 1;
    z-index: 15;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Scroll Promo Popup Custom styles */
.popup-offer-header {
    background: var(--accent-color);
    color: var(--white);
    padding: 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.popup-offer-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-offer-list {
    list-style: none;
    padding: 20px 35px;
    margin: 0;
    text-align: left;
}

.popup-offer-list li {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.popup-offer-list li i {
    color: var(--accent-color);
    margin-top: 4px;
    font-size: 1.25rem;
}

.popup-scarcity {
    background: #fffcf5;
    color: var(--accent-color);
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    margin: 0 35px 20px 35px;
    border: 1px dashed var(--accent-color);
    font-size: 1.1rem;
    animation: scarcityPulse 1.5s infinite;
}

@keyframes scarcityPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* --- FLOATING WIDGETS (Zalo, Messenger, Phone) --- */
.ident-floats-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9900;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.float-widget-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.float-widget-item:hover {
    transform: scale(1.08);
}

.float-widget-label {
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-left: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    white-space: nowrap;
    border: 1px solid rgba(2, 88, 153, 0.15);
    line-height: 1.4;
    text-align: left;
}

.float-widget-label::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid var(--white);
}

.float-widget-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: 2px solid var(--white);
}

/* Zalo Floating Icon styling */
.float-zalo {
    display: none !important;
}
.float-zalo .float-widget-circle {
    background-color: #0084FF; /* Blue Zalo */
}

.float-zalo .float-widget-circle img {
    width: 38px;
    height: 38px;
}

/* Messenger Floating Icon styling */
.float-messenger .float-widget-circle {
    background-color: #0084FF; /* Blue FB */
    animation: floatBounce 2s infinite;
}

.float-messenger .float-widget-circle svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

/* Phone Floating Icon styling */
.float-phone {
    display: none !important;
}
.float-phone .float-widget-circle {
    background-color: var(--accent-color);
    animation: floatPulse 1.8s infinite;
}

.float-phone .float-widget-circle i {
    color: var(--white);
    font-size: 1.6rem;
}

@keyframes floatBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes floatPulse {
    0% { box-shadow: 0 0 0 0 rgba(213, 44, 43, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(213, 44, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(213, 44, 43, 0); }
}

/* Desktop Floating registration banner on Right border */
.float-desktop-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold-color);
    color: #000000;
    padding: 22px 14px;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 8px 25px rgba(222, 177, 55, 0.4);
    z-index: 9800;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 900;
    font-size: 1.05rem;
    text-transform: uppercase;
    border: 2px solid var(--white);
    border-right: none;
    transition: all 0.3s ease;
}

.float-desktop-cta:hover {
    background: #c2992b;
    padding-right: 20px;
}

/* --- MOBILE BOTTOM STICKY ACTION BAR --- */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    z-index: 9990;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.12);
    border-top: 1px solid #e2e8f0;
}

.sticky-action-item {
    flex: 1;
    padding: 15px 5px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.sticky-action-call {
    background: var(--accent-color);
    color: var(--white) !important;
}

.sticky-action-zalo {
    background: #0084FF;
    color: var(--white) !important;
}

.sticky-action-booking {
    background: var(--gold-color);
    color: #000000 !important;
}

/* Thanks Popup screen */
.thanks-screen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 11000;
    text-align: center;
    padding-top: 100px;
}

.thanks-screen-box {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .lp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 769px) {
    .mobile-sticky-action-bar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 110px; /* Header + mobile nav bar height */
        padding-bottom: 60px; /* Nhường chỗ cho Mobile Sticky Bar */
        font-size: 17px;
    }
    
    .lp-header-container {
        justify-content: center;
        padding-bottom: 5px;
    }
    
    .lp-logo img {
        height: 45px;
        width: auto;
    }
    
    .lp-nav-menu,
    .lp-header-ctas,
    .float-desktop-cta {
        display: none !important;
    }
    
    .mobile-nav-scroll {
        display: flex;
        position: static;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .lp-title {
        font-size: 1.75rem;
    }
    
    .lp-title span {
        font-size: 1.1rem;
    }
    
    .lp-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ident-floats-container {
        bottom: 80px; /* Tránh đè lên mobile sticky action bar */
        left: 15px;
    }
    
    .float-widget-label {
        display: none !important; /* Ẩn nhãn nổi trên mobile để tiết kiệm diện tích */
    }
    
    .float-widget-circle {
        width: 50px;
        height: 50px;
    }
    
    .float-zalo img {
        width: 32px;
        height: 32px;
    }
    
    .float-messenger svg {
        width: 26px;
        height: 26px;
    }
    
    .float-phone i {
        font-size: 1.3rem;
    }
    
    footer {
        padding-bottom: 90px;
    }
}

/* --- PREVENT HORIZONTAL SCROLLING ON MOBILE VIEWPORTS --- */
html, body {
    width: 100%;
    overflow-x: hidden;
}

/* --- GLOBAL RESPONSIVE TABLE CONTAINER --- */
.lp-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(2, 88, 153, 0.08);
    border-radius: 15px;
}

/* --- MOBILE SPECIFIC TABLE OPTIMIZATION --- */
@media (max-width: 768px) {
    .lp-table-responsive table,
    table.lp-price-table,
    .lp-price-table {
        width: auto !important;
        min-width: 600px !important; /* Forces scroll bar instead of squishing cells */
        table-layout: auto !important;
    }
    
    .lp-table-responsive th,
    .lp-table-responsive td,
    .lp-price-table th,
    .lp-price-table td {
        white-space: nowrap !important; /* Prevents price numbers from wrapping to multiple lines */
        padding: 12px 10px !important;
        font-size: 14px !important;
    }
}
