:root {
  --rose: #D95F7B;
  --rose-mid: #F2899E;
  --rose-pale: #FCE8EE;
  --rose-ultra: #FEF5F7;
  --teal: #3BA8A6;
  --teal-light: #C8ECEB;
  --teal-pale: #F0FAFA;
  --cream: #FFFCFA;
  --sand: #F7F2ED;
  --ink: #221828;
  --ink-70: rgba(34, 24, 40, .70);
  --ink-40: rgba(34, 24, 40, .40);
  --white: #FFFFFF;
  --r: 20px;
  --sh-sm: 0 2px 16px rgba(34, 24, 40, .07);
  --sh-md: 0 8px 40px rgba(34, 24, 40, .10);
  --sh-lg: 0 24px 72px rgba(34, 24, 40, .13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* =========== COMMON UI =========== */
.logo {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--rose);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.btn-cta {
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .5rem 1.3rem;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}

.btn-cta:hover {
  background: #c04e6b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 95, 123, .35);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
  border-radius: 50px;
  padding: .5rem 1.3rem;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}

.btn-outline:hover {
  background: var(--rose-pale);
}

.btn-white {
  background: var(--white);
  color: var(--rose);
  border: none;
  border-radius: 50px;
  padding: .6rem 1.5rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}

.btn-white:hover {
  background: var(--rose-pale);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-svc {
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .5rem 1.2rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.btn-svc:hover {
  background: #c04e6b;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--ink-40);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--rose);
  text-decoration: none;
}

.page-hero {
  padding: 120px 5% 60px;
  background: var(--white);
  border-bottom: 1px solid var(--rose-pale);
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-sub {
  font-size: 1.05rem;
  color: var(--ink-70);
  max-width: 600px;
  font-weight: 300;
}

/* =========== NAV =========== */
nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(255, 255, 255, .95) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(217, 95, 123, .1);
  transition: all .3s ease;
}

nav.scrolled {
  box-shadow: var(--sh-md);
  background: var(--white) !important;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-70);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose);
}

.nav-lang {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-40);
  border: 1px solid var(--ink-40);
  border-radius: 6px;
  padding: .2rem .6rem;
  cursor: pointer;
  transition: all .2s;
  margin-right: .6rem;
}

.nav-lang:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* =========== SECTIONS =========== */
section {
  padding: 80px 5%;
}

.section-eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .6rem;
}

.section-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-body {
  font-size: .96rem;
  line-height: 1.8;
  color: var(--ink-70);
  font-weight: 300;
  max-width: 500px;
  margin-bottom: 1.5rem;
}

/* =========== FOOTER =========== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .55);
  padding: 60px 5% 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .84rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .45);
  max-width: 260px;
}

.footer-col h4 {
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: .6rem;
}

.footer-col a {
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--rose-mid);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: .77rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* =========== REVEAL ANIMATION =========== */
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity .8s ease, transform .8s ease;
}

/* Tắt tạm thời trạng thái ẩn để đảm bảo thiết kế luôn hiện */
.js-enabled .reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.d1 {
  transition-delay: .1s;
}

.d2 {
  transition-delay: .2s;
}

.d3 {
  transition-delay: .3s;
}

/* Responsive basics */
@media (max-width: 768px) {
  nav .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  section {
    padding: 60px 5%;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========== FORMS & TOOLS =========== */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-70);
  margin-bottom: .6rem;
}

input[type="number"],
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: .95rem 1.2rem;
  border: 1.5px solid var(--rose-pale);
  border-radius: 12px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  transition: all .2s ease;
  outline: none;
  appearance: none;
  /* Xóa style mặc định của trình duyệt */
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(217, 95, 123, 0.15);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.tool-card {
  background: var(--white);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: var(--sh-lg);
  max-width: 520px;
  margin: 0 auto;
}

.tool-card h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* =========== FAQ SECTION =========== */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--rose-pale);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all .3s;
}

.faq-item.active {
  border-color: var(--rose);
}

.faq-q {
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-q .arrow {
  font-size: .8rem;
  transition: transform .3s;
}

.faq-item.active .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  background: #fffafa;
  /* Ultra light rose */
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-70);
  padding: 0 1.5rem;
}

.faq-item.active .faq-a {
  max-height: 600px;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--rose-pale);
}