/* Contact Bar Styles */
.contact-bar-wrapper {
  background-color: #0d90ef;
  color: #ffffff;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10; /* Thấp hơn header chính */
}

/* Khi sticky, đảm bảo không đè header */
.contact-bar.is-sticky .contact-bar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10; /* Thấp hơn header chính */
  transform: translateY(0);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.contact-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: auto;
}

.contact-bar-left, .contact-bar-right {
  display: flex;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.contact-item + .contact-item {
  margin-left: 10px;
}

.contact-item i {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item.address {
  max-width: 500px;
  padding-right: 20px;
}

.separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 10px;
}

.contact-item.email a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
}

.contact-item.email a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s;
}

.contact-item.email a:hover::after {
  width: 100%;
}

.phone-number {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-number i {
  font-size: 14px;
  margin-right: 6px;
}

.phone-number span {
  font-weight: 500;
}

.phone-number:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Large Desktop */
@media (max-width: 1200px) {
.contact-item.address {
    max-width: 400px;
  }
  
  .separator {
    margin: 0 5px;
  }
}

/* Tablet and Small Desktop */
@media (max-width: 1024px) {
  .contact-bar-inner {
    flex-direction: column;
  }
  
  .contact-bar-left, .contact-bar-right {
    width: 100%;
    justify-content: center;
  }
  
  .contact-bar-right {
    margin-top: 5px;
  }
  
  .contact-item {
    margin: 2px 0;
  }
  
  .contact-item.address {
    max-width: 100%;
    padding-right: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .contact-bar-wrapper {
    padding: 10px 0 15px;
  }
  
  .contact-bar-inner {
    flex-direction: column;
  }
  
  .contact-bar-left, .contact-bar-right {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }
  
  .contact-item {
    width: 100%;
    justify-content: center;
    margin: 5px 0;
    text-align: center;
    padding: 5px;
  }
  
  .contact-item.address {
    font-size: 13px;
    max-width: 100%;
  }
  
  .separator {
    display: none;
  }
  
  .phone-number {
    padding: 6px 20px;
    margin-top: 5px;
  }
  
  .contact-item i {
    font-size: 14px;
  }
}

/* Extra small mobile */
@media (max-width: 375px) {
  .contact-bar-wrapper {
    padding: 8px 0 12px;
  }
  
  .contact-item {
    font-size: 13px;
  }
  
  .contact-item.address {
    font-size: 12px;
    padding: 0 5px;
  }
  
  .contact-item.email a {
    font-size: 12px;
  }
  
  /* Ẩn nút số điện thoại trên mobile */
  .contact-item.phone {
    display: none;
  }
  
  .phone-number {
    padding: 6px 15px;
    min-width: 140px;
  }
  
  .contact-item i {
    font-size: 14px;
    margin-right: 4px;
  }
}

/* Tạo nút gọi điện nổi dưới góc phải màn hình cho mobile */
@media (max-width: 480px) {
  .contact-item.phone {
    display: none; /* Ẩn nút điện thoại bình thường */
  }
  
  /* Tạo nút gọi điện nổi */
  .mobile-call-button {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff5722;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: pulse 2s infinite;
  }
  
  .mobile-call-button i {
    font-size: 24px;
    line-height: 50px;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
} 