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

#wt-quality-item .uagb-heading-text {
  min-width: 60px !important;
}
.wt-sticky {
  position: sticky;
  top: 90px;
}
.wt-quality-item figure,
.wt-quality-item figure img {
  height: 100% !important;
  min-height: 240px;
  object-fit: cover;
}

.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/06/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;
}
/* ==========================================================================
   UPDATED: SPECTRA FORM 100% MATCH DESIGN
   ========================================================================== */
/* 1. Khung lưới tổng thể */
.wt-form-contact-home .uagb-forms-main-form {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  border-radius: 12px;
}

.wt-form-contact-home .uagb-forms-form-hidden-data,
.wt-form-contact-home [class*="uagb-form-reacaptcha-error"] {
  display: none !important;
}

.wt-form-contact-home .wp-block-button {
  grid-column: span 2 !important;
  margin-top: 10px !important;
  /* Cộng thêm 10px với 30px gap của grid để thành 40px */
}

/* Kéo dài full 2 cột cho ô Phong cách và Button */
.wt-form-contact-home .uagb-block-836c910e,
.wt-form-contact-home .uagb-forms-main-submit-button-wrap {
  grid-column: span 2;
}

/* Ẩn label gốc */
.wt-form-contact-home .uagb-forms-input-label {
  display: none !important;
}

/* 2. Định dạng chung cho tất cả các ô nhập liệu */
.wt-form-contact-home .uagb-forms-field-set {
  margin-bottom: 0 !important;
}
.wt-form-contact-home .uagb-forms-input,
.wt-form-contact-home .uagb-forms-textarea-input,
.wt-form-contact-home .uagb-forms-select-box {
  width: 100% !important;
  height: 56px !important;

  background: #00000033 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px !important;
  padding: 0 20px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

/* 3. CHỈ HIỂN THỊ ICON DROPDOWN CHO Ô "LOẠI CÔNG TRÌNH" VÀ "PHONG CÁCH" */
.wt-form-contact-home .uagb-block-d9eba8d9 .uagb-forms-select-box, /* Loại công trình */
.wt-form-contact-home .uagb-block-836c910e .uagb-forms-select-box {
  /* Phong cách */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 16px !important;
  padding-right: 40px !important;
}

/* Khóa ô Diện tích textarea không cho kéo giãn */
.wt-form-contact-home .uagb-forms-textarea-input {
  line-height: 54px !important;
  resize: none !important;
  overflow: hidden !important;
}

/* Focus state */
.wt-form-contact-home .uagb-forms-input:focus,
.wt-form-contact-home .uagb-forms-textarea-input:focus,
.wt-form-contact-home .uagb-forms-select-box:focus {
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

/* Placeholder chung */
.wt-form-contact-home ::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1;
}

/* 4. ĐẶC TRỊ Ô SỐ ĐIỆN THOẠI (Xóa bỏ dropdown cũ hoàn toàn) */
.wt-form-contact-home .uagb-forms-phone-flex {
  display: block !important;
}
.wt-form-contact-home .uagb-form-phone-country {
  display: none !important; /* Ẩn ô chọn mã quốc gia */
}
.wt-form-contact-home .uagb-forms-phone-input {
  background-image: none !important; /* Xóa hoàn toàn mũi tên ở ô SĐT */
}

/* 5. Định dạng nút bấm màu đỏ */
.wt-form-contact-home .uagb-forms-main-submit-button {
  width: 100% !important;
  height: 60px !important;
  background-color: #ff0000 !important;
  color: #ffffff !important;
  font-weight: bold !important;
  font-size: 18px !important;
  border: none !important;
  border-radius: 6px !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}
.wt-form-contact-home .uagb-forms-main-submit-button:hover {
  background-color: #cc0000 !important;
}
/* Cấu hình màu sắc cho toàn bộ danh sách lựa chọn bên trong */
.wt-form-contact-home .uagb-forms-select-box option {
  background-color: #1e293b !important; /* Đổi thành màu nền xanh đen tối (Slate 800) */
  color: #ffffff !important; /* Màu chữ bên trong danh sách là màu trắng */
  padding: 10px !important;
}

/* Tùy chỉnh màu riêng cho tùy chọn mặc định đầu tiên (Dòng chữ Select your option) nếu cần mờ hơn */
.wt-form-contact-home .uagb-forms-select-box option:disabled,
.wt-form-contact-home .uagb-forms-select-box option[value=""] {
  color: rgba(255, 255, 255, 0.5) !important; /* Chữ xám mờ */
}
/* 6. Responsive Tablet */
@media (max-width: 1024px) {
  .wt-no-sticky {
    position: relative !important;
    top: 0 !important;
  }
}
/* 7. Responsive Mobile */
@media (max-width: 768px) {
  .wt-form-contact-home .uagb-forms-main-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .wt-form-contact-home .uagb-block-836c910e,
  .wt-form-contact-home .uagb-forms-main-submit-button-wrap,
  .wt-form-contact-home .uagb-forms-field-set {
    grid-column: span 1 !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   LENIS SMOOTH SCROLL RECOMMENDATIONS
   ========================================================================== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
   overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* ========================================================================== */
/*  sửa thêm */
/* ========================================================================== */
.wt-min-width {
  min-width: 120px !important;
  max-width: 120px !important;
}

.wt-img-full img,
.wt-img-full figure {
  width: 100% !important;
  height: 100% !important;
}

.wt-google-map embed {
  border-radius: 0 40px 40px 0 !important;
  height: 100% !important;
  min-height: 300px !important;
}

@media (max-width: 767px) {
  .wt-google-map embed {
    border-radius: 0 0 40px 40px !important;
  }
}
.wt-form-lien-he select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  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>") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 14px 8px !important;
  padding-right: 40px !important;
}
