/* ==========================================================================
   NRDE - CỔNG KHẢO SÁT LẤY Ý KIẾN NGƯỜI DÂN
   File: Index.css
   Style System: Emerald / Forest Green & Amber Theme (NRDE Digital Standard)
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-dark: #064e3b;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(5, 150, 105, 0.16);

  --secondary: #0284c7;
  --secondary-light: #eff6ff;

  --amber: #d97706;
  --amber-hover: #b45309;
  --amber-light: #fffbeb;
  --amber-badge: #f59e0b;

  --danger: #ef4444;
  --danger-light: #fef2f2;

  --success: #00b074;
  --success-light: #e6f7f0;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #10b981;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 10px 25px rgba(5, 150, 105, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   1. TOP NAVIGATION BAR (STICKY GLASSMORPHIC HEADER)
   ========================================================================== */
.survey-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.survey-nav-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.survey-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}

.survey-nav-logo {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.survey-nav-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--primary-dark);
  letter-spacing: 0.1px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.survey-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-btn-home:hover {
  background: #f1f5f9;
  color: var(--primary-dark);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.nav-btn-home i {
  color: var(--primary);
  font-size: 11.5px;
}

.nav-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.2);
  transition: all 0.2s ease;
}

.nav-btn-login:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.28);
}

.nav-hotline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease;
}

.nav-hotline:hover {
  color: var(--primary);
}

.nav-hotline i {
  color: var(--primary);
}

/* ==========================================================================
   2. HERO BANNER
   ========================================================================== */
.survey-hero {
  position: relative;
  background: linear-gradient(135deg, #044433 0%, #065f46 50%, #047857 100%);
  color: #ffffff;
  padding: 26px 16px 42px;
  overflow: hidden;
}

.survey-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 68%);
  border-radius: 50%;
}

.hero-glow-2 {
  position: absolute;
  bottom: -150px;
  left: 5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.survey-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2.5px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #a7f3d0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hero-status-pill.is-closed {
  color: #fef08a;
  border-color: rgba(254, 240, 138, 0.3);
  background: rgba(234, 179, 8, 0.14);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.15px;
}

.hero-desc {
  font-size: 12.5px;
  color: #e6fcf5;
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 12px;
  font-weight: 350;
  opacity: 0.92;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 450;
  color: #ecfdf5;
}

.meta-chip i {
  color: #a7f3d0;
  font-size: 11px;
}

/* ==========================================================================
   3. MAIN CONTENT CONTAINER
   ========================================================================== */
.survey-container {
  max-width: 800px;
  margin: -22px auto 44px;
  padding: 0 16px;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   4. SURVEY PICKER / SELECTOR CARD (CUSTOM COMBOBOX)
   ========================================================================== */
.survey-select-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 7px 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.survey-select-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.survey-select-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.select-label-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.select-label-text {
  display: flex;
  flex-direction: column;
}

.label-heading {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  line-height: 1.25;
}

.label-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.survey-picker-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}

/* Custom Combobox Trigger */
.custom-combobox {
  position: relative;
  width: 100%;
}

.combobox-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 11px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}

.combobox-trigger:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.custom-combobox.is-open .combobox-trigger {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.trigger-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.trigger-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.trigger-badge.badge-live {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.trigger-badge.badge-closed {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.trigger-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 1.5px rgba(16, 185, 129, 0.2);
}

.trigger-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trigger-chevron {
  color: var(--text-muted);
  font-size: 11px;
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.custom-combobox.is-open .trigger-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Custom Combobox Menu */
.combobox-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12);
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
  animation: dropdownSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-combobox.is-open .combobox-menu {
  display: block;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
}

.menu-group-header:first-child {
  border-top: none;
  margin-top: 0;
}

.group-title.live-title {
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.group-title.closed-title {
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.group-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.group-count {
  background: #f1f5f9;
  color: var(--text-muted);
  padding: 1.5px 6px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.15s ease;
  position: relative;
}

.menu-item:hover {
  background: #f8fafc;
}

.menu-item.is-selected {
  background: #ecfdf5;
  border-left: 2.5px solid var(--primary);
}

.item-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  flex-shrink: 0;
}

.item-status-icon.is-live {
  background: #d1fae5;
  color: #059669;
}

.item-status-icon.is-closed {
  background: #dbeafe;
  color: #2563eb;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 12px;
  font-weight: 450;
  color: #1e293b;
  line-height: 1.35;
}

.menu-item.is-selected .item-name {
  color: #065f46;
  font-weight: 550;
}

.item-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.item-check {
  color: var(--primary);
  font-size: 12px;
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 600;
}

/* Fallback hidden select for accessibility */
.survey-picker-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* ==========================================================================
   5. SURVEY RESULTS VIEW (FOR CLOSED SURVEYS)
   Matching the reference mockup exactly with rich aesthetics
   ========================================================================== */
.survey-result-container {
  width: 100%;
}

/* Summary Grid Mini Cards */
.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summary-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.summary-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.summary-stat-card.stat-blue .summary-stat-icon {
  background: #eff6ff;
  color: #2563eb;
}

.summary-stat-card.stat-green .summary-stat-icon {
  background: #ecfdf5;
  color: #059669;
}

.summary-stat-card.stat-amber .summary-stat-icon {
  background: #fffbeb;
  color: #d97706;
}

.summary-stat-card.stat-purple .summary-stat-icon {
  background: #f5f3ff;
  color: #7c3aed;
}

.summary-stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.stat-title {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-top: 1px;
}

/* Main Result Card */
.survey-result-card {
  background: #ffffff;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  margin-bottom: 16px;
}

/* Card Header */
.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.result-header-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* 3-bar chart icon */
.result-icon-chart {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding-top: 2px;
  flex-shrink: 0;
}

.result-icon-chart .chart-bar {
  width: 3px;
  border-radius: 1.5px;
  display: inline-block;
}

.result-icon-chart .bar-1 {
  height: 10px;
  background-color: #3b82f6;
}

.result-icon-chart .bar-2 {
  height: 16px;
  background-color: #2563eb;
}

.result-icon-chart .bar-3 {
  height: 12px;
  background-color: #60a5fa;
}

.result-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-header-title {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0;
}

.result-header-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  font-weight: 350;
}

.result-header-right {
  flex-shrink: 0;
}

.result-total-pill {
  display: inline-flex;
  align-items: center;
  background-color: #eff6ff;
  color: #2563eb;
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.2px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Question Items List */
.result-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 7px;
  padding: 10px 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.result-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.result-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.result-item-name {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 450;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
}

.result-item-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.score-percent {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.score-percent.is-passed {
  color: var(--success);
}

.score-percent.is-failed {
  color: var(--amber-badge);
}

.score-star {
  display: none;
}

.score-count {
  color: var(--text-light);
  font-size: 10.5px;
  font-weight: 400;
}

/* Progress Track and Fill */
.result-progress-track {
  width: 100%;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 6px;
}

.result-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-progress-fill.is-passed {
  background-color: var(--success);
}

.result-progress-fill.is-failed {
  background-color: var(--amber-badge);
}

/* Item Bottom Meta and Status */
.result-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  flex-wrap: wrap;
}

.result-meta-target {
  font-weight: 450;
  color: var(--text-light);
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 10px;
}

.result-status-indicator {
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.status-badge.is-passed {
  color: var(--success);
}

.status-badge.is-failed {
  color: var(--amber-badge);
}

.status-badge i {
  font-size: 10px;
}

/* Result Footer Actions */
.result-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.result-btn-home,
.result-btn-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-btn-home {
  background: #ffffff;
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

.result-btn-home:hover {
  background: #f8fafc;
  color: var(--primary-dark);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.result-btn-print {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.result-btn-print:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

/* ==========================================================================
   6. SURVEY FORM VIEW (FOR IN-PROGRESS SURVEYS)
   ========================================================================== */
.survey-card {
  background: var(--bg-card);
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  padding: 15px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
}

.survey-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.card-heading {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
  letter-spacing: -0.1px;
}

.heading-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heading-left i {
  color: var(--primary);
  font-size: 13px;
}

.heading-tag {
  font-size: 10.5px;
  font-weight: 450;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 1.5px 7px;
  border-radius: var(--radius-pill);
}

.card-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 350;
}

/* Form Inputs Grid */
.survey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 11.5px;
  font-weight: 450;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label span {
  color: var(--text-light);
  font-weight: 400;
  font-size: 10.5px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap i {
  position: absolute;
  left: 10px;
  color: var(--text-light);
  font-size: 11px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-control {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 6px 10px 6px 28px;
  font-size: 12px;
  font-weight: 400;
  color: #1e293b;
  background-color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.1);
}

.form-control:focus + i,
.input-icon-wrap:focus-within i {
  color: var(--primary);
}

/* Question Cards */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-card {
  background: #ffffff;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  padding: 11px 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.015);
}

.question-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.035);
}

.question-card.answered {
  border-color: #a7f3d0;
  background: #fafdfc;
}

.question-card.highlight-missing {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2.5px rgba(239, 68, 68, 0.15) !important;
  animation: shakeCard 0.4s ease;
}

@keyframes shakeCard {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.question-num {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  min-width: 19px;
  height: 19px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 550;
  font-size: 10.5px;
  box-shadow: none;
  flex-shrink: 0;
  margin-top: 1px;
}

.question-text {
  font-size: 12.5px;
  font-weight: 400;
  color: #334155;
  line-height: 1.5;
  flex: 1;
}

/* Rating Options Grid */
.rating-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 5px;
}

.rating-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
  user-select: none;
}

.rating-label:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.rating-label input[type="radio"] {
  display: none;
}

.rating-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  background: #fff;
}

.rating-indicator::after {
  content: "";
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.15s ease;
}

.rating-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rating-title {
  font-weight: 400;
  font-size: 11.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-title i {
  font-size: 11.5px;
}

.rating-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Satisfied Selected */
.rating-label.opt-satisfied.is-selected {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.06);
}

.rating-label.opt-satisfied.is-selected .rating-indicator {
  border-color: #10b981;
  background: #10b981;
}

.rating-label.opt-satisfied.is-selected .rating-indicator::after {
  background: #ffffff;
}

.rating-label.opt-satisfied.is-selected .rating-title {
  color: #047857;
  font-weight: 500;
}

/* Dissatisfied Selected */
.rating-label.opt-dissatisfied.is-selected {
  border-color: #f87171;
  background: #fef2f2;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.06);
}

.rating-label.opt-dissatisfied.is-selected .rating-indicator {
  border-color: #ef4444;
  background: #ef4444;
}

.rating-label.opt-dissatisfied.is-selected .rating-indicator::after {
  background: #ffffff;
}

.rating-label.opt-dissatisfied.is-selected .rating-title {
  color: #b91c1c;
  font-weight: 500;
}

/* Feedback Area */
.feedback-area {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed #f1f5f9;
  transition: all 0.2s ease;
}

.feedback-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 400;
  color: #64748b;
  margin-bottom: 4px;
}

.feedback-label i {
  color: var(--primary);
  font-size: 10.5px;
}

.feedback-label small {
  font-weight: 400;
  color: var(--text-light);
  font-size: 10px;
}

.feedback-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 400;
  color: #334155;
  background: #f8fafc;
  outline: none;
  resize: vertical;
  min-height: 40px;
  font-family: inherit;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.feedback-textarea:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.08);
}

.feedback-area.is-dissatisfied-highlight {
  background: #fffafa;
  padding: 6px 10px;
  border-radius: 5px;
  border-top: 1px solid #fecaca;
}

.feedback-area.is-dissatisfied-highlight .feedback-label {
  color: #dc2626;
}

.feedback-area.is-dissatisfied-highlight .feedback-label i {
  color: #ef4444;
}

.feedback-area.is-dissatisfied-highlight .feedback-textarea {
  border-color: #fca5a5;
  background: #ffffff;
}

.feedback-area.is-dissatisfied-highlight .feedback-textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   7. STICKY SUBMIT & PROGRESS BAR
   ========================================================================== */
.survey-actions {
  position: sticky;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
  z-index: 100;
  margin-top: 14px;
  gap: 14px;
  flex-wrap: wrap;
}

.survey-progress-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.progress-label {
  font-size: 11px;
  font-weight: 450;
  color: #64748b;
}

.progress-bar-wrap {
  width: 110px;
  height: 3.5px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  width: 0%;
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.btn-submit-survey {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.16);
  transition: all 0.2s ease;
}

.btn-submit-survey:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.22);
}

.btn-submit-survey:active {
  transform: translateY(0);
}

.btn-submit-survey:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   8. EMPTY STATE
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  box-shadow: var(--shadow-xs);
}

.empty-icon {
  font-size: 46px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.empty-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 650;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-desc {
  color: var(--text-muted);
  font-size: 12.5px;
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.5;
  font-weight: 350;
}

/* ==========================================================================
   9. MODAL DIALOG
   ========================================================================== */
.survey-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.survey-modal.is-open {
  display: flex;
  animation: fadeInModal 0.2s ease;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  animation: scaleInModal 0.22s ease;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
}

.modal-icon.is-success {
  background: #d1fae5;
  color: #059669;
}

.modal-icon.is-error {
  background: #fee2e2;
  color: #dc2626;
}

.modal-title {
  font-family: "Inter", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f172a;
}

.modal-msg {
  font-size: 12px;
  color: #475569;
  margin-bottom: 18px;
  line-height: 1.5;
  font-weight: 350;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 500;
  font-size: 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
  transition: all 0.2s ease;
}

.modal-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleInModal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   10. FOOTER (GIỐNG TRANG CHỦ)
   ========================================================================== */
.lp-footer {
  margin-top: auto;
  position: relative;
  z-index: 10;
  overflow: hidden;
  background: #041d15;
  color: #cbd5e1;
  border-top: 1px solid rgba(16, 185, 129, 0.3);
}

.lp-footer .lp-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.lp-footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(6, 78, 59, 0.6);
}

@media (min-width: 768px) {
  .lp-footer-grid {
    grid-template-columns: 5fr 4fr 3fr;
  }
}

.lp-footer-col > * + * {
  margin-top: 0.875rem;
}

.lp-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.lp-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lp-logo.is-light {
  padding: 0.5rem 0.875rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
}

.lp-logo.is-light .lp-logo-img {
  height: 60px;
}

.lp-footer .tagline {
  font-size: 12px;
  color: #fbbf24;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-footer .quote {
  max-width: 28rem;
  font-size: 12px;
  font-style: italic;
  line-height: 1.7;
  color: #cbd5e1;
}

.lp-footer .about {
  padding-top: 0.5rem;
  font-size: 12px;
  color: #94a3b8;
}

.lp-footer .about b {
  color: #ffffff;
  font-weight: 600;
}

.lp-footer h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
}

.lp-commit {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-commit li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
}

.lp-commit li + li {
  margin-top: 0.625rem;
}

.lp-commit i {
  color: #34d399;
  flex-shrink: 0;
}

.lp-company {
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
}

.lp-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 12px;
  color: #cbd5e1;
}

.lp-contact li + li {
  margin-top: 0.625rem;
}

.lp-contact i {
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  text-align: center;
}

.lp-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.lp-contact a:hover {
  color: #6ee7b7;
}

.lp-contact a.is-bold {
  font-weight: 700;
}

.lp-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 12px;
  color: #94a3b8;
}

.lp-footer-bottom strong {
  color: #ffffff;
}

.lp-footer-bottom .motto {
  color: #34d399;
  font-weight: 500;
}

@media (min-width: 640px) {
  .lp-footer-bottom {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .lp-footer .about,
  .lp-footer .quote,
  .lp-commit li,
  .lp-contact li,
  .lp-company {
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
  .survey-nav-container {
    padding: 8px 14px;
    flex-wrap: wrap;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-hotline {
    display: none;
  }

  .hero-title {
    font-size: 16.5px;
  }

  .hero-desc {
    font-size: 12px;
  }

  .survey-container {
    padding: 0 12px;
    margin-top: -20px;
  }

  .survey-card,
  .survey-result-card {
    padding: 13px 14px;
    border-radius: 8px;
  }

  .survey-select-card {
    padding: 8px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .survey-picker-wrap {
    min-width: 100%;
  }

  .combobox-trigger {
    padding: 5px 8px;
  }

  .trigger-title {
    max-width: 170px;
    font-size: 12px;
  }

  .rating-options {
    grid-template-columns: 1fr;
  }

  .result-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .result-header-title {
    font-size: 12.5px;
  }

  .result-item-card {
    padding: 10px 12px;
  }

  .result-item-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .result-item-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .survey-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px;
    bottom: 10px;
  }

  .progress-bar-wrap {
    width: 100%;
  }

  .btn-submit-survey {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   12. PRINT STYLES
   ========================================================================== */
@media print {
  .survey-navbar,
  .survey-actions,
  .survey-select-card,
  .result-footer-actions,
  .lp-footer {
    display: none !important;
  }

  .survey-hero {
    background: #044433 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 20px !important;
  }

  .survey-container {
    margin-top: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .survey-result-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .result-progress-fill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
