
.login-text {
  white-space: nowrap;
  display: inline;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(68, 68, 68, 0.6);
}

/* Giảm font size chữ trên mobile để tránh xuống hàng */
@media (max-width: 575.98px) {
  .login-text {
    font-size: 0.75rem; /* giảm xuống 0.75rem hoặc bạn thử 0.7rem */
  }
  .nav-item.nav-link {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

}

.login-hover-effect {
  transition: all 0.3s ease;
}

.login-hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #333 !important;
}

/********** Template CSS **********/
:root {
    --primary: #13C5DD;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
    background-color: var(--primary);
    border: none;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}
/* Đảm bảo modal hiển thị ở giữa màn hình */
.modal-dialog {
  max-width: 500px;  /* Chiều rộng tối đa của modal */
  margin: 30px auto; /* Căn giữa modal theo chiều dọc và ngang */
  position: absolute; /* Để modal có thể di chuyển */
  touch-action: none; /* Hỗ trợ cảm ứng trên di động */
  left: 50%; /* Căn giữa theo chiều ngang */
  top: z0; /* Căn giữa theo chiều dọc */
  transform: translate(-50%, -50%); /* Căn giữa chính xác */
}
/* Định dạng modal-header để dễ kéo */
.modal-header {
  cursor: move;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 20px;
    padding: 30px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

/* Điều chỉnh padding cho mobile */
@media (max-width: 768px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 14px;
        padding: 10px;
    }

    .service-item {
        height: auto;
        padding: 20px 15px;
        text-align: center;
    }

    .hero-header {
        background-position: center top;
    }

    .btn {
        font-size: 14px;
        padding: 8px 12px;
    }

    .modal-dialog {
        max-width: 90%;
        margin: 20px auto;
        transform: translate(-50%, 0);
    }

    .team-carousel .owl-nav {
        padding: 0 15px;
    }
}
@media (max-width: 576px) {
    .btn-sm-square {
        width: 24px;
        height: 24px;
    }

    .btn-lg-square {
        width: 40px;
        height: 40px;
    }

    .testimonial-carousel .owl-dot {
        width: 15px;
        height: 15px;
    }

    .testimonial-carousel .owl-dot.active {
        width: 30px;
        height: 30px;
    }

    .testimonial-carousel .owl-item img {
        width: 100px;
        height: 100px;
    }
}
.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}
/* Thêm shadow mềm cho card */
.service-item,
.team-item,
.modal-content {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Chuyển động mượt hơn khi hover */
.service-item,
.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    transition: all 0.3s ease-in-out;
}
.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}
/* Chỉ áp dụng cho modal có class loginuser */
/* Lớp CSS modal-loginuser */
.modal-loginuser .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  transition: all 0.3s ease-in-out;
}

.modal-loginuser .btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}

/* Input và form control */
.modal-loginuser .form-control-lg {
  padding: 1rem;
  font-size: 1.25rem;
  height: 50px;
  border-radius: 8px;
}

.modal-loginuser .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
}

/* Hiệu ứng cho mật khẩu */
.modal-loginuser .input-group-text {
  background-color: #f1f1f1;
  border-left: 1px solid #ccc;
  border-radius: 0 8px 8px 0;
  
}

.modal-loginuser .input-group-text:hover {
  background-color: #e0e0e0;
}

.modal-loginuser .input-group input:focus {
  border-color: #007bff;
}
.modal-loginuser .input-group {
  width: 100%;
  display: flex;            /* đảm bảo bố cục flex */
  align-items: center;      /* căn giữa theo chiều dọc */
}
.modal-loginuser .input-group .form-control {
  flex: 1 1 auto;
  width: 100%;
  height: 50px;             /* giữ chiều cao bằng input text */
}
.modal-loginuser .modal-content {
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-loginuser .modal-header h5 {
  font-weight: bold;
  color: #007bff;
}

/* Điều chỉnh khoảng cách và vị trí liên kết */
.modal-loginuser .d-flex {
  margin-top: 1.5rem;
}

.modal-loginuser .text-decoration-none {
  color: #007bff;
}

.modal-loginuser .text-decoration-none:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Hover effect for inputs */
.modal-loginuser .form-control:hover {
  border-color: #0056b3;
}


/* ✅ Responsive Fix cho di động */
@media (max-width: 576px) {
  .modal-loginuser .modal-dialog {
    position: static !important;
    margin: 1rem auto;
    width: 90% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .modal-loginuser .input-group-text {
    padding: 0.5rem 0.75rem !important; /* ✅ Giảm padding để icon không chiếm quá nhiều */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;              /* độ rộng icon, bạn chỉnh nếu muốn */
    height: 50px;             /* bằng chiều cao input */
    padding: 0;
    cursor: pointer;
  }
  .modal-loginuser .modal-loginuser-content {
    border-radius: 0.75rem;
    padding: 1rem;
  }

  .modal-loginuser .form-control-lg,
  .modal-loginuser .btn,
  .modal-loginuser .input-group {
    font-size: 1rem !important;
    height: auto;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem; /* ✅ Giảm khoảng cách giữa các input/button */
  }

  .modal-loginuser .mb-4 {
    margin-bottom: 0.75rem !important; /* ✅ Giảm margin-bottom mặc định */
  }

  .modal-loginuser .modal-footer small {
    text-align: center;
    display: block;
    width: 100%;
    font-size: 0.85rem;
    margin-top: 0.5rem; /* ✅ Giảm khoảng cách trên */
  }

  .modal-loginuser .modal-header h5 {
    font-size: 1.25rem;
  }

  .modal-loginuser .btn-close {
    scale: 0.9;
  }

  .modal-loginuser .d-flex {
    flex-direction: column;
    gap: 0.5rem; /* ✅ Khoảng cách nhỏ giữa các dòng liên kết */
    text-align: center;
  }

  .modal-loginuser .google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .modal-loginuser .separator {
    margin: 0.5rem 0;
    text-align: center;
    font-size: 0.85rem;
  }
  .modal-loginuser .input-group input {
    font-size: 1rem !important;
    padding: 0.6rem 0.75rem !important;
  }
}
.modal-loginuser .input-group-text i {
  font-size: 1.2rem;
}
.modal-loginuser .mb-4,
.modal-loginuser .mb-3.position-relative {
  width: 100%;
}

.modal-loginuser .input-group {
  width: 100%;
  display: flex;
  align-items: center;
}

.modal-loginuser .input-group .form-control {
  width: calc(100% - 45px); /* trừ icon */
  height: 50px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.modal-loginuser .input-group-text {
  width: 45px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  cursor: pointer;
  padding: 0;
}

.modal-loginuser .input-group-text i {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 576px) {
  .modal-loginuser .input-group-text {
    padding: 0.6rem 0.75rem; /* Tăng padding đều với input */
    height: 50px;             /* Bằng với form-control-lg */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-loginuser .input-group-text i {
    font-size: 1.25rem;       /* To bằng chữ input */
    line-height: 1;
  }

  .modal-loginuser .form-control-lg {
    font-size: 1.1rem;
    height: 50px;
    padding: 0.6rem 0.75rem;
  }

  .modal-loginuser .input-group {
    align-items: stretch;
  }
}

/* Đảm bảo input-group chiếm 100% chiều ngang */
.input-group {
  width: 100%;
}

/* Input trong input-group chiếm hết chiều rộng trừ phần icon */
.input-group .form-control {
  width: 100%;
  flex: 1 1 auto; /* dùng flex để input tự động co giãn */
}
/***-mail và điện thoại cùng hàng**/
@media (min-width: 992px) {
  .no-wrap-lg {
    flex-wrap: wrap !important;
  }
}
