/* popup_02 */
#greenlab-popup-root *,
#greenlab-popup-root *::before,
#greenlab-popup-root *::after {
  box-sizing: border-box;
}

/* ĐÃ SỬA: Font family dùng chung */
#greenlab-popup-root input,
#greenlab-popup-root button,
#greenlab-popup-root label,
#greenlab-popup-root p,
#greenlab-popup-root span,
#greenlab-popup-root a {
  font-family: 'SVN-Gilroy', sans-serif;
  font-synthesis: none;
  letter-spacing: normal;
  text-transform: none;
}

/* ĐÃ SỬA: Tách riêng style cho dialog ngoài theme nếu có */
#greenlab-popup-root dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1080px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #173d30;
  box-shadow: 0 24px 80px #00202950;
  overflow: auto;
  overscroll-behavior: contain;
}
#greenlab-popup-root dialog::backdrop {
  background: #103a40b5;
}

/* FIX 1: GIÚP FORM CF7 KHÔNG LÀM VỠ GRID/FLEX CONTAINER */
#greenlab-popup-root .wpcf7,
#greenlab-popup-root .wpcf7-form {
  display: contents !important;
  margin: 0;
  padding: 0;
}
/* TRIỆT XOÁ CÁC THẺ <P> TỰ ĐỘNG SINH CỦA CF7 */
#greenlab-popup-root .fields p {
  margin: 0;
  padding: 0;
}

#greenlab-popup-root .canvas {
  position: relative;
  display: grid;
  width: 100%;
  container-type: inline-size;
}
#greenlab-popup-root .artwork {
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
#greenlab-popup-root .banner {
  display: block;
  position: static;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  filter: none;
  transform: none;
  opacity: 1;
  border-radius: 5px;
}
#greenlab-popup-root .fields {
  grid-area: 1 / 1;
  align-self: start;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 37.1%;
  min-width: 0;
  min-height: 18.5cqw;
  margin: 50.1cqw 0 20px 8.25%;
  padding: 4px;
/*   border-radius: 5px; */
/*   background: rgba(255, 255, 255, 0.5); */
}
#greenlab-popup-root .field {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  min-width: 0;
}
#greenlab-popup-root .input-wrap {
  position: relative;
  width: 100%;
  height: clamp(46px, 5cqw, 54px);
}

/* FIX 2: ÉP THẺ BỌC KHUNG INPUT CỦA CF7 LÊN FULL 100% CHIỀU CAO */
#greenlab-popup-root .input-wrap .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
#greenlab-popup-root .input {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 16px 0 52px;
  border: 1px solid #c8cfca;
  border-radius: 999px;
  background-color: #fdfdfd;
  color: #243d31;
  font-size: clamp(16px, 1.85cqw, 20px);
  font-weight: 500;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  appearance: none;
}
#greenlab-popup-root .input::placeholder {
  color: #778078;
  opacity: 1;
}
#greenlab-popup-root .input:focus {
  border-color: #19883d;
  outline: none;
  box-shadow: 0 0 0 3px #19883d22;
}
#greenlab-popup-root .wpcf7-not-valid .input,
#greenlab-popup-root .input.wpcf7-not-valid {
  border-color: #b32c22;
}

/* ĐÃ SỬA: CHÈN ICON THAY CHO SVG BẰNG BACKGROUND */
#greenlab-popup-root .name-field .input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336803e' stroke-width='1.8'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 22v-3a8 8 0 0 1 16 0v3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 17px center;
  background-size: 23px 23px;
  padding-left: 52px !important;
}
#greenlab-popup-root .phone-field .input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2336803e' stroke-width='1.8'%3E%3Cpath d='M4 3h4l2 5-3 2c2 4 3 5 7 7l2-3 5 2v4c-9 4-21-8-17-17Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 17px center;
  background-size: 23px 23px;
  padding-left: 52px !important;
}

#greenlab-popup-root .form-meta {
  margin: 0;
  padding: 0 3px;
/*   background: #fff; */
}
#greenlab-popup-root .consent {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 9px;
  margin: 0;
  padding: 2px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: #325142;
  cursor: pointer;
}
#greenlab-popup-root .consent span {
  min-width: 0;
}
#greenlab-popup-root .consent input[type="checkbox"] {
  display: block;
  position: static;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid #83998c;
  border-radius: 3px;
  appearance: auto;
  accent-color: #19883d;
  cursor: pointer;
}
#greenlab-popup-root .consent input.wpcf7-not-valid {
  outline: 2px solid #b32c22;
  outline-offset: 1px;
}

/* FIX 3: TỐI ƯU HIỂN THỊ THÔNG BÁO LỖI CỦA CF7 */
#greenlab-popup-root .wpcf7-not-valid-tip {
  display: block;
  margin: 4px 0 0 12px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #ac2318;
  text-align: left;
  overflow-wrap: anywhere;
}
#greenlab-popup-root .wpcf7-not-valid-tip:empty {
  display: none;
}
#greenlab-popup-root .wpcf7-response-output {
  margin: 6px 0 0;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 10px;
}
#greenlab-popup-root .wpcf7-response-output:empty {
  display: none;
}
#greenlab-popup-root .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #e6f7ed;
  color: #175f32;
}
#greenlab-popup-root .wpcf7-response-output.wpcf7-validation-errors {
  background: #fdecea;
  color: #ac2318;
}
#greenlab-popup-root .submit-wrap {
  margin: 0;
  padding: 0;
}
#greenlab-popup-root .submit {
  position: static;
  display: block;
  flex: none;
  width: 100%;
  min-height: 54px;
  height: auto;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #15ae42, #328c98);
  color: #fff;
  font-size: clamp(18px, 2.15cqw, 24px);
  font-weight: 600;
  line-height: 1.25;
  box-shadow: none;
  cursor: pointer;
}
#greenlab-popup-root .submit:disabled {
  opacity: 0.85;
  cursor: default;
}
#greenlab-popup-root .privacy {
  color: #1e6337;
  text-decoration: underline;
}
#greenlab-popup-root .sr-only,
#greenlab-popup-root .field .label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#greenlab-popup-root button:focus-visible,
#greenlab-popup-root a:focus-visible,
#greenlab-popup-root input[type="checkbox"]:focus-visible {
  outline: 3px solid #176eb2;
  outline-offset: 3px;
}
#greenlab-popup-root button,
#greenlab-popup-root input,
#greenlab-popup-root a {
  touch-action: manipulation;
}

@media (max-width: 1024px) {
  #greenlab-popup-root .consent .wpcf7-list-item {
   margin-top: 8px !important;
  }
}
@media (max-width: 800px) {
  #greenlab-popup-root dialog {
    width: min(460px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    border-radius: 17px;
  }
  #greenlab-popup-root .canvas {
    display: block;
  }
  #greenlab-popup-root .artwork {
/*     aspect-ratio: 2048 / 975; */
	aspect-ratio: 1969 / 975;
    overflow: hidden;
  }
  #greenlab-popup-root .fields {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 16px 18px 20px;
    gap: 12px;
  }
  #greenlab-popup-root .field .label {
    display: block;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    margin: 0 0 6px;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
  }
  #greenlab-popup-root .input-wrap {
    height: 54px;
  }
  #greenlab-popup-root .input {
    font-size: 17px;
  }
  #greenlab-popup-root .submit {
    min-height: 56px;
    font-size: 21px;
  }
  #greenlab-popup-root .consent .wpcf7-list-item {
   margin-top: 5px !important;
  }
}
@media (max-width: 500px) {
  #greenlab-popup-root .consent .wpcf7-list-item {
   margin-top: 13px !important;
  }
}

@media (max-width: 359px) {
  #greenlab-popup-root .submit {
    font-size: 19px;
  }
}
.pum-theme-5366 .pum-container, .pum-theme-enterprise-blue-2 .pum-container{
	padding: 0 !important;
}
#greenlab-popup-root p{
	margin-bottom: 0 !important;
}
/* 1. Ép thẻ bọc label và span ngoài cùng hiển thị Flex hàng ngang */
#greenlab-popup-root .consent,
#greenlab-popup-root .consent .wpcf7-form-control-wrap,
#greenlab-popup-root .consent .wpcf7-acceptance,
#greenlab-popup-root .consent .wpcf7-list-item {
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;
  margin: 0;
  padding: 0 !important;
}

#greenlab-popup-root .consent label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important; /* Khoảng cách giữa ô checkbox và chữ */
  cursor: pointer !important;
  margin: 0 !important;
}

/* 2. Cố định kích thước ô Checkbox không bị đè/méo */
#greenlab-popup-root .consent input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
}

/* 3. Căn chỉnh chữ hiển thị chuẩn sát ô Checkbox */
#greenlab-popup-root .consent .wpcf7-list-item-label,
#greenlab-popup-root .consent span {
  display: inline !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: #325142 !important;
  vertical-align: middle !important;
}



/* Tùy chỉnh dòng thông báo thành công hiển thị ngay dưới nút Submit */
#greenlab-popup-root .wpcf7-response-output {
  margin: 12px 0 0 0 !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-align: center !important; /* Căn giữa thông báo */
  border: 0 !important;
  border-radius: 8px !important;
}

/* Kiểu dáng khi gửi thành công */
#greenlab-popup-root .wpcf7-response-output.wpcf7-mail-sent-ok {
  background-color: #e6f7ed !important;
  color: #28A745 !important;
  border: 1px solid #b7ebca !important;
}

/* Kiểu dáng khi có lỗi submission */
#greenlab-popup-root .wpcf7-response-output.wpcf7-validation-errors,
#greenlab-popup-root .wpcf7-response-output.wpcf7-spam-blocked {
  background-color: #fdecea !important;
  color: #dc143c !important;
  border: 1px solid #fecdca !important;
}