/* =========================================
   DANATECH - THỰC DỤNG & UY TÍN
   Aesthetics: Clean, Direct, Trustworthy
   ========================================= */

:root {
  /* Colors */
  --primary: #D32F2F;
  /* Đỏ công nghiệp truyền thống */
  --primary-hover: #B71C1C;
  --bg-body: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-dark: #1E293B;

  --text-main: #1F2937;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  --border-color: #E5E7EB;

  --zalo-blue: #0068FF;

  /* Metrics */
  --radius-sm: 4px;
  --radius-md: 8px;
  --transition: background-color 0.2s, transform 0.2s;
  --max-width: 1100px;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
}

body {
  line-height: 1.6;
  padding-bottom: 60px;
  /* Space for sticky bar */
}

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

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

.text-red {
  color: var(--primary);
}

.text-white {
  color: #ffffff;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-gray {
  background-color: #F3F4F6;
}

.bg-dark {
  background-color: var(--bg-dark);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
  max-width: var(--max-width);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.3;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  margin: 15px auto 0;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  gap: 8px;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:active,
.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  border: 2px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
}

.btn-outline:active,
.btn-outline:hover {
  background-color: rgba(211, 47, 47, 0.05);
}

.btn-large {
  font-size: 1.1rem;
  padding: 14px 30px;
}

/* --- Header --- */
.main-header {
  background-color: #ffffff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 105px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hotline-text {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
  padding: 5rem 0 4rem;
  background-color: #ffffff;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(211, 47, 47, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--bg-dark);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text-main);
}

/* --- Pain Points --- */
.pain-points {
  padding: 4rem 0;
}

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

.feature-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.content-center {
  text-align: center;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-main);
  margin: 0 auto 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--bg-dark);
}

.feature-card p {
  color: var(--text-muted);
}

/* --- Solutions Section --- */
.solutions {
  padding: 4rem 0;
}

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.solution-row {
  display: flex;
  gap: 1.2rem;
  background: #fff;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.solution-row:last-child {
  border-bottom: none;
}

.solution-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.solution-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--bg-dark);
}

.solution-text p {
  color: var(--text-muted);
}

/* --- Factory Section --- */
.factory {
  padding: 4rem 0;
}

.factory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.factory-image {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.map-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* --- Lead Form Section --- */
.lead-form-section {
  padding: 4rem 0;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.form-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #D1D5DB;
}

.form-features {
  list-style: none;
  margin-bottom: 2rem;
}

.form-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: #D1D5DB;
}

.form-features li i {
  color: #4ADE80;
  /* Màu xanh lá uy tín */
  font-size: 1.2rem;
}

.contact-box-highlight {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.2);
  color: var(--bg-dark);
}

.cb-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cb-inner i {
  font-size: 2.5rem;
  color: var(--primary);
}

.cb-inner span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cb-inner strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

.form-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--bg-dark);
}

.form-group input,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1.05rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Modern Select Styles */
.form-select {
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234B5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
}

/* Radio & Checkbox Modern Grid */
.radio-group-modern,
.checkbox-group-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-item,
.check-item {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #F9FAFB;
  font-weight: 600 !important;
  margin: 0 !important;
}

.radio-item input,
.check-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-item:has(input:checked),
.check-item:has(input:checked) {
  border-color: var(--primary);
  background-color: rgba(211, 47, 47, 0.05);
  color: var(--primary);
}

.btn-submit-cro {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
  font-weight: 900;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
  margin-top: 1rem;
}

.cta-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* Visit Factory Simple Style */
.visit-check-simple {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.visit-check-simple input[type="checkbox"] {
  display: none;
}

.vcs-box {
  width: 20px;
  height: 20px;
  border: 2px solid #D1D5DB;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  transition: all 0.2s;
}

.vcs-box i {
  font-size: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.visit-check-simple input[type="checkbox"]:checked+.vcs-box {
  background-color: var(--primary);
  border-color: var(--primary);
}

.visit-check-simple input[type="checkbox"]:checked+.vcs-box i {
  opacity: 1;
}

.visit-check-simple span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.visit-check-simple:hover {
  border-color: var(--primary);
  background-color: #fff;
}

/* Form Message */
.form-message {
  margin-top: 1rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: none;
  font-weight: 600;
  text-align: center;
}

.form-message.error {
  background-color: #FDE8E8;
  color: #9B1C1C;
}

.form-message.success {
  background-color: #DEF7EC;
  color: #03543F;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

.disable-spinner {
  display: none;
}

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

/* --- Footer --- */
.footer {
  background-color: #111827;
  color: #D1D5DB;
  padding: 3rem 0;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 100px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-address h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-address p {
  margin-bottom: 0.5rem;
}

.footer-address a {
  color: #60A5FA;
}

.footer-copyright {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.btn-call {
  background-color: var(--primary);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-zalo {
  background-color: var(--zalo-blue);
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .hidden-mobile {
    display: none;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    margin-bottom: 3.5rem;
  }

  .main-header {
    padding: 20px 0;
  }

  .brand-logo {
    height: 70px;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stats-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .solution-row {
    flex-direction: column;
    gap: 10px;
  }

  .form-card {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .simple-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .factory-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-wrap {
    grid-template-columns: 1fr 2fr;
  }
}

@media (min-width: 1024px) {
  .form-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}