/* Section wrapper */
.consultation-section {
  background-repeat: repeat;
  background-image: url("../images/bg.5fc709131814.webp");
  font-family: 'Segoe UI', sans-serif;
}

/* Container layout */
.consultation-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 60px 0;
  align-items: center;
  flex-wrap: wrap;
}

/* Image block */
.consultation-image img {
  width: 100%;
  max-width: 500px;
  height: 502px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Form wrapper */
.consultation-form-wrapper {
  flex: 1;
  min-width: 300px;
}

.consultation-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #43230C;
}

.consultation-description {
  font-size: 14px;
  margin-bottom: 25px;
  color: #43230C;
}

/* Form styles */
#consultationForm {
  display: flex;
  flex-direction: column;

}
#consultationForm input,
#consultationForm textarea {
  padding: 16px 12px; /* tăng khoảng cách trên và dưới */
  border: none;
  background-color: transparent;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  color: rgba(67, 35, 12, 0.6);
}

#consultationForm input::placeholder,
#consultationForm textarea::placeholder {
  color: rgba(67, 35, 12, 0.6);
  opacity: 1; /* đảm bảo placeholder hiện rõ trên mọi trình duyệt */
}


#consultationForm textarea {
  resize: vertical;
  min-height: 60px;
  width:100%;
}

#consultationForm button {
  padding: 12px;
  border: 1px solid #3e2e1f;
  border-radius: 20px;
  background-color: transparent;
  cursor: pointer;
  font-size: 14px;
  color:#43230C;
  transition: all 0.3s ease;
  margin-top: 60px;
}

#consultationForm button:hover {
   background-color: #96422F;

  color: white;
}
@media (max-width: 320px) {
.consultation-form-wrapper{
  min-width:0px;
}
}
/* Modal Overlay */
.modal-overlay {
  display: none; /* Cho phép căn giữa modal-box */
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999; /* Đảm bảo đủ cao để đè lên mọi thứ */
  justify-content: center;
  align-items: center;
}

/* Modal Box */
.modal-box {
  background: #fff9f5;
  border: 1px solid #e5c8bb;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  width: 400px;
  animation: fadeSlideUp 0.4s ease;
}

/* Icon */
.modal-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

/* Title */
.modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #43230C;
  margin-bottom: 12px;
}

/* Message */
.modal-message {
  font-size: 15px;
  color: #5c4032;
  margin-bottom: 30px;
}

/* Button */
.modal-button {
  background: linear-gradient(to right, #96422F, #b8775d);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-button:hover {
  background: linear-gradient(to right, #7c321e, #9b5d4b);
}
.consultation-form-wrapper select {
  padding: 16px 12px;
  border: none;
  background-color: transparent;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  color: rgba(67, 35, 12, 0.6);
  width: 100%;
  appearance: none; /* Ẩn kiểu native */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%2343230C' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 8px 10px;
}

.consultation-form-wrapper select:invalid {
  color: rgba(67, 35, 12, 0.6);
}

.consultation-form-wrapper select option[disabled] {
  display: none;
}



/* Animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.consultation-section .input-wrapper {
  position: relative;
  width: 100%;
  text-align: left;
}

.consultation-section .input-wrapper input {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  padding: 28px 12px 8px 12px;
  outline: none;
  width: 100%;

}
.consultation-section .input-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px; /* bắt đầu từ text */
  width: calc(100% - 24px);
  height: 1px;
  background-color: #b8a998;
}
.consultation-section .custom-select-trigger{
   color: rgba(67, 35, 12, 0.6);
    font-size: 14px;
    line-height: 1.4;
    padding:16px 12px;
}

.consultation-section .custom-select-wrapper {
  position: relative;
  width: 100%;
  color: white;
  font-size: 18px;
  z-index:1000;
}

.consultation-section .custom-select-trigger {
  padding: 28px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}
.consultation-section .contact-section__form {
  position: relative;
  overflow: visible;
  z-index: 1;
}
.consultation-section .contact-section__container {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.consultation-section .custom-select-dropdown {
  background-image: url("../images/bg.5fc709131814.webp");
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* background: white; */
  z-index: 999;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.consultation-section .custom-select-dropdown input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
  color:black
}

.consultation-section .custom-options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;
}
.consultation-section .custom-options::-webkit-scrollbar {
  display: none;               /* Chrome, Safari */
}
.consultation-section .custom-options li {
  padding: 10px 12px;
  cursor: pointer;
  color: black;
  font-size:14px;
  color:rgba(67, 35, 12, 1)
}

.consultation-section .custom-options li:hover {
  background: #fdfdfd;
}