body {

  margin: 0;
  padding: 0;
  background-size: cover;
  /* Phủ kín toàn bộ màn hình */
  background-repeat: no-repeat;
  /* Không lặp lại ảnh */
  background-position: center;
  /* Căn giữa ảnh */
  height: fit-content;
  /* Chiều cao tối thiểu toàn màn hình */
  font-family: 'Arial', sans-serif;
}

.contact-form {

  max-width: 400px;
  margin: 50px auto;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;

}

.contact-form label {
  margin-top: 12px;
  font-weight: bold;
  display: block;
  color: #1e1a5e;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

.exit-form.show {
  display: flex !important;
}

.contact-form button {
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  background-color: #1e1a5e;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.contact-form button:hover {
  background-color: #2e2b8a;
}

.exit-form {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.contact-form {
  background: #fff;
  padding: 30px 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: 'Arial', sans-serif;
}

/* Style cho h3 và p */
.contact-form h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #006064;
  font-weight: bold;
  text-align: center;
}

.contact-form p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

.form-session {
 
   display: flex;
  justify-content: flex-start; /* hoặc center tuỳ bạn */
  align-items: flex-end;       /* đẩy form xuống dưới */
  padding: 0 16px 40px;        /* tăng padding-bottom nếu cần */
  height: 100vh;
  /* Đảm bảo ảnh nền phủ full màn hình */
  background-image: url('../img/form.jpg');
  /* Cập nhật đường dẫn ảnh */
  background-size: contain;
  /* 🔄 đổi từ cover -> contain để ảnh không bị cắt */
  background-position: center center;
  background-repeat: no-repeat;
  justify-content: flex-start;

}

.index-form {
   position: relative;
  bottom:100px; /* ← điều chỉnh cho khớp mép bàn */
  left: 130px;    /* hoặc 'right' nếu bạn muốn form bên phải */

  padding: 20px;
  padding: 14px;
  background-color: #f1fbe8;  /* xanh bơ nhạt */
  border-radius: 16px;
  height: fit-content;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: 'Arial', sans-serif;
  justify-content: center;
}

.index-form h3 {
  font-size: 1.25rem;

  color: #006064;
  font-weight: bold;
  text-align: center;
}

.index-form p {

  font-size: 0.95rem;
  color: #333;
  text-align: center;
}


.index-form input,
.index-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}
.index-form input:focus,
.index-form textarea:focus {
  
  outline: none;
  box-shadow: none; /* Tuỳ chọn: bỏ cả đổ bóng nếu có */
}



.index-form button {
  justify-content: center;
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  background-color: #1e1a5e;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.index-form button:hover {
  background-color: #2e2b8a;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #000;
}
@media (max-width: 1024px) {
  .index-form {
    left: 50px;
    bottom: 80px;
    max-width: 320px;
  }

  .form-session {
    background-size: cover; /* ưu tiên hiển thị tốt hơn trên tablet */
    padding: 0 12px 30px;
  }
}

@media (max-width: 768px) {
  .index-form {
    position: relative;
    left: 0;
    bottom: 0;
    margin: auto;
    max-width: 100%;
    padding: 20px;
  }

  .form-session {
    align-items: center;
    justify-content: center;
    background-size: cover;
    height: auto;
    padding: 40px 16px;
  }
}

@media (max-width: 480px) {
  .index-form h3 {
    font-size: 1.1rem;
  }

  .index-form p {
    font-size: 0.9rem;
  }

  .index-form input,
  .index-form textarea {
    font-size: 14px;
    padding: 8px;
  }

  .index-form button {
    font-size: 15px;
    padding: 10px;
  }
}
