* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
  }
  .header {
    background: #fff;
    padding: 1rem 2rem;
    
  }
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    height: 90px;
    width: 150px;
    border-radius: 40px;
  }
  
  .search-form {
    display: flex;
    gap: 1rem; 
    width: 100%;
    max-width: 600px; 
  }
  
  .search-form input {
    padding: 0.8rem 1rem;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  .search-form button {
    padding: 0.8rem 1.5rem;
    background-color: #d70000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .search-form button:hover {
    background-color: #b00000;
  }
  .user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  .user-actions button {
    background-color: red;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    gap: 5px;
    font-size: 14px;
  }
  .user-actions button:hover {
    background-color: #b00000;
  }
  .nav {
    flex-grow: 1;
  }
  
  .nav-links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
  }
  
  .nav-links li {
    flex: 1;
    text-align: center;
  }
  
  .nav-links li a {
    display: block;
    padding: 15px 0;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
  }
  
  .nav-links li a:hover,
  .nav-links li a.active {
    background-color: rgb(140, 33, 33);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
    transform: translateY(-2px); 
    transition: all 0.3s ease;
  }
  
  .hero {
    background: url("../images/dich-vu-bg.jpg") center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
  }
  
  .hero-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
  }
  
  .services {
    padding: 3rem 2rem;
  }
  
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #d70000;
  }
  
  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .service-card h3 {
    padding: 1rem;
    font-size: 1.2rem;
    color: #222;
  }
  
  .service-card p {
    padding: 0 1rem 1.5rem;
    font-size: 0.95rem;
    color: #555;
  }
  
  .footer {
    text-align: center;
    padding: 1rem;
    background: #eee;
    margin-top: 3rem;
  }
  .slideshow-container {
    max-width: 1300px;
    position: relative;
    margin: auto;
    height: 600px; 
    overflow: hidden;
  }
  
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: red;
  }
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  .prev:hover,
  .next:hover {
    background-color: rgb(0, 0, 0, 0.8);
  }
  
  .text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
  }
  .dot {
    display: inline-block;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    background-color: #999;
    cursor: pointer;
  }
  .dot:hover {
    background-color: #555;
  }
  .dot.active {
    background-color: #555;
  }
  
  .custom-header {
    display: flex;
    background-color: red;
    color:#000;
    font-family: Arial, sans-serif;
    margin-bottom: 15px;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
  }
  
  .dropdown-toggle {
    background-color: #000;
    color: #fff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 18px;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    width: 300px; 
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 16px;
    font-family: Arial, sans-serif;
  }
  
  .dropdown-menu.show {
    display: block;
  }
  
  .dropdown-menu li {
    list-style-type: none;
  }
  
  .dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #d70000;
  }
  .contact {
    padding: 50px 0;
}
.contact h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}
.contact-message{
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  
}
.contact-message form {
  width: 680px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.contact-message label {
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}
.contact-message input,
.contact-message textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}
.contact-message input:focus,
.contact-message textarea:focus {
    border-color: red;
    box-shadow: 0 0 5px rgba(35, 181, 92, 0.2);
}
.contact-message .btn-contact {
    padding: 12px 30px;
    color: #fff;
    background-color: red;
    border: none;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
    font-size: 1.1rem;
}
.contact-message .btn-contact:hover {
    background-color: black;
}

.modal-header {
    background-color: #007bff;
    color: #fff;
  }
  
  .modal-header h5 {
    margin: 0;
  }
  
  .modal-body {
    padding: 30px 20px;
  }
  
  .modal-footer {
    border-top: none;
  }
  
  .modal-footer .btn {
    background-color: #28a745;
    border: none;
  }
  
  .modal-footer .btn:hover {
    background-color: #218838;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .frm-contact {
      padding: 15px;
    }
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.success-icon {
    width: 50px;
    height: 50px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin: 20px auto;
    position: relative;
}

.success-icon::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    width: 10px;
    height: 20px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.btnOK{
  padding-top: 20px;
  width: 35px;
  height: 35px;
  background-color: green;
  color: black;
  border: 1px solid black ;
  border-radius: 5%;
}

/* Responsive cho máy tính bảng */
@media (max-width: 992px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-form {
    width: 100%;
    max-width: 100%;
  }

  .user-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dropdown-toggle {
    padding: 10px 15px;
    font-size: 16px;
  }

  .service-card img {
    height: 180px;
  }

  .contact-message form {
    width: 100%;
    padding: 20px;
  }

  .slideshow-container {
    height: 400px;
  }
}

/* Responsive cho điện thoại di động */
@media (max-width: 576px) {
  .logo {
    width: 120px;
    height: auto;
  }

  .custom-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    width: 100%;
  }

  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .user-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
  }

  .nav-links li {
    width: 100%;
  }

  .hero {
    height: 200px;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .hero-text {
    padding: 1rem;
  }

  .service-card img {
    height: 150px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .contact h1 {
    font-size: 1.8rem;
  }

  .slideshow-container {
    height: 250px;
  }

  .modal-content {
    width: 90%;
    margin-top: 40%;
  }
}
