/* ------------------------------
   RESET & BASE STYLE
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: #333;
  background-color: #f9f9fb;
  scroll-behavior: smooth;
}

/* ------------------------------
   NAVBAR
------------------------------ */
.navbar {
  background: white;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Logo */
.logo {
  text-align: center;
  line-height: 1;
}
.vietnam-text {
  font-size: 2rem;
  font-weight: bold;
  color: #363C8B;
  letter-spacing: 1px;
}
.salesforce-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #D35F3C;
}
.underline {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 4px;
  margin-top: 5px;
  animation: slideIn 1.2s ease forwards;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}
nav a {
  text-decoration: none;
  font-weight: 600;
  color: #2c3e50;
  transition: color 0.3s;
}
nav a:hover {
  color: #1e88e5;
}

/* Programs Button */
.programs-button {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}
.programs-button:hover {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
  transform: translateY(-2px);
}

/* ------------------------------
   SECTIONS
------------------------------ */
.section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  /* text-align: center; */
}
.section h2 {
  font-size: 2.4rem;
  color: #1e88e5;
  margin-bottom: 25px;
}
.section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ------------------------------
   SERVICE CARDS
------------------------------ */
.service-card {
  position: relative;
  background: white;
  border-radius: 14px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.service-card strong {
  font-weight: 600;
}

/* Contact link inside card */
.service-card .contact-default {
  position: absolute;
  right: 16px;
  bottom: 14px;
  margin: 0;
  font-style: italic;
  font-size: var(--contact-size, 1rem);
}
.service-card .contact-default a {
  color: inherit;
  text-decoration: underline;
}

/* Card color themes */
.orange h3, .orange strong { color: #e67e22; }
.blue h3,   .blue strong   { color: #1e88e5; }
.red h3,    .red strong    { color: #c0392b; }
.yellow h3, .yellow strong { color: #f9a825; }

/* ------------------------------
   CONTACT SECTION
------------------------------ */
#contact {
  text-align: center;
  line-height: 1.5;
  margin-top: 40px;
}

#contact h2 {
  font-size: 2.2rem;
  color: #1e88e5;
  margin-bottom: 20px;
}

#contact p {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

#contact i {
  color: #1e88e5;
  min-width: 20px;
  margin-right: 8px;
}

#contact a {
  color: #1e88e5;
  text-decoration: none;
}
#contact a:hover {
  text-decoration: underline;
}

/* Phone clickable */
#contact .phone-link {
  font-weight: bold;
  color: #1e88e5;
}
#contact .phone-link:hover {
  text-decoration: underline;
}

/* --- Chat icons --- */
.chat-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.chat-icons a {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.chat-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  background: white;
  border-radius: 8px;
  padding: 2px;
  box-shadow: 0 0 3px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.chat-icons a:hover img {
  transform: scale(1.15);
  box-shadow: 0 0 6px rgba(47,122,229,0.3);
  filter: none;
}

/* Tooltip hiển thị khi hover icon */
/* .chat-icons a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e88e5;
  color: white;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
} */
.chat-icons a:hover::after {
  opacity: 1;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  background: #1e88e5;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  margin-top: 60px;
}

footer a {
  color: #fff;
  text-decoration: underline;
}
footer a:hover {
  color: #ffd700;
}

/* ------------------------------
   ANIMATIONS
------------------------------ */
@keyframes slideIn {
  from { width: 0; }
  to { width: 100%; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
   RESPONSIVE DESIGN
------------------------------ */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  nav ul {
    gap: 15px;
  }
  .section {
    margin: 60px auto;
  }
  #contact p {
    font-size: 0.95rem;
  }
}

/* chữ màu */
.teal-text {
  color: #008b8b;
  font-weight: 600;
}

/* .who-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
} */

/* mỗi block (hình + text) */
.who-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
}

/* ------------------------------
   CONTACT MODAL
------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.modal-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  width: 94%;
  max-width: 760px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transform: translateY(10px);
}
.modal h3 { margin: 0 0 12px 0; color: #1e88e5; }
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group.full { flex: 1 1 100%; }
.form-group label { font-size: 0.95rem; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  font-size: 0.95rem;
}
.form-actions { display:flex; gap:10px; align-items:center; margin-top:10px; }
.btn-primary { background:#1e88e5; color:white; padding:10px 16px; border-radius:8px; border:none; cursor:pointer; font-weight:600; }
.btn-secondary { background:#f0f4f8; color:#333; padding:10px 14px; border-radius:8px; border:none; cursor:pointer; }
.form-status { margin-top:10px; font-size:0.95rem; color:#1e88e5; }

@media (max-width:600px) {
  .form-row { flex-direction: column; }
  .modal-panel { padding: 16px; }
}

/* Limit message textarea: vertical resize only, wrap and max length visual handling */
.message-textarea {
  resize: vertical;
  width: 100%;
  max-width: 100%;
  min-height: 96px;
  overflow-wrap: break-word;
}

footer p + p {
  margin-top: 0.6rem; /* adjust value as needed (e.g. 0.8rem or 1rem) */
}

.tax-label{ color:#fff; font-weight:600; margin-left:6px; }
.tax-badge{
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  background: rgba(255,255,255,0.18);
  color:#fff; padding:3px 8px; border-radius:8px; margin-left:6px;
}

/* ------------------------------
   SURVEY FORM SECTION
------------------------------ */
.survey-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f1f8 100%);
  padding: 40px 20px;
  margin: 0;
  border-bottom: 3px solid #1e88e5;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.survey-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.survey-container h2 {
  color: #1e88e5;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}

.survey-form .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.survey-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.survey-form .form-group.full {
  flex: 1 1 100%;
}

.survey-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.survey-form input,
.survey-form select,
.survey-form textarea {
  padding: 12px 14px;
  border: 1.5px solid #e0e6ef;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.survey-form input:focus,
.survey-form select:focus,
.survey-form textarea:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.survey-form textarea {
  resize: vertical;
  min-height: 80px;
}

.survey-form .form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  justify-content: center;
}

.survey-form .btn-primary {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}

.survey-form .btn-primary:hover {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
  transform: translateY(-2px);
}

.survey-form .btn-secondary {
  background: #f0f4f8;
  color: #333;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.survey-form .btn-secondary:hover {
  background: #e0e6ef;
}

.survey-form .form-status {
  margin-top: 15px;
  font-size: 1rem;
  color: #1e88e5;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 768px) {
  .survey-form .form-row {
    flex-direction: column;
  }
  
  .survey-container {
    padding: 20px;
  }
  
  .survey-container h2 {
    font-size: 1.6rem;
  }
}
