/* =====================================================================
   modern.css — Giao diện hiện đại cho trang tra cứu bảo hành
   Tông XANH NAVY theo logo Nha khoa Anna. Nạp SAU css.css.
   ===================================================================== */

:root {
    --blue: #1f2a86;          /* navy chủ đạo (theo logo) */
    --blue-dark: #151c5e;
    --blue-2: #2a3bb0;        /* xanh sáng hơn cho gradient nút */
    --azure: #2f74d8;         /* xanh azure cho điểm nhấn phụ */
    --azure-dark: #1f5cc0;
    --blue-soft: #cdd6f5;
    --ink: #232a40;
    --muted: #76809e;
    --bg: #eef1fa;
    --bg-2: #e3e9f7;
    --card: #ffffff;
    --line: #e1e7f6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 34px rgba(28, 38, 99, .14);
    --shadow-sm: 0 4px 16px rgba(28, 38, 99, .10);
    --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Nền tảng ---------- */
html { min-height: 100%; }
body {
    font-family: var(--font) !important;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Sticky footer: trang ngắn vẫn đẩy footer xuống đáy màn hình */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

/* Khu vực giữa (hero) giãn lấp khoảng trắng + canh giữa form theo chiều dọc */
.main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.footer, .site-footer { flex-shrink: 0; }

/* ---------- Header / Banner ---------- */
.agileinfo-dot .head.fixed,
.banner {
    background: #fff !important;
    background-image: none !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--blue);
}
.banner .head .container { padding-top: 6px; padding-bottom: 6px; }
.navbar-brand.logo,
.navbar-brand {
    height: auto !important;
    padding: 12px 0 !important;
    float: none;
}
.banner .logo img {
    max-height: 66px;
    width: auto;
    transition: transform .35s ease;
}
.banner .logo img:hover { transform: scale(1.04); }
.banner .navbar-header { float: none; text-align: left; margin: 0; }

/* Hàng header: logo trái — nút phải */
.banner .navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    gap: 16px;
    float: none;
}

/* Nút gọi + bảo hành */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.hbtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px 0 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    color: #fff !important;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.hbtn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: var(--shadow); color: #fff !important; }
.hbtn .fa {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: 0 0 auto;
}
.hbtn-phone { background: linear-gradient(135deg, var(--blue-2), var(--blue-dark)); }
.hbtn-warranty { background: linear-gradient(135deg, var(--azure), var(--azure-dark)); }

@media (max-width: 767px) {
    .banner .navbar-header,
    .banner .logo { text-align: left; float: none; }
    .banner .logo img { display: inline-block; max-height: 46px; }
    .banner .navbar-top { gap: 10px; }
    .header-actions { gap: 9px; }
    /* Thu về icon tròn */
    .hbtn {
        width: 46px;
        height: 46px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
    .hbtn .hbtn-text { display: none; }
    .hbtn .fa { background: transparent; width: auto; height: auto; font-size: 19px; }
}

/* ---------- Hero + Form tra cứu ---------- */
.main {
    background: radial-gradient(1200px 420px at 50% -120px, #ffffff 0%, var(--bg) 55%, var(--bg-2) 100%) !important;
    padding: 70px 0 80px !important;
}
/* Khôi phục padding container (ghi đè inline padding:0) để .row không tràn ngang trên mobile */
.main > .container { padding-left: 15px !important; padding-right: 15px !important; }
.main .head { margin-bottom: 26px; }
.main .title-big,
.thongtinbaohanh .title-big,
.hopdong .title-big {
    font-family: var(--font) !important;
    color: var(--blue);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: .3px;
    margin-bottom: 10px;
    position: relative;
}
.main .head .title-big::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--azure));
    margin: 14px auto 0;
}
.main h2 {
    font-family: var(--font) !important;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
}

/* Card chứa form */
.lookup-card {
    background: var(--card);
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 44px 46px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.main .body { margin-top: 6px; }

/* Ô nhập có icon */
.lookup-field {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
.lookup-field .fa {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    font-size: 17px;
    pointer-events: none;
}
.main .group { width: 100%; display: block; }
.main .input,
.lookup-field .input {
    height: 58px !important;
    width: 100%;
    border: 1.5px solid var(--line) !important;
    background: #f7f9fe !important;
    border-radius: 14px !important;
    padding: 0 18px 0 48px !important;
    font-family: var(--font) !important;
    font-size: 17px;
    color: var(--ink);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.main .input:focus,
.lookup-field .input:focus {
    outline: none;
    border-color: var(--blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(31, 42, 134, .16);
}

/* Checkbox đồng ý */
.main .info { margin-top: 16px; }
.main .info label {
    font-family: var(--font) !important;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
    max-width: 440px;
    cursor: pointer;
}
.main input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
    flex: 0 0 auto;
}

/* Nút tra cứu */
.submit { margin-top: 22px; }
.submit button,
.btn-submit {
    font-family: var(--font) !important;
    width: 100%;
    max-width: 100%;
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--blue-2), var(--blue-dark)) !important;
    padding: 17px 24px !important;
    border-radius: 14px !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(28, 38, 120, .34);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.submit button:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(28, 38, 120, .42);
    color: #fff !important;
}
.submit button:active,
.btn-submit:active { transform: translateY(0); }

/* ---------- Trang kết quả ---------- */
.main .title-big.h1 { font-size: 26px; }
h3.title-big.ml-15 {
    text-align: center;
    margin: 0 0 28px !important;
}
/* Trang kết quả: 1 cột, canh giữa; ghi chú "Cảm ơn..." xuống dưới form */
.result-col {
    float: none !important;
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
    /* Bỏ padding của col để lề 2 bên bằng khối chính sách bảo hành (chỉ còn 15px của container) */
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.result-col + .result-col { margin-top: 22px; }
.thongtin {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 12px 18px;
    overflow: hidden;
}
.tt {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 !important;
    padding: 14px 10px;
    border-radius: var(--radius-sm);
}
.tt:before, .tt:after { display: none !important; content: none !important; }
.tt:not(:last-child) { border-bottom: 1px solid var(--line); }
.tt:nth-child(even) { background: #f4f6fd; }
.tt .ic {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(31, 42, 134, .14), rgba(31, 42, 134, .05));
    color: var(--blue);
    font-size: 16px;
}
.tt label {
    float: none !important;
    width: 168px !important;
    flex: 0 0 168px;
    padding: 0 !important;
    margin: 0;
    color: var(--muted) !important;
    font-family: var(--font) !important;
    font-size: 14px;
    font-weight: 600;
}
.tt .val {
    float: none !important;
    flex: 1;
    min-width: 0 !important;
    width: auto !important;
    background: transparent !important;
    min-height: 0 !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    color: var(--ink) !important;
    font-family: var(--font) !important;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .tt { align-items: flex-start; }
    .tt label { flex-basis: 120px; width: 120px !important; }
}

/* Khối ghi chú nha khoa */
.noidung .panel-body {
    display: block !important;
    font-family: var(--font) !important;
    border: 1px solid var(--line) !important;
    background: #f8fafe !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
    padding: 22px !important;
    color: var(--ink);
    text-align: left !important;
    line-height: 1.7;
}
.col-md-5 .noidung { margin-top: 0; }

/* Nút Nhập lại */
.tt-btn { margin-top: 24px; }
.tt-btn .btn-default {
    background: #fff !important;
    border: 1.5px solid var(--blue) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, transform .15s ease;
}
.tt-btn .btn-default a {
    color: var(--blue) !important;
    font-family: var(--font);
    font-weight: 700;
    display: inline-block;
    padding: 11px 26px;
}
.tt-btn .btn-default:hover { background: #eef2fc !important; transform: translateY(-1px); }

/* ---------- Section chính sách & hợp đồng ---------- */
.thongtinbaohanh {
    background: #f4f6fd !important;
    padding: 56px 0 !important;
    font-family: var(--font) !important;
}
.hopdong { padding: 56px 0 !important; }
.thongtinbaohanh .title-big,
.hopdong .title-big {
    text-align: center;
    font-size: 26px;
    margin-bottom: 28px !important;
}
.thongtinbaohanh .title-big::after,
.hopdong .title-big::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--azure));
    margin: 12px auto 0;
}
.thongtinbaohanh .policy-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    line-height: 1.75;
}
.thongtinbaohanh .policy-card img { height: auto; }
.hopdong_dichvu {
    margin-bottom: 0;
    gap: 22px;
    justify-content: center;
}
.hopdong_dichvu a {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hopdong_dichvu a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* ---------- Thông báo lỗi ---------- */
.main .alert,
.alert-danger {
    border: 0 !important;
    border-radius: var(--radius) !important;
    background: #fff4f3 !important;
    color: #b4453a !important;
    box-shadow: var(--shadow-sm);
    padding: 18px 22px !important;
    font-family: var(--font);
    font-weight: 600;
    text-align: center;
    max-width: 560px;
    margin: 0 auto !important;
}

/* ---------- Footer ---------- */
.footer, .site-footer {
    background: linear-gradient(135deg, #1c2570, #11164a) !important;
    background-color: var(--blue-dark) !important;
    color: #e7ebfb !important;
    font-family: var(--font) !important;
    padding: 48px 0 0 !important;
    margin-top: 0;
}
.footer a, .site-footer a { color: var(--blue-soft) !important; }
.footer a:hover, .site-footer a:hover { color: #fff !important; }
.ft-title {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .5px;
    margin: 0 0 18px;
    text-transform: uppercase;
}
.ft-contact, .ft-hours { list-style: none; padding: 0; margin: 0; }
.ft-contact li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 16px;
    line-height: 1.55;
    font-size: 15px;
}
.ft-contact li > .fa {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(205, 214, 245, .45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--blue-soft);
    margin-top: 1px;
}
.ft-contact li.ft-sub { margin-top: -8px; padding-left: 47px; }
.ft-contact li.ft-sub > i { display: none; }
.ft-map { display: inline-block; margin-left: 6px; white-space: nowrap; font-weight: 600; }
.ft-map .fa { font-size: 13px; margin-right: 3px; }
.ft-hours li { margin-bottom: 12px; font-size: 15px; }
.ft-hours li strong { color: #fff; }
.ft-bottom {
    margin-top: 32px;
    border-top: 1px solid rgba(205, 214, 245, .2);
    padding: 14px 0;
    font-size: 13px;
    color: #aab4e0;
}
@media (max-width: 767px) {
    .footer, .site-footer { padding-top: 34px !important; }
    .site-footer .col-md-5.col-xs-12 { margin-top: 26px; }
}

/* ---------- Hotline mobile ---------- */
.hotline-mb {
    border-radius: 999px !important;
    font-family: var(--font);
    font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .main { padding: 46px 0 56px !important; }
    .main .title-big { font-size: 23px; }
    .lookup-card { padding: 26px 20px; margin: 0 auto; }
    .col-md-5.col-xs-12 { margin-top: 22px; }
    h3.title-big.ml-15 { font-size: 21px; }
}
