/* ============================================
   VIB Landing Page - Stylesheet
   Color tokens dựa trên logo VIB chính thức
============================================ */

:root {
    /* Brand colors - VIB theme: orange-based */
    --vib-orange:      #FF9900;
    --vib-orange-dark: #E68A00;
    --vib-orange-deep: #C77A00;
    --vib-orange-ink:  #003D7A;
    --vib-orange-light:#FFF4E6;
    --vib-orange-xlight:#FFF9F0;

    /* Brand text color - xanh VIB chính thức (≥4.5:1 với trắng, WCAG AA) */
    --vib-blue:        #005DAA;  /* Text/link/icon trên nền sáng */
    --vib-blue-dark:   #003D7A;  /* Hover/active - đậm hơn */
    --vib-blue-light:  #E6F0FA;  /* Nền nhạt (decorative) */
    --vib-gold:        #F5A623;
    --vib-red:         #D94343;  /* Deep red accent */

    /* Neutrals */
    --white:   #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100:#F3F4F6;
    --gray-200:#E5E7EB;
    --gray-300:#D1D5DB;
    --gray-500:#6B7280;
    --gray-600:#4B5563;
    --gray-700:#374151;
    --gray-800:#1F2937;
    --gray-900:#111827;

    /* Alias: các file pages/*.html gốc dùng var(--vib-text).
       Không định nghĩa token này khiến color bị bỏ qua -> chữ trắng
       trên nền trắng. Trỏ về gray-900 để nội dung hiển thị đúng. */
    --vib-text:    var(--gray-900);

    /* Typography */
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
                 "Roboto", Arial, sans-serif;

    /* Layout */
    --container: 1200px;
    --radius:    12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:    0 4px 12px rgba(255, 153, 0, 0.10);
    --shadow-lg: 0 12px 32px rgba(255, 153, 0, 0.20);
    --transition: 0.25s ease;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    text-align: center;
}
.btn-primary {
    background: var(--vib-orange);
    color: var(--gray-900);
    border-color: var(--vib-orange);
}
.btn-primary:hover {
    background: var(--vib-orange-dark);
    border-color: var(--vib-orange-dark);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}
.btn-outline {
    background: var(--white);
    color: var(--vib-blue);
    border-color: var(--vib-orange);
}
.btn-outline:hover {
    background: var(--vib-orange);
    color: var(--gray-900);
    border-color: var(--vib-orange);
}
.btn-ghost {
    background: transparent;
    color: var(--vib-blue);
}
.btn-ghost:hover { color: var(--vib-blue); }
.btn-gold {
    background: var(--vib-orange);
    color: var(--gray-900);
    border-color: var(--vib-orange);
    font-weight: 700;
}
.btn-gold:hover {
    background: var(--vib-orange-dark);
    border-color: var(--vib-orange-dark);
    transform: translateY(-2px);
}
.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-ghost-light:hover {
    background: var(--white);
    color: var(--vib-blue);
}
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    min-height: 76px;
}
.brand-logo {
    height: 40px;
    width: auto;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--gray-700);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}
.main-nav a:hover {
    color: var(--vib-blue);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vib-blue);
    transition: var(--transition);
}
.main-nav a:hover::after { width: 100%; }

/* Dropdown menu cho nav */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 28px);
    left: -16px;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 93, 170, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
    list-style: none;
    border: 1px solid rgba(0, 93, 170, 0.1);
}
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 28px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}
.nav-dropdown li a::after { display: none; }
.nav-dropdown li a:hover {
    background: var(--vib-orange-light);
    color: var(--vib-blue);
}
.nav-dropdown-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}
.nav-caret {
    font-size: 10px;
    margin-left: 4px;
    transition: var(--transition);
}
.nav-item:hover .nav-caret,
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
.nav-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gray-700);
    cursor: pointer;
}
.nav-register {
    flex: 0 0 auto;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    background: var(--vib-orange);
    color: var(--gray-900);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.nav-register:hover { background: var(--vib-orange-dark); }

.hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--vib-orange-light);
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}
.hotline:hover {
    background: var(--vib-orange);
    color: var(--gray-900);
}
.hotline:hover .hotline-text small,
.hotline:hover .hotline-text strong { color: var(--gray-900); }
.hotline-icon { font-size: 20px; }
.hotline-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}
.hotline-text small {
    font-size: 12px;
    color: var(--gray-500);
    transition: var(--transition);
}
.hotline-text strong {
    font-size: 17px;
    color: var(--vib-blue);
    font-weight: 700;
    transition: var(--transition);
}
.hotline:hover .hotline-text strong { color: var(--white); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--vib-orange);
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 56px 0 72px;
    overflow: hidden;
}
.hero-page { padding: 48px 0 64px; }
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--vib-orange-dark) 0%, var(--vib-orange-deep) 100%);
    z-index: -1;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--vib-gold) 0%, transparent 70%);
    opacity: 0.15;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--vib-orange) 0%, transparent 70%);
    opacity: 0.2;
}
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.hero-shape {
    position: absolute;
    animation: heroFloat 8s ease-in-out infinite;
}
.shape-1 {
    top: -50px;
    right: -40px;
    width: 260px;
    height: 260px;
    opacity: 0.6;
    animation-delay: 0s;
}
.shape-2 {
    bottom: -20px;
    left: -10px;
    width: 90px;
    height: 90px;
    opacity: 0.7;
    animation-delay: 2s;
}
.shape-3 {
    top: 8%;
    right: 6%;
    width: 110px;
    height: 110px;
    opacity: 0.5;
    animation-delay: 4s;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(4deg); }
}
@media (max-width: 992px) {
    .shape-1 { width: 200px; height: 200px; }
    .shape-3 { display: none; }
}
@media (max-width: 600px) {
    .hero-shape { display: none; }
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-inner.product-hero-inner {
    grid-template-columns: minmax(0, 1fr);
}
.product-hero-inner .hero-content {
    max-width: 820px;
}
.hero-content { color: var(--white); position: relative; z-index: 2; }

/* ===== Header compact — chỉ áp dụng cho các trang con (không phải index.html) ===== */
.site-header.compact .header-inner { padding: 18px 24px; gap: 20px; min-height: 72px; }
.site-header.compact .brand-logo { height: 36px; }
.site-header.compact .main-nav { gap: 20px; }
.site-header.compact .main-nav > a,
.site-header.compact .nav-item > a { font-size: 15px; padding: 4px 0; }
.site-header.compact .hotline { padding: 6px 12px; gap: 6px; }
.site-header.compact .hotline-icon { font-size: 18px; }
.site-header.compact .hotline-text strong { font-size: 16px; }
.site-header.compact .hero-shape { display: none; }
@media (max-width: 992px) {
    .site-header.compact .brand-logo { height: 32px; }
    .site-header.compact .header-inner { padding: 18px 16px; min-height: 68px; }
}
@media (max-width: 600px) {
    .site-header.compact .nav-item > a { font-size: 14px; }
    .site-header.compact .hotline-text small { display: none; }
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    font-size: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.hero-title {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: var(--white);                       /* Trắng đứng riêng, không blend */
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);  /* Bóng nhẹ cho dễ đọc */
}
.text-accent {
    /* Bỏ gradient chìm - dùng trắng với underline cam cho nổi */
    color: var(--white);
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}
.text-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--vib-gold);
    border-radius: 2px;
}
.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 28px;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.hero-desc strong {
    color: var(--gray-900);
    font-weight: 800;
    background: var(--vib-orange);
    padding: 0 6px;
    border-radius: 4px;
}
.hero-points {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--white);
    color: var(--vib-blue);
    border: 2px solid var(--vib-orange);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero .btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}
.hero .btn-ghost:hover {
    background: var(--white);
    color: var(--vib-blue);
    border-color: var(--white);
}

/* Hero Form */
.hero-form-wrap {
    position: relative;
}
.hero-form {
    background: var(--white);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
}
.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--vib-blue);
    margin-bottom: 6px;
}
.form-sub {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 14px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}
.req { color: #DC2626; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
    box-sizing: border-box;
    line-height: 1.5;
}
.form-group textarea {
    min-height: 48px;        /* Bằng chiều cao input */
    height: 48px;            /* Fixed cứng = 1 dòng */
    resize: vertical;        /* User vẫn kéo dãn được nếu cần */
    overflow-y: auto;        /* Scroll khi nội dung > 48px */
    display: block;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--vib-orange);
    box-shadow: 0 0 0 3px rgba(0, 93, 170, 0.1);
}
.form-note {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 14px;
    text-align: center;
}
.form-note a {
    color: var(--vib-blue);
    text-decoration: underline;
}

/* ===== Section heads ===== */
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}
.section-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: var(--vib-orange-light);
    color: var(--vib-blue);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--vib-blue);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.section-desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Why us ===== */
.why-us { padding: 96px 0; background: var(--white); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--vib-orange-light);
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}
.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--vib-blue);
    margin-bottom: 10px;
}
.why-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Products ===== */
.products { padding: 96px 0; background: var(--vib-orange-light); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}
.product-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-card.featured {
    border-color: var(--vib-gold);
    background: linear-gradient(180deg, var(--white) 0%, var(--vib-orange-xlight) 100%);
}
.product-card.featured:hover {
    transform: translateY(-6px);
}
.product-tag {
    position: absolute;
    top: -14px;
    left: 32px;
    padding: 6px 16px;
    background: var(--vib-orange-dark);
    color: var(--white);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}
.tag-gold {
    background: linear-gradient(135deg, var(--vib-gold), var(--vib-orange));
}
.product-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--vib-blue);
    margin-bottom: 16px;
}
.product-rate {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--gray-300);
}
.rate-from {
    font-size: 14px;
    color: var(--gray-500);
}
.rate-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--vib-blue);
    line-height: 1;
}
.rate-unit {
    font-size: 16px;
    color: var(--gray-700);
    font-weight: 600;
}
.product-features {
    margin-bottom: 28px;
    flex: 1;
}
.product-features li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 15px;
    color: var(--gray-700);
}
.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vib-blue);
    font-weight: 700;
}
.product-features strong { color: var(--vib-blue); }

/* ===== Bảng so sánh sản phẩm ===== */
.product-compare {
    margin-top: 64px;
    background: var(--white);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.compare-title {
    font-size: clamp(20px, 3vw, 26px);
    color: var(--vib-blue);
    margin-bottom: 8px;
    text-align: center;
    font-weight: 800;
}
.compare-sub {
    text-align: center;
    color: var(--gray-600);
    font-size: 13px;
    margin-bottom: 32px;
}
.compare-sub a {
    color: var(--vib-blue);
    text-decoration: underline;
    font-weight: 600;
}
.compare-sub a:hover { color: var(--vib-blue); }

.compare-group {
    font-size: 20px;
    color: var(--gray-900);
    margin: 32px 0 16px;
    font-weight: 700;
    padding-left: 8px;
    border-left: 4px solid var(--vib-orange);
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;     /* Buộc scroll ngang trên mobile */
}
.compare-table thead {
    background: linear-gradient(135deg, var(--vib-orange-dark) 0%, var(--vib-orange-deep) 100%);
    color: var(--white);
}
.compare-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}
.compare-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-800);
    line-height: 1.5;
}
.compare-table tbody tr {
    transition: var(--transition);
}
.compare-table tbody tr:hover {
    background: var(--vib-orange-light);
}
.compare-table strong {
    color: var(--vib-blue);
}
.compare-table .text-center { text-align: center; }

.compare-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--vib-orange-light);
    border-left: 3px solid var(--vib-orange);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
}
.compare-note a { color: var(--vib-blue); font-weight: 700; }

/* Mobile: font nhỏ lại, padding giảm */
@media (max-width: 600px) {
    .compare-table th, .compare-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .compare-group { font-size: 18px; }
}

/* ===== Process ===== */
.process { padding: 96px 0; background: var(--white); }
.process-steps {
    display: grid;
    grid-template-columns: repeat(7, auto);
    gap: 16px;
    align-items: start;
    justify-content: center;
}
.step {
    text-align: center;
    padding: 28px 20px;
    flex: 1;
    min-width: 160px;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--vib-orange);
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}
.step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--vib-blue);
    margin-bottom: 8px;
}
.step p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}
.step-arrow {
    align-self: center;
    font-size: 28px;
    color: var(--vib-blue);
    font-weight: 700;
    padding-top: 0;
}

/* ===== Rates ===== */
.rates { padding: 96px 0; background: var(--vib-orange-light); }
.rates-form-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}
.rates-table-wrap {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    overflow-x: auto;
}
.rates-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.rates-table th {
    background: var(--vib-orange-dark);
    color: var(--white);
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}
.rates-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
    color: var(--gray-700);
}
.rates-table tr:last-child td { border-bottom: none; }
.rates-table tbody tr {
    transition: var(--transition);
}
.rates-table tbody tr:hover {
    background: var(--vib-orange-xlight);
}
.rate {
    display: inline-block;
    padding: 4px 12px;
    background: var(--vib-orange-light);
    color: var(--vib-blue);
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
}
.rates-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: #FFF8E1;
    border-left: 4px solid var(--vib-gold);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-700);
}

/* ===== FAQ ===== */
.faq { padding: 96px 0; background: var(--white); }
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--vib-orange-light); }
.faq-item[open] {
    border-color: var(--vib-orange);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--vib-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--vib-blue);
    transition: var(--transition);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
    padding: 0 24px 20px;
    color: var(--gray-700);
    line-height: 1.7;
}
.faq-body p { margin-bottom: 8px; }

/* ===== CTA Final ===== */
.cta-final {
    padding: 96px 0;
    background: var(--white);                  /* Nền trắng cho tách bạch */
    text-align: center;
    color: var(--gray-900);
    position: relative;
    overflow: hidden;
    border-top: 6px solid var(--vib-orange);   /* Viền cam trên */
}
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(245,166,35,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245,130,32,0.08) 0%, transparent 50%);
}
.cta-final > .container { position: relative; z-index: 1; }
.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    color: var(--gray-900);                    /* Chữ đen trên nền trắng */
}
.cta-desc {
    font-size: 18px;
    color: var(--gray-700);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--vib-blue-dark);
    color: rgba(255,255,255,0.95);
    padding: 64px 0 32px;
    border-top: 6px solid var(--vib-orange);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-col ul li {
    padding: 6px 0;
    font-size: 14px;
}
.footer-col a:hover { color: var(--vib-gold); }

/* Footer contact - thông tin ngân hàng */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    line-height: 1.5;
}
.footer-contact .contact-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.4;
    width: 22px;
    text-align: center;
}
.footer-contact .contact-link {
    color: var(--vib-gold);
    font-weight: 600;
    transition: var(--transition);
}
.footer-contact .contact-link:hover {
    color: var(--white);
    text-decoration: underline;
}
.footer-logo {
    height: 48px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,0.7);
}
.footer-bottom p { margin-bottom: 8px; }
.footer-warning strong { color: var(--vib-gold); }

/* ===== Modal popup - responsive chuẩn ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    animation: fadeIn 0.25s ease;
}
.modal-overlay.is-open {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;             /* Mobile: full width */
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.35s ease;
    position: relative;
    margin: 0 auto;
}

/* Tablet: 768px-1023px - modal rộng 80vw */
@media (min-width: 768px) {
    .modal { width: 80vw; }
}

/* Desktop: ≥1024px - modal 50% màn, form 2 cột */
@media (min-width: 1024px) {
    .modal { width: 50%; }
    /* Form 2 cột cho desktop - input cạnh nhau */
    .modal-hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .modal-hero-grid .form-group-full {
        grid-column: 1 / -1;   /* Span 2 cột */
    }
}

/* ===== Product form card (style giống modal ở home, dùng cho form đăng ký ở trang sản phẩm) ===== */
.product-form-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 720px;
    margin: 0 auto;
}
.product-form-header {
    background: var(--vib-orange);
    color: var(--gray-900);
    padding: clamp(20px, 4vw, 28px);
    text-align: center;
}
.product-form-title {
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.2;
    color: var(--gray-900);
}
.product-form-sub {
    font-size: clamp(13px, 2vw, 15px);
    color: var(--gray-800);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}
.product-form-body {
    padding: clamp(20px, 4vw, 28px);
}
/* Trong product-form-card: form 2 cột ngay từ tablet (768px) trở lên */
@media (min-width: 768px) {
    .product-form-card .modal-hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .product-form-card .modal-hero-grid .form-group-full {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .product-form-body { padding: 18px; }
}

.modal-header {
    background: var(--vib-orange);
    color: var(--gray-900);
    padding: clamp(20px, 4vw, 28px);  /* Padding scale theo viewport */
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
}
.modal-title {
    font-size: clamp(20px, 3.5vw, 28px);  /* Scale theo viewport */
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.2;
}
.modal-subtitle {
    font-size: clamp(13px, 2vw, 15px);
    color: var(--gray-800);
    font-weight: 400;
    line-height: 1.4;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(17,24,39,0.08);
    border: none;
    color: var(--gray-900);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}
.modal-close:hover {
    background: rgba(17,24,39,0.14);
    transform: rotate(90deg);
}
.modal-body {
    padding: clamp(20px, 4vw, 28px);
}
.modal-extra-info {
    background: var(--vib-orange-light);
    border-left: 3px solid var(--vib-orange);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.5;
}
.modal-extra-info strong { color: var(--vib-blue); }

/* Mobile portrait tăng touch target */
@media (max-width: 480px) {
    .modal-overlay { padding: 12px; }
    .modal-close { width: 40px; height: 40px; font-size: 24px; }
    .product-grid { grid-template-columns: 1fr; }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;       /* Tránh zoom iOS */
        padding: 16px;          /* Padding lớn cho dễ bấm */
    }
    .modal-body { padding: 18px; }
}

/* ===== Float Call Button ===== */
.float-call {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: var(--vib-orange);
    color: var(--gray-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.float-call:hover {
    background: var(--vib-orange-dark);
    filter: brightness(1.15);
    transform: scale(1.1);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 93, 170, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(0, 93, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 93, 170, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-title { font-size: 40px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card.featured { transform: none; }
    .product-card.featured:hover { transform: translateY(-6px); }
    .process-steps {
        grid-template-columns: 1fr;
    }
    .step-arrow { transform: rotate(90deg); }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section-title { font-size: 32px; }
    .cta-title { font-size: 32px; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: var(--shadow);
        gap: 0;
    }
    .main-nav.is-open {
        display: flex;
    }
    .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-100);
    }
    .nav-dropdown {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin: 0 0 8px 16px;
        border-radius: var(--radius-sm);
    }
    .nav-item.is-open .nav-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    .nav-item { flex-wrap: wrap; }
    .nav-item > .nav-trigger { flex: 1; }
    .nav-submenu-toggle { width: 44px; height: 48px; }
    .nav-register { width: 100%; margin-top: 12px; }
    .nav-dropdown li a {
        padding: 10px 16px;
        border-bottom: none;
    }
    .nav-toggle { display: flex; }
    .hotline-text small { display: none; }
    .hero { padding: 48px 0 64px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 16px; }
    .hero-form { padding: 24px; }
    .why-us, .products, .process, .rates, .faq, .cta-final {
        padding: 64px 0;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .rates-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 16px; }
    .header-inner { padding: 18px 16px; gap: 12px; min-height: 72px; }
    .brand-logo { height: 36px; }
    .hero-title { font-size: 28px; }
    .form-title { font-size: 22px; }
    .section-title { font-size: 26px; }
    .cta-title { font-size: 26px; }
    .float-call {
        width: 56px;
        height: 56px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }
}
/* ============================================
   WORDPRESS THEME ADDITIONS
   Các class bổ sung cho template WordPress và
   những class dùng trong pages/*.html
============================================ */

/* --- Screen reader / skip link --- */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: absolute !important;
    top: 8px;
    left: 8px;
    z-index: 1000;
    width: auto;
    height: auto;
    clip: auto;
    padding: 12px 20px;
    background: var(--vib-blue);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* --- Honeypot --- */
.vib-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Form status message --- */
.vib-form-status {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 0;
}

.vib-form-status:empty { display: none; }

.vib-form-status.is-success {
    color: #2E7D32;
    background: #E8F5E9;
    border-left: 3px solid #2E7D32;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.vib-form-status.is-error {
    color: #C62828;
    background: #FDECEA;
    border-left: 3px solid #C62828;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

/* --- Form: 2 cột cho section bảng lãi suất --- */
.rates-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rates-form-grid .form-group-full {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .rates-form-grid { grid-template-columns: 1fr; }
    .rates-form-grid .form-group-full { grid-column: auto; }
}

/* --- Section dùng cho trang con: .form-section --- */
.form-section {
    padding: 64px 0;
}

/* --- Sub-pages: danh sách trong .step --- */
.step-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    text-align: left;
}

.step-list li {
    padding: 7px 0 7px 26px;
    position: relative;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
}

.step-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--vib-orange-dark);
    font-weight: 700;
}

.step h3 { margin-bottom: 4px; }

/* --- Sub-pages: .faq-content (nội dung trong <details>) --- */
.faq-content,
.faq-body {
    color: var(--gray-700);
    line-height: 1.7;
}

.faq-content > *:first-child,
.faq-body > *:first-child { margin-top: 0; }

.faq-content ul,
.faq-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-content li,
.faq-body li { margin-bottom: 6px; }

.faq-content .rate,
.faq-body .rate {
    color: var(--vib-orange-dark);
    font-weight: 700;
}

/* --- Active nav state --- */
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--vib-orange-dark);
    font-weight: 700;
}

/* --- Menu wrapper from wp_nav_menu --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li { position: relative; }
.nav-menu > li.has-submenu { display: flex; align-items: center; }
.nav-menu > li.has-submenu > a { flex: 1; }

.nav-menu > li > a {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-menu > li > a:hover,
.main-nav > a:hover { color: var(--vib-orange-dark); }

.nav-menu .nav-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-menu > li > a { padding: 12px 0; }
}

@media (max-width: 768px) {
    .nav-menu > li.has-submenu { flex-wrap: wrap; }
    .nav-item::after { display: none; }
    .nav-menu > li.has-submenu > .nav-submenu-toggle { width: 44px; height: 48px; }
    .nav-menu > li.has-submenu > .nav-dropdown { display: none; }
    .nav-menu > li.has-submenu.is-open > .nav-dropdown { display: block; }
}

/* --- WordPress core content alignment --- */
.entry-content > * { max-width: 100%; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--vib-blue); }

.entry-content a { color: var(--vib-orange-dark); }

.entry-content img { border-radius: var(--radius-sm); height: auto; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    text-align: left;
}

.entry-content blockquote {
    border-left: 4px solid var(--vib-orange);
    background: var(--vib-orange-xlight);
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.alignwide { max-width: 1400px; }
.alignfull { width: 100vw; max-width: 100vw; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--gray-500); text-align: center; }
.sticky { border-left: 4px solid var(--vib-orange); padding-left: 16px; }
.gallery-caption, .bypostauthor { display: block; }

/* --- Buttons (bổ sung) --- */
.btn-sm { padding: 8px 16px; font-size: 14px; }

.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }

/* --- Page / archive / single --- */
.vib-page,
.vib-single { padding: 56px 0; }

.vib-page-thumb { margin-bottom: 28px; }
.vib-page-thumb img { width: 100%; height: auto; border-radius: var(--radius); }

.vib-archive { padding: 48px 0 64px; }

.vib-post-list { margin-top: 32px; }

.vib-post-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: var(--transition);
}

.vib-post-card:hover {
    border-color: var(--vib-orange-light);
    box-shadow: var(--shadow-sm);
}

.vib-post-thumb img { border-radius: var(--radius-sm); width: 180px; height: auto; }

.vib-post-title { font-size: 20px; margin: 0 0 6px; }
.vib-post-title a { color: var(--vib-blue); }
.vib-post-title a:hover { color: var(--vib-orange-dark); }

.vib-post-meta { font-size: 14px; color: var(--gray-500); margin: 0 0 10px; }

.vib-post-excerpt { color: var(--gray-700); margin-bottom: 14px; }
.vib-post-excerpt p { margin: 0; }

.vib-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.vib-post-nav a { font-weight: 600; color: var(--vib-blue); }

@media (max-width: 640px) {
    .vib-post-card { flex-direction: column; }
    .vib-post-thumb img { width: 100%; }
}

/* --- Pagination --- */
.pagination .nav-links,
.navigation .nav-links,
.page-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.navigation .page-numbers {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 600;
}

.navigation .page-numbers.current,
.navigation a.page-numbers:hover {
    background: var(--vib-orange);
    border-color: var(--vib-orange);
    color: var(--white);
}

/* --- Search form --- */
.vib-search-form {
    display: flex;
    gap: 12px;
    padding: 20px;
    margin-top: 20px;
}

.vib-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
}

@media (max-width: 560px) {
    .vib-search-form { flex-direction: column; }
}

/* --- 404 --- */
.vib-404 { padding: 80px 0; }

.vib-404-code {
    font-size: clamp(64px, 14vw, 128px);
    font-weight: 800;
    line-height: 1;
    color: var(--vib-orange);
    margin: 0 0 8px;
    letter-spacing: -2px;
}

.vib-404-inner .hero-cta { justify-content: center; margin-top: 28px; }
.vib-404-inner .vib-search-form { max-width: 480px; margin: 32px auto 0; }

.vib-404-links { margin-top: 40px; }

.vib-404-links .nav-dropdown a {
    display: inline-block;
    padding: 6px 0;
    font-weight: 600;
}

/* --- Comments --- */
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--gray-100); }

/* --- Main content spacing --- */
.site-main > section:first-child { padding-top: 0; }

/* --- Brand link (header + sub-page fragments) --- */
.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* --- Compact header trigger links inside dropdown menus --- */
.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* --- CTA band used by sub-page fragments --- */
.cta-section {
    text-align: center;
}

.cta-section h2 { color: var(--white); }

/* --- Sub-page fragment markup --- */
.vib-post-body { flex: 1; min-width: 0; }
.vib-lead-form .vib-form-status { grid-column: 1 / -1; }
.wpcf7 form .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #2E7D32;
    background: #E8F5E9;
    color: #1B5E20;
}
.hero-form .wpcf7-submit,
.modal-body .wpcf7-submit { width: 100%; }
.hero-form.hero-form-cf7 {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.hero-form-cf7 .form-group label,
.hero-form-cf7 .wpcf7 form > p { color: var(--white); }
.hero-form-cf7 .wpcf7-submit {
    background: var(--white);
    border-color: var(--white);
    color: var(--vib-blue);
}
.hero-form-cf7 .wpcf7-submit:hover {
    background: var(--vib-blue-dark);
    border-color: var(--vib-blue-dark);
    color: var(--white);
}
.hero-form-cf7 .wpcf7 form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.hero-form-cf7 .wpcf7 form > .form-group { margin-bottom: 0; }
.hero-form-cf7 .wpcf7 form > .form-group:nth-of-type(n+5),
.hero-form-cf7 .wpcf7 form > p { grid-column: 1 / -1; }
.hero-form-cf7 .wpcf7 form > p { margin: 0; }
/* Form CF7 trên section nền sáng của trang con: chữ tối + nút cam */
.form-section .hero-form-cf7 .form-group label,
.form-section .hero-form-cf7 .wpcf7 form > p { color: var(--gray-700); }
.form-section .hero-form-cf7 .wpcf7-submit {
    background: var(--vib-orange);
    border-color: var(--vib-orange);
    color: var(--gray-900);
}
.form-section .hero-form-cf7 .wpcf7-submit:hover {
    background: var(--vib-orange-dark);
    border-color: var(--vib-orange-dark);
    color: var(--gray-900);
}
.product-hero-form .wpcf7 form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.product-hero-form .wpcf7 form > .form-group { margin-bottom: 0; }
.product-hero-form .wpcf7 form > .form-group:nth-of-type(n+5),
.product-hero-form .wpcf7 form > p { grid-column: 1 / -1; }
.product-hero-form .wpcf7 form > p { margin: 0; }
.modal-body .wpcf7 form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.modal-body .wpcf7 form > .form-group { margin-bottom: 0; }
.modal-body .wpcf7 form > .form-group:nth-of-type(n+5),
.modal-body .wpcf7 form > p { grid-column: 1 / -1; }
.modal-body .wpcf7 form > p { margin: 0; }
.rates-cf7-form .wpcf7 form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.rates-cf7-form .wpcf7 form > .form-group { margin-bottom: 0; }
.rates-cf7-form .wpcf7 form > .form-group:nth-of-type(n+7),
.rates-cf7-form .wpcf7 form > p { grid-column: 1 / -1; }
.rates-cf7-form .wpcf7 form > p { margin: 0; }
.rates-cf7-form .wpcf7-submit { width: 100%; }
.wpcf7-not-valid-tip { color: #B71C1C; font-size: 14px; }

/* Họ tên + Số điện thoại luôn nằm cùng 1 hàng, kể cả trên mobile */
@media (max-width: 767px) {
    .hero-form-cf7 .wpcf7 form,
    .product-hero-form .wpcf7 form,
    .modal-body .wpcf7 form,
    .rates-cf7-form .wpcf7 form { gap: 10px; }
    .wpcf7 form > .form-group label { font-size: 14px; }
}

@media (min-width: 821px) and (max-width: 992px) {
    .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 24px; }
    .hero { padding-bottom: 48px; }
    .hero-form { padding: 24px; }
    .hero-form .form-group { margin-bottom: 12px; }
    .hero-form .form-group input,
    .hero-form .form-group select,
    .hero-form .form-group textarea { padding: 10px 12px; }
}

@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

body.home .hero:not(.hero-page),
body.front-page .hero:not(.hero-page) { padding: 18px 0; }

/* --- Post nav blocks --- */
.vib-post-prev,
.vib-post-next { flex: 1; }
.vib-post-next { text-align: right; }

/* --- Spacing for top-level sections --- */
.site-main > .container:first-child,
.site-main > section:first-child { margin-top: 0; }

/* --- Generic page section padding --- */
.section {
    padding: 64px 0;
}

/* ============================================
   OVERFLOW FIXES
   Đảm bảo bảng rộng cuộn ngang bên trong
   wrapper thay vì làm tràn cả trang trên mobile
============================================ */

/* Wrapper bảng phải co lại được trong grid/flex */
.table-wrap,
.rates-table-wrap,
.rates-form-wrap,
.product-compare,
.product-grid,
.container,
.section > .container {
    min-width: 0;
}

/* Bảng rộng: cuộn ngang trong wrapper, không đẩy rộng trang */
.table-wrap,
.rates-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.table-wrap > table,
.rates-table-wrap > table {
    min-width: 600px;
}

/* Bảng dùng class entry-content của WordPress cũng cần bọc scroll */
.entry-content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

/* Bảng so sánh: bảo đảm không phình do padding + min-width */
.compare-table { width: 100%; }

/* Ẩn overflow ngang ở cấp cao nhất, giữ bảng vẫn cuộn được */
html, body { max-width: 100%; overflow-x: hidden; }

/* Ảnh và video không bao giờ vượt khung */
img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }

/* Form: input không giãn quá khung */
input, select, textarea { max-width: 100%; }

/* ============================================
   WCAG CONTRAST FIX
    Nền đặc dùng xanh đậm hoặc chữ tối trên cam để giữ tương phản.
   đạt tỉ lệ tương phản tối thiểu 4.5:1 theo WCAG AA.
============================================ */

.btn-primary,
.btn-gold {
    background: var(--vib-orange);
    border-color: var(--vib-orange);
    color: var(--gray-900);
}

.btn-primary:hover,
.btn-gold:hover {
    background: var(--vib-orange-dark);
    border-color: var(--vib-orange-dark);
    color: var(--gray-900);
    filter: none;
}

.product-tag {
    background: var(--vib-orange);
    color: var(--gray-900);
}

.product-tag.tag-gold {
    background: var(--vib-orange-dark);
    color: var(--gray-900);
}

.float-call {
    background: var(--vib-orange);
    color: var(--gray-900);
}

.float-call:hover {
    background: var(--vib-orange-dark);
    filter: none;
}

/* Nút gọi nổi: thêm viền trắng để tách khỏi nền sáng */
.float-call {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Trạng thái form */
.vib-form-status.is-success { color: #1B5E20; background: #E8F5E9; border-left-color: #1B5E20; }
.vib-form-status.is-error   { color: #B71C1C; background: #FDECEA; border-left-color: #B71C1C; }

/* Liên kết cam trên nền trắng dùng màu đủ tương phản */
.entry-content a,
.vib-post-title a { color: var(--vib-orange-ink); }

.vib-post-title a:hover,
.entry-content a:hover { color: var(--vib-orange-deep); }

/* Nhãn form và link phụ */
.form-note a,
.faq-body a { color: var(--vib-orange-ink); }

.main-nav > a:hover,
.nav-menu > li > a:hover { color: var(--vib-orange-ink); }

.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--vib-orange-ink); }

/* ============================================
   WCAG CONTRAST — FOOTER / BẢNG / LINK
    Nền cam đậm (#C77A00) chỉ đạt 3.38:1 nên mọi chữ nằm
    trên nền đó phải dùng nền tối hơn hoặc màu sáng hơn.
============================================ */

/* --- Footer: dùng nền --vib-orange-ink (5.38:1) --- */
.site-footer {
    background: var(--vib-blue-dark);
    color: rgba(255, 255, 255, 0.95);
    border-top: 6px solid var(--vib-orange);
}

.site-footer h4 { color: var(--white); }

.site-footer a,
.site-footer .footer-contact a { color: rgba(255, 255, 255, 0.95); }

.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* Link trong footer: dùng trắng thay vì vàng (vàng trên cam chỉ 1.67:1) */
.footer-contact .contact-link,
.site-footer .contact-link,
.footer-warning strong { color: var(--white); font-weight: 700; }

.footer-bottom { color: rgba(255, 255, 255, 0.85); }

/* --- Đầu bảng: nền đậm hơn --- */
.compare-table thead {
    background: var(--vib-orange);
    color: var(--gray-900);
}

.rates-table th,
.compare-table th {
    background: var(--vib-orange-ink);
    color: var(--white);
}

/* Modal header gradient */
.modal-header {
    background: var(--vib-orange);
    color: var(--gray-900);
}

/* Nút ghost trên nền tối */
.btn-ghost-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Nút outline trên nền cam đậm (cta-section trong pages) */
.cta-section .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

/* .btn-outline mặc định trên nền trắng */
.btn-outline {
    color: var(--vib-blue);
    border-color: var(--vib-orange);
    background: transparent;
}

.btn-outline:hover {
    background: var(--vib-orange);
    color: var(--gray-900);
    border-color: var(--vib-orange);
}

/* Số tiền / rate highlight trên nền sáng */
.rate-num, .product-rate .rate-num { color: var(--vib-blue); }

.rate { color: var(--vib-orange-ink); }

/* rates-note nền vàng nhạt */
.rates-note { color: var(--gray-700); border-left-color: var(--vib-orange-ink); }

/* compare-note */
.compare-note { color: var(--gray-700); }

/* ============================================
   WCAG CONTRAST — vòng 2
   Các nền cam đậm còn sót lại trong file .html gốc
   (inline style) được trung hòa bằng rule cao hơn.
============================================ */

/* Hero: badge dùng nền đậm hơn để chữ nổi */
.hero-badge {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
}

/* Chữ nhấn trong mô tả hero: nền phải đủ đậm */
.hero-desc strong {
    background: var(--vib-orange);
    color: var(--gray-900);
}

/* Nút ghost nền sáng: dùng màu đủ tương phản */
.btn-ghost {
    color: var(--vib-blue);
    border-color: var(--vib-blue);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--vib-blue);
    color: var(--white);
}

/* Hotline nhãn phụ: gray-500 trên trắng chỉ 4.6:1 -> dùng gray-600 */
.hotline-text small { color: var(--gray-600); }

/* Số tiền/ rate inline trong pages/*.html */
span.rate,
.faq-content .rate,
.faq-body .rate {
    color: var(--vib-orange-ink);
    font-weight: 700;
}

/* rates-note và compare-note: chữ đủ tương phản trên nền cam nhạt */
.rates-note p,
.compare-note p { color: var(--gray-700); }

/* Footer bottom: đủ tương phản trên nền --vib-orange-ink */
.site-footer .footer-bottom,
.footer-bottom { color: rgba(255, 255, 255, 0.9); }

.site-footer .footer-bottom p,
.footer-bottom p { color: rgba(255, 255, 255, 0.9); }

/* cta-section trong pages/*.html dùng inline background orange-deep.
   Ép nền sang token tối hơn để chữ trắng đạt chuẩn. */
.cta-section {
    background: var(--vib-orange) !important;
    color: var(--gray-900);
}

.cta-section p,
.cta-section h2,
.cta-section .btn-outline { color: var(--gray-900); }

.cta-section .btn-outline {
    background: transparent;
    border-color: var(--gray-900);
    color: var(--gray-900);
}

.cta-section .btn-ghost-light {
    color: var(--gray-900);
    border-color: rgba(17, 24, 39, 0.5);
}

.cta-section .btn-ghost-light:hover {
    background: var(--gray-900);
    color: var(--white);
}

/* ============================================
   WCAG CONTRAST — vòng 3 (đạt ngưỡng 4.5:1)
   gray-500 trên nền cam nhạt chỉ đạt 4.45:1
============================================ */

.section-desc { color: var(--gray-700); }
.form-note { color: var(--gray-700); }
.rate-from { color: var(--gray-600); }
.footer-brand p { color: rgba(255, 255, 255, 0.9); }
.modal-extra-info { color: var(--gray-700); }

/* Dấu bắt buộc: đỏ đậm hơn để đạt 4.5:1 trên nền cam nhạt */
.req {
    color: #B71C1C;
    font-weight: 700;
}

/* Nút outline đặt trong khối nền cam nhạt */
.product-card .btn-outline,
.rates .btn-outline,
.form-section .btn-outline { color: var(--vib-orange-ink); }

/* Card "featured" CÓ NỀN CAM NHẠT (--vib-orange-xlight), không phải cam đậm.
   Inline style color:#fff trong markup gốc làm chữ biến mất ->
   đè lại bằng màu đủ tương phản trên nền nhạt. */
.product-card.featured .btn-ghost {
    color: var(--vib-blue);
    border-color: var(--vib-blue);
}

.product-card.featured .btn-ghost:hover {
    background: var(--vib-blue);
    color: var(--white);
}

@media (min-width: 769px) and (max-width: 1100px) {
    .header-inner { gap: 12px; }
    .site-header.compact .header-inner { gap: 12px; }
    .main-nav { gap: 10px; }
    .site-header.compact .main-nav { gap: 10px; }
    .nav-menu { gap: 10px; }
    .nav-menu > li > a,
    .site-header.compact .nav-item > a { font-size: 13px; }
    .nav-register { padding: 8px 10px; font-size: 12px; }
    .hotline { padding: 7px 9px; }
    .site-header.compact .hotline { padding: 7px 9px; }
    .hotline-icon { display: none; }
    .hotline-text { gap: 0; }
    .hotline-text strong { font-size: 15px; }
}

/* ============================================
   HOME FIXES
============================================ */

/* Tiêu đề form CF7 ở hero (nền cam) */
.hero-form-cf7 .form-title { color: var(--white); }
.hero-form-cf7 .form-sub { color: rgba(255,255,255,0.9); margin-bottom: 18px; }
.hero-form-wrap { scroll-margin-top: 110px; }

/* Không để chữ "bạch" rớt dòng một mình ở hero trên desktop */
@media (min-width: 993px) {
    .hero-title .text-accent { white-space: nowrap; }
}
@media (min-width: 993px) and (max-width: 1279px) {
    .hero-title { font-size: 40px; }
}
@media (min-width: 1280px) {
    .hero-title { font-size: 48px; }
}

/* Logo footer: ảnh PNG có nền trắng, đặt trên nền trắng bo góc thay vì filter */
.footer-logo {
    filter: none;
    background: var(--white);
    padding: 8px 14px;
    border-radius: 10px;
    height: 56px;
    width: auto;
}

/* Sản phẩm: 1 cột trên điện thoại (rule 480px cũ bị rule 992px đè) */
.product-grid > * { min-width: 0; }
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CHỮ TRẮNG TRÊN NỀN CAM / VÀNG
============================================ */
.btn-primary, .btn-primary:hover,
.btn-gold, .btn-gold:hover,
.nav-register, .nav-register:hover,
.product-tag, .product-tag.tag-gold,
.step-num,
.float-call, .float-call:hover,
.hero-desc strong,
.hotline:hover, .hotline:hover .hotline-text small, .hotline:hover .hotline-text strong,
.form-section .hero-form-cf7 .wpcf7-submit,
.form-section .hero-form-cf7 .wpcf7-submit:hover,
.product-form-header, .product-form-title, .product-form-sub,
.modal-header, .modal-title, .modal-subtitle, .modal-close,
.cta-section, .cta-section p, .cta-section h2, .cta-section strong {
    color: var(--white);
}
.modal-close { background: rgba(255,255,255,0.18); }
.modal-close:hover { background: rgba(255,255,255,0.3); }

.cta-section .btn-outline,
.cta-section .btn-ghost-light {
    color: var(--white);
    border-color: var(--white);
}
.cta-section .btn-outline:hover,
.cta-section .btn-ghost-light:hover {
    background: var(--white);
    color: var(--vib-orange-deep);
}
