/* Background */
.hero-section {
  height: 550px;
  position: relative;
  background: #f5f7fb;
  background-image: url(/assets/images/background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-text {
  margin-top: 120px;
}

.hero-text h1 {
  font-family: var(--secondary-font-family);
  font-size: 40px;
  font-weight: 700;
  color: var(--purple-text);
}

.hero-text p {
  color: var(--black-text);
  margin-top: 15px;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.hero-section button {
  background-color: var(--green-color);
  border: 1px solid var(--white-color);
  font-family: var(--font-family);
  font-size: 16px;
  border-radius: 50px;
  padding: 12px 36px;
}

.hero-section button:hover {
  background-color: var(--white-color);
  color: var(--green-color);
}

.features {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.feature-box {
  height: 100px;
  gap: 80px;
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.feature-box p {
  font-size: 20px;
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--white-color);
  line-height: 1.4;
}

.feature-box img {
  width: 50px;
  height: auto;
}

.box-1 {
  background: #17a2b8;
}

.box-2 {
  background: var(--blue-text);
}

.box-3 {
  background: #bfd2f8;
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 30px;
  }

  .doctor-img {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0 120px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .feature-box {
    padding: 20px;
  }
}
/* End Background */

/* About us */
.about-section {
  padding-top: 160px !important;
  /* background: #f3f5f7; */
}

.desc {
  max-width: 784px;
  color: var(--black-text);
  line-height: 1.7;
  font-size: 15px;
}

.learn-more {
  color: var(--blue-text);
  font-weight: 400;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.4;
}

.services .learn-more {
  position: absolute;
  bottom: 0;
  right: 0;
}

.image-wrapper {
  height: 450px;
  margin-top: 36px;
}

.image-wrapper img {
  height: inherit;
  object-fit: cover;
  object-position: center;
}

.main-img {
  border-radius: 6px;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .main-title {
    font-size: 26px;
  }

  .desc {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .about-section {
    padding-top: 40px;
  }

  .main-title {
    font-size: 22px;
  }

  .desc {
    padding: 0 10px;
  }

  .image-wrapper::before {
    left: -10px;
    bottom: -10px;
  }
}

@media (min-width: 1400px) {
  .main-title {
    font-size: 40px;
  }
}
/* End About us */

/* Services */
.service-menu {
  border: 1px solid var(--active-color);
  border-radius: 5px;
  overflow: hidden;
}

.menu-item {
  padding: 20px 8px;
  cursor: pointer;
  transition: 0.3s;
}

.menu-item p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
}

.menu-item:hover {
  background: #f1f1f1;
}

.menu-item.active {
  background: var(--green-color);
  color: #fff;
}

.menu-item.active p {
  color: var(--white-color);
}

.service-menu button {
  background-color: var(--green-color);
  color: var(--white-color);
  border-radius: 0;
  height: 100%;
}

.service-menu button:hover {
  background-color: var(--green-color);
  color: var(--white-color);
  opacity: 0.8;
}

.service-content {
  position: relative;
  padding: 0 20px 50px;
  height: 100%;
}

.service-content h5 {
  font-family: var(--font-family);
  font-size: 26px;
  color: #000;
}

.service-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #000;
  line-height: 1.4;
  opacity: 0.8;
}

.service-content ol li {
  padding-left: 2px;
}

.service-content ul li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--green-color);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.service-content .service-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  color: var(--black-text);
  line-height: 1.4;
  text-align: justify;
}

.service-images img {
  object-fit: cover;
  width: 100%;
  height: 246px;
  object-position: center;
}

.service-images img:last-child {
  height: 278px;
}

@media (max-width: 991px) {
  .service-images {
    display: none;
  }
}

@media (max-width: 768px) {
  .service-menu {
    display: flex;
    overflow-x: auto;
    justify-content: space-between;
    gap: 10px;
  }

  .menu-item,
  .service-menu a {
    flex: 0 0 calc(100% / 4);
    text-align: center;
  }

  .menu-item img {
    width: 40px;
    height: auto;
  }
}
/* End Services */

/* Departments */
.dept-item {
  height: 150px;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.dept-item.active {
  background: var(--green-color);
}

.dept-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background: var(--green-color);
}

.dept-item:hover p {
  color: var(--white-color);
}

.dept-item p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: var(--black-text);
  margin-bottom: 0;
}

.dept-item.active p {
  color: var(--white-color);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 28px;
  color: #9db4d6;
  z-index: 2;
}

.nav-arrow.left {
  left: -60px;
}

.nav-arrow.right {
  right: -60px;
}

@media (max-width: 991px) {
  .dept-item {
    height: 130px;
  }

  .nav-arrow {
    display: none;
  }
}

@media (max-width: 576px) {
  .dept-item {
    height: 110px;
    font-size: 13px;
    padding: 10px;
  }

  .dept-item p {
    font-size: 12px;
  }

  .dept-item i {
    font-size: 22px;
  }
}
/* End Departments */

/* Consultation */
.consultation .container {
  background:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    url("/assets/images/background_consultation.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.consult-left {
  height: 100%;
}

.consult-left .content {
  padding: 60px;
}

.consult-left h2 {
  color: var(--green-color);
  font-family: var(--secondary-font-family);
  font-weight: 400;
  font-size: 32px;
}

.consult-left p {
  color: var(--black-text);
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
}

.consult-form {
  background: var(--green-color);
  border-radius: 6px;
  overflow: hidden;
}

.consult-form input,
.custom-dropdown {
  /* height: 52px; */
}

.consult-form input,
.consult-form textarea,
.dropdown-toggle {
  width: 100%;
  padding: 14px;
  border-top: 0;
  border-left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  outline: none;
}

.consult-form input::placeholder,
.consult-form textarea::placeholder,
.dropdown-toggle {
  color: var(--white-color);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
}

.custom-dropdown {
  position: relative;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.4); */
  /* border-right: 1px solid rgba(255, 255, 255, 0.4); */
}

.dropdown-toggle {
  text-align: left;
  cursor: pointer;
  position: relative;
}

.dropdown-toggle::after {
  content: "";
  position: absolute;
  background-image: url(/assets/icons/down.svg);
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 16px;
  height: 9px;
}

.dropdown-menu {
  position: absolute;
  width: 100%;
  background: #fff;
  color: #333;
  border-radius: 4px;
  margin-top: 4px;
  display: none;
  z-index: 10;
  max-height: 160px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
}

.custom-dropdown.active .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 10px;
  cursor: pointer;
}

.dropdown-menu li:hover {
  background: #f1f1f1;
}

.consult-form textarea {
  height: 140px;
  resize: none;
  border: 0;
}

.consult-form button {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--green-color);
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.consult-form button[type="submit"] {
  background: var(--active-color);
  color: var(--green-color);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .consult-left {
    display: none;
  }
}

@media (max-width: 576px) {
  .consult-form input,
  .consult-form textarea,
  .dropdown-toggle {
    padding: 12px;
    font-size: 14px;
  }
}
/* End Consultation */

/* Connected Websites */
.partner-item {
  display: inline-block;
  border: 1px solid #d7d7d7;
}

.partner-item img {
  width: 100%;
  object-fit: cover;
}
/* End Connected Websites */

/* Gratitude */
.thankSwiper {
  background: url("/assets/images/background_gratitude.png") center/cover
    no-repeat;
  padding: 20px;
}

.thankSwiper .line {
  width: 150px;
  height: 3px;
  background: var(--green-color);
}

.thank-title {
  font-size: 26px;
  font-family: var(--font-family);
  color: var(--green-color);
  line-height: 1.4;
}

.thank-desc {
  width: 60%;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: var(--black-text);
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 991px) {
  .thank-desc {
    width: 100%;
  }

  .about-section {
    padding-top: 40px;
  }
}
/* End Gratitude */

/* CSS mới */
.form-group {
  position: relative;
}

/* giữ chiều cao cố định */
.form-group input,
.form-group textarea,
.form-group .dropdown-toggle {
  height: 60px;
  width: 100%;
  border: 1px solid #ccc;
  padding: 0 12px;
}

.form-group textarea {
  border-bottom: none;
}

/* textarea riêng */
.form-group textarea {
  height: 120px;
  padding-top: 12px;
}

/* error message không chiếm layout */
.error-message {
  position: absolute;
  bottom: 4px;
  left: 8px;
  font-size: 12px;
  color: red;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}

/* khi có lỗi */
.form-group.error .error-message {
  opacity: 1;
}

/* input lỗi */
.form-group.error input,
.form-group.error textarea,
.form-group.error .dropdown-toggle {
  /* border: 1px solid red; */
  padding-bottom: 12px;
}

.form-group.error .error-message {
  transform: translateY(0);
}

.error-message {
  transform: translateY(5px);
}
