/* ============================================================
   CLB STEM-AI KDC — dangky.tpe.edu.vn
   Theme SÁNG: trắng - cam, điểm vàng ấm. Chữ đậm màu nâu ấm.
   ============================================================ */
:root {
  --orange: #ff8a1e;
  --flame: #f9690e;
  --amber: #f7a11a;
  --star: #ffd23f;
  --bg: #fffdfa;
  --bg-soft: #fff6ec;
  --card: #ffffff;
  --line: #f1e2d0;
  --line-strong: #eacfae;
  --text: #38302a;
  --muted: #8a7c6c;
  --ok: #059669;
  --err: #dc2626;
  --radius: 18px;
  --display: "Baloo 2", "Be Vietnam Pro", sans-serif;
  --body: "Be Vietnam Pro", system-ui, sans-serif;
}

/* Quan trọng: bảo đảm thuộc tính hidden luôn ẩn phần tử,
   kể cả khi phần tử có display riêng trong CSS */
[hidden] { display: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(820px 420px at 92% -6%, rgba(255, 138, 30, 0.10), transparent 60%),
    radial-gradient(720px 460px at -8% 26%, rgba(255, 210, 63, 0.13), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 18px; }
img { max-width: 100%; display: block; }
a { color: var(--flame); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-bot { font-size: 24px; }
.brand-text {
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--flame); letter-spacing: 0.5px;
}
.brand-text em { font-style: normal; color: var(--text); font-size: 13px; letter-spacing: 2px; }
.site-nav { display: flex; align-items: center; gap: 18px; font-weight: 500; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--flame); }
.nav-phone { color: var(--flame); font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) {
  .site-nav > :not(.btn) { display: none; }
}

/* ---------- Nút ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--display); font-weight: 700;
  color: #2b1200; background: linear-gradient(180deg, var(--star), var(--orange) 45%, var(--flame));
  border: none; border-radius: 999px; cursor: pointer;
  padding: 10px 22px; font-size: 16px;
  box-shadow: 0 5px 16px rgba(249, 105, 14, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(249, 105, 14, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 8px 16px; font-size: 14.5px; }
.btn-big { padding: 14px 30px; font-size: 19px; }

/* Nút "Đăng ký ngay" nhấp nháy bắt mắt ở góc trên bên phải */
.btn-cta { animation: ctaPulse 1.5s ease-in-out infinite; }
.btn-cta:hover { animation-play-state: paused; }
@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 5px 16px rgba(249, 105, 14, 0.4), 0 0 0 0 rgba(255, 138, 30, 0.55);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 8px 22px rgba(249, 105, 14, 0.55), 0 0 0 12px rgba(255, 138, 30, 0);
  }
}

/* ---------- Hero: chỉ ảnh cover ---------- */
.hero { padding: 22px 0 4px; }
.hero-img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(150, 84, 20, 0.18);
}

/* ---------- Section ---------- */
.section { padding: 44px 0 26px; }
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--flame); text-align: center;
}
.section-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(24px, 4.2vw, 36px); line-height: 1.25;
  text-align: center; margin: 6px auto 24px; max-width: 760px;
  background: linear-gradient(92deg, var(--flame), var(--orange) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-note { text-align: center; color: var(--muted); margin-top: 18px; }
.section-note strong { color: var(--flame); }

/* ---------- 4 lợi ích: dạng pill gọn, icon cùng dòng với chữ ---------- */
.benefit-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 24px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700; font-size: 14.5px; color: #7a4b12;
  box-shadow: 0 3px 10px rgba(150, 84, 20, 0.08);
}
.p-ico { font-size: 17px; }
@media (max-width: 480px) {
  .pill { font-size: 13.5px; padding: 8px 13px; }
}

/* ---------- Poster ---------- */
.poster { max-width: 780px; margin: 0 auto; }
.poster-narrow { max-width: 680px; }
.poster img {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(150, 84, 20, 0.18);
}

/* ---------- Form ---------- */
.container-form { max-width: 860px; }
.form-intro { text-align: center; color: var(--muted); max-width: 640px; margin: -6px auto 24px; }
.req { color: var(--flame); font-weight: 700; }

.reg-form { display: flex; flex-direction: column; gap: 20px; }
.form-group {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  padding: 20px 20px 22px;
  box-shadow: 0 8px 26px rgba(150, 84, 20, 0.07);
}
.form-group legend {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--text); padding: 0 10px; margin-left: 6px;
  display: flex; align-items: center; gap: 10px;
}
.step-no {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--star), var(--flame));
  color: #2b1200; font-size: 15px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(249, 105, 14, 0.4);
}
.group-hint { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.field > span { font-weight: 600; font-size: 14.5px; }
.field small { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="tel"], input[type="date"], textarea {
  font-family: var(--body); font-size: 16px; color: var(--text);
  background: #fffdf9; border: 1.5px solid #e9d9c5; border-radius: 12px;
  padding: 11px 14px; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #bcab93; }
input:focus, textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 30, 0.18);
}
input[type="date"] { color-scheme: light; }
textarea { resize: vertical; }

/* honeypot chống bot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* checkbox list */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fffdf9; border: 1.5px solid #e9d9c5; border-radius: 12px;
  padding: 12px 14px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.check:hover { border-color: var(--amber); }
.check input {
  width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto;
  accent-color: var(--flame); cursor: pointer;
}
.check:has(input:checked) {
  border-color: var(--orange);
  background: #fff1e0;
}
.check-body { font-size: 15px; }
.check-body strong { color: var(--text); }
.check-price { display: block; color: var(--flame); font-size: 13.5px; margin-top: 2px; font-weight: 600; }
.check-desc { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.loading-note { color: var(--muted); font-size: 14px; }

.form-msg {
  border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 15px;
  border: 1.5px solid #fca5a5; color: var(--err); background: #fee2e2;
}
.btn-submit { align-self: center; min-width: 260px; }
.btn-submit:disabled { opacity: 0.6; cursor: wait; transform: none; animation: none; }
.privacy-note { text-align: center; color: #b3a48e; font-size: 13px; }

/* ---------- Thông báo gửi thành công ---------- */
.success-box {
  text-align: center;
  background: var(--card);
  border: 1.5px solid #86efac; border-radius: var(--radius);
  padding: 40px 26px; max-width: 640px; margin: 0 auto;
  box-shadow: 0 14px 40px rgba(150, 84, 20, 0.12);
}
.success-icon { font-size: 52px; margin-bottom: 10px; }
.success-box h3 { font-family: var(--display); font-size: 26px; color: var(--ok); margin-bottom: 12px; }
.success-box p { color: var(--muted); margin-bottom: 12px; }
.success-box .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 36px; border-top: 1px solid var(--line);
  background: var(--bg-soft); padding: 24px 0;
}
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { font-family: var(--display); font-weight: 700; color: var(--flame); font-size: 17px; }
.footer-line { color: var(--muted); font-size: 14px; }
.footer-line strong { color: var(--text); }
.footer-right { text-align: right; }
@media (max-width: 560px) { .footer-right { text-align: left; } }
.footer-line.small { font-size: 12.5px; margin-top: 6px; }
.admin-link { color: #b3a48e; text-decoration: none; }
.admin-link:hover { color: var(--flame); text-decoration: underline; }
