:root {
  --primary: #02514c;
  --primary-dark: #013b37;
  --primary-light: #046a63;
  --primary-tint: #e6f2f1;
  --primary-surface: #f0f7f6;
  --silver: #7c8285;
  --silver-light: #a9afb1;
  --silver-tint: #f4f6f7;
  --paper: #f6faf9;
  --surface: #ffffff;
  --ink: #172624;
  --ink-light: #2c3e3b;
  --muted: #596b68;
  --line: #dbe7e5;
  --line-subtle: #edf3f2;
  --shadow-sm: 0 4px 12px rgba(2, 81, 76, 0.05);
  --shadow: 0 20px 60px rgba(2, 81, 76, 0.08), 0 4px 16px rgba(2, 81, 76, 0.04);
  --font-main: "UTM Avo", "Montserrat", "Plus Jakarta Sans", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(2, 81, 76, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 81, 76, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

button, input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Top Utility Bar
   ========================================================================== */

.top-bar {
  background: var(--ink);
  color: #cbd7d5;
  font-size: 11.5px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar__dot {
  opacity: 0.4;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 96px;
  padding: 16px 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 180ms ease;
}

.brand:hover {
  opacity: 0.92;
}

.brand__logo-img {
  height: 60px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand__divider {
  display: block;
  width: 1px;
  height: 38px;
  background: var(--line);
  margin: 0 18px;
}

.brand__tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand__tagline strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  line-height: 1.2;
}

.brand__tagline small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(2, 81, 76, 0.2);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.privacy-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.header-cta-button {
  padding: 10px 18px;
  background: var(--primary);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
  box-shadow: 0 4px 12px rgba(2, 81, 76, 0.2);
}

.header-cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 81, 76, 0.3);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  flex: 1;
}

/* ==========================================================================
   Welcome View (Trang chủ chào mừng)
   ========================================================================== */

.welcome-view {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 48px 0 72px;
}

/* Hero Section */
.hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: 8px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-tint);
  border: 1px solid rgba(2, 81, 76, 0.15);
  border-radius: 999px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.eyebrow-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.welcome-view h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink);
}

.welcome-view h1 em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.welcome-view__lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  font-weight: 400;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.primary-button {
  min-height: 54px;
  padding: 15px 28px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(2, 81, 76, 0.25);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.primary-button svg,
.secondary-button svg,
.back-button svg,
.external-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 32px rgba(2, 81, 76, 0.35);
  transform: translateY(-2px);
}

.secondary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 180ms ease;
}

.secondary-button:hover {
  background: var(--primary-tint);
  color: var(--primary-dark);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.trust-pill svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Hero Right: Visual Image Card */
.visual-img-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.visual-img-card:hover .hero-photo {
  transform: scale(1.02);
}

.visual-img-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 81, 76, 0.04) 0%, rgba(2, 81, 76, 0.45) 100%);
  pointer-events: none;
}

.floating-quote-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.quote-badge-icon {
  font-size: 36px;
  line-height: 1;
  color: var(--primary);
  font-weight: 800;
  opacity: 0.6;
}

.quote-badge-text strong {
  display: block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.quote-badge-text p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

/* ==========================================================================
   Action Highlight Strip (Corporate Banner)
   ========================================================================== */

.action-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(2, 81, 76, 0.22);
}

.action-strip__text {
  display: flex;
  align-items: center;
  gap: 18px;
}

.action-strip__icon {
  width: 36px;
  height: 36px;
  stroke: #ffffff;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
  opacity: 0.9;
}

.action-strip__text strong {
  display: block;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  margin-bottom: 4px;
}

.action-strip__text p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.action-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: #ffffff;
  color: var(--primary);
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 180ms ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.action-strip__btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.action-strip__btn:hover {
  background: var(--primary-tint);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   3 Pillars Section (Consulting Photo Cards)
   ========================================================================== */

.pillars-section {
  padding-top: 8px;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(2, 81, 76, 0.14);
}

.pillar-card__img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.pillar-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease;
}

.pillar-card:hover .pillar-card__img-wrap img {
  transform: scale(1.06);
}

.pillar-card__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(2, 81, 76, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.pillar-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pillar-card__number {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.pillar-card__body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.pillar-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ==========================================================================
   4-Step Process Section
   ========================================================================== */

.process-section {
  padding-top: 16px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 20px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, transform 180ms ease;
}

.process-step:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.process-step__icon-box {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--primary-tint);
  border: 1px solid rgba(2, 81, 76, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.process-step__icon-box svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 1.8;
  fill: none;
}

.step-num {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ==========================================================================
   Form View (Trang biểu mẫu nhúng)
   ========================================================================== */

.form-view {
  padding: 36px 0 64px;
}

.form-toolbar {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.form-toolbar__title {
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-toolbar h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}

.back-button,
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(2, 81, 76, 0.15);
  border-radius: 6px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  transition: all 180ms ease;
}

.back-button {
  justify-self: start;
}

.external-link {
  justify-self: end;
}

.back-button:hover,
.external-link:hover {
  background: var(--primary-tint);
  border-color: rgba(2, 81, 76, 0.3);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.form-shell {
  position: relative;
  min-height: 720px;
  height: 82vh;
  max-height: 980px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.form-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: 0;
  background: #ffffff;
}

.form-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  z-index: 5;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.form-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.setup-notice {
  min-height: 680px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.form-loading p {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.loader {
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.setup-notice strong {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.setup-notice p {
  max-width: 540px;
  line-height: 1.7;
}

.setup-notice code {
  padding: 3px 6px;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: auto;
}

.site-footer__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-values {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
}

.footer-dot {
  color: var(--silver-light);
}

/* ==========================================================================
   Accessibility & Animation
   ========================================================================== */

button:focus-visible,
a:focus-visible,
h1:focus-visible {
  outline: 3px solid rgba(2, 81, 76, 0.4);
  outline-offset: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .visual-img-card {
    max-width: 680px;
    margin: 0 auto;
  }
  .hero-photo {
    min-height: 340px;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .action-strip {
    flex-direction: column;
    text-align: center;
  }
  .action-strip__text {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .site-header {
    min-height: 80px;
    padding: 12px 0;
  }
  .brand__logo-img {
    height: 46px;
    max-width: 100px;
  }
  .brand__divider {
    height: 28px;
    margin: 0 12px;
  }
  .brand__tagline strong {
    font-size: 12px;
  }
  .brand__tagline small {
    display: none;
  }
  .header-cta-button {
    display: none;
  }
  .privacy-badge {
    padding: 7px 11px;
    font-size: 11px;
  }
  .welcome-view {
    gap: 48px;
    padding: 32px 0 54px;
  }
  .welcome-view h1 {
    font-size: 32px;
  }
  .welcome-view__lead {
    font-size: 15px;
    line-height: 1.6;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .form-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-toolbar__title,
  .back-button,
  .external-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    justify-content: center;
  }
  .form-shell,
  .form-loading,
  .setup-notice {
    min-height: 580px;
    height: 75vh;
  }
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
