/* Easy Solar Form Plugin CSS */
#dk-wrap, #dk-wrap * {
  box-sizing: border-box !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
}
#dk-wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 16px 32px;
}
.dk-intro {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
  margin-top: 32px;
}
.dk-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.dk-tab {
  flex: 1;
  max-width: 200px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 10px 10px 8px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.dk-tab:hover { border-color: #2e7d32; }
.dk-tab.active { border-color: #2e7d32; box-shadow: 0 0 0 1px #2e7d32; }
.dk-tab-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  transition: background .2s;
}
.dk-tab.active .dk-tab-icon { background: #e8f5e9; }
.dk-tab-label {
  font-size: 11px !important;
  font-weight: 600;
  color: #333;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}
.dk-tab.active .dk-tab-label { color: #1b5e20; }
.dk-form-panel { display: none; }
.dk-form-panel.active { display: block; }
.dk-section {
  border: 1.5px solid #c8e6c9 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
  background: #fff !important;
}
.dk-section-title {
  background: #2e7d32 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 7px 12px !important;
  border-radius: 7px !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.dk-section-title .dk-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.dk-row-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}
.dk-row-3 {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 6px !important;
}
@media (max-width: 560px) {
  .dk-row-2, .dk-row-3 { grid-template-columns: 1fr !important; }
}
.dk-field { margin-bottom: 8px !important; }
.dk-field:last-child { margin-bottom: 0 !important; }
.dk-field > label {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 3px !important;
}
.dk-sublabel {
  display: block !important;
  font-size: 11.5px !important;
  color: #666 !important;
  margin-bottom: 3px !important;
}
#dk-wrap abbr,
#dk-wrap abbr[title],
#dk-wrap abbr[title="required"],
#dk-wrap .wpcf7-form abbr,
#dk-wrap .wpcf7-form label abbr,
#dk-wrap .dk-field label abbr,
#dk-wrap .wpcf7-form label .required,
#dk-wrap .wpcf7-form span.required,
#dk-wrap .wpcf7-form .wpcf7-form-control-wrap .required {
  color: #e53935 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: default !important;
  font-weight: 700 !important;
}
#dk-wrap .wpcf7-form input[type="text"],
#dk-wrap .wpcf7-form input[type="email"],
#dk-wrap .wpcf7-form input[type="tel"],
#dk-wrap .wpcf7-form input[type="number"],
#dk-wrap .wpcf7-form textarea {
  width: 100% !important;
  border: 1.5px solid #ccc !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  height: 33px !important;
  font-size: 13.5px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  color: #222 !important;
  background: #fff !important;
  transition: border-color .2s !important;
  outline: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  line-height: 33px !important;
}
#dk-wrap .wpcf7-form select,
#dk-wrap .wpcf7-form .wpcf7-select select,
#dk-wrap .wpcf7-form span.wpcf7-form-control-wrap select {
  width: 100% !important;
  border: 1.5px solid #ccc !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  height: 33px !important;
  min-height: unset !important;
  max-height: 33px !important;
  font-size: 13.5px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  color: #222 !important;
  background: #fff !important;
  line-height: 33px !important;
  outline: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}
#dk-wrap .wpcf7-form input:focus,
#dk-wrap .wpcf7-form select:focus { border-color: #2e7d32 !important; }
#dk-wrap .wpcf7-form input::placeholder,
#dk-wrap .wpcf7-form textarea::placeholder { color: #bbb !important; }
#dk-wrap .wpcf7-form .wpcf7-checkbox,
#dk-wrap .wpcf7-form .wpcf7-radio {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#dk-wrap .wpcf7-form .wpcf7-checkbox[data-name="hinh-thuc"],
#dk-wrap .wpcf7-form .wpcf7-checkbox[data-name="hinh-thuc-dn"],
#dk-wrap .wpcf7-form span[data-name="hinh-thuc"] .wpcf7-checkbox,
#dk-wrap .wpcf7-form span[data-name="hinh-thuc-dn"] .wpcf7-checkbox {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: unset !important;
  gap: 4px 16px !important;
  align-items: center !important;
}
#dk-wrap .wpcf7-form .wpcf7-list-item { margin: 0 !important; padding: 0 !important; }
#dk-wrap .wpcf7-form .wpcf7-list-item label {
  font-size: 13px !important;
  color: #333 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
}
#dk-wrap .wpcf7-form .wpcf7-list-item input[type="checkbox"],
#dk-wrap .wpcf7-form .wpcf7-list-item input[type="radio"] {
  width: auto !important;
  accent-color: #2e7d32 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#dk-wrap small {
  font-size: 11px !important;
  color: #888 !important;
  display: block !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}
#dk-wrap p { margin: 0 !important; padding: 0 !important; }
#dk-wrap .wpcf7-form span.wpcf7-form-control-wrap {
  display: block !important;
  margin-bottom: 0 !important;
}
.dk-slider-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 3px !important;
  margin-bottom: 0 !important;
}
.dk-slider-wrap .dk-s-label { font-size: 11px; color: #888; white-space: nowrap; }
.dk-slider-val {
  background: #2e7d32;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 38px;
  text-align: center;
}
.dk-slider-wrap input[type="range"] {
  flex: 1 !important;
  accent-color: #2e7d32 !important;
  cursor: pointer !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
}
.dk-slider-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
}
.dk-slider-footer .dk-hint { margin: 0 !important; font-size: 11px !important; color: #888 !important; }
.dk-slider-footer .dk-slider-val { font-size: 11px; padding: 2px 6px; min-width: 38px; }
.dk-hint { font-size: 11px !important; color: #888 !important; margin-top: 3px !important; margin-bottom: 0 !important; display: block !important; }
.dk-extra-input {
  display: none;
  width: 100% !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  border: 1.5px solid #ccc !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  height: 33px !important;
  font-size: 13.5px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  line-height: 33px !important;
}
#dk-wrap .wpcf7-form input[type="submit"] {
  display: block !important;
  margin: 12px auto 0 !important;
  background: #2e7d32 !important;
  color: #fff !important;
  border: none !important;
  padding: 11px 44px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  cursor: pointer !important;
  transition: background .2s !important;
  height: auto !important;
  line-height: normal !important;
}
#dk-wrap .wpcf7-form input[type="submit"]:hover { background: #1b5e20 !important; }

/* Thông báo lỗi CF7 - bỏ viền vàng, chữ đậm nghiêng căn giữa */
.wpcf7-validation-errors,
.wpcf7-acceptance-missing,
div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #e53935 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-style: italic !important;
  text-align: center !important;
  padding: 8px 0 !important;
  margin-top: 8px !important;
}

#dk-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#dk-popup.show { display: flex; }
#dk-popup-inner {
  position: relative;
  max-width: 620px;
  width: 100%;
  animation: popIn .3s ease;
}
@keyframes popIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
#dk-popup-inner img { width: 100%; border-radius: 14px; display: block; }
#dk-popup-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  color: #333;
}

@media (min-width: 1024px) {
  #dk-wrap {
    max-width: 900px;
  }
  .dk-tab {
    max-width: 280px;
    padding: 20px 30px 15px;
  }
  .dk-tabs {
    gap: 20px;
    margin-bottom: 24px;
  }
  .dk-tab-label {
    font-size: 15px !important;
    letter-spacing: 0.3px;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .dk-tab-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
  }
}