@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/*
 Theme Name:   hello-biz child
 Theme URI:    https://ecentura2.tdmthemes.com/
 Description:  Hello Biz Child Theme
 Author:       Pham Huy
 Template:     hello-biz
 Version:      1.0.0
*/
html {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
input,
button,
textarea {
  font-family: "Poppins", sans-serif;
}

/* header */
.custom-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-shadow: 0 8px 30px rgba(158, 174, 217, 0.2);
}

.header__container {
  display: flex;
  align-items: center;
}

.header-content {
  position: relative;
  padding: 20px 0 10px;
  display: flex;
  align-items: center;
  transition: 0.1s all ease-in;
  margin-bottom: 10px;
}

.custom-logo {
  width: 250px;
  height: auto;
}

.header__menu .menu {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  list-style: none;
  margin: 0 auto;
}

.header__menu .menu .menu-item a {
  text-decoration: none;
  color: #575757;
  font-size: 16px;
  font-weight: 400;
  line-height: 53px;
}

.header__menu .menu .menu-item:hover a {
  color: #333;
}

.panel {
  width: 15px;
  display: none;
}

/* header flag */
.lang-switcher {
  position: relative;
  cursor: pointer;
  margin-right: 10px;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.current-lang::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid #575757;
  border-bottom: 1px solid #575757;
  transform: rotate(45deg);
  margin-left: 8px;
  margin-bottom: 3px;
  cursor: pointer;
}

.flag {
  width: 16px;
  height: auto;
}

.lang-code {
  font-size: 16px;
  color: #575757;
  cursor: pointer;
}

.lang-dropdown {
  display: none;
  position: absolute;
  list-style: none none;
  background: #fff;
  border: 1px solid #bbb;
  margin-top: 4px;
  min-width: 75px;
  z-index: 100;
  box-sizing: border-box;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.15);
  padding: 0 15px;
}

.lang-dropdown--item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.lang-dropdown--item .flag,
.lang-dropdown--item .lang-code {
  font-size: 14px;
}

.lang-dropdown::before {
  content: "";
  position: absolute;
  border: 8px solid;
  border-color: transparent transparent #bbb;
  z-index: 98;
  left: 15px;
  top: -16px;
  transform: translateX(-50%);
}

.lang-dropdown::after {
  content: "";
  position: absolute;
  border: 7px solid;
  border-color: transparent transparent #fff;
  z-index: 99;
  left: 15px;
  top: -13px;
  transform: translateX(-50%);
}

.lang-dropdown.active {
  display: block;
}

.text-heading {
  font-family: "Poppins", sans-serif;
  color: #00aec7;
  font-weight: 600;
  line-height: 44px;
}

/* footer */
.footer__container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 1160px;
  margin: 0 auto;
}

.footer__top {
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  gap: 70px;
  margin-top: 100px;
  margin-bottom: 50px;
}

.footer__left p {
  font-size: 16px;
  color: #333;
}

.footer__left-logo {
  width: 208px;
}

.footer__left-brand {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.footer__left-address {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer__middle {
  display: flex;
  gap: 70px;
}

.footer__middle img {
  width: 35px;
}

.footer__middle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 16px;
}

.footer__middle-item span {
  text-decoration: underline;
}

.footer__middle-item:hover span {
  text-decoration: none;
}

.footer__bottom {
  font-size: 12px;
  color: #333;
  margin-bottom: 30px;
}

.impressum {
  color: #333;
  margin-right: 10px;
  text-decoration: underline;
}

.wave {
  position: absolute;
  bottom: 0;
  width: 6400px;
  height: 128px;
  background-size: auto 100%;
  background-repeat: repeat-x;
  animation: wave 30s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  background-image: url("assets/images/wave.svg") !important;
}

.wave:nth-last-of-type(2) {
  opacity: 0.5;
  animation: wave 20s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite;
}

/* widget */
.widget {
  position: fixed;
  z-index: 9999;
  right: -235px;
  transition: right 0.5s ease-in-out;
}

.widget:hover {
  right: 0;
}

.customer-img {
  margin-left: -6px;
}

.adobe-certified {
  position: fixed;
  z-index: 9999;
  right: 0;
}

/* whatsapp chat */
.whatsappchat {
  position: fixed;
  z-index: 9999;
  right: 0;
  bottom: 20px;
}

/* nav modal */
.nav__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav__modal.active {
  opacity: 1;
  visibility: visible;
}

.nav__modal-content {
  position: absolute;
  inset: 0;
  background-color: #fff;
  border-radius: 5px;
  max-width: 90vw;
  z-index: 5;
  margin-top: 32px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__modal.active .nav__modal-content {
  transform: translateX(0);
}

.nav__modal-content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.nav__modal-content--item {
  cursor: pointer;
  border: solid #dbdbdb;
  border-width: 0 0 1px 1px;
  text-align: center;
  width: 33.33%;
  font-size: 16px;
  background-color: #e8e8e8;
  color: #1979c3;
}

.nav__modal-content--item.active {
  background-color: #fff;
  border-bottom: 0;
}

.nav__modal-section {
  padding: 20px 0;
}

.nav__modal-section-content-menu .menu {
  padding: 8px 40px 8px 15px;
  line-height: 53px;
  list-style: none;
  text-decoration: none;
  padding: 0;
}

.nav__modal-section-content-menu .menu .menu-item {
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
}

.nav__modal-section-content-menu .menu a {
  display: inline-block;
  width: 100%;
  color: #656565;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  word-wrap: break-word;
  padding: 0 25px;
}

.nav__modal-section-content-menu .menu .menu-item:first-child a::after {
  content: "FÜR AGENTUR";
  display: inline-block;
  background-color: #ffbb20;
  color: #fff;
  padding: 4px 12px;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  line-height: 1;
}

.menu-icon {
  display: none;
}

/* work-content */
.works-content-item {
  box-shadow: 0px 20px 56px 0px rgba(28, 93, 191, 0.1);
}

.works-content-item:hover {
  justify-content: center;
  align-items: center;
}

.box-text-works-content-item {
  max-height: 135px;
  overflow: hidden;
  box-sizing: border-box;
  will-change: max-height;
  transition: max-height 0.9s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* subtle upward motion for inner content while container expands */
.box-text-works-content-item > * {
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(8px);
}

.works-content-item:hover .box-text-works-content-item {
  max-height: 800px;
}

.works-content-item:hover .box-text-works-content-item > * {
  transform: translateY(0);
}

/* .works-content-img img {
  height: 366px;
  object-fit: cover;
} */

.works-content-item:hover .works-content-img {
  filter: brightness(20%);
}

.works-content-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* mouse trail */
svg#mouseTrails {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
}

#mouseTrails line {
  stroke: #00aec7;
  stroke-width: 2;
  stroke-linecap: round;
}

/* rating */
.rating-text {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  margin-bottom: 40px;
  color: #7d7b8d;
}

.rating-start {
  position: relative;
  font-size: 100%;
  color: #ffa200;
}

.rating-start::after {
  content: "";
  position: absolute;
  right: 0;
  width: 12px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.section__container {
  max-width: 960px !important;
  margin: 50px auto !important;
  box-sizing: border-box;
}

.footer__contact {
  max-width: 960px !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* work page */
.work-text-banner {
  word-wrap: break-word;
}

/* Khung viền bên ngoài bao quanh toàn bộ các trường nhập liệu */
.fieldset {
  display: block;
  border: none;
  background-color: #fff;
  clear: both;
}

/* Căn chỉnh hàng: Nhãn trái - Ô nhập phải */
.fieldset .field {
  display: flex;
  margin-bottom: 29px;
  align-items: flex-start;
}

.field p {
  width: 25.8%;
  margin-bottom: 0;
}

.fieldset .field .label p {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Cột bên trái: Label */
.fieldset .field .label {
  flex: 0 0 160px;
  padding-right: 20px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.42857143;
  color: #333;
  text-align: left;
  padding-top: 8px;
}

/* Style cho required asterisk */
.fieldset .field .label .required {
  color: #d9534f;
  font-weight: 700;
  margin-left: 4px;
}

/* Cột bên phải: Ô nhập (Control) */
.fieldset .field .control {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.control p {
  width: 100%;
}
.field .control p {
  margin-bottom: 0 0 29px;
}

/* Định dạng Input, Email, Tel, Textarea */
.fieldset .input-text,
.fieldset .quiz-control {
  background: #fff;
  background-clip: padding-box;
  border: 1px solid #c2c2c2;
  border-radius: 1px;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  height: 32px;
  line-height: 1.42857143;
  padding: 0 9px;
  vertical-align: baseline;
  width: 100%;
  box-sizing: border-box;
}

.fieldset .input-text:focus,
.fieldset .quiz-control:focus {
  outline: none;
  border: 1px solid #c2c2c2;
  box-shadow: 0 0 3px 1px #68a8e0;
}

/* Riêng cho khung tin nhắn */
.fieldset textarea.input-text {
  min-height: 81px;
  resize: vertical;
}

/* Quiz & Captcha styling */
#contact-form .control label,
#contact-form .wpcf7-quiz-label,
.wpcf7-form-control-wrap[data-name="math-quiz"] label {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: auto !important;
  color: #333 !important;
  font-weight: bold !important;
  position: relative !important;
  left: 0 !important;
}

.field.security,
.field.security .control {
  height: auto !important;
  min-height: 50px !important;
  overflow: visible !important;
  display: flex !important;
}

.field.security .label {
  width: 25.8% !important;
  flex: unset !important;
}

.quiz-text {
  margin-top: 5px;
}

.fieldset .field .label .quiz-required {
  flex: 0 0 26%;
}

/* Căn chỉnh phần Captcha */
.wpcf7-quiz-label {
  font-family: "Poppins", sans-serif;
  position: absolute !important;
  bottom: -25%;
  left: -35%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.42857143;
  color: #333;
}

/* Nút bấm Absenden - Màu cam và bo tròn theo ảnh */
.actions-toolbar {
  margin-left: 25.8%;
  margin-top: 10px;
}

.actions-toolbar p {
  margin: 0;
}

.btn-form-submit {
  color: #fff !important;
  font: 600 15px / 40px "Poppins", Arial, sans-serif !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: #ffa200 center center !important;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out,
    border-color 0.2s ease-in-out !important;
  box-shadow: 0px 6px 12px 0px rgba(252, 116, 73, 0.4) !important;
  height: 40px !important;
  display: inline-block !important;
  padding: 0 30px !important;
}

.btn-form-submit:hover {
  background: #e68a00 !important;
}

/* Link Neuladen */
#reset-quiz {
  color: #4db432 !important;
  text-decoration: none;
  font-size: 16px;
  margin-top: 8px;
  display: inline-block;
}

/* line */
.line {
  width: 240px;
  text-align: left;
  margin-left: 0;
  border: none;
  height: 3px;
  background-color: #fff;
  outline: none;
}

/* custom page */

.page-id-1834 .custom-header,
.page-id-1834 .site-header {
  box-shadow: none !important;
}

@keyframes wave {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -100%;
  }
}

/* Responsive */
/* 2. Tablet và màn hình lớn hơn (>= 640px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .header__container {
    justify-content: center;
  }

  .header__menu {
    position: relative;
  }

  .header__menu .menu {
    display: none;
  }

  .menu-icon {
    position: absolute;
    font-size: 28px;
    color: #8f8f8f;
    display: inline-block;
    vertical-align: middle;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
  }

  .nav__modal-content--item {
    padding: 25px;
  }

  .header-content {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    flex: unset;
  }

  .custom-logo {
    margin: 0 15px 0 40px;
  }

  .widget,
  .adobe-certified {
    display: none;
  }

  .footer__container {
    width: 100%;
    padding: 0 30px;
  }

  .footer__middle-item span {
    text-align: center;
  }

  .text-heading {
    font-size: 26px;
  }

  /* form */
  .fieldset {
    width: 100%;
    padding: 0;
  }

  .fieldset .field {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .field p {
    width: 100%;
  }

  .fieldset .field .label {
    padding: 3px 10px;
    margin: 0 0 5px;
  }

  .field.security .label {
    margin-bottom: 20px;
  }

  .wpcf7-quiz-label {
    top: -75%;
    left: 11px;
  }

  .actions-toolbar {
    margin: 0;
    width: 100%;
  }

  .fieldset .field .control {
    width: 100%;
  }

  .btn-form-submit {
    width: 100% !important;
  }
}
/* 3. Tablet dọc và Laptop nhỏ (>= 768px) */
@media (max-width: 767px) {
  .header__container {
    justify-content: center;
  }

  .header__menu .menu {
    display: none;
  }

  .panel {
    display: block;
  }

  .header-content {
    padding: 8px 0 0 10px;
  }

  .custom-header {
    justify-content: space-around;
  }

  .menu-icon {
    position: absolute;
    font-size: 28px;
    color: #8f8f8f;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-62%);
    cursor: pointer;
  }

  .nav__modal-content--item {
    height: 71px;
    padding-top: 24px;
  }

  .nav__modal-section-content-menu .menu .menu-item {
    font-weight: 700;
    padding: 8px 40px 8px 15px;
    text-transform: uppercase;
    word-wrap: break-word;
  }

  .header-content {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    flex: unset;
  }

  .custom-logo {
    margin: 0 15px 0 40px;
  }

  .lang-switcher {
    display: none;
  }

  .widget,
  .adobe-certified {
    display: none;
  }

  .text-heading {
    font-size: 26px;
  }

  /* footer */

  .footer__container {
    width: 100%;
    padding: 0 35px;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    width: 100%;
  }

  .footer__left {
    display: flex;
    flex-direction: column;
    align-self: baseline;
    text-align: left;
  }

  .footer__middle {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer__bottom {
    width: 100%;
  }

  .footer__bottom p {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .impressum,
  .footer__bottom p span {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
  }

  .rating-text {
    font-size: 28px;
  }

  /* .box-text-works-content-container > * {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(1rem);
  } */

  .works-content-item:hover .box-text-works-content-container > * {
    transform: translateY(-9.75rem);
  }

  /* form */

  /* form */
  .fieldset {
    width: 100%;
    padding: 0;
  }

  .fieldset .field {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .field p {
    width: 100%;
  }

  .fieldset .field .label {
    padding: 3px 10px;
    margin: 0 0 5px;
  }

  .field.security .label::after {
    content: "";
  }

  .wpcf7-quiz-label {
    top: -75%;
    left: 11px;
  }

  .actions-toolbar {
    margin: 40px 0 0 0;
    width: 100%;
  }

  .actions-toolbar .primary p {
    margin: 0;
  }

  .fieldset .field .control {
    width: 100%;
  }

  .btn-form-submit {
    width: 100% !important;
  }
}

/* 4. Desktop / Laptop (>= 1024px) */

/* Desktop: center menu between logo and flag using flexible layout */
@media (min-width: 1024px) {
  .header__container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
  }

  .header-content {
    flex: 1;
  }

  .text-heading {
    font-size: 40px;
  }

  .header__menu {
    position: static;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    transition: 0.1s all ease-in;
  }

  .header__menu .menu .menu-item:first-child a {
    position: relative;
  }

  .header__menu .menu .menu-item:first-child a::after {
    position: absolute;
    font-family: "Poppins", sans-serif;
    content: "für Agentur";
    background-color: #ffbb20;
    color: #fff;
    width: max-content;
    padding: 3px;
    font-size: 10px;
    line-height: 13px !important;
    border: 1px solid #ffbb20;
    border-radius: 2px;
    left: 0;
    top: -25px;
  }

  .fieldset {
    padding: 0;
    margin: 0;
  }
}
