/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme của Astra
Author: Webtop
Template: astra
Version: 1.0
*/

.wt-check-list .wp-block-uagb-icon-list-child::before {
  content: "" !important;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/uploads/2026/08/check.png") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
}
.wt-check-list .wp-block-uagb-icon-list-child {
  display: flex !important;
  align-items: center !important;
  position: relative;
  padding-left: 32px !important;
  margin-bottom: 16px;
}

.uagb-infobox__content-wrap {
  display: inline-flex;
  align-items: center;
}

.uagb-infobox-margin-wrapper {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}
.uagb-infobox-margin-wrapper .uagb-ifb-image-content {
  width: 24px !important;
  margin-bottom: 0 !important;
}
.uagb-ifb-content {
  flex: 1 1 auto;
}
.uagb-ifb-desc {
  text-align: left;
}
.wt-info-banner .uagb-ifb-desc {
  white-space: nowrap;
}
.wt-form-lien-he select,
.wt-form-contact-bospro select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  padding-right: 40px !important;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.wt-form-lien-he :has(> select),
.wt-form-contact-bospro :has(> select) {
  position: relative;
}

.wt-form-lien-he :has(> select):not(.uagb-forms-phone-flex)::after,
.wt-form-contact-bospro :has(> select):not(.uagb-forms-phone-flex)::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 68%;
  transform: translateY(-50%);
  width: 14px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1L7 7L13 1' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 3;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.wt-form-lien-he :has(> select):not(.uagb-forms-phone-flex)::after {
  top: 50%;
}
.wt-form-lien-he :has(> select:focus)::after,
.wt-form-contact-bospro :has(> select:focus)::after {
  transform: translateY(-50%) rotate(180deg);
}

.wt-google-map embed {
  border-radius: 0 40px 40px 0 !important;
  height: 100% !important;
  min-height: 300px !important;
}
.wt-form-contact-bospro .uagb-forms-main-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.wt-form-contact-bospro .uagb-forms-main-form .uagb-block-ddde871a {
  grid-column: 1 / -1;
}

.wt-form-contact-bospro
  .uagb-forms-main-form
  .uagb-forms-main-submit-button-wrap {
  grid-column: 1 / -1;
  width: 100%;
}
.wt-form-contact-bospro
  .uagb-forms-main-form
  .uagb-forms-main-submit-button-wrap
  button {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
}
.wt-form-contact-bospro
  .uagb-forms-main-form
  .uagb-forms-main-submit-button-wrap {
  justify-self: start;
}
#reopen-offer-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e63946;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
#reopen-offer-btn.show {
  display: flex;
}
.uagb-forms-textarea-input {
  overflow: hidden; /* ẩn thanh cuộn dọc vì textarea sẽ tự giãn */
  resize: none; /* tắt kéo tay ở góc, để JS tự kiểm soát chiều cao */
  transition: height 0.15s ease;
}

@media (max-width: 767px) {
  .uagb-forms-main-form {
    grid-template-columns: 1fr;
  }
  .wt-google-map embed {
    border-radius: 0 0 40px 40px !important;
  }
  .wt-popup-contact button {
    font-size: 16px !important;
    padding: 17px 20px !important;
  }
  .wt-form-contact-bospro .uagb-forms-main-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 567px) {
  .wt-info-banner .uagb-ifb-icon-wrap {
    width: 15px !important;
  }
  .wt-info-banner .uagb-ifb-desc {
    white-space: wrap;
  }
}
@media (max-width: 1024px) {
  .wt-btn-hero-home {
    width: 100% !important;
  }
}
