/**
 * ATP Contact — Design system for the Liên hệ page widgets.
 * Ported from theme static/Lien-He-standalone.html (inline <style>).
 * All selectors are scoped under .aa-contact-scope to avoid clashing with
 * the global theme / home landing styles. :root vars stay global (harmless).
 */
:root{
  --brand:#00a889;
  --brand-dark:#007966;
  --brand-soft:#e8fff8;
  --lime:#b8f45f;
  --blue:#1f75ff;
  --yellow:#ffd34d;
  --coral:#ff6b5f;
  --ink:#071322;
  --ink-soft:#26384d;
  --muted:#65768a;
  --line:#dce8ef;
  --line-strong:#c5d8e4;
  --paper:#ffffff;
  --bg:#f5fbf9;
  --dark:#071322;
  --radius:8px;
  --shadow:0 26px 70px -50px rgba(7,19,34,.52);
  --shadow-soft:0 18px 44px -34px rgba(7,19,34,.35);
}
.aa-contact-scope *{box-sizing:border-box;margin:0;padding:0}
.aa-contact-scope{
  font-family:"Inter","Be Vietnam Pro",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  letter-spacing:0;
  text-align:left;
}
.aa-contact-scope a{color:inherit;text-decoration:none}
.aa-contact-scope button,.aa-contact-scope input,.aa-contact-scope textarea,.aa-contact-scope select{font:inherit}
.aa-contact-scope button{cursor:pointer}
.aa-contact-scope img{display:block;max-width:100%}
.aa-contact-scope .container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.aa-contact-scope .btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 17px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:14px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.aa-contact-scope .btn:hover{transform:translateY(-1px)}
.aa-contact-scope .btn:active{transform:translateY(0)}
.aa-contact-scope .btn-primary{color:#fff;background:linear-gradient(135deg,#00d4af,#c5f55f);box-shadow:0 18px 46px -30px rgba(0,168,137,.95)}
.aa-contact-scope .btn-dark{color:#fff;background:var(--dark);border-color:var(--dark)}
.aa-contact-scope .btn-ghost{color:var(--ink);background:#fff;border-color:var(--line)}
.aa-contact-scope .btn-lg{min-height:54px;padding:0 22px;font-size:15px}
.aa-contact-scope .hero{padding:66px 0 82px;overflow:hidden}
.aa-contact-scope .hero-grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:42px;align-items:center}
.aa-contact-scope .eyebrow{display:inline-flex;align-items:center;gap:9px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.82);color:#12493d;font-size:12.5px;font-weight:850}
.aa-contact-scope .eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 5px rgba(0,168,137,.12)}
.aa-contact-scope h1{margin-top:18px;font-size:74px;line-height:.94;font-weight:950;color:var(--ink)}
.aa-contact-scope h1 span{color:var(--brand)}
.aa-contact-scope .hero-sub{max-width:640px;margin-top:22px;color:var(--ink-soft);font-size:18px;line-height:1.7}
.aa-contact-scope .hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.aa-contact-scope .response-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:30px;max-width:650px}
.aa-contact-scope .response-card{border:1px solid var(--line);border-radius:var(--radius);background:rgba(255,255,255,.88);padding:16px;box-shadow:var(--shadow-soft)}
.aa-contact-scope .response-card b{display:block;font-size:24px;line-height:1;font-weight:950}
.aa-contact-scope .response-card span{display:block;margin-top:8px;color:var(--muted);font-size:12.5px;font-weight:720;line-height:1.35}
.aa-contact-scope .contact-console{
  min-width:0;
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.aa-contact-scope .console-head{height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#f6fffc)}
.aa-contact-scope .dots{display:flex;gap:7px}
.aa-contact-scope .dots span{width:10px;height:10px;border-radius:50%;background:var(--coral)}
.aa-contact-scope .dots span:nth-child(2){background:var(--yellow)}
.aa-contact-scope .dots span:nth-child(3){background:var(--brand)}
.aa-contact-scope .console-head b{font-size:13px;color:#26384d}
.aa-contact-scope .console-body{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:16px;padding:16px;background:#fbfffd}
.aa-contact-scope .contact-visual{min-width:0;display:flex;flex-direction:column;gap:12px}
.aa-contact-scope .support-photo{position:relative;min-height:342px;border-radius:var(--radius);overflow:hidden;background:#dfe8ea}
.aa-contact-scope .support-photo img{width:100%;height:100%;object-fit:cover;object-position:center 24%}
.aa-contact-scope .support-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(7,19,34,.74))}
.aa-contact-scope .support-caption{position:absolute;left:18px;right:18px;bottom:18px;color:#fff;z-index:1}
.aa-contact-scope .support-caption b{display:block;font-size:24px;line-height:1.14}
.aa-contact-scope .support-caption span{display:block;margin-top:7px;color:rgba(255,255,255,.78);font-size:13px;line-height:1.45}
.aa-contact-scope .channel-mini{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.aa-contact-scope .mini{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:14px}
.aa-contact-scope .mini small{display:block;color:var(--brand-dark);font-size:11px;font-weight:900;text-transform:uppercase}
.aa-contact-scope .mini b{display:block;margin-top:6px;font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.aa-contact-scope section{padding:82px 0;border-top:1px solid rgba(220,232,239,.75)}
.aa-contact-scope .hero{border-top:0}
.aa-contact-scope .section-head{display:grid;grid-template-columns:.75fr 1fr;gap:36px;align-items:end;margin-bottom:32px}
.aa-contact-scope .kicker{display:inline-flex;margin-bottom:12px;color:var(--brand-dark);font-size:12px;font-weight:900;text-transform:uppercase}
.aa-contact-scope h2{font-size:48px;line-height:1.04;font-weight:930;color:var(--ink)}
.aa-contact-scope .section-head p{color:var(--ink-soft);font-size:17px;line-height:1.72}
.aa-contact-scope .channels{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
.aa-contact-scope .channel-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.aa-contact-scope .channel{
  position:relative;
  min-height:214px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  padding:24px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.aa-contact-scope .channel::after{content:"";position:absolute;right:-38px;bottom:-38px;width:110px;height:110px;border-radius:50%;border:18px solid rgba(0,168,137,.09)}
.aa-contact-scope .channel .mark{width:48px;height:48px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:var(--brand-soft);color:var(--brand-dark);font-size:18px;font-weight:950}
.aa-contact-scope .channel h3{margin-top:18px;font-size:24px;line-height:1.1}
.aa-contact-scope .channel p{margin-top:9px;color:var(--muted);font-size:14.5px;line-height:1.55}
.aa-contact-scope .channel a{position:relative;z-index:1;margin-top:18px;font-weight:880;color:var(--brand-dark);font-size:14px;overflow-wrap:anywhere}
.aa-contact-scope .office-card{
  min-height:442px;
  border-radius:var(--radius);
  background:var(--dark);
  color:#fff;
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  position:relative;
}
.aa-contact-scope .office-card::before{
  content:"";
  position:absolute;
  inset:22px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius);
  pointer-events:none;
}
.aa-contact-scope .map-sketch{position:relative;height:214px;margin:-4px -4px 18px;border-radius:var(--radius);background:#0c1b2c;overflow:hidden}
.aa-contact-scope .road{position:absolute;height:12px;border-radius:999px;background:rgba(255,255,255,.18)}
.aa-contact-scope .road.r1{left:-20px;right:34px;top:62px;transform:rotate(-8deg)}
.aa-contact-scope .road.r2{left:68px;right:-18px;top:138px;transform:rotate(12deg)}
.aa-contact-scope .road.r3{width:190px;left:94px;top:100px;transform:rotate(82deg)}
.aa-contact-scope .pin{position:absolute;left:50%;top:48%;width:58px;height:58px;display:flex;align-items:center;justify-content:center;border-radius:50% 50% 50% 0;background:linear-gradient(135deg,var(--brand),var(--lime));color:#04140f;font-weight:950;transform:translate(-50%,-50%) rotate(-45deg);box-shadow:0 20px 46px -24px rgba(0,168,137,.95)}
.aa-contact-scope .pin span{transform:rotate(45deg)}
.aa-contact-scope .office-card h3{position:relative;z-index:1;font-size:32px;line-height:1.08}
.aa-contact-scope .office-card p{position:relative;z-index:1;margin-top:12px;color:rgba(255,255,255,.76);font-size:15px;line-height:1.65}
.aa-contact-scope .office-card .btn{position:relative;z-index:1;margin-top:24px;width:max-content}
.aa-contact-scope .workflow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.aa-contact-scope .step{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:22px;box-shadow:var(--shadow-soft);min-height:232px}
.aa-contact-scope .step b{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:999px;background:var(--dark);color:#fff;font-size:13px}
.aa-contact-scope .step h3{margin-top:22px;font-size:22px;line-height:1.16}
.aa-contact-scope .step p{margin-top:10px;color:var(--muted);font-size:14.5px;line-height:1.6}
.aa-contact-scope .service-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.aa-contact-scope .service-chip{
  min-height:122px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  padding:16px;
  box-shadow:var(--shadow-soft);
}
.aa-contact-scope .service-chip span{display:block;color:var(--brand-dark);font-size:12px;font-weight:900}
.aa-contact-scope .service-chip b{display:block;margin-top:16px;font-size:16px;line-height:1.2}
.aa-contact-scope .service-chip:nth-child(2n){background:#f7fffc}
.aa-contact-scope .legal-band{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px;align-items:stretch}
.aa-contact-scope .legal-copy{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:28px;box-shadow:var(--shadow-soft)}
.aa-contact-scope .legal-copy h2{font-size:40px}
.aa-contact-scope .legal-copy p{margin-top:14px;color:var(--muted);font-size:15.5px;line-height:1.7}
.aa-contact-scope .info-list{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;box-shadow:var(--shadow-soft)}
.aa-contact-scope .info-row{display:grid;grid-template-columns:158px 1fr;gap:18px;padding:18px 22px;border-bottom:1px solid var(--line)}
.aa-contact-scope .info-row:last-child{border-bottom:0}
.aa-contact-scope .info-row b{font-size:14px;color:var(--brand-dark)}
.aa-contact-scope .info-row span{color:var(--ink-soft);font-size:15px;line-height:1.5}
.aa-contact-scope .final-cta{padding:84px 0 34px}
.aa-contact-scope .cta-box{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;border-radius:var(--radius);background:var(--dark);color:#fff;padding:34px;overflow:hidden}
.aa-contact-scope .cta-box h2{color:#fff;font-size:48px}
.aa-contact-scope .cta-box p{max-width:680px;margin-top:14px;color:rgba(255,255,255,.78);font-size:16px;line-height:1.65}
.aa-contact-scope .cta-actions{display:flex;flex-wrap:wrap;gap:12px}
@media (max-width:1080px){
  .aa-contact-scope h1{font-size:60px}
  .aa-contact-scope h2{font-size:40px}
  .aa-contact-scope .hero-grid,.aa-contact-scope .console-body,.aa-contact-scope .channels,.aa-contact-scope .legal-band,.aa-contact-scope .cta-box{grid-template-columns:1fr}
  .aa-contact-scope .workflow{grid-template-columns:repeat(2,1fr)}
  .aa-contact-scope .service-strip{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:860px){
  .aa-contact-scope .hero{padding:44px 0 58px}
  .aa-contact-scope h1{font-size:48px}
  .aa-contact-scope h2{font-size:34px}
  .aa-contact-scope .section-head{grid-template-columns:1fr;gap:14px}
  .aa-contact-scope .response-strip,.aa-contact-scope .channel-grid{grid-template-columns:1fr}
  .aa-contact-scope .office-card{min-height:auto}
}
@media (max-width:560px){
  .aa-contact-scope .container{width:min(100% - 28px,1180px)}
  .aa-contact-scope h1{font-size:40px;line-height:1}
  .aa-contact-scope .hero-sub,.aa-contact-scope .section-head p{font-size:16px}
  .aa-contact-scope section{padding:62px 0}
  .aa-contact-scope .support-photo{min-height:292px}
  .aa-contact-scope .channel-mini,.aa-contact-scope .workflow,.aa-contact-scope .service-strip{grid-template-columns:1fr}
  .aa-contact-scope .info-row{grid-template-columns:1fr;gap:6px}
  .aa-contact-scope .legal-copy,.aa-contact-scope .cta-box{padding:24px}
  .aa-contact-scope .cta-box h2{font-size:34px}
}

/* === AA FIX (lien-he): override Elementor kit red a:hover === */
/* .elementor-kit-1316 a:hover{color:#FF0000} turns every link red on hover. Loads after kit. */
.aa-contact-scope a:hover{color:inherit}
.aa-contact-scope .channel a:hover{color:var(--brand-dark)}
.aa-contact-scope .btn-primary:hover{color:#fff}
.aa-contact-scope .btn-ghost:hover{color:var(--ink)}
.aa-contact-scope .btn-dark:hover{color:#fff}

/* === AA FIX (lien-he): section headers must stay LEFT-aligned ===
 * Static design (static/Lien-He-standalone.html) is a 2-col grid:
 *   .section-head{grid-template-columns:.75fr 1fr} → left col = kicker+h2, right col = lead p
 *   kicker/h2/p all default to text-align:left (standalone <body>).
 * Inside Elementor the widget inherits text-align:center from its parent
 * container/column, so kicker (inline-flex), h2 and lead rendered centered.
 * Force left to match the original static design. */
.aa-contact-scope .section-head,
.aa-contact-scope .section-head > div,
.aa-contact-scope .section-head .kicker,
.aa-contact-scope .section-head h2,
.aa-contact-scope .section-head p{text-align:left}

/* === AA FIX (lien-he): office card trên nền tối ===
 * .office-card{color:#fff} đặt màu trắng, nhưng .office-card h3 không khai báo
 * màu riêng nên trong Elementor bị kit ghi đè màu heading (tối) → tiêu đề đen
 * trên nền tối, gần như không đọc được. Buộc trắng + đảm bảo địa chỉ đủ tương phản. */
.aa-contact-scope .office-card h3{color:#fff}
.aa-contact-scope .office-card p{color:rgba(255,255,255,.82)}

/* Google Map nhúng phủ kín khung canvas bản đồ (.map-sketch cao 214px, bo góc).
 * Khi control office_map_embed trống → giữ nguyên bản đồ trang trí (SVG/pin). */
.aa-contact-scope .office-map{background:#0c1b2c}
.aa-contact-scope .office-map iframe{width:100%;height:100%;border:0;display:block;border-radius:var(--radius)}
