/* Quang Duc Auto - landing page styles.
 * Palette grounded in reference.css: yellow #ffb400/#ffca28/#ffc000/#ffda11,
 * ink #000/#212121/#333, white #fff, footer navy #051f4d, dark overlays. */

:root {
  --yellow: #ffb400;
  --yellow-2: #ffca28;
  --yellow-3: #ffc000;
  --yellow-4: #ffda11;
  --ink: #111;
  --ink-2: #212121;
  --ink-3: #333;
  --white: #fff;
  --navy: #051f4d;
  --muted: #6b7280;
  --maxw: 1200px;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, .18);
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }

a { color: inherit; text-decoration: none; }

.inner-container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; width: 100%; }

.full-row { position: relative; }

/* WOW fallback: never leave a section blank if JS fails to run. */
.wow { visibility: visible; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 2px solid var(--yellow);
  box-shadow: var(--shadow-sm);
}
.site-header .inner-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand-logo img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.main-nav a:hover { color: var(--yellow-3); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.header-cta:hover { background: var(--yellow-3); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 24px; color: var(--ink-2); padding: 6px; line-height: 1;
}

/* ---------- Section 1 : Hero ---------- */
.section1 { color: #fff; }
.section1 > img:first-child {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.section1 .ladi-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .65));
}
.ctsection1 {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 180px 1fr 230px;
  gap: 24px; align-items: center; padding: 48px 20px;
}
.left-gallery { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.left-gallery img, .right-col img {
  border-radius: 10px; border: 3px solid var(--yellow);
  width: 100%; height: 130px; object-fit: cover;
}
.right-col img { height: 320px; }
.middle-col { text-align: center; }
.middle-col .logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.middle-col .logo .brand-emblem { height: 52px; }
.middle-col .slogan {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--yellow); letter-spacing: .5px; line-height: 1.3;
}
.section1 h1.title {
  font-size: clamp(26px, 4vw, 42px); font-weight: 700;
  margin: 18px 0 20px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.form-wrapper {
  position: relative; background: rgba(255, 255, 255, .97); color: var(--ink-2);
  border-radius: var(--radius); padding: 22px; max-width: 420px; margin: 0 auto;
  box-shadow: var(--shadow-md); border-top: 5px solid var(--yellow);
}
.flash-sale-overlay { position: absolute; top: -26px; right: -14px; width: 84px; }
.flash-sale-overlay img { width: 100%; }
.form-title {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--ink); text-align: center; margin-bottom: 6px;
}
.form-note { font-size: 13px; text-align: center; color: var(--ink-3); margin-bottom: 14px; }
.form-group { margin-bottom: 12px; }
.form-wrapper input {
  width: 100%; padding: 12px 14px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 15px; font-family: var(--font-body);
}
.form-wrapper input:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.btn-submit, .submit-btn {
  width: 100%; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 16px;
  padding: 13px; border-radius: 8px; font-family: var(--font-display);
}
.btn-submit:hover, .submit-btn:hover { background: var(--yellow-3); }
.form-alert { margin-top: 10px; font-size: 14px; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-alert.ok { color: #157a2b; }
.form-alert.err { color: #c0392b; }

/* Floating Zalo + phone buttons */
.zalo-btn, .phonecallbtn {
  position: fixed; right: 18px; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; box-shadow: var(--shadow-md); overflow: hidden;
}
.zalo-btn { bottom: 86px; }
.phonecallbtn { bottom: 18px; }
.zalo-btn img, .phonecallbtn img { width: 100%; height: 100%; object-fit: cover; }
.phonecallbtn { animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 180, 0, .6); }
  70% { box-shadow: 0 0 0 14px rgba(255, 180, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 180, 0, 0); }
}

/* ---------- Section 2 ---------- */
.section2 { padding: 64px 0; background: #fff; }
.text-tile { position: relative; text-align: center; max-width: 820px; margin: 0 auto 32px; }
#iconsection2tt { position: absolute; left: 50%; top: -30px; width: 46px; height: 46px; transform: translateX(-50%); opacity: .9; }
.section-title { font-size: clamp(24px, 3.4vw, 36px); color: var(--ink); font-weight: 700; }
.section-desc { color: var(--ink-3); font-size: 16px; }
.contenimg { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 24px; }
.left-images { position: relative; }
.left-images .car-img { border-radius: 12px; box-shadow: var(--shadow-md); }
.car2 { width: 78%; }
.car-anima { position: relative; margin-top: -60px; margin-left: auto; width: 70%; }
.car-anima svg { position: absolute; right: -18px; bottom: -18px; width: 70px; height: 70px; z-index: -1; }
.car3 { border-radius: 12px; box-shadow: var(--shadow-md); border: 4px solid var(--yellow); }
.highlight-list { list-style: none; padding: 0; margin: 0; }
.highlight-list li {
  position: relative; padding: 10px 0 10px 34px; font-size: 15.5px;
  color: var(--ink-2); border-bottom: 1px dashed #e5e7eb;
}
.highlight-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px;
  background: var(--yellow); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/14px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/14px no-repeat;
}

/* ---------- Section 3 ---------- */
.section3 { padding: 64px 0; background: linear-gradient(180deg, #111 0%, #1b1b1b 100%); color: #fff; position: relative; overflow: hidden; }
.deco-left { position: absolute; left: 0; top: 40px; }
.circle-gold { width: 120px; height: 120px; border: 10px solid var(--yellow); border-radius: 50%; opacity: .25; }
.line-gold { width: 6px; height: 160px; background: var(--yellow); margin: 16px 0 0 56px; opacity: .4; }
.content-wrapper { position: relative; z-index: 2; text-align: center; max-width: 860px; margin: 0 auto; }
.section3-title { font-size: clamp(24px, 3.6vw, 38px); }
.section3-title .highlight { color: var(--yellow); }
.section3-desc { color: #d7d7d7; font-size: 16px; margin-bottom: 28px; }
.cta-wrapper { display: inline-flex; align-items: center; gap: 14px; }
.cta-wrapper .arrow-icon { width: 60px; height: 30px; opacity: .8; }
.btn-contact, .btn-contact4, .btnlh, .gift-btn {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-family: var(--font-display);
  padding: 14px 30px; border-radius: 999px; white-space: nowrap;
}
.btn-contact:hover, .btn-contact4:hover, .btnlh:hover, .gift-btn:hover { background: var(--yellow-3); }

/* ---------- Section 4 : 8 steps over dark image ---------- */
.section4 { padding: 72px 0; color: #fff; }
.section4-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.section4-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .72); }
.ctsection4 { position: relative; z-index: 2; }
.line-gold2 { width: 80px; height: 5px; background: var(--yellow); margin: 0 auto 36px; }
.process-steps-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-item {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 180, 0, .35);
  border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
}
.step-item > div:first-child { padding: 16px; }
.step-number { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--yellow); line-height: 1; }
.step-title { font-size: 14.5px; margin-top: 8px; color: #f2f2f2; }
.step-image { margin-top: auto; }
.step-image img { width: 100%; height: 150px; object-fit: cover; }

/* ---------- Section 5 : why choose us ---------- */
.section5 { padding: 64px 0; background: #fafafa; }
.title-wrapper { position: relative; text-align: center; margin-bottom: 36px; }
.svg-star { position: absolute; left: 50%; top: -34px; width: 40px; height: 40px; transform: translateX(-50%); }
.title-wrapper h2 { font-size: clamp(24px, 3.4vw, 36px); color: var(--ink); }
.title-wrapper h2 span { color: var(--yellow-3); }
.title-lines { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.title-lines .line { height: 4px; background: var(--yellow); border-radius: 2px; }
.line-1 { width: 40px; } .line-2 { width: 28px; opacity: .8; } .line-3 { width: 16px; opacity: .6; } .line-4 { width: 8px; opacity: .4; }
.content-layout { display: grid; grid-template-columns: 1fr 1.1fr 0.9fr; gap: 28px; align-items: center; }
.description { color: var(--ink-3); font-size: 16px; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefits-grid > div { display: contents; }
.benefit-item {
  background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 20px 16px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.benefit-item h3 { font-size: 18px; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.benefit-item .svg-diamond { width: 34px; height: 34px; }
.benefit-item p { font-size: 14px; color: var(--muted); margin: 0; }
#bnf-img1 img { border-radius: 12px; box-shadow: var(--shadow-md); width: 100%; }

/* ---------- Section 6 : real gallery ---------- */
.section6 { padding: 64px 0; background: #fff; }
.real-gallery-header { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 30px; }
.yellow-bar { width: 50px; height: 6px; background: var(--yellow); flex: 0 0 auto; }
.white-square { width: 18px; height: 18px; border: 3px solid var(--yellow); flex: 0 0 auto; }
.section-title6 { font-size: clamp(24px, 3.4vw, 36px); color: var(--ink); text-align: center; }
.section-title6 .highlight { color: var(--yellow-3); }
.real-gallery-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.gallery-main-img { position: relative; }
.gallery-main-img > img { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; }
.gallery-jr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.gallery-jr img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.gallery-side { display: flex; flex-direction: column; gap: 16px; }
.gallery-side img { width: 100%; height: 266px; object-fit: cover; border-radius: 12px; }

/* ---------- Section 7 : about + video ---------- */
.section7 { padding: 64px 0; background: #111; color: #fff; }
.about-us-2025 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.video-thumbnail { position: relative; cursor: pointer; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.video-thumbnail img { width: 100%; height: 340px; object-fit: cover; }
.video-thumbnail iframe { width: 100%; height: 340px; border: 0; display: block; }
.play-button {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; color: var(--yellow); transition: transform .2s;
}
.video-thumbnail:hover .play-button { transform: translate(-50%, -50%) scale(1.1); }
.play-button svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.video-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); pointer-events: none; }
.about-content { position: relative; }
.yellow-decoration { width: 60px; height: 6px; background: var(--yellow); margin-bottom: 14px; }
.about-title { font-size: clamp(24px, 3.4vw, 34px); }
.about-text { color: #d7d7d7; font-size: 15.5px; margin: 16px 0; }
.about-contact p { margin: 8px 0; }
.about-contact span { display: inline-flex; align-items: center; gap: 10px; }
.about-contact svg { width: 22px; height: 22px; fill: var(--yellow); flex: 0 0 22px; }
.about-contact a { color: var(--yellow); font-weight: 700; }
.lhct { margin-top: 18px; }

/* ---------- Feedback ---------- */
.feedback-section { padding: 56px 0; background: #fafafa; }
.feedback-title { text-align: center; font-size: clamp(22px, 3vw, 32px); color: var(--ink); margin-bottom: 28px; }
.feedback-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chat-img-item img { width: 100%; height: 280px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid #eee; }

/* ---------- Section 8 : register + countdown ---------- */
.section8 { padding: 72px 0; color: #fff; }
.section8-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.section8-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(0, 0, 0, .6), rgba(5, 31, 77, .75)); }
.ctsection8 { position: relative; z-index: 2; }
.register-box {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: rgba(17, 17, 17, .55); border: 1px solid rgba(255, 180, 0, .5);
  border-radius: 16px; padding: 32px 26px; backdrop-filter: blur(2px);
}
.register-box h2 { font-size: clamp(22px, 3vw, 30px); color: var(--yellow); }
.register-box .gift-btn { margin: 8px 0 18px; }
.countdown-title { font-size: 15px; margin-bottom: 14px; color: #eee; }
.countdown-timer { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.time-block {
  background: var(--yellow); color: var(--ink); font-weight: 700;
  border-radius: 10px; padding: 12px 6px; min-width: 70px; font-size: 13px;
  font-family: var(--font-display);
}
.time-block span { display: block; font-size: 30px; line-height: 1; margin-bottom: 4px; }
.register-form { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
.register-form input {
  padding: 13px 14px; border-radius: 8px; border: 0; font-size: 15px; font-family: var(--font-body);
}
.register-form input:focus { outline: 2px solid var(--yellow); }
.privacy-note { font-size: 12.5px; color: #cfcfcf; margin-top: 14px; }

/* ---------- Features (4 box) ---------- */
.section-features { padding: 56px 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-item { position: relative; border-radius: 14px; overflow: hidden; min-height: 220px; display: flex; }
.feature-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .7)); }
.feature-content { position: relative; z-index: 2; color: #fff; padding: 22px; margin-top: auto; }
.feature-icon { width: 48px; height: 48px; margin-bottom: 10px; }
.feature-icon svg, .feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--yellow); }
.feature-desc { font-size: 13.5px; color: #eaeaea; margin-top: 4px; }

/* ---------- CTA footer ---------- */
.cta-footer-section { padding: 48px 0; background: var(--yellow); color: var(--ink); }
.cta-footer-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 4px; }
.cta-text p { margin: 0; font-weight: 500; }
.support-text { font-weight: 600; margin-bottom: 4px; }
.phone-number { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.phone-number svg { width: 24px; height: 24px; fill: var(--ink); }
.btn-contact4 { background: var(--ink); color: var(--yellow); }
.btn-contact4:hover { background: #000; }

/* ---------- Footer ---------- */
.footer-contact-section { background: #fff; padding: 48px 0 28px; border-top: 4px solid var(--yellow); }
.footer-contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; color: var(--ink-3); font-size: 15px; }
.contact-info svg { width: 22px; height: 22px; flex: 0 0 22px; fill: var(--navy); }
.contact-info a { color: var(--navy); font-weight: 700; }
.footer-logo { text-align: center; }
.footer-logo img { height: 64px; width: auto; margin: 0 auto; }
.footerwaper { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee; flex-wrap: wrap; }
.copyright { color: var(--muted); font-size: 14px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f3f4f6; }
.social-icons svg { width: 18px; height: 18px; fill: var(--ink-2); }
.social-icons a:hover { background: var(--yellow); }
.google-map iframe { border-radius: 12px; width: 100%; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .ctsection1 { grid-template-columns: 1fr; }
  .left-gallery { flex-direction: row; }
  .left-gallery img { height: 90px; min-width: 0; flex: 1 1 0; width: auto; }
  .right-col { display: none; }
  .process-steps-8 { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .about-us-2025 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .real-gallery-grid { grid-template-columns: 1fr; }
  .footerwaper, .footer-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
    box-shadow: var(--shadow-md); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
  .nav-toggle { display: inline-flex; }
  .contenimg { grid-template-columns: 1fr; }
  .feedback-grid { grid-template-columns: 1fr; }
  .process-steps-8 { grid-template-columns: 1fr; }
  .feature-item { min-height: 190px; }
  .countdown-timer { gap: 8px; }
  .time-block { min-width: 0; flex: 1; }
  .cta-footer-content { flex-direction: column; text-align: center; align-items: center; }
  .footer-bottom { justify-content: center; }
  .real-gallery-header { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .wow { visibility: visible !important; }
}
