﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap");

/* ===================================================================
   0. DESIGN TOKENS (TÃ´ng mÃ u Viger Edu x Phong cÃ¡ch Hiá»‡n Ä‘áº¡i)
   =================================================================== */
:root {
  --bg-main: #fdfbf7; /* Tráº¯ng áº¥m nháº¹ */
  --bg-white: #ffffff;

  --text-primary: #12263f; /* Xanh Navy Ä‘áº­m - TÃ´ng cÅ© */
  --text-secondary: #4a5c71; /* Xanh Navy nháº¡t */
  --text-muted: #7a8b9c; /* XÃ¡m xanh */

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --accent-main: #c1121f; /* Äá» Viger */
  --accent-hover: #780000; /* Äá» sáº«m */

  --accent-alt: #ffb703; /* VÃ ng cam Viger */
  --accent-alt-hover: #e09f00;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(18, 38, 63, 0.15); /* BÃ³ng Ä‘á»• Ã¡m xanh navy */

  --radius-full: 9999px;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* ===================================================================
   1. RESET & BASE TYPOGRAPHY
   =================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-heading,
.section-title,
.about-heading,
.cta-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.hero-subheading {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-main); /* Chá»¯ nghiÃªng mÃ u Ä‘á» Viger */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
}

/* ===================================================================
   2. HEADER BAR
   =================================================================== */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 36px;
  width: auto;
}

#brand-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

#brand-sub {
  font-size: 0.75rem;
  color: var(--accent-alt); /* VÃ ng cam */
  font-weight: 500;
}

/* ===================================================================
   3. NAVIGATION
   =================================================================== */
.navtoggle,
.burger,
.scrim {
  display: none;
}

.navpanel {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.menu a:hover {
  color: var(--accent-main);
}

.caret {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

.menu-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-white);
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.menu-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: var(--bg-main);
  color: var(--text-primary);
  transform: translateX(4px);
}

.dropdown-content .logout-link {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  background: none;
  border: 0;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-content .logout-link:hover {
  background-color: var(--bg-main);
  color: var(--accent-main);
  transform: translateX(4px);
}

/* NÃºt CTA Header */
.cta-pill {
  background-color: var(--accent-main);
  color: var(--bg-white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.cta-pill:hover {
  background-color: var(--accent-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(193, 18, 31, 0.3);
}

/* Right-side header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Language toggle button */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--accent-main);
  color: var(--accent-main);
}

.lang-toggle .lang-sep {
  color: var(--border-color);
  font-weight: 400;
}

.lang-toggle .lang-active {
  color: var(--accent-main);
}
/* ===================================================================
   4. CHUNG CHO CÃC SECTION
   =================================================================== */
.page-container {
  max-width: 80rem; /* 1280px = max-w-7xl */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================================
   5. HERO SECTION
   =================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 183, 3, 0.1),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(193, 18, 31, 0.05),
      transparent 40%
    );
}

.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    align-items: flex-start;
    text-align: left;
  }
}

.hero-heading {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-subheading {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-alt); /* Nháº¥n báº±ng mÃ u vÃ ng */
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

/* Hai nút hero: cùng khung, cùng chiều cao, chữ căn giữa */
.hero-buttons .btn-red,
.hero-buttons .btn-outline-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
}
.hero-buttons .btn-red {
  border-color: var(--accent-main);
}
.hero-buttons .btn-red:hover {
  border-color: var(--accent-hover);
}
.hero-buttons .btn-outline-custom {
  border-color: var(--border-color);
}

.btn-red {
  background-color: var(--accent-main);
  color: var(--bg-white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 14px rgba(193, 18, 31, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-red:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(193, 18, 31, 0.4);
}

.btn-outline-custom {
  background-color: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--bg-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hiá»ƒn thá»‹ láº¡i hÃ¬nh áº£nh vá»›i viá»n má» bo trÃ²n */
.hero-image {
  display: block;
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 4px solid rgba(255, 255, 255, 0.5);
  object-fit: cover;
  width: 100%;
}

/* ===================================================================
   6. THANH Äá»I TÃC (Marquee mÃ u VÃ ng)
   =================================================================== */
.yellow-banner {
  background-color: var(--accent-alt);
  padding: 1.5rem 0;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.partner-list {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  align-items: center;
}

.partner-list span {
  flex-shrink: 0;
  padding: 0 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff; /* Chá»¯ tráº¯ng trÃªn ná»n vÃ ng */
  opacity: 0.9;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================================================================
   7. ABOUT US
   =================================================================== */
.about-section {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-label {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.subtitle-line {
  display: none;
}

.about-label-text {
  color: var(--accent-alt-hover);
  background-color: #fff9e6; /* VÃ ng nháº¡t */
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-heading {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.link-custom {
  color: var(--accent-main);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(193, 18, 31, 0.2);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.link-custom:hover {
  border-color: var(--accent-main);
}

.about-images {
  background-color: var(--bg-white);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.grid-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-img {
  border-radius: var(--radius-xl);
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-img:hover {
  transform: scale(1.05);
}

.stat-box {
  background: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-box h3 {
  color: var(--accent-alt);
  font-size: 2.2rem;
  margin: 0;
}
.stat-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0;
}

/* ===================================================================
   8. PROCESS SECTION
   =================================================================== */
.process-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.process-section .section-pretitle {
  color: var(--accent-main);
  background-color: #fdf2f2; /* Äá» nháº¡t */
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 1rem;
}
.process-subtitle-line {
  display: none;
}

.timeline-wrap {
  background-color: var(--bg-main);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  margin-top: 3rem;
}

.timeline-line {
  display: none;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.timeline-step {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.circle-step {
  width: 48px;
  height: 48px;
  background-color: var(--text-primary);
  color: var(--accent-alt);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.step-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.link-more {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}
.link-more:hover {
  border-color: var(--text-primary);
  color: var(--accent-main);
}

/* ===================================================================
   9. TESTIMONIALS (Grid Style)
   =================================================================== */
.testimonial-section {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

.testimonial-section .section-pretitle {
  display: none;
}

.testimonial-section .section-title {
  text-align: center;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 4rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-item {
  height: 100%;
}

.testimonial-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quote-icon {
  font-family: "Inter", sans-serif;
  font-size: 4rem;
  color: rgba(193, 18, 31, 0.1);
  line-height: 0.5;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.feather-user {
  width: 36px;
  height: 36px;
  background-color: #f1f5f9;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 8px;
}

/* ===================================================================
   10. CTA SECTION
   =================================================================== */
.cta-section {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  z-index: 0;
  background: var(--text-primary);
  border-radius: var(--radius-2xl);
  margin: 4rem 1.5rem;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1532012197267-da84d127e765?q=80&w=1920&auto=format&fit=crop")
    center/cover no-repeat;
  opacity: 0.15;
  z-index: -1;
  border-radius: var(--radius-2xl);
}

.cta-subtitle-line {
  display: none;
}

.cta-section .section-pretitle span {
  color: var(--accent-alt);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bg-white) !important;
  margin-bottom: 1.5rem;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.cta-section .cta-pill {
  background-color: var(--accent-main) !important;
  color: var(--bg-white) !important;
  font-size: 1rem !important;
  padding: 1rem 2.5rem !important;
  border-radius: var(--radius-full) !important;
}

.cta-section .cta-pill:hover {
  background-color: var(--accent-hover) !important;
}

/* ===================================================================
   11. FOOTER
   =================================================================== */
.foot {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2rem;
}

.foot-container {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .foot-container {
    grid-template-columns: 1.5fr 1fr;
  }
}

.foot-brand {
  margin-bottom: 1rem;
}

.foot-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.foot-socials {
  display: flex;
  gap: 1rem;
}
.foot-socials a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: inline-block;
}
.foot-socials a:hover {
  color: var(--accent-main);
  transform: translateY(-2px);
}

.foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .foot-right {
    align-items: flex-end;
    text-align: right;
  }
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.foot-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.foot-nav a:hover {
  color: var(--accent-main);
}

.foot-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

/* ===================================================================
   12. RESPONSIVE Bá»” SUNG & BURGER MENU
   =================================================================== */
@media (max-width: 1024px) {
  .navpanel {
    display: none;
  }
  .burger {
    display: block;
    color: var(--text-primary);
    background: none;
    border: none;
  }
  .burger svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
  }
}

/* ===================================================================
   13. ANIMATIONS
   =================================================================== */
.animate-hidden {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 1000ms ease-out,
    transform 1000ms ease-out;
}
.animate-hidden.show-animate {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}

/* Social Buttons Contact Page */
.contact-social-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.contact-social-btn:hover {
  background: var(--accent-main);
  color: var(--bg-white);
  transform: translateY(-3px);
}

#brand-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* ===================================================================
   14. LOGIN FORM: INPUT + NÚT HIỆN MẬT KHẨU
   =================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem; /* trái: ổ khóa, phải: con mắt */
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input-wrapper input:focus {
  border-color: var(--accent-main);
  box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12);
}

/* Icon ổ khóa: bên trái */
.input-wrapper .icon-lock {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Nút con mắt: bên phải */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: none;
  border: 0;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.toggle-password:hover {
  color: var(--accent-main);
  background-color: var(--bg-main);
}

.toggle-password:focus-visible {
  outline: 2px solid var(--accent-main);
  outline-offset: 2px;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

/* ===================================================================
   15. HEADER RESPONSIVE (laptop nhỏ, tablet, mobile + menu trượt)
   =================================================================== */
/* Laptop nhỏ: menu không canh giữa tuyệt đối nữa để không đè logo/nút */
@media (max-width: 1279px) and (min-width: 1025px) {
  .bar { padding: 0.875rem 1.25rem; gap: 1rem; }
  .navpanel { position: static; transform: none; margin-left: auto; }
  .navpanel, .menu { gap: 1.25rem; }
  .header-actions { margin-left: 0; }
  #brand-sub { display: none; }
}

/* Tablet & mobile: menu trượt từ phải */
@media (max-width: 1024px) {
  .bar { padding: 0.75rem 1.25rem; gap: 0.75rem; }
  .header-actions { order: 2; }
  .burger {
    order: 3;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    cursor: pointer;
  }
  .burger svg { width: 22px; height: 22px; overflow: visible; }
  .burger path { transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: 11px 7px; }
  .navtoggle:checked ~ .burger .b1 { transform: translateY(6px) rotate(45deg); }
  .navtoggle:checked ~ .burger .b2 { opacity: 0; }
  .navtoggle:checked ~ .burger .b3 { transform: translateY(-6px) rotate(-45deg); }

  .scrim {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    background: rgba(18, 38, 63, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .navtoggle:checked ~ .scrim { opacity: 1; visibility: visible; }

  .navpanel,
  .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navpanel {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 2;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    padding: 4.5rem 1.25rem 2rem;
    overflow-y: auto;
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .navtoggle:checked ~ .navpanel { transform: none; visibility: visible; }

  .menu > a,
  .menu-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
  }
  .menu-dropdown { display: block; }
  .menu-dropdown .caret { display: none; }
  .dropdown-content,
  .menu-dropdown:hover .dropdown-content {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 0.25rem 0 0.5rem 0.75rem;
  }
  .dropdown-content a { font-size: 0.9rem; padding: 0.5rem 0.75rem; }
}

body:has(#nav-open:checked) { overflow: hidden; }

/* Mobile */
@media (max-width: 640px) {
  .bar { padding: 0.625rem 1rem; }
  .brand img { height: 30px; }
  #brand-title { font-size: 1rem; }
  #brand-sub { display: none; }
  .header-actions { gap: 0.5rem; }
  .lang-toggle { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
  .cta-pill { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}

/* Điện thoại rất hẹp: ẩn chữ thương hiệu và nút CTA để không bị tràn */
@media (max-width: 380px) {
  .brand-text { display: none !important; }
  .header-actions .cta-pill { display: none; }
}
