/* =========================================================
   Liên hệ (lien-he.html) — follows the approved design.
   Loaded after style.css + mockups.css.
   ========================================================= */

.page-contact { --lh-ink: #0b1f4d; --lh-blue: #1467e6; --lh-muted: #55677f; --lh-line: #e2eaf5; --gutter: max(20px, calc((100% - 1240px) / 2)); background: #f6f9fe; }
.page-contact h1, .page-contact h2, .page-contact h3 { color: var(--lh-ink); }
.page-contact .pill.primary { background: linear-gradient(90deg, #1a6dff, #2b86ff); }
.lh-kicker {
  display: inline-block; padding: 5px 14px; border-radius: 99px; margin-bottom: 12px;
  background: #e1edff; color: var(--lh-blue);
  font: 700 11.5px var(--display); letter-spacing: .18em; text-transform: uppercase;
}
.lh-kicker.dark { background: rgba(40,110,230,.28); color: #7cc4ff; border: 1px solid rgba(90,160,255,.35); }
.lh-sub { margin: 0 0 24px; color: var(--lh-muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- Hero ---------- */
.lh-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center;
  min-height: 470px; padding: 104px var(--gutter) 40px;
  background: linear-gradient(180deg, #eaf3ff, #f4f8ff);
}
.lh-hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%; pointer-events: none;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1800&q=70') center / cover;
  filter: brightness(1.1) saturate(.7); opacity: .75;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.lh-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(234,243,255,.9), rgba(234,243,255,.15) 50%); }
.lh-hero-copy { position: relative; z-index: 3; }
.lh-hero h1 { margin: 4px 0 16px; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
.lh-hero h1 .ln { display: block; }
.lh-hero h1 em { font-style: normal; background: linear-gradient(90deg, #0f5fe8, #1d8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lh-hero-copy > p { margin: 0; max-width: 560px; color: #3f526b; font-size: 15px; line-height: 1.7; }
.lh-perks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.lh-perks li { display: flex; align-items: center; gap: 12px; font: 600 13.5px/1.35 var(--display); color: var(--lh-ink); }
.lh-perks small { display: block; font: 500 13px var(--sans); color: #52657e; }
.lh-perk-ic { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; color: var(--lh-blue); background: #fff; box-shadow: 0 8px 20px rgba(20,80,160,.12); }

.lh-hero-art { position: relative; z-index: 2; height: 320px; }
.lh-script { position: absolute; z-index: 4; left: -8%; top: -44px; font: 600 23px/1.2 var(--script); color: #2f5cae; transform: rotate(-9deg); }
.lh-script::after { content: ""; display: block; width: 110px; height: 2px; margin: 6px 0 0 110px; border-radius: 2px; background: linear-gradient(90deg, transparent, #1467e6); transform: rotate(-6deg); }
.lh-devices { position: absolute; left: 4%; right: 31%; bottom: 0; height: 88%; }
.lh-laptop { left: 12%; width: 70%; bottom: 0; }
.lh-logo-screen { display: flex; align-items: center; justify-content: center; gap: 4cqw; background: radial-gradient(ellipse at 50% 40%, #1552c4, #081f55 75%); }
.lh-logo-screen img { width: 16cqw; height: auto; filter: drop-shadow(0 0 1.5cqw rgba(120,190,255,.6)); }
.lh-logo-screen span { font: 700 6cqw/1.05 var(--display); color: #fff; }
.lh-logo-screen b { display: block; color: #7cd0ff; }
.lh-phone { position: absolute; bottom: 0; width: 15%; aspect-ratio: 9 / 19; }
.lh-phone .dv-phone { left: 0; right: 0; bottom: 0; }
.lh-phone.p1 { left: 0; transform: rotate(-6deg); }
.lh-phone.p2 { right: -2%; width: 16%; transform: rotate(5deg); }
.lh-glass { position: absolute; right: 0; top: 14px; display: grid; gap: 14px; }
.lh-gcard {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 34px rgba(20,70,150,.16);
}
.lh-gcard:nth-child(2) { margin-left: 8px; }
.lh-gcard:nth-child(3) { margin-left: 16px; }
.lh-gcard > span { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(145deg, #3b86ff, #0b5ce8); }
.lh-gcard p { margin: 0; font: 700 13.5px/1.3 var(--display); color: var(--lh-ink); }
.lh-gcard small { display: block; font: 500 12.5px var(--sans); color: #52657e; }

/* ---------- Form + channels ---------- */
.lh-main { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: start; padding: 20px var(--gutter) 40px; }
.lh-form-card, .lh-side { padding: 28px 30px; border-radius: 18px; background: #fff; border: 1px solid var(--lh-line); box-shadow: 0 18px 44px rgba(20,60,120,.07); }
.lh-main h2, .lh-faq h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.lh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.lh-form .full { grid-column: 1 / -1; }
.lh-field { display: grid; gap: 8px; }
.lh-field label { font: 700 13.5px var(--display); color: var(--lh-ink); }
.lh-field label i { font-style: normal; color: #e5484d; }
.lh-field input, .lh-field textarea, .lh-select select {
  width: 100%; font: 14px var(--sans); color: var(--lh-ink); background: #fff;
  border: 1px solid #d8e2ee; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.lh-field input::placeholder, .lh-field textarea::placeholder { color: #9aa8ba; }
.lh-field input:focus, .lh-field textarea:focus, .lh-select select:focus { outline: 0; border-color: var(--lh-blue); box-shadow: 0 0 0 3px rgba(20,103,230,.12); }
.lh-field textarea { resize: vertical; min-height: 104px; }
.lh-field.invalid input, .lh-field.invalid select { border-color: #e5484d; }
.lh-select { position: relative; display: block; }
.lh-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.lh-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.8px solid #52657e; border-bottom: 1.8px solid #52657e; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.lh-upload { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; border: 1.5px dashed #b9cde6; background: #f8fbff; }
.lh-up-ic { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 20px; color: var(--lh-blue); background: #fff; box-shadow: 0 6px 14px rgba(20,80,160,.1); }
.lh-up-text { flex: 1; min-width: 0; }
.lh-up-text strong { display: block; font: 700 14px var(--display); color: var(--lh-ink); }
.lh-up-text small { display: block; font-size: 12.5px; color: #5b6d85; overflow-wrap: anywhere; }
.lh-up-btn { flex-shrink: 0; padding: 10px 18px; border-radius: 10px; cursor: pointer; background: #e3eefc; color: var(--lh-blue); font: 700 13.5px var(--display); transition: background .2s; }
.lh-up-btn:hover { background: #d3e4fb; }
.lh-msg { margin: 0; font-size: 13.5px; }
.lh-msg:empty { display: none; }
.lh-msg.error { color: #d13438; }
.lh-msg.ok { color: #0d8a4f; font-weight: 600; }
.lh-submit { min-height: 50px; font-size: 15px; }
.lh-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 0; font-size: 13px; color: #5b6d85; }
.lh-secure svg { font-size: 15px; }

.lh-channel {
  display: flex; align-items: center; gap: 18px; margin-bottom: 14px; padding: 18px 20px; border-radius: 14px;
  background: #fff; border: 1px solid var(--lh-line); box-shadow: 0 10px 24px rgba(20,60,120,.05);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.lh-channel:hover { transform: translateY(-3px); border-color: #bcd6f3; box-shadow: 0 18px 38px rgba(20,90,170,.12); }
.lh-ch-ic { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 24px; color: #fff; background: linear-gradient(145deg, #3b86ff, #0b5ce8); box-shadow: 0 8px 18px rgba(20,103,230,.3); }
.lh-ch-body { flex: 1; min-width: 0; }
.lh-ch-body b { display: block; font: 700 14px var(--display); color: var(--lh-ink); }
.lh-ch-body strong { display: block; font: 800 20px var(--display); letter-spacing: -.02em; color: var(--lh-blue); overflow-wrap: anywhere; }
.lh-ch-body small { font-size: 13px; color: #5b6d85; }
.lh-go { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 16px; color: var(--lh-blue); background: #eef5ff; transition: background .3s, color .3s, transform .3s; }
.lh-channel:hover .lh-go { background: var(--lh-blue); color: #fff; transform: translateX(3px); }
.lh-quick {
  display: flex; gap: 18px; align-items: center; margin-top: 18px; padding: 22px 20px; border-radius: 14px;
  background: linear-gradient(135deg, #eef5ff, #dcebff); overflow: hidden;
}
.lh-agent { width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 44px; color: #fff; background: linear-gradient(145deg, #3b86ff, #0b5ce8); box-shadow: 0 12px 26px rgba(20,103,230,.3); }
.lh-quick h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.lh-quick p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #4e6079; }
.lh-quick .pill { min-height: 44px; font-size: 13.5px; }

/* ---------- FAQ ---------- */
.lh-faq { padding: 30px var(--gutter) 30px; }
.lh-faq-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 20px; }
.lh-faq-head p { margin: 0; color: var(--lh-muted); font-size: 14.5px; }
.lh-outline { background: #fff; border: 1.5px solid #9fc0f0; color: var(--lh-blue); min-height: 44px; font-size: 13.5px; flex-shrink: 0; }
.lh-outline:hover { border-color: var(--lh-blue); transform: translateY(-2px); }
.lh-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-items: start; }
.lh-faq-grid details { border-radius: 12px; background: #fff; border: 1px solid var(--lh-line); box-shadow: 0 8px 20px rgba(20,60,120,.04); transition: box-shadow .3s, border-color .3s; }
.lh-faq-grid details[open] { border-color: #bcd6f3; box-shadow: 0 14px 30px rgba(13,112,199,.08); }
.lh-faq-grid summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font: 600 14.5px var(--display); color: var(--lh-ink); }
.lh-faq-grid summary::-webkit-details-marker { display: none; }
.lh-plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.lh-plus::before, .lh-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--lh-blue); transition: transform .3s; }
.lh-plus::after { transform: rotate(90deg); }
details[open] .lh-plus::after { transform: rotate(0); }
.lh-a p { margin: 0; padding: 0 20px 18px; font-size: 14px; line-height: 1.65; color: #526b86; }
.lh-a a { color: var(--lh-blue); font-weight: 600; }

/* ---------- CTA ---------- */
.lh-cta-wrap { padding: 20px var(--gutter) 70px; }
.lh-cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 20px;
  min-height: 250px; padding: 32px 44px; border-radius: 20px; color: #fff;
  background:
    radial-gradient(ellipse 40% 90% at 70% 60%, rgba(40,120,255,.45), transparent 70%),
    linear-gradient(110deg, #061c46, #0a2c6b 55%, #041637);
  box-shadow: 0 26px 60px rgba(6,32,86,.3);
}
.lh-cta-copy { position: relative; z-index: 2; }
.lh-cta h2 { color: #fff; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 10px; }
.lh-cta p { margin: 0; color: #c9d8f0; font-size: 14.5px; line-height: 1.6; max-width: 520px; }
.lh-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.lh-actions .pill { min-height: 48px; }
.lh-white { background: #fff; color: #0b2a6b; box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.lh-white:hover { transform: translateY(-2px); }
.lh-ghost-dark { border: 1.5px solid rgba(120,170,255,.6); color: #fff; background: rgba(20,60,140,.25); }
.lh-ghost-dark:hover { background: rgba(40,100,220,.4); transform: translateY(-2px); }
.lh-cta-art { position: relative; z-index: 2; height: 220px; }
.lh-cta-art .dv-laptop { left: 0; width: 58%; bottom: -20px; transform: perspective(900px) rotateY(-14deg); }
.lh-cta-art .dv-phone { left: 54%; width: 12%; bottom: -6px; }
.lh-cta-art .dv-stage { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.lh-tile { position: absolute; z-index: 3; width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; color: #fff; background: rgba(80,150,255,.28); border: 1px solid rgba(140,190,255,.5); backdrop-filter: blur(6px); box-shadow: 0 0 24px rgba(60,140,255,.4); }
.lh-tile.t1 { left: -2%; top: 20px; }
.lh-tile.t2 { left: 66%; bottom: 18px; }
.lh-cta-script { position: absolute; z-index: 3; right: 3%; top: 20%; font: 600 24px/1.2 var(--script); color: #fff; text-align: center; transform: rotate(-10deg); opacity: .92; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .lh-hero { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .lh-hero-bg { width: 100%; opacity: .35; }
  .lh-hero-art { height: 300px; max-width: 700px; width: 100%; margin: 40px auto 0; }
  .lh-main { grid-template-columns: 1fr; }
  .lh-cta { grid-template-columns: 1fr; }
  .lh-cta-script { display: none; }
}
@media (max-width: 860px) {
  .lh-faq-grid { grid-template-columns: 1fr; }
  .lh-faq-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .lh-hero { padding-top: 88px; }
  .lh-hero h1 { font-size: 29px; }
  .lh-perks { flex-direction: column; gap: 12px; }
  .lh-hero-art { height: 250px; margin-top: 30px; }
  .lh-script { display: none; }
  .lh-glass { display: none; }
  .lh-devices { left: 0; right: 0; }
  .lh-form-card, .lh-side { padding: 22px 18px; }
  .lh-form { grid-template-columns: 1fr; }
  .lh-upload { flex-wrap: wrap; }
  .lh-up-btn { margin-left: 60px; }
  .lh-channel { padding: 14px; gap: 12px; }
  .lh-ch-ic { width: 44px; height: 44px; font-size: 20px; }
  .lh-ch-body strong { font-size: 17px; }
  .lh-quick { flex-direction: column; align-items: flex-start; }
  .lh-agent { width: 64px; height: 64px; font-size: 32px; }
  .lh-cta { padding: 28px 22px; }
  .lh-actions .pill { flex: 1 1 100%; }
  .lh-cta-art { height: 180px; }
  .lh-tile { display: none; }
}

/* =========================================================
   3D (html.fx3d is set by contact.js) — only hero and CTA
   ========================================================= */
.fx3d .lh-hero .lh-kicker, .fx3d .lh-hero h1 .ln, .fx3d .lh-hero-copy > p, .fx3d .lh-perks li { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform 1s cubic-bezier(.16,.84,.24,1); }
.fx3d .lh-hero h1 .ln { transform-origin: 50% 100%; transform: perspective(700px) translateY(30px) rotateX(-55deg); }
.fx3d .lh-hero h1 .ln:nth-child(2) { transition-delay: .12s; }
.fx3d .lh-hero-copy > p { transition-delay: .3s; }
.fx3d .lh-perks li:nth-child(1) { transition-delay: .45s; }
.fx3d .lh-perks li:nth-child(2) { transition-delay: .55s; }
.fx3d .lh-perks li:nth-child(3) { transition-delay: .65s; }
.fx3d .play .lh-kicker, .fx3d .play h1 .ln, .fx3d .play .lh-hero-copy > p, .fx3d .play .lh-perks li { opacity: 1; transform: none; }
.fx3d .lh-hero-bg { transition: opacity 1.4s, transform 1.8s cubic-bezier(.16,.84,.24,1); transform: scale(1.04) translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -8px)); }
.fx3d .lh-hero:not(.play) .lh-hero-bg { opacity: 0; transform: scale(1.2); }
.fx3d .lh-devices { perspective: 1200px; transition: translate .6s cubic-bezier(.2,.8,.2,1); translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 10px); }
.fx3d .lh-laptop { perspective: 1000px; }
.fx3d .lh-laptop .dv-screen { transform-origin: 50% 100%; transition: transform 1.3s .5s cubic-bezier(.2,.9,.25,1.12); }
.fx3d .lh-hero:not(.play) .lh-laptop .dv-screen { transform: rotateX(-92deg); }
.fx3d .lh-phone { transition: opacity .8s, translate 1.1s cubic-bezier(.16,.84,.24,1); }
.fx3d .lh-hero:not(.play) .lh-phone { opacity: 0; translate: 0 60px; }
.fx3d .lh-phone.p1 { transition-delay: .9s; }
.fx3d .lh-phone.p2 { transition-delay: 1.05s; }
.fx3d .lh-gcard { transition: opacity .7s, transform .9s cubic-bezier(.16,.84,.24,1), translate .6s cubic-bezier(.2,.8,.2,1); translate: calc(var(--px, 0) * -26px) calc(var(--py, 0) * -14px); }
.fx3d .lh-hero:not(.play) .lh-gcard { opacity: 0; transform: perspective(700px) rotateY(-60deg) translateX(40px); }
.fx3d .lh-gcard:nth-child(1) { transition-delay: 1.1s; }
.fx3d .lh-gcard:nth-child(2) { transition-delay: 1.22s; }
.fx3d .lh-gcard:nth-child(3) { transition-delay: 1.34s; }
.fx3d .lh-script { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s 1.3s ease-out; }
.fx3d .play .lh-script { clip-path: inset(-20% -20% -20% -20%); }

.fx3d .lh-cta.reveal { transition: opacity .9s, transform 1.3s cubic-bezier(.16,.84,.24,1); transform-origin: 50% 100%; }
.fx3d .lh-cta.reveal:not(.in) { opacity: 0; transform: perspective(1400px) rotateX(-50deg) translateY(50px); }
.fx3d .lh-cta .dv-laptop .dv-screen { transform-origin: 50% 100%; transition: transform 1.3s .6s cubic-bezier(.2,.9,.25,1.12); }
.fx3d .lh-cta:not(.in) .dv-laptop .dv-screen { transform: rotateX(-92deg); }
.fx3d .lh-cta .dv-phone { transition: opacity .8s .9s, transform 1.1s .9s cubic-bezier(.16,.84,.24,1); }
.fx3d .lh-cta:not(.in) .dv-phone { opacity: 0; transform: translateY(60px) rotateY(-50deg); }
.fx3d .lh-tile { animation: lh-float 6s ease-in-out infinite; }
.fx3d .lh-tile.t2 { animation-delay: -3s; }
@keyframes lh-float { 50% { translate: 0 -10px; } }
.fx3d .lh-cta-script { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s 1s ease-out; }
.fx3d .lh-cta.in .lh-cta-script { clip-path: inset(-20% -20% -20% -20%); }
.fx3d .lh-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(120,180,255,.18), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.fx3d .lh-cta:hover::after { opacity: 1; }
