/* =============================================================
   TruePos Landing Page — styles.css (Scoped Version)
   Đã cách ly CSS để không conflict với hệ thống có sẵn
   ============================================================= */

:root {
  --brand-primary: #00446D;
  --brand-alt:     #005D8C;
  --brand-deep:    #002249;
  --brand-ring:    #009FFF;
  --text-body:     #292E35;
  --text-muted:    #868B90;
  --text-faint:    #AEB5B7;
  --page-tint:     #F7F9FF;
  --note-tint:     #EDF8FE;
  --icon-tint:     #F3FAFF;
  --table-head:    #E6ECF0;
  --border:        #E8EAED;
  --border-strong: #999999;
  --divider:       #E8E8E8;
  --success:       #348F50;
  --warn:          #FBBC05;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 40px;
  --shadow-sm: 0 1px 2px rgba(0, 34, 73, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 34, 73, 0.06);
  --shadow-lg: 0 20px 48px rgba(0, 34, 73, 0.10);
  --shadow-brand: 0 12px 28px rgba(0, 68, 109, 0.28);
  --container: 1006px;
  --easing: cubic-bezier(.22,.61,.36,1);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* -------- base scoping -------- */
html { scroll-behavior: smooth; }

.tp-landing-scope *, .tp-landing-scope *::before, .tp-landing-scope *::after,
.site-header *, .site-header *::before, .site-header *::after,
.site-footer *, .site-footer *::before, .site-footer *::after {
  box-sizing: border-box;
}

.tp-landing-scope, .site-header, .site-footer {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tp-landing-scope { background: #fff; display: block; }

.tp-landing-scope img, .site-header img, .site-footer img { max-width: 100%; display: block; }
.tp-landing-scope a, .site-header a, .site-footer a { color: inherit; text-decoration: none; }
.tp-landing-scope button, .site-header button, .site-footer button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
.tp-landing-scope ul, .site-header ul, .site-footer ul { margin: 0; padding: 0; list-style: none; }

.tp-landing-scope h1, .tp-landing-scope h2, .tp-landing-scope h3, .tp-landing-scope h4, .tp-landing-scope h5,
.site-header h1, .site-header h2, .site-header h3, .site-header h4, .site-header h5,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 { 
  margin: 0; font-weight: 700; color: var(--brand-deep); 
}

.tp-landing-scope .container, .site-header .container, .site-footer .container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------- buttons -------- */
.tp-landing-scope .btn, .site-header .btn, .site-footer .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 10px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 16px; line-height: 1;
  transition: transform .25s var(--easing), box-shadow .25s var(--easing), background .25s, color .25s;
  user-select: none; white-space: nowrap;
}
.tp-landing-scope .btn .icon, .site-header .btn .icon, .site-footer .btn .icon { width: 18px; height: 18px; }

.tp-landing-scope .btn-primary, .site-header .btn-primary, .site-footer .btn-primary {
  background: var(--brand-primary); color: #fff;
  border: 1.5px solid var(--brand-primary); border-radius: 24px;
  padding: 9px 22px; font-size: 16px;
}
.tp-landing-scope .btn-primary:hover, .site-header .btn-primary:hover, .site-footer .btn-primary:hover { background: #003A5C; border-color: #003A5C; }

.tp-landing-scope .btn-outline, .site-header .btn-outline, .site-footer .btn-outline {
  background: #fff; color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary); border-radius: 24px;
  padding: 9px 22px; font-size: 16px;
}
.tp-landing-scope .btn-outline:hover, .site-header .btn-outline:hover, .site-footer .btn-outline:hover { background: #EEF5FA; }

.tp-landing-scope .btn-hero {
  position: relative; padding: 22px 28px; font-size: 20px; font-weight: 600;
  background: linear-gradient(90deg, #004273 0%, #0185D4 100%); color: #fff;
  border-radius: var(--radius-pill); border: none; box-shadow: var(--shadow-brand);
}
.tp-landing-scope .btn-hero:hover {
  transform: translateY(-2px); background: linear-gradient(90deg, #003A65 0%, #0177BF 100%);
  box-shadow: 0 18px 36px rgba(0, 68, 109, .36);
  color: #fff !important;
}
.tp-landing-scope .btn-hero .arrow-circle {
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  display: inline-grid; place-items: center; color: var(--brand-primary);
  flex: 0 0 32px; transition: transform .25s var(--easing);
}
.tp-landing-scope .btn-hero:hover .arrow-circle { transform: translateX(3px); }
.tp-landing-scope .btn-hero .arrow-circle img { width: 16px; height: 16px; }

.tp-landing-scope .btn-second-hero {
  padding: 14px 28px; font-size: 20px; font-weight: 600; background: #fff;
  color: var(--brand-primary); border: 1.5px solid var(--brand-primary); border-radius: var(--radius-pill);
}
.tp-landing-scope .btn-second-hero:hover { background: #F1F7FB; }

.tp-landing-scope .btn-ghost {
  padding: 14px 28px; font-size: 20px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--radius-pill); backdrop-filter: blur(6px);
}
.tp-landing-scope .btn-ghost:hover { background: rgba(255,255,255,.18); }

.tp-landing-scope .btn-soft {
  padding: 14px 22px; font-size: 16px; font-weight: 600; background: #fff;
  color: var(--brand-primary); border: 1.5px solid var(--brand-primary); border-radius: var(--radius-pill);
}
.tp-landing-scope .btn-soft:hover { background: #EEF5FA; }

.tp-landing-scope .btn-row, .site-header .btn-row, .site-footer .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tp-landing-scope .btn-row.center { justify-content: center; margin-top: 40px; }


/* =============================================================
   HEADER (Giữ nguyên gốc)
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60; height: 80px; background: #fff;
  border-bottom: 1px solid var(--border); transition: box-shadow .3s var(--easing);
}
.site-header.scrolled { box-shadow: 0 4px 14px rgba(0, 34, 73, .05); }
.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.site-header .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-header .brand-logo { height: 31px; width: auto; }
.site-header .brand-tag { font-size: 10px; font-weight: 600; letter-spacing: .2px; color: var(--brand-primary); font-family: var(--font); }
.site-header .main-nav { display: flex; gap: 32px; }
.site-header .nav-link { padding: 8px 4px; font-weight: 600; font-size: 16px; color: var(--brand-deep); transition: color .2s; }
.site-header .nav-link:hover { color: var(--brand-primary); }
.site-header .header-cta { display: flex; gap: 10px; }


/* =============================================================
   SCOPED SECTIONS (HERO, CALC, OBLIGATIONS, SOLUTIONS, REGISTER, MODAL)
   ============================================================= */

/* HERO */
.tp-landing-scope .hero { position: relative; min-height: 398px; padding: 40px 0 60px; overflow: hidden; background: #fff; }
.tp-landing-scope .hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, #ECF9FD 0%, #92E2FF 100%); z-index: 0; }
.tp-landing-scope .hero-inner { padding: 0; position: relative; z-index: 1; }
.tp-landing-scope .hero-copy { max-width: 520px; }
.tp-landing-scope .hero-title { font-family: var(--font); font-size: 40px; font-weight: 700; line-height: 1.2; color: var(--brand-primary); margin-bottom: 18px; letter-spacing: -0.01em; }
.tp-landing-scope .hero-desc { font-size: 16px; line-height: 1.6; color: var(--text-body); margin: 0 0 32px; max-width: 468px; }

/* CALCULATOR SECTION */
.tp-landing-scope .calc-section { position: relative; padding: 60px 0; background: #F7F9FF; overflow: hidden; }
.tp-landing-scope .calc-bg { display: none; }
.tp-landing-scope .section-title { font-size: 30px; font-weight: 700; text-align: center; color: var(--brand-deep); margin: 0 auto 40px; letter-spacing: -0.01em; max-width: 900px; }
.tp-landing-scope .section-title.on-dark { color: #fff; }
.tp-landing-scope .section-desc { text-align: center; max-width: 720px; margin: -24px auto 40px; color: var(--text-body); font-size: 16px; line-height: 1.6; }
.tp-landing-scope .section-desc.on-dark { color: rgba(255,255,255,.85); }
.tp-landing-scope .calc-layout { display: grid; grid-template-columns: 468px 32px 468px; grid-template-areas: "form connector result" "tips connector result"; justify-content: center; gap: 0; align-items: start; max-width: 968px; margin: 0 auto; }
.tp-landing-scope .calc-form { grid-area: form; }
.tp-landing-scope .calc-connector { grid-area: connector; }
.tp-landing-scope .calc-result { grid-area: result; }
.tp-landing-scope .tips-card { grid-area: tips; }

/* Cards & Forms */
.tp-landing-scope .card { background: #fff; border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); transition: transform .3s var(--easing), box-shadow .3s var(--easing); }
.tp-landing-scope .card:hover { box-shadow: var(--shadow-lg); }
.tp-landing-scope .card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tp-landing-scope .card-head .icon { width: 24px; height: 24px; color: var(--brand-primary); }
.tp-landing-scope .card-head h3 { font-size: 20px; font-weight: 700; color: var(--brand-deep); }
.tp-landing-scope .card-sub { color: var(--text-body); font-size: 14px; line-height: 1.5; margin: 8px 0 20px; }

.tp-landing-scope .field { margin-bottom: 16px; }
.tp-landing-scope .field-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-deep); margin-bottom: 8px; }
.tp-landing-scope .icon-xs { width: 14px; height: 14px; }
.tp-landing-scope .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }

.tp-landing-scope .input { width: 100%; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; font-size: 15px; color: var(--brand-deep); text-align: right; font-family: var(--font); transition: border .2s, box-shadow .2s; }
.tp-landing-scope .input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(0,68,109,.15); }

.tp-landing-scope .select { position: relative; }
.tp-landing-scope .select-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--brand-deep); font-size: 15px; text-align: left; font-family: var(--font); transition: border .2s, box-shadow .2s; }
.tp-landing-scope .select-trigger:hover { border-color: var(--brand-primary); }
.tp-landing-scope .select-trigger .chevron { width: 18px; height: 18px; color: var(--border-strong); transition: transform .25s var(--easing); }
.tp-landing-scope .select.open .select-trigger { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(0,68,109,.15); }
.tp-landing-scope .select.open .select-trigger .chevron { transform: rotate(180deg); }
.tp-landing-scope .select-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s var(--easing), transform .25s var(--easing); z-index: 20; }
.tp-landing-scope .select.open .select-menu { opacity: 1; transform: none; pointer-events: auto; }
.tp-landing-scope .select-menu li { padding: 10px 16px; font-size: 15px; color: var(--text-body); cursor: pointer; transition: background .15s, color .15s; }
.tp-landing-scope .select-menu li:hover { background: var(--note-tint); color: var(--brand-primary); }

.tp-landing-scope .radio-row { display: flex; gap: 24px; }
.tp-landing-scope .radio { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--brand-deep); cursor: pointer; user-select: none; }
.tp-landing-scope .radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.tp-landing-scope .radio-dot { width: 20px; height: 20px; border: 2px solid var(--text-faint); border-radius: 50%; position: relative; transition: border .2s; }
.tp-landing-scope .radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand-primary); transform: scale(0); transition: transform .2s var(--easing); }
.tp-landing-scope .radio input:checked + .radio-dot { border-color: var(--brand-primary); }
.tp-landing-scope .radio input:checked + .radio-dot::after { transform: scale(1); }

.tp-landing-scope .hint-card, .tp-landing-scope .note-card { display: flex; gap: 12px; padding: 14px; background: var(--note-tint); border-radius: var(--radius-sm); margin-bottom: 16px; }
.tp-landing-scope .note-card { margin: 16px 0 0; }
.tp-landing-scope .hint-icon, .tp-landing-scope .note-icon { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; background: #fff; border-radius: var(--radius-pill); }
.tp-landing-scope .hint-title, .tp-landing-scope .note-title { font-weight: 700; font-size: 14px; color: var(--brand-deep); margin-bottom: 2px; }
.tp-landing-scope .hint-desc, .tp-landing-scope .note-desc { font-size: 13px; color: var(--text-body); line-height: 1.5; }

.tp-landing-scope .calc-form .btn-row { gap: 8px; }
.tp-landing-scope .calc-form .btn-row .btn { flex: 1; }
.tp-landing-scope .btn-calc { padding: 22px 16px; }
.tp-landing-scope .btn-calc .arrow-circle, .tp-landing-scope .solution .btn-hero .arrow-circle, .tp-landing-scope .register .btn-hero .arrow-circle { display: none; }
.tp-landing-scope .btn-row .btn-soft { padding: 22px 16px; font-size: 20px; font-weight: 600; border-width: 1.5px; }

.tp-landing-scope .calc-connector { align-self: center; justify-self: center; padding: 0; display: grid; place-items: center; height: 100%; min-height: 400px; }
.tp-landing-scope .calc-connector img { width: 24px; height: 24px; opacity: .6; color: var(--brand-primary); }

.tp-landing-scope .result-group { display: flex; flex-direction: column; gap: 4px; }
.tp-landing-scope .result-label { font-size: 14px; color: var(--text-body); }
.tp-landing-scope .result-value.strong { font-weight: 700; color: var(--brand-deep); font-size: 15px; }
.tp-landing-scope .divider { height: 1px; background: var(--divider); margin: 14px 0; }
.tp-landing-scope .kv-list { display: flex; flex-direction: column; gap: 6px; }
.tp-landing-scope .kv { display: flex; justify-content: space-between; font-size: 14px; }
.tp-landing-scope .kv span { color: var(--text-body); }
.tp-landing-scope .kv b { color: var(--brand-deep); font-weight: 700; }
.tp-landing-scope .total-card { background: var(--brand-primary); color: #fff; border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.tp-landing-scope .total-title { font-weight: 600; font-size: 14px; grid-column: 1; }
.tp-landing-scope .total-sub { font-size: 13px; opacity: .78; grid-column: 1; }
.tp-landing-scope .total-value { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; font-weight: 700; }

.tp-landing-scope .tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 0; border-bottom: 1px solid var(--border); }
.tp-landing-scope .tab { padding: 10px 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); position: relative; transition: color .2s; }
.tp-landing-scope .tab:hover { color: var(--brand-primary); }
.tp-landing-scope .tab.active { color: var(--brand-deep); }
.tp-landing-scope .tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand-primary); border-radius: 2px; animation: tab-in .3s var(--easing); }
@keyframes tab-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.tp-landing-scope .table-wrap { border: 1px solid var(--divider); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; }
.tp-landing-scope .tr { display: grid; grid-template-columns: 136px 1fr 112px; gap: 8px; padding: 12px 12px; font-size: 13px; color: var(--brand-deep); border-top: 1px solid var(--divider); }
.tp-landing-scope .tr:first-child { border-top: 0; }
.tp-landing-scope .tr.th { background: var(--table-head); color: var(--brand-deep); font-weight: 700; }
.tp-landing-scope .tr .right { text-align: right; font-weight: 600; }
.tp-landing-scope .tr.total-row { background: var(--table-head); font-weight: 700; }
.tp-landing-scope .tr.total-row .right { color: var(--brand-primary); }

.tp-landing-scope .tips-card { width: 468px; max-width: 100%; margin: 16px 0 0; justify-self: start; background: var(--note-tint); border-radius: var(--radius-xl); padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.tp-landing-scope .tip { display: flex; gap: 14px; align-items: flex-start; position: relative; }
.tp-landing-scope .tip-num { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--success); color: #fff; font-size: 20px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff inset; position: relative; z-index: 2; }
.tp-landing-scope .tip:not(:last-child)::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: -20px; width: 2px; background: var(--brand-primary); opacity: .35; z-index: 1; }
.tp-landing-scope .tip-text { font-size: 15px; color: var(--text-body); line-height: 1.5; font-weight: 600; padding-top: 8px; }

/* OBLIGATIONS */
.tp-landing-scope .obligations { padding: 80px 0; background: #fff; }
.tp-landing-scope .oblig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tp-landing-scope .oblig-card { background: #fff; border-radius: var(--radius-xl); padding: 24px; text-align: center; transition: transform .35s var(--easing), box-shadow .35s var(--easing); box-shadow: var(--shadow-md); }
.tp-landing-scope .oblig-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tp-landing-scope .oblig-icon { width: 72px; height: 72px; margin: 0 auto 24px; display: grid; place-items: center; transition: transform .35s var(--easing); position: relative; }
.tp-landing-scope .oblig-card:hover .oblig-icon { transform: scale(1.06); }
.tp-landing-scope .oblig-icon img { width: 72px; height: 72px; display: block; }
.tp-landing-scope .oblig-card h3 { font-size: 18px; font-weight: 600; color: var(--brand-deep); margin-bottom: 10px; }
.tp-landing-scope .oblig-card p { font-size: 14px; color: var(--text-body); line-height: 1.6; margin: 0; }

/* SOLUTIONS */
.tp-landing-scope .solution { position: relative; padding: 60px 0; background: var(--brand-deep); overflow: hidden; color: #fff; }
.tp-landing-scope .solution-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tp-landing-scope .blur-blob { position: absolute; border-radius: 50%; filter: blur(100px); }
.tp-landing-scope .blob-c { width: 900px; height: 700px; background: #0065A2; top: -260px; left: -300px; opacity: .35; }
.tp-landing-scope .blob-d { width: 780px; height: 600px; background: #0E3E66; bottom: -240px; right: -280px; opacity: .55; }
.tp-landing-scope .solution .container { position: relative; z-index: 1; }
.tp-landing-scope .brand-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 0; max-width: 468px; margin: 40px auto 0; isolation: isolate; }
.tp-landing-scope .brand-grid::before { content: ''; position: absolute; top: 50%; left: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(0,159,255,.55) 0%, rgba(0,159,255,.32) 18%, rgba(0,159,255,.16) 38%, rgba(0,159,255,.06) 60%, rgba(0,159,255,0) 80%); pointer-events: none; z-index: 0; filter: blur(10px); }
.tp-landing-scope .brand-line, .tp-landing-scope .brand-dot, .tp-landing-scope .brand-card { z-index: 2; }
.tp-landing-scope .brand-line { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(255,255,255,.35) 50%, transparent 50%) repeat-y center top / 2px 10px, linear-gradient(to bottom, rgba(255,255,255,.35) 50%, transparent 50%) repeat-x left center / 10px 2px; opacity: .35; }
.tp-landing-scope .brand-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brand-ring); background: transparent; z-index: 3; box-shadow: 0 0 12px rgba(0,159,255,.85), 0 0 28px rgba(0,159,255,.55), 0 0 60px rgba(0,159,255,.35), 0 0 100px rgba(0,159,255,.2); animation: pulse 2.4s ease-in-out infinite; }
.tp-landing-scope .brand-dot::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--brand-ring); box-shadow: 0 0 14px rgba(0,159,255,.9); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 12px rgba(0,159,255,.85), 0 0 28px rgba(0,159,255,.55), 0 0 60px rgba(0,159,255,.35), 0 0 100px rgba(0,159,255,.2); } 50% { box-shadow: 0 0 18px rgba(0,159,255,1), 0 0 40px rgba(0,159,255,.7), 0 0 80px rgba(0,159,255,.45), 0 0 140px rgba(0,159,255,.28); } }
.tp-landing-scope .brand-card { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px 24px; text-align: center; }
.tp-landing-scope .brand-card p { font-size: 14px; color: rgba(255,255,255,.80); line-height: 1.55; max-width: 230px; margin: 12px auto 0; }
.tp-landing-scope .brand-card.text-only h4 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.tp-landing-scope .brand-card .brand-logo { height: 38px; width: auto; max-width: 80%; object-fit: contain; display: block; }

/* REGISTER */
.tp-landing-scope .register { position: relative; padding: 40px 0; background: #fff; overflow: hidden; }
.tp-landing-scope .register .section-title { color: var(--brand-deep); }
.tp-landing-scope .register-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; max-width: 968px; margin-left: auto; margin-right: auto; }
.tp-landing-scope .reg-card { background: #fff; border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); transition: transform .35s var(--easing), box-shadow .35s var(--easing); }
.tp-landing-scope .reg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tp-landing-scope .reg-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 18px; }
.tp-landing-scope .reg-icon img { width: 45px; height: 45px; display: block; }
.tp-landing-scope .reg-card h3 { font-size: 18px; font-weight: 700; color: var(--brand-deep); margin-bottom: 8px; }
.tp-landing-scope .reg-card p { font-size: 14px; color: var(--text-body); line-height: 1.6; margin: 0; }

/* REVEAL */
.tp-landing-scope .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--easing), transform .7s var(--easing); }
.tp-landing-scope .reveal.in { opacity: 1; transform: none; }
.tp-landing-scope .reveal:nth-child(2) { transition-delay: .05s; }
.tp-landing-scope .reveal:nth-child(3) { transition-delay: .10s; }
.tp-landing-scope .reveal:nth-child(4) { transition-delay: .15s; }

/* MODAL */
.tp-landing-scope .modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s var(--easing), visibility 0s .3s linear; }
.tp-landing-scope .modal.open { opacity: 1; visibility: visible; transition: opacity .3s var(--easing); }
.tp-landing-scope .modal-backdrop { position: absolute; inset: 0; background: rgba(0, 34, 73, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tp-landing-scope .modal-dialog { position: relative; width: 100%; max-width: 634px; background: #fff; border-radius: var(--radius-xl); padding: 40px; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(16px) scale(.96); opacity: 0; transition: transform .35s var(--easing), opacity .35s var(--easing); max-height: calc(100vh - 40px); overflow-y: auto; }
.tp-landing-scope .modal.open .modal-dialog { transform: none; opacity: 1; }
.tp-landing-scope .modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, transform .2s; }
.tp-landing-scope .modal-close:hover { background: var(--page-tint); transform: rotate(90deg); }
.tp-landing-scope .modal-close img { width: 20px; height: 20px; }
.tp-landing-scope .modal-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 24px; }
.tp-landing-scope .modal-brand .brand-logo { height: 31px; width: auto; }
.tp-landing-scope .modal-brand .brand-tag { font-size: 10px; font-weight: 600; color: var(--brand-primary); }
.tp-landing-scope .modal-title { text-align: center; font-size: 24px; font-weight: 700; color: var(--brand-primary); margin-bottom: 24px; }
.tp-landing-scope .modal-form .field-row { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.tp-landing-scope .modal-form .field { margin-bottom: 14px; }
.tp-landing-scope .modal-form .field-label { font-size: 14px; font-weight: 600; color: var(--brand-deep); margin-bottom: 6px; }
.tp-landing-scope .input-text, .tp-landing-scope .input-textarea { width: 100%; padding: 10px 16px; border: 1px solid #C6C6C6; border-radius: var(--radius-sm); background: #fff; font-size: 16px; line-height: 24px; color: var(--brand-deep); text-align: left; transition: border .2s, box-shadow .2s; font-family: var(--font); }
.tp-landing-scope .input-text::placeholder, .tp-landing-scope .input-textarea::placeholder { color: #C6C6C6; }
.tp-landing-scope .input-text:focus, .tp-landing-scope .input-textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(0,68,109,.15); }
.tp-landing-scope .input-textarea { resize: vertical; min-height: 80px; }
.tp-landing-scope .select-block .select-trigger { border-color: #C6C6C6; padding: 10px 16px; font-size: 16px; color: var(--brand-deep); }
.tp-landing-scope .btn-submit { width: 100%; margin-top: 8px; padding: 20px 24px; font-size: 20px; }

/* Vẫn giữ nguyên logic khóa cuộn khi bật modal toàn trang */
body.modal-open { overflow: hidden; }

/* =============================================================
   FOOTER (Giữ nguyên gốc)
   ============================================================= */
.site-footer { background: var(--page-tint); color: var(--brand-primary); padding: 48px 0 24px; }
.site-footer .footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: center; padding-bottom: 28px; }
.site-footer .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; justify-self: start; }
.site-footer .footer-brand .brand-logo { height: 31px; width: auto; display: block; flex: none; }
.site-footer .footer-brand .brand-tag { font-size: 10px; font-weight: 600; color: var(--brand-primary); }
.site-footer .footer-tag { grid-column: 2 / -1; font-size: 14px; color: var(--brand-alt); font-weight: 600; }
.site-footer .footer-grid, .site-footer .footer-branches { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding: 24px 0; }
.site-footer .foot-col h4 { font-size: 16px; color: var(--brand-primary); margin-bottom: 16px; font-weight: 700; }
.site-footer .foot-col.accent h4 { color: var(--brand-alt); }
.site-footer .foot-list li, .site-footer .footer-branches p { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--brand-primary); padding: 6px 0; line-height: 1.5; }
.site-footer .foot-list li img, .site-footer .footer-branches p img { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; }
.site-footer .foot-links li { padding: 6px 0; font-size: 14px; }
.site-footer .foot-links a { color: var(--brand-primary); transition: color .2s; }
.site-footer .foot-links a:hover { color: var(--brand-alt); }
.site-footer .social { display: flex; gap: 8px; margin-top: 12px; }
.site-footer .social a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; transition: transform .2s; }
.site-footer .social a:hover { transform: translateY(-2px); }
.site-footer .social img { width: 24px; height: 24px; }
.site-footer .foot-hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.site-footer .branch { margin-bottom: 20px; }
.site-footer .branch h5 { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--brand-primary); margin-bottom: 10px; font-weight: 700; }
.site-footer .branch h5 img { width: 20px; height: 20px; }
.site-footer .branch p { margin: 0; }
.site-footer .branch p b { color: var(--brand-deep); font-weight: 700; }
.site-footer .footer-copy { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); margin-top: 16px; color: var(--brand-primary); font-size: 14px; }


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .tp-landing-scope .reveal { opacity: 1; transform: none; }
}

/* Tablet landscape */
@media (max-width: 1100px) {
  .tp-landing-scope .calc-layout { grid-template-columns: 1fr; }
  .tp-landing-scope .calc-connector { transform: rotate(90deg); justify-self: center; padding: 8px 0; min-height: auto; }
  .tp-landing-scope .tips-card { grid-column: 1; justify-self: center; }
  .tp-landing-scope .hero-title { font-size: 36px; }
  .tp-landing-scope .solution { padding: 72px 0 88px; }
  .tp-landing-scope .register { padding: 72px 0 88px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .site-header .main-nav { display: none; }
  .site-header .header-inner { gap: 16px; }
  .tp-landing-scope .hero { min-height: auto; padding: 32px 0 48px; }
  .tp-landing-scope .hero-inner { padding: 24px 0; }
  .tp-landing-scope .hero-title { font-size: 30px; }
  .tp-landing-scope .hero-desc { font-size: 15px; }
  .tp-landing-scope .section-title { font-size: 24px; }
  .tp-landing-scope .calc-section { padding: 48px 0 72px; }
  .tp-landing-scope .oblig-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tp-landing-scope .register-grid { grid-template-columns: 1fr; gap: 16px; }
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 16px; }
  .site-footer .footer-tag { grid-column: 1; }
  .site-footer .footer-grid, .site-footer .footer-branches { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tp-landing-scope .brand-grid { max-width: 420px; }
  .tp-landing-scope .brand-grid::before { width: 420px; height: 420px; }
  .tp-landing-scope .obligations { padding: 56px 0 72px; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --container: 100%; }
  .tp-landing-scope .container, .site-header .container, .site-footer .container { padding: 0 16px; }
  .site-header .header-cta .btn-outline { display: none; }
  .site-header .header-cta .btn-primary { padding: 8px 16px; font-size: 14px; }
  .site-header .brand .brand-tag { display: none; }

  .tp-landing-scope .hero { padding: 24px 0 36px; }
  .tp-landing-scope .hero-title { font-size: 26px; line-height: 1.2; }
  .tp-landing-scope .hero-title br { display: none; }
  .tp-landing-scope .hero-desc { font-size: 14px; margin-bottom: 24px; }
  .tp-landing-scope .btn-hero { padding: 16px 22px; font-size: 17px; }
  .tp-landing-scope .btn-hero .arrow-circle { width: 28px; height: 28px; flex-basis: 28px; }

  .tp-landing-scope .section-title { font-size: 22px; }
  .tp-landing-scope .calc-section { padding: 40px 0 56px; }
  .tp-landing-scope .calc-form { padding: 20px; }
  .tp-landing-scope .calc-form .btn-row { flex-direction: column; gap: 10px; }
  .tp-landing-scope .calc-form .btn-row .btn { width: 100%; }
  .tp-landing-scope .btn-calc, .tp-landing-scope .btn-row .btn-soft { padding: 16px 16px; font-size: 17px; }

  .tp-landing-scope .field-row, .tp-landing-scope .modal-form .field-row { grid-template-columns: 1fr; }
  .tp-landing-scope .oblig-grid { grid-template-columns: 1fr; gap: 16px; }
  .tp-landing-scope .obligations { padding: 40px 0 56px; }

  .tp-landing-scope .solution { padding: 48px 0 64px; }
  .tp-landing-scope .tr { grid-template-columns: 1fr 1fr; }
  .tp-landing-scope .tr > div:nth-child(2) { display: none; }

  .tp-landing-scope .brand-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 180px); max-width: 320px; }
  .tp-landing-scope .brand-grid::before { width: 340px; height: 340px; }
  .tp-landing-scope .brand-dot { display: none; }
  .tp-landing-scope .brand-line { opacity: .2; }

  .tp-landing-scope .register { padding: 48px 0 64px; }

  .site-footer { padding: 32px 0 20px; }
  .site-footer .footer-grid, .site-footer .footer-branches { grid-template-columns: 1fr; gap: 24px; }

  .tp-landing-scope .modal-dialog { padding: 28px 20px; width: calc(100% - 24px); }
  .tp-landing-scope .modal-title { font-size: 20px; }
}

/* Small mobile */
@media (max-width: 420px) {
  .tp-landing-scope .hero-title { font-size: 22px; }
  .tp-landing-scope .section-title { font-size: 20px; }
  .tp-landing-scope .btn-hero { padding: 14px 18px; font-size: 16px; }
  .site-header .brand-logo { height: 28px; }
  .site-header .header-cta .btn-primary { padding: 7px 12px; font-size: 13px; }
}

/* Tablet landscape & smaller */
@media (max-width: 1100px) {
    /* Ép Grid xếp thành 1 cột dọc theo thứ tự */
    .tp-landing-scope .calc-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "connector"
            "result"
            "tips";
        gap: 16px; /* Thêm khoảng cách giữa các khối khi xếp dọc */
    }

    /* Chỉnh lại icon mũi tên xoay dọc và tạo khoảng trống */
    .tp-landing-scope .calc-connector {
        transform: rotate(90deg);
        justify-self: center;
        padding: 16px 0;
        min-height: auto;
    }

    /* Đưa các thẻ Card về giữa màn hình, giới hạn max-width để không bị bành trướng quá to */
    .tp-landing-scope .calc-form,
    .tp-landing-scope .calc-result,
    .tp-landing-scope .tips-card {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
        justify-self: center;
    }

    .tp-landing-scope .tips-card {
        margin-top: 8px; /* Cách ra một chút so với result */
    }

    /* Điều chỉnh các phần khác giữ nguyên... */
    .tp-landing-scope .hero-title {
        font-size: 36px;
    }

    .tp-landing-scope .solution {
        padding: 72px 0 88px;
    }

    .tp-landing-scope .register {
        padding: 72px 0 88px;
    }
}

@media (max-width: 600px) {
    /* ...các code có sẵn... */

    .tp-landing-scope .tips-card {
        width: 100%; /* Xóa bỏ width fix cứng 468px */
        padding: 16px;
    }
}