/* Compact submit/edit forms. Keep HivePress's uploader and validation intact. */
body:has(.nvf-simple-form) { background: #f5f7f8; }
body:has(.nvf-simple-form) .nvf-site-main { padding: 32px 20px 48px; background: none; }
body:has(.nvf-simple-form) .nvf-site-main::before,
body:has(.nvf-simple-form) .nvf-site-main::after { display: none; }
body:has(.nvf-simple-form) .hp-page__content { max-width: 700px; margin-inline: auto; }
body:has(.nvf-simple-form) .hp-page__title { display: none; }
.hp-form.nvf-simple-form {
  width: 100%; max-width: 660px; padding: 28px; margin: 0 auto;
  background: #fff; border: 1px solid #dce3e7; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(16,32,68,.04);
}
.hp-form.nvf-simple-form::before { display: none; }
.hp-form.nvf-simple-form .hp-form__header { margin: 0 0 24px; padding: 0; }
.nvf-simple-form .nvf-submit-intro h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.nvf-simple-form .nvf-submit-intro p { margin: 0; font-size: 14px; color: #61717a; }
.nvf-simple-form .nvf-submit-kicker { display: none; }
.hp-form.nvf-simple-form .hp-form__fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
.hp-form.nvf-simple-form .hp-form__field {
  grid-column: 1 / -1; order: 0; min-width: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
.hp-form.nvf-simple-form .hp-form__field:has([name="categories"]),
.hp-form.nvf-simple-form .hp-form__field:has([name="thanh_pho_city"]) { grid-column: span 1; }
.hp-form--listing-update.nvf-simple-form .hp-form__field:has([name="thanh_pho_city"]) { grid-column: 1 / -1; }
.hp-form.nvf-simple-form .hp-form__field::before,
.hp-form.nvf-simple-form .hp-form__field::after { display: none; }
.hp-form.nvf-simple-form .hp-field__label { font-size: 14px; line-height: 1.4; margin-bottom: 8px; }
.hp-form.nvf-simple-form .hp-field__label { display: block; font-weight: 600; }
.hp-form.nvf-simple-form .hp-field:not(.hp-field--attachment-upload):not(.hp-field--button):not(.hp-field--file):not(.hp-field--submit) {
  font-size: 16px; border: 1px solid #ccd7de; box-shadow: none; border-radius: 8px;
  width: 100%; min-height: 46px; padding: 11px 12px; background: #fff; color: #18313c;
}
.hp-form.nvf-simple-form textarea.hp-field { min-height: 116px !important; }
.hp-form.nvf-simple-form .hp-field:focus { outline: 2px solid #126580; outline-offset: 2px; }
.nvf-simple-form .select2-container { width: 100% !important; min-width: 0; }
.nvf-simple-form .select2-container .select2-selection--single { height: 46px; border: 1px solid #ccd7de; border-radius: 8px; background: #fff; }
.nvf-simple-form .select2-container .select2-selection__rendered { line-height: 44px; padding-left: 12px; padding-right: 28px; font-size: 15px; color: #18313c; }
.nvf-simple-form .select2-container .select2-selection__arrow { height: 44px; }
.hp-form.nvf-simple-form .hp-form__field--attachment-upload .hp-field--attachment-upload {
  display: block; min-height: 0; padding: 16px; border: 1px dashed #b8c8d1;
  border-radius: 10px; background: #f8fafb; overflow: visible;
}
.hp-form.nvf-simple-form .hp-field--attachment-upload::before,
.hp-form.nvf-simple-form .hp-field--attachment-upload > label::before,
.hp-form.nvf-simple-form .hp-field--attachment-upload > label::after { display: none; }
.hp-form.nvf-simple-form .hp-field--attachment-upload > label { display: flex; justify-content: center; min-height: 0; margin: 0; }
.hp-form.nvf-simple-form .hp-field--attachment-upload .hp-field--button {
  background: #e9f1f5; color: #18313c; border: 1px solid #cbd8df;
  border-radius: 8px; box-shadow: none; padding: 10px 18px; font-size: 14px; min-height: 44px;
}
.nvf-simple-form .hp-field--attachment-upload:focus-within { outline: 2px solid #126580; outline-offset: 2px; }
.nvf-simple-form .hp-field__description { margin-top: 8px; font-size: 13px; color: #61717a; }
.hp-form.nvf-simple-form .hp-form__footer { margin-top: 24px; border-top: 1px solid #e2e8ec; padding: 20px 0 0; justify-content: flex-end; gap: 12px; }
.hp-form.nvf-simple-form .hp-form__button {
  min-width: 150px; border: 0; border-radius: 8px; background: #126580;
  color: #fff; box-shadow: none; padding: 12px 22px; font-size: 16px; font-weight: 600;
}
.hp-form.nvf-simple-form .hp-form__button:hover { background: #0d5066; transform: none; }
.hp-form.nvf-simple-form .hp-form__button:focus-visible { outline: 2px solid #126580; outline-offset: 3px; }
@media(max-width: 540px) {
  body:has(.nvf-simple-form) .nvf-site-main { padding: 20px 12px 32px; }
  .hp-form.nvf-simple-form { padding: 20px; border-radius: 12px; }
  .hp-form.nvf-simple-form .hp-form__fields { grid-template-columns: minmax(0,1fr); }
  .hp-form.nvf-simple-form .hp-form__field { grid-column: 1 / -1; }
  .hp-form.nvf-simple-form .hp-form__button { width: 100%; }
}
