/* ===================== RESET ===================== */
html {
            scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: left;
  background-color: #f5f5f5;
  overflow-x: hidden; /* Ngăn cuộn ngang */
}

* {
  box-sizing: border-box;
}

/* ===================== TITLE ===================== */
.title {
  font-size: 35px;
  background-color: rgb(125, 164, 193);
  height: auto;
  font-weight: bold;
  margin: 0;
  padding-top: 15px;
  padding-left: 100px;
  
}
.title .subtitle {
    display: block;
    /* text-align: center; dòng 2 căn giữa */
    padding-left: 300px;
    font-weight: bold;  /* tuỳ chỉnh thêm */
}
/* ===================== SEARCH BAR ===================== */
.search-bar {
  display: flex;
  align-items: center;   /* Căn giữa theo chiều dọc */
  height: auto;
}

.search-input {
  padding: 10px 15px;
  font-size: 30px;
  border-radius: 5px 0 0 5px; /* bo góc bên trái */
  border: 1px solid #ccc;
  outline: none;
}

.search-button {
  padding: 10px 15px;
  font-size: 30px;
  border-radius: 0 5px 5px 0; /* bo góc bên phải */
  border: 1px solid #007bff;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  height: 100%;              /* cao bằng input */
}

.search-button:hover {
  background-color: #0056b3;
}


/* ===================== NAVBAR ===================== */
.navbar {
  display: grid;
  grid-template-columns: 1fr;
  background-color: #333;
  height: auto;
  font-size: 25px;
  text-align: center;
}

.navbar ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0;
}

.navbar a {
  display: inline-block;
  padding: 14px 20px;
  text-decoration: none;
  color: white;
  width: 100%;
  text-align: center;
}

.navbar a:hover {
  background-color: #555;
}

/* ===================== HEADER ROW ===================== */
.headerow {
  display: grid;
  grid-template-columns: 20% 30% 40%;
  width: 100%;
  gap: 10px;
  padding-left: 90px;
  height: auto;
  font-size: 20px;
}

/* .row3 {
  text-align: center;
} */

/* ===================== SLIDESHOW ===================== */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  border: #0e4c75 15px solid;
  height: 600px;
  background-color: #2e7d9a;

}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain; /* Fit toàn bộ ảnh */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}


.slide.active {
  opacity: 1;
  z-index: 1;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 30px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  user-select: none;
  text-align: center;
  line-height: 50px;
  z-index: 2;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ===================== CONTENT ===================== */
.description {
  margin: 20px;
  font-size: 16px;
}

.gioithieu {
  padding-top: 40px;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
}
.big{
  font-size: 20px;
}
.content {
  max-width: 900px;      /* Giới hạn chiều rộng cho dễ đọc */
  margin: 40px auto;     /* Căn giữa khối nội dung và tạo khoảng cách */
  padding: 20px;         /* Thêm khoảng cách bên trong */
  text-align: justify;   /* Căn đều 2 bên cho đoạn văn */
  line-height: 1.8;      /* Giãn dòng cho dễ đọc */
  font-size: 18px;       /* Cỡ chữ dễ nhìn */
  color: #333;           /* Màu chữ nhã nhặn */
  background-color: #fff; /* Nền trắng để nổi bật nội dung */
  border-radius: 12px;   /* Bo góc mềm mại */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Đổ bóng nhẹ */
}
.content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a4f7a;        /* Màu tiêu đề nổi bật */
  text-align: center;    /* Tiêu đề nằm giữa */
}
.content p {
  margin-bottom: 16px;   /* Tạo khoảng cách giữa các đoạn */
}


/* ===================== FOOTER ===================== */
.footer {
  background-color: #0e4c75;
  color: white;
  padding: 40px 250px;
  font-family: Arial, sans-serif;
}
.logo {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
}
/* ===================== SEARCH RESULT ===================== */
.search-result {
  padding: 20px 100px;
  font-family: Arial, sans-serif;
}

.search-result h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0e4c75;
}

.search-item {
  background-color: #f9f9f9;
  border-left: 5px solid #0e4c75;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.search-item p {
  margin: 5px 0;
  font-size: 16px;
}

.search-item strong {
  color: #0e4c75;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .headerow {
    grid-template-columns: 1fr 1fr;
    padding-left: 20px;
  }

  .footer {
    padding: 30px 50px;
  }

  .slideshow-container {
    height: 400px;
    border-width: 10px;
  }

  .slide {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 20px;
    padding-left: 20px;
  }

  .headerow {
    grid-template-columns: 1fr;
    padding-left: 10px;
  }

  .slideshow-container {
    height: 250px;
    border-width: 8px;
  }

  .slide {
    height: 250px;
  }

  .footer {
    padding: 20px;
    text-align: center;
  }

  .search-result {
    padding: 10px;
  }

  .search-input {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 18px;
    padding-left: 10px;
  }

  .gioithieu {
    font-size: 28px;
  }

  .slideshow-container {
    height: 200px;
  }

  .slide {
    height: 200px;
  }
}
/* =====DICHVU===== */
.dichvu{
  background-color: rgb(125, 164, 193);
  color:white;
}
.form-container {
    background: white;
    border-radius: 15px;
    padding: 0px 100px ;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    
}

.form-group {
    margin-bottom: 25px;
    width: 75%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-container input, 
.form-container select, 
.form-container textarea  {
    width: 75%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.product-section {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    border-left: 4px solid #667eea;
}

.product-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.product-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e1e8ed;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #667eea;
    color: white;
}

.quantity-input {
    width: 80px;
    text-align: center;
    font-weight: bold;
}


.submit-btn {
    width: 70%;
    background: #3282b8;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px auto;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    display: none;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 2em;
    }
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
