.vehicle-report-modal__overlay[hidden] { display: none !important; }
.vehicle-report-modal-widget { width: 100%; text-align: center; }
.vehicle-report-modal__launch {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-sizing: border-box; width: 210px; max-width: 100%; min-height: 46px; padding: 10px 18px; border: 0;
  margin: 0 auto;
  border-radius: 9px; background: #e12c31; color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4;
  cursor: pointer; transition: background-color .15s ease;
}
.vehicle-report-modal__launch:hover, .vehicle-report-modal__launch:focus-visible { background: #c9212b; color: #fff; }
.vehicle-report-modal__flag { font-size: 19px; line-height: 1; }
.vehicle-report-modal__overlay {
  position: fixed; inset: 0; z-index: 999999; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.58); overflow-y: auto; overscroll-behavior: contain;
}
.vehicle-report-modal__dialog {
  position: relative; box-sizing: border-box; width: min(100%, 610px);
  max-height: min(90dvh, calc(100dvh - 40px)); overflow-y: auto;
  padding: 26px 36px 24px; border-radius: 9px; background: #fff;
  color: #252935; box-shadow: 0 12px 45px rgba(0,0,0,.22);
  font-family: inherit;
}
.vehicle-report-modal__dialog h2 {
  margin: 0 34px 7px 0; font-size: 30px; line-height: 1.25;
  font-weight: 500; color: #20232a;
}
.vehicle-report-modal__listing-title {
  margin: 0 0 18px; padding: 0; color: #727987;
  font-size: 14px; font-weight: 400; line-height: 1.5;
  overflow-wrap: anywhere;
}
.vehicle-report-modal__close {
  position: absolute; top: 13px; right: 13px; width: 34px; height: 34px;
  padding: 0; border: 0; background: transparent; color: #222;
  font-size: 29px; line-height: 1; cursor: pointer;
}
.vehicle-report-modal__close:hover { color: #e12c31; }
.vehicle-report-modal__dialog :is(button, input, textarea, select):focus-visible {
  outline: 2px solid #e12c31; outline-offset: 3px;
}
.vehicle-report-modal__form .wpcf7 form { margin: 0; }
.vehicle-report-modal__form .wpcf7-list-item { display: block; margin: 0 0 6px; }
.vehicle-report-modal__form .wpcf7-list-item-label { margin-left: 3px; }
.vehicle-report-modal__form textarea {
  display: block; box-sizing: border-box; width: 100%; max-width: 100%;
  height: 120px !important; min-height: 110px; max-height: 150px; padding: 12px; border: 1px solid #bfc4cd;
  border-radius: 4px; font: inherit; margin-bottom: 0;
}
.vehicle-report-modal__counter {
  text-align: right; font-size: 12px; line-height: 1.5; color: #727987;
  margin: 4px 0 8px;
}
.vehicle-report-modal__form .wpcf7-submit,
.vehicle-report-modal__form button[type="submit"] {
  margin-top: 8px; min-width: 120px; padding: 12px 26px;
  border: 0; border-radius: 9px; background: #e12c31;
  color: #fff; cursor: pointer; font: inherit; font-weight: 700 !important;
}
.vehicle-report-modal__form .wpcf7-submit:hover,
.vehicle-report-modal__form button[type="submit"]:hover { background: #c9212b; }
@media (max-width: 600px) {
  .vehicle-report-modal__overlay { align-items: center; justify-content: center; padding: 12px; }
  .vehicle-report-modal__dialog {
    max-height: min(90dvh, calc(100dvh - 24px)); margin: auto; padding: 24px 19px;
  }
  .vehicle-report-modal__dialog h2 { font-size: 25px; }
}
/* Compact fields on phones; the footer remains fully in view below. */
@media (max-width: 600px) {
  .vehicle-report-modal__overlay {
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
  }
  .vehicle-report-modal__dialog { max-height: calc(100dvh - 20px); padding: 18px 16px 14px; }
  .vehicle-report-modal__dialog h2 { margin-bottom: 5px; }
  .vehicle-report-modal__listing-title { margin-bottom: 12px; }
  .vehicle-report-modal__form .wpcf7-list-item { margin-bottom: 4px; }
  .vehicle-report-modal__form textarea { height: 94px !important; min-height: 94px; max-height: 120px; }
  .vehicle-report-modal__counter { margin-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .vehicle-report-modal__launch { transition: none; }
}

/* Natural single-scroll modal: no nested scrollbar or fixed form footer. */
.vehicle-report-modal__dialog {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vehicle-report-modal__dialog::-webkit-scrollbar { display: none; }
.vehicle-report-modal__form .wpcf7-response-output {
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 8px !important;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.vehicle-report-modal__form .wpcf7-form.vehicle-report-modal__has-field-error
.wpcf7-response-output { display: none; }
.vehicle-report-modal__form #submit-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 8px 0 0;
}
@media (min-width: 601px) {
  .vehicle-report-modal__overlay { padding: 12px; }
  .vehicle-report-modal__dialog {
    max-height: calc(100dvh - 24px);
    padding-top: 20px;
    padding-bottom: 18px;
  }
  .vehicle-report-modal__listing-title { margin-bottom: 13px; }
  .vehicle-report-modal__form .wpcf7-list-item { margin-bottom: 4px; }
  .vehicle-report-modal__form textarea { height: 105px !important; min-height: 95px; }
}
@media (max-width: 600px) {
  .vehicle-report-modal__overlay {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .vehicle-report-modal__dialog {
    max-height: calc(100dvh - 24px);
    padding: 18px 16px;
  }
  .vehicle-report-modal__form #submit-report { min-height: 44px; }
}
