/* =====================================================================
   Landing page Tuyển dụng Kỹ thuật viên 2026 – TINPNC x FPT Telecom
   Desktop (>=1025px) dựng theo file thiết kế 1920x960/trang:
   mọi kích thước viết theo "px thiết kế" nhân với --p (= 1/1920 bề rộng section).
   ===================================================================== */

/* ====== Fonts (tự host) ====== */
@font-face { font-family: "Redzone"; src: url("/public/img/KTV2026/fonts/redzone.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/public/img/KTV2026/fonts/gilroy-300.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/public/img/KTV2026/fonts/gilroy-300i.woff") format("woff"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/public/img/KTV2026/fonts/gilroy-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/public/img/KTV2026/fonts/gilroy-500.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/public/img/KTV2026/fonts/gilroy-700.woff") format("woff"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/public/img/KTV2026/fonts/gilroy-700i.woff") format("woff"); font-weight: 500 900; font-style: italic; font-display: swap; }

/* ====== Tokens ====== */
:root {
  --blue-950: #031057;
  --blue-900: #04167a;
  --blue-800: #0628a8;
  --blue-700: #0a3cd0;
  --blue-600: #1052f0;
  --ink: #0436aa;          /* xanh chữ trên nền vàng */
  --navy: #0b1f6b;
  --yellow: #ffc800;
  --sky: #9fd3ff;
  --font: "Gilroy", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Redzone", "Gilroy", Impact, sans-serif;
  --header-h: 72px;
  --p: calc(100cqw / 1920); /* 1px thiết kế, tính theo bề rộng section */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font); font-weight: 500; color: #fff;
  background: var(--blue-950); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ====== Header ====== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(180deg, #0025c0, #0021a7 50%, #011c8c);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.header__logo img { height: 30px; width: auto; }
.header__bar { display: contents; }
.nav-toggle { margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: -1; display: flex; flex-direction: column;
  background: rgba(4,22,122,.97); backdrop-filter: blur(12px); padding: 8px 16px 20px;
  transform: translateY(-120%); transition: transform .3s;
}
.nav.is-open { transform: none; }
.nav a { position: relative; padding: 14px 4px; text-decoration: none; font-weight: 700; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav a::after { content: ""; position: absolute; left: 4px; bottom: 6px; width: 40px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a.is-active::after, .nav a:hover::after { transform: scaleX(1); }
.btn-apply {
  display: none; align-items: center; justify-content: center; white-space: nowrap; position: relative; isolation: isolate;
  padding: 8px 18px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px;
}
.btn-apply::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); border-radius: 10px; transform: skewX(-12deg); transition: box-shadow .25s, filter .25s; }
.btn-apply:hover::before { box-shadow: 0 0 22px rgba(255,200,0,.75); filter: brightness(1.06); }
@media (min-width: 641px) { .btn-apply { display: inline-flex; margin-left: auto; } .nav-toggle { margin-left: 8px; } }

@media (min-width: 1025px) {
  .header { --p: calc(100vw / 1920); height: calc(84 * var(--p)); }
  /* header luôn có nền xanh liền một màu với dải menu */
  .header, .header.is-scrolled { height: calc(78 * var(--p)); background: linear-gradient(180deg, #0025c0, #0021a7 50%, #011c8c); backdrop-filter: none; }
  .header .header__bar { background: none; }
  .header__inner { position: relative; padding: 0; gap: 0; }
  .header__logo { position: absolute; left: calc(64 * var(--p)); top: 50%; transform: translateY(-50%); }
  .header__logo img { height: calc(44 * var(--p)); }
  .nav-toggle { display: none; }
  .header__bar {
    display: flex; align-items: center; position: absolute; right: 0; top: 0;
    width: calc(1034 * var(--p)); height: calc(78 * var(--p));
    background: linear-gradient(180deg, #0025c0, #0021a7 50%, #011c8c);
  }
  .nav {
    position: static; transform: none; z-index: auto; flex-direction: row; height: 100%;
    background: none; backdrop-filter: none; padding: 0 0 0 calc(4 * var(--p));
  }
  .nav a {
    display: flex; align-items: center; height: 100%; padding: 0 calc(30 * var(--p)); border: 0;
    font-size: calc(20 * var(--p)); line-height: 1; white-space: nowrap;
  }
  .nav a + a { margin-left: calc(3 * var(--p)); }
  .nav a:last-child { margin-left: calc(44 * var(--p)); }
  .nav a::after { left: 0; right: 0; width: auto; bottom: calc(-6 * var(--p)); height: calc(6 * var(--p)); transform-origin: center; }
  .btn-apply {
    margin: 0 calc(48 * var(--p)) 0 auto; width: calc(211 * var(--p)); height: calc(45 * var(--p)); padding: 0;
    font-size: calc(20 * var(--p)); line-height: 1;
  }
  .btn-apply::before { border-radius: calc(12 * var(--p)); }
}

/* ====== Section chung ====== */
.section { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 36px) 16px 56px; background: var(--blue-800); }
.sec-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.title {
  font-family: var(--font-head); font-weight: 400; font-style: italic; text-transform: uppercase; color: #fff;
  font-size: clamp(30px, 8.4vw, 52px); line-height: 1.05; text-align: center; letter-spacing: .005em;
}
.title em { color: var(--yellow); font-style: italic; }

/* Thẻ kính xanh (shape.png / shape 1.png) */
.card {
  position: relative; border-radius: 22px; padding: 20px 18px 24px;
  background: linear-gradient(180deg, rgba(17,84,189,.78) 0%, rgba(9,56,174,.78) 50%, rgba(15,87,194,.78) 100%);
  border: 2px solid rgba(186,226,255,.8);
  box-shadow: 0 0 16px rgba(170,233,255,.45), inset 0 0 18px rgba(140,210,255,.18);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 26px rgba(170,233,255,.7), inset 0 0 22px rgba(140,210,255,.28); }

.dots { display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.35; }
.dots li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--yellow);
}

/* Nhãn vàng dạng hình bình hành bo góc */
.tag, .ribbon { position: relative; isolation: isolate; font-family: var(--font-head); font-style: italic; white-space: nowrap; text-transform: uppercase; color: var(--ink); text-align: center; line-height: 1; }
.tag::before, .ribbon::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform: skewX(-10deg); }

/* ====== TRANG 1: Hero (giữ bố cục PSD, đổi font theo thiết kế) ====== */
.hero { position: relative; background: var(--blue-900); overflow: hidden; }
.hero__stage { position: relative; width: 100%; aspect-ratio: 1920 / 960; container-type: inline-size; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% bottom; }
.hero__people { display: none; }

.hero__title {
  position: absolute; left: 0; top: 0; margin: 0; display: block;
  font-family: var(--font-head); font-weight: 400; font-style: italic; text-transform: uppercase; color: #fff;
  text-shadow: 0 calc(5 * var(--p)) calc(10 * var(--p)) rgba(3,16,87,.35);
}
.hero__title span { position: absolute; display: block; white-space: nowrap; line-height: 1; }
.hero__title .l1 { left: calc(132 * var(--p)); top: calc(158 * var(--p)); font-size: calc(90.3 * var(--p)); transform: scaleX(.897); transform-origin: left; }
.hero__title .l2 { left: calc(120 * var(--p)); top: calc(251 * var(--p)); font-size: calc(121.8 * var(--p)); color: var(--yellow); transform: scaleX(.98); transform-origin: left; }
.hero__title .l3 { left: calc(108 * var(--p)); top: calc(367 * var(--p)); font-size: calc(110.8 * var(--p)); transform: scaleX(.896); transform-origin: left; }

.perks {
  position: absolute; left: 4.4%; top: 54.6%; width: 40.9%; height: 11.2%; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1cqw;
}
.perk {
  display: flex; align-items: center; justify-content: center; gap: 1.5cqw; padding: 0 1cqw;
  border: .16cqw solid #45e3ff; border-radius: 1.2cqw;
  background: linear-gradient(160deg, rgba(10,60,208,.55), rgba(4,22,122,.45));
  box-shadow: 0 0 .9cqw rgba(56,216,255,.95), inset 0 0 .9cqw rgba(56,216,255,.6);
  transition: transform .25s, box-shadow .25s;
}
.perk:hover { transform: translateY(-.25cqw); box-shadow: 0 0 1.4cqw rgba(56,216,255,1), inset 0 0 1.1cqw rgba(56,216,255,.7); }
.perk img { height: auto; flex-shrink: 0; }
.perk:nth-child(1) img { width: 2.4cqw; }
.perk:nth-child(2) img { width: 3.5cqw; }
.perk:nth-child(3) img { width: 4.3cqw; }
.perk__text { font-weight: 700; font-style: italic; font-size: .94cqw; line-height: 1.3; text-align: center; white-space: nowrap; color: #fff; }
.perk__text--salary { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.perk__text--salary small { font-size: .71cqw; line-height: 1.2cqw; }
.perk__text--salary strong { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: 2.09cqw; color: var(--yellow); line-height: 2.3cqw; }

.cta {
  position: absolute; left: 3.9%; top: 69.6%; width: 37.6%; height: 9.9%; margin: 0;
  display: flex; align-items: center; gap: 1cqw; padding-left: 12cqw;
  background: linear-gradient(90deg, rgba(255,200,0,0) 0%, rgba(255,200,0,.55) 13%, #ffc800 25%, #ffd21f 100%);
  clip-path: polygon(0 0, calc(100% - 2.4cqw) 0, 100% 50%, calc(100% - 2.4cqw) 100%, 0 100%);
  color: #1d50e6; text-decoration: none;
  font-family: var(--font-head); font-style: italic; white-space: nowrap; font-size: calc(62 * var(--p)); text-transform: uppercase; line-height: 1;
  transition: transform .2s; animation: ctaGlow 2.4s ease-in-out infinite;
}
.cta:hover { transform: translateX(.4cqw); }
.cta__chev { width: 2.9cqw; height: 2cqw; transition: transform .25s; }
.cta:hover .cta__chev { transform: translateX(.5cqw); }
@keyframes ctaGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }

.hero__note {
  position: absolute; left: 7.4%; top: 82.4%; margin: 0; display: flex; align-items: center; gap: .55cqw;
  font-weight: 700; font-style: italic; font-size: 2.02cqw; line-height: 1; color: #fff; white-space: nowrap;
}
.hero__note img { width: 4.75cqw; height: auto; }
.hero__note b { color: var(--yellow); font-weight: 700; }

@media (max-width: 1024px) {
  .hero__stage {
    aspect-ratio: auto; container-type: normal; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: calc(var(--header-h) + 28px) 16px 0;
  }
  .hero__bg img { object-position: 18% center; }
  .hero__title, .perks, .cta, .hero__note { position: relative; left: auto; top: auto; }
  .hero__title { text-shadow: 0 2px 6px rgba(3,16,87,.4); }
  .hero__title span { position: static; transform: none !important; }
  .hero__title .l1 { font-size: min(12vw, 76px); }
  .hero__title .l2 { font-size: min(15.6vw, 100px); }
  .hero__title .l3 { font-size: min(14vw, 90px); }
  .perks { width: 100%; max-width: 560px; height: auto; margin-top: 22px; gap: 8px; }
  .perk { flex-direction: column; gap: 8px; padding: 12px 6px; min-height: 112px; border-width: 2px; border-radius: 14px; box-shadow: 0 0 10px rgba(56,216,255,.9), inset 0 0 10px rgba(56,216,255,.55); }
  .perk:nth-child(n) img { width: auto; height: 36px; }
  .perk__text { font-size: 13px; }
  .perk__text--salary small { font-size: 11px; line-height: 1.25; }
  .perk__text--salary strong { font-size: 26px; line-height: 1.1; }
  .cta {
    width: min(100%, 440px); height: 64px; margin-top: 22px; padding: 0 22px 0 16px; justify-content: center; gap: 12px;
    font-size: min(9vw, 40px);
    background: linear-gradient(90deg, #ffc800, #ffd21f);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 16px 50%);
  }
  .cta__chev { width: 34px; height: 24px; }
  .hero__note { margin-top: 18px; font-size: min(5vw, 26px); gap: 8px; justify-content: center; }
  .hero__note img { width: min(12vw, 60px); }
  .hero__people { display: block; position: relative; width: calc(100% + 32px); max-width: 760px; margin-top: 16px; }
}

/* ====== TRANG 2: Công việc ====== */
.job__photo { display: none; }
.job__title { margin-bottom: 24px; }
.job__cards { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.job-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.job-card__icon { width: 52px; height: auto; flex-shrink: 0; }
.job-card .tag { flex: 1; max-width: 300px; padding: 10px 18px; font-size: clamp(26px, 7vw, 38px); }
.ribbon { max-width: 760px; margin: 26px auto 0; padding: 12px 22px; font-size: clamp(19px, 5.2vw, 34px); line-height: 1.15; white-space: normal; text-wrap: balance; }
.job__note { margin: 14px auto 0; max-width: 760px; text-align: center; font-weight: 300; font-style: italic; font-size: 14px; }

/* ====== TRANG 3: Quyền lợi ====== */
.benefits__title { margin-bottom: 24px; }
.benefits__title em { display: block; }
.benefits__grid { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.b-pill {
  display: flex; align-items: center; justify-content: center; margin: 0 0 16px; padding: 8px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-weight: 700; font-style: italic; font-size: clamp(19px, 5vw, 26px); line-height: 1.2; text-align: center;
}
.b-card .dots li { font-weight: 700; }
.benefits__person { display: none; }

/* ====== TRANG 4: FAQ ====== */
.faq__title { margin-bottom: 22px; }
.faq-main { max-width: 760px; margin: 0 auto; }
.faq__person { display: none; }
.faq { display: grid; gap: 10px; }
.faq details {
  position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 6px 14px rgba(0,0,0,.18);
  background: linear-gradient(100deg, #053890 0 36%, #2d5cb0 50%, #053890 64%);
  transition: background-color .35s, box-shadow .35s, transform .35s cubic-bezier(.22,.61,.36,1);
}
.faq details:hover { transform: translateX(4px); box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 1px rgba(159,211,255,.35); }
.faq details[open]:not(.is-closing) { background: linear-gradient(100deg, #155ae0 0 30%, #4b86ec 50%, #155ae0 70%); }
.faq details[open]:not(.is-closing):hover { transform: none; }
.faq summary {
  position: relative; cursor: pointer; list-style: none; padding: 14px 56px 14px 18px;
  font-weight: 700; font-size: 16px; line-height: 1.3; transition: background-color .35s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open]:not(.is-closing) summary { background: #1f68f0; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 18px; height: 5px; border-radius: 3px;
  background: var(--yellow); transform: translateY(-50%); transition: transform .38s cubic-bezier(.22,.61,.36,1), opacity .3s;
}
.faq summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open]:not(.is-closing) summary::after { transform: translateY(-50%) rotate(180deg); opacity: 0; }
.faq__body { overflow: hidden; }
.faq details p { padding: 12px 18px 16px; font-size: 15px; line-height: 1.45; }
/* các câu hỏi hiện lần lượt khi cuộn tới */
.faq.is-wait > details { opacity: 0; }
.faq.is-anim > details { animation: faqIn .55s cubic-bezier(.22,.61,.36,1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes faqIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* ====== TRANG 5: Đăng ký ====== */
.apply { display: grid; gap: 28px; justify-items: center; }
.apply__person { display: none; }
.apply__intro { width: 100%; max-width: 560px; }
.apply__title { font-family: var(--font-head); font-style: italic; text-transform: uppercase; text-align: center; margin-bottom: 24px; }
.apply__title span { display: block; font-size: clamp(40px, 11vw, 64px); line-height: 1.02; }
.apply__title strong { display: block; font-weight: 400; color: var(--yellow); font-size: clamp(22px, 6.3vw, 38px); line-height: 1.1; }
.flow { display: grid; gap: 34px; justify-content: center; }
.flow li { position: relative; display: flex; align-items: center; }
.flow li + li::before {
  content: ""; position: absolute; left: 50%; top: -30px; width: 34px; height: 26px; transform: translateX(-50%);
  background: url("/public/img/KTV2026/v2/chevron.webp") center / contain no-repeat;
}
.flow b {
  position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 50px;
  font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: 34px; color: var(--ink); line-height: 1;
}
.flow b::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); border-radius: 10px; transform: skewX(-10deg); }
.flow span {
  position: relative; z-index: 0; display: flex; align-items: center; height: 38px; margin-left: -6px; padding: 0 22px 0 18px; min-width: 230px;
  font-weight: 700; font-style: italic; font-size: 17px;
}
.flow span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #125be0; border-radius: 8px; transform: skewX(-10deg); }

.form {
  width: 100%; max-width: 780px; background: #fff; color: var(--navy); border-radius: 24px; padding: 26px 20px;
  box-shadow: 0 30px 60px rgba(3,16,87,.45);
}
.form__title {
  display: inline-block; font-family: var(--font-head); font-style: italic; font-size: clamp(30px, 8vw, 46px); line-height: 1; text-transform: uppercase;
  color: var(--ink); margin-bottom: 20px; padding-bottom: 10px;
  background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 60% 5px no-repeat;
}
.form__grid { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 12px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; margin-bottom: 5px; line-height: 1.25; }
.field label i { color: #e0262b; font-style: normal; }
.field label small { font-weight: 400; font-style: italic; font-size: .85em; color: #4a5584; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 500; font-size: 15px; color: var(--navy); width: 100%;
  padding: 9px 12px; border-radius: 8px; border: 1.5px solid #c4d0e4; background: #fff;
  box-shadow: inset 0 2px 3px rgba(6,40,168,.07); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230b1f6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 18px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8b97c2; font-style: italic; }
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(16,82,240,.15); }
.field__err { display: none; color: #d6262b; font-size: 13px; margin-top: 3px; font-weight: 700; }
.field.is-invalid input, .field.is-invalid select { border-color: #d6262b; }
.field.is-invalid .field__err { display: block; }

.consent { display: flex; gap: 12px; align-items: center; font-size: 15px; color: #33407a; cursor: pointer; margin-top: 4px; }
.consent input { width: 24px; height: 24px; accent-color: var(--blue-600); flex-shrink: 0; }
.consent.is-invalid span { color: #d6262b; }

.btn-submit {
  width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-style: italic; text-transform: uppercase; font-size: clamp(24px, 6.4vw, 40px); line-height: 1;
  box-shadow: 0 5px 0 #c99500; transition: transform .15s, box-shadow .15s, filter .2s;
}
.btn-submit:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 7px 0 #c99500; }
.btn-submit:active { transform: translateY(3px); box-shadow: 0 2px 0 #c99500; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form__msg { margin-top: 10px; font-weight: 700; text-align: center; min-height: 1.5em; }
.form__msg:empty { min-height: 0; margin: 0; }
.form__msg.ok { color: #138a3e; }
.form__msg.err { color: #d6262b; }

@media (min-width: 641px) {
  .job__cards, .benefits__grid { grid-template-columns: 1fr 1fr; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form { padding: 30px 34px; }
}

/* =====================================================================
   DESKTOP: mỗi trang là 1 khung 1920x960, phần tử đặt theo toạ độ thiết kế
   ===================================================================== */
@media (min-width: 1025px) {
  .section { aspect-ratio: 1920 / 960; padding: 0; container-type: inline-size; }
  .section > :not(.sec-bg) { position: absolute; }
  .card { border-radius: calc(38 * var(--p)); border-width: calc(2 * var(--p)); padding: 0; }
  .dots { gap: 0; }
  .dots li { padding: 0; }
  .dots li::before { width: calc(17 * var(--p)); height: calc(17 * var(--p)); left: 0; }
  .title { text-align: left; line-height: 1; white-space: nowrap; }

  /* ----- Trang 2 ----- */
  .job__photo { display: block; position: absolute; left: 0; top: 0; width: calc(1582 * var(--p)); max-width: none; height: calc(960 * var(--p)); margin: 0; z-index: 0; }
  .job { inset: 0; z-index: 1; }
  .job__title { position: absolute; left: calc(543 * var(--p)); width: calc(1305 * var(--p)); text-align: center; white-space: nowrap; top: calc(100 * var(--p)); margin: 0; font-size: calc(82 * var(--p)); }
  .job__cards { display: block; max-width: none; margin: 0; }
  .job-card { position: absolute; top: calc(233 * var(--p)); width: calc(630 * var(--p)); height: calc(492 * var(--p)); }
  .job-card:nth-child(1) { left: calc(543 * var(--p)); }
  .job-card:nth-child(2) { left: calc(1216 * var(--p)); width: calc(632 * var(--p)); }
  .job-card__head { display: block; margin: 0; }
  .job-card__icon { position: absolute; }
  .job-card__icon--tools { left: calc(65 * var(--p)); top: calc(35 * var(--p)); width: calc(85 * var(--p)); }
  .job-card__icon--cap { left: calc(61 * var(--p)); top: calc(33 * var(--p)); width: calc(113 * var(--p)); }
  .job-card .tag {
    position: absolute; left: calc(198 * var(--p)); top: calc(32 * var(--p)); width: calc(389 * var(--p)); height: calc(92 * var(--p));
    max-width: none; padding: 0; display: grid; place-items: center; font-size: calc(41 * var(--p));
  }
  .job-card--need .tag { left: calc(200 * var(--p)); }
  .tag::before, .ribbon::before { border-radius: calc(24 * var(--p)); }
  .job-card .dots { position: absolute; left: calc(90 * var(--p)); right: calc(37 * var(--p)); top: calc(157 * var(--p)); gap: calc(15.5 * var(--p)); }
  .job-card--need .dots { left: calc(91 * var(--p)); right: calc(34 * var(--p)); }
  .job-card .dots li { text-align: justify; font-size: calc(20.5 * var(--p)); line-height: calc(26.5 * var(--p)); font-weight: 500; }
  .job-card .dots li::before { left: calc(-51 * var(--p)); top: 50%; transform: translateY(-50%); }
  .ribbon {
    position: absolute; left: calc(589 * var(--p)); top: calc(758 * var(--p)); width: calc(1222 * var(--p)); height: calc(87 * var(--p));
    max-width: none; margin: 0; display: grid; place-items: center; padding: 0; font-size: calc(56 * var(--p)); line-height: 1; white-space: nowrap;
  }
  .job__note {
    position: absolute; left: calc(593 * var(--p)); width: calc(1214 * var(--p)); top: calc(860 * var(--p)); height: calc(59 * var(--p));
    max-width: none; margin: 0; display: grid; place-items: center; isolation: isolate; font-size: calc(21.6 * var(--p)); line-height: 1;
  }
  .job__note::before {
    content: ""; position: absolute; z-index: -1; left: calc(-61 * var(--p)); top: calc(-62 * var(--p));
    width: calc(1346 * var(--p)); height: calc(159 * var(--p)); background: url("/public/img/KTV2026/v2/note-bar.webp") 0 0 / 100% 100% no-repeat;
  }

  /* ----- Trang 3 ----- */
  .benefits__person { display: block; left: calc(1176 * var(--p)); top: calc(109 * var(--p)); width: calc(744 * var(--p)); max-width: none; height: calc(854 * var(--p)); z-index: 0; }
  .benefits { inset: 0; z-index: 1; }
  .benefits__title {
    position: absolute; left: calc(291 * var(--p)); width: calc(700 * var(--p)); top: calc(118 * var(--p)); margin: 0;
    text-align: center; font-size: calc(65.2 * var(--p)); line-height: calc(75 * var(--p));
  }
  .benefits__grid { display: block; max-width: none; margin: 0; }
  .b-card { position: absolute; width: calc(536 * var(--p)); }
  .b-card:nth-child(odd) { left: calc(89 * var(--p)); }
  .b-card:nth-child(even) { left: calc(652 * var(--p)); width: calc(537 * var(--p)); }
  .b-card:nth-child(-n+2) { top: calc(317 * var(--p)); height: calc(238 * var(--p)); }
  .b-card:nth-child(n+3) { top: calc(588 * var(--p)); height: calc(314 * var(--p)); }
  .b-pill {
    position: absolute; left: calc(38 * var(--p)); top: calc(21 * var(--p)); width: calc(454 * var(--p)); height: calc(60 * var(--p));
    margin: 0; padding: 0; font-size: calc(29 * var(--p)); line-height: 1;
  }
  .b-card .dots { position: absolute; left: calc(102 * var(--p)); right: calc(30 * var(--p)); top: calc(108 * var(--p)); gap: calc(12 * var(--p)); }
  .b-card .dots li { font-size: calc(18.6 * var(--p)); line-height: calc(25 * var(--p)); }
  .b-card .dots li::before { left: calc(-41 * var(--p)); width: calc(16 * var(--p)); height: calc(16 * var(--p)); top: calc(6 * var(--p)); }

  /* ----- Trang 4: FAQ ----- */
  .faq__person { display: block; left: calc(1139 * var(--p)); top: 0; width: calc(781 * var(--p)); max-width: none; height: calc(960 * var(--p)); z-index: 0; }
  .faq-main { left: calc(104 * var(--p)); top: 0; width: calc(1002 * var(--p)); max-width: none; margin: 0; z-index: 1; }
  .faq__title { margin: calc(109 * var(--p)) 0 calc(36 * var(--p)); font-size: calc(109 * var(--p)); }
  .faq { gap: calc(9 * var(--p)); }
  .faq details { border-radius: calc(24 * var(--p)); box-shadow: 0 calc(6 * var(--p)) calc(14 * var(--p)) rgba(0,0,0,.2); }
  .faq summary { display: flex; align-items: center; min-height: calc(64 * var(--p)); padding: calc(8 * var(--p)) calc(90 * var(--p)) calc(8 * var(--p)) calc(32 * var(--p)); font-size: calc(20 * var(--p)); }
  .faq summary::before, .faq summary::after { right: calc(32 * var(--p)); width: calc(36 * var(--p)); height: calc(11 * var(--p)); border-radius: calc(3 * var(--p)); }
  .faq details p { padding: calc(14 * var(--p)) calc(32 * var(--p)) calc(18 * var(--p)); font-size: calc(18 * var(--p)); line-height: 1.4; }

  /* ----- Trang 5: Đăng ký ----- */
  .apply { display: block; }
  .apply__person { display: block; left: 0; top: calc(228 * var(--p)); width: calc(644 * var(--p)); max-width: none; height: calc(732 * var(--p)); z-index: 0; }
  .apply__intro { inset: 0; max-width: none; z-index: 1; pointer-events: none; }
  .apply__intro > * { pointer-events: auto; }
  .apply__title { position: absolute; left: calc(100 * var(--p)); top: calc(125 * var(--p)); margin: 0; text-align: left; white-space: nowrap; }
  .apply__title span { font-size: calc(103 * var(--p)); line-height: 1; }
  .apply__title strong { margin-top: calc(6 * var(--p)); font-size: calc(57 * var(--p)); line-height: 1; }
  .flow { position: absolute; left: calc(470 * var(--p)); top: calc(420 * var(--p)); gap: calc(73 * var(--p)); justify-content: start; }
  .flow li + li::before { left: calc(220 * var(--p)); top: calc(-62 * var(--p)); width: calc(70 * var(--p)); height: calc(52 * var(--p)); }
  .flow b { width: calc(102 * var(--p)); height: calc(77 * var(--p)); font-size: calc(54 * var(--p)); padding-top: calc(4 * var(--p)); }
  .flow b::before { border-radius: calc(16 * var(--p)); }
  .flow span { height: calc(56 * var(--p)); width: calc(337 * var(--p)); min-width: 0; margin-left: calc(-10 * var(--p)); padding: 0 calc(16 * var(--p)) 0 calc(30 * var(--p)); font-size: calc(23 * var(--p)); white-space: nowrap; }
  .flow span::before { border-radius: calc(12 * var(--p)); }

  .form {
    left: calc(1037 * var(--p)); top: calc(126 * var(--p)); width: calc(781 * var(--p)); max-width: none; min-height: calc(769 * var(--p));
    padding: calc(30 * var(--p)) calc(35 * var(--p)) calc(26 * var(--p)); border-radius: calc(34 * var(--p)); z-index: 2;
    box-shadow: 0 calc(20 * var(--p)) calc(50 * var(--p)) rgba(3,16,87,.35);
  }
  .form__title { font-size: calc(50 * var(--p)); margin-bottom: calc(20 * var(--p)); padding-bottom: calc(14 * var(--p)); background-size: calc(182 * var(--p)) calc(6 * var(--p)); }
  .form__grid { gap: 0 calc(27 * var(--p)); }
  .field { margin-bottom: calc(12 * var(--p)); }
  .field label { font-size: calc(16 * var(--p)); margin-bottom: calc(5 * var(--p)); white-space: nowrap; }
  .field input, .field select { height: calc(37 * var(--p)); padding: 0 calc(12 * var(--p)); font-size: calc(14 * var(--p)); border-radius: calc(8 * var(--p)); border-width: calc(1.5 * var(--p)); }
  .field select { padding-right: calc(36 * var(--p)); background-size: calc(20 * var(--p)); }
  .field textarea { height: calc(78 * var(--p)); min-height: 0; padding: calc(8 * var(--p)) calc(12 * var(--p)); font-size: calc(14 * var(--p)); border-radius: calc(8 * var(--p)); resize: none; }
  .field__err { font-size: calc(11 * var(--p)); margin-top: calc(2 * var(--p)); }
  .consent { gap: calc(14 * var(--p)); font-size: calc(15 * var(--p)); margin-top: calc(2 * var(--p)); }
  .consent input { width: calc(29 * var(--p)); height: calc(29 * var(--p)); }
  .btn-submit { height: calc(65 * var(--p)); margin-top: calc(16 * var(--p)); padding: 0; border-radius: calc(14 * var(--p)); font-size: calc(40 * var(--p)); box-shadow: 0 calc(5 * var(--p)) 0 #c99500; }
  .form__msg { font-size: calc(14 * var(--p)); margin-top: calc(8 * var(--p)); }
}

/* ====== Footer ====== */
.footer {
  position: relative; overflow: hidden; padding: 56px 0 28px;
  background: radial-gradient(600px 300px at 100% 100%, rgba(16,82,240,.8), transparent 70%), linear-gradient(160deg, var(--blue-600), var(--blue-800));
}
.footer__title {
  display: inline-block; font-family: var(--font-head); font-style: italic; font-size: clamp(30px, 3.4vw, 60px); line-height: 1; text-transform: uppercase; margin-bottom: 30px;
  padding-bottom: 10px; background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 70px 5px no-repeat;
}
.footer__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; position: relative; z-index: 1; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 26px; }
.footer__brand p { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); font-size: 17px; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.footer__links a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.footer__links .ic { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: #fff; transition: transform .2s; }
.footer__links svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__links a:hover .ic { transform: scale(1.08) rotate(-4deg); }
.footer__links b { display: block; font-size: 17px; font-weight: 700; }
.footer__links span:last-child { font-size: 15px; color: #dbe8ff; word-break: break-word; }
.footer__copy { margin-top: 36px; font-size: 13px; color: #c7d6ff; text-align: center; position: relative; z-index: 1; }

/* Footer trên desktop: giảm 4px toàn bộ cỡ chữ */
@media (min-width: 1025px) {
  .footer__title { font-size: calc(clamp(30px, 3.4vw, 60px) - 4px); }
  .footer__brand p, .footer__links b { font-size: 13px; }
  .footer__links span:last-child { font-size: 11px; }
  .footer__copy { font-size: 9px; }
}

/* ====== Mobile bar ====== */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .mobile-bar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(4,22,122,.95); backdrop-filter: blur(10px); box-shadow: 0 -6px 20px rgba(0,0,0,.3);
    transform: translateY(110%); transition: transform .3s;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: grid; place-items: center; padding: 13px; border-radius: 12px; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 16px; background: var(--yellow); color: var(--ink); }
  .footer { padding-bottom: 100px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .footer__links { grid-template-columns: 1fr; }
}

/* ====== Reveal ====== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
