/* Native lead popup: Ford typography, colors, controls and responsive layout.
 * Keep selectors scoped to this modal; submission behavior lives in eprice.js.
 */
#get_e_price {
  --hf-eprice-accent: var(--hf-skyview, #066fef);
  --hf-eprice-accent-hover: var(--hf-interactive-hover, #044ea7);
  --hf-eprice-error: var(--hf-danger, #bf152c);
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: var(--hf-text, #333);
  font: 400 16px/1.5 var(--hf-font, Arial, Helvetica, sans-serif);
  opacity: 0;
  transition: opacity .15s ease;
}
#get_e_price *, #get_e_price *::before, #get_e_price *::after { box-sizing: border-box; }
#get_e_price[hidden] { display: none; }
#get_e_price.is-open { opacity: 1; }
html.hf-eprice-open { overflow: hidden; }
#get_e_price .hf-eprice-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 20 46 / .58);
}
#get_e_price .hf-eprice-modal__dialog {
  position: relative;
  width: 720px;
  max-width: calc(100% - 32px);
  margin: 24px auto;
  background: var(--hf-paper, #fff);
  border: 1px solid var(--hf-line-soft, #e5e5e5);
  border-radius: var(--hf-radius, 8px);
  box-shadow: var(--hf-shadow-lg, 0 8px 22px rgb(0 20 46 / .32));
  overflow: hidden;
  transform: translateY(12px);
  transition: transform .2s ease;
}
#get_e_price.is-open .hf-eprice-modal__dialog { transform: none; }
#get_e_price .hf-eprice-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px 16px;
  background: var(--hf-paper, #fff);
  border-bottom: 1px solid var(--hf-line-soft, #e5e5e5);
}
#get_e_price .hf-eprice-modal__eyebrow {
  margin: 0 0 6px;
  color: var(--hf-brand-700, #00095b);
  font: 600 12px/1.4 var(--hf-font, Arial, Helvetica, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}
#get_e_price .hf-eprice-modal__title {
  margin: 0;
  color: var(--hf-ink, #00142e);
  font: 600 28px/1.2 var(--hf-font, Arial, Helvetica, sans-serif);
  letter-spacing: -.02em;
  text-transform: none;
}
#get_e_price .hf-eprice-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: var(--hf-ink, #00142e);
  background: var(--hf-surface-3, #f0f0f0);
  border: 1px solid transparent;
  border-radius: var(--hf-radius, 8px);
  font: 400 30px/1 var(--hf-font, Arial, Helvetica, sans-serif);
  cursor: pointer;
  transition: background-color .15s ease;
}
#get_e_price .hf-eprice-modal__close:hover { background: var(--hf-line-soft, #e5e5e5); }
#get_e_price .hf-eprice-modal__body { padding: 20px 32px 24px; }
#get_e_price .hf-eprice-form { margin: 0; }
#get_e_price .hf-eprice-form__intro {
  margin: 0 0 20px;
  color: var(--hf-muted, #666);
  font: 400 14px/1.5 var(--hf-font, Arial, Helvetica, sans-serif);
}
#get_e_price .hf-eprice-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
#get_e_price .hf-eprice-form__group { min-width: 0; margin: 0; }
#get_e_price .hf-eprice-form__label {
  display: block;
  margin: 0 0 8px;
  color: var(--hf-ink, #00142e);
  font: 600 13px/1.4 var(--hf-font, Arial, Helvetica, sans-serif);
  text-transform: none;
  letter-spacing: 0;
}
#get_e_price .hf-eprice-form__label span { color: var(--hf-muted, #666); font-weight: 400; }
/* The labels live inside the fields as placeholders (as on Old Orchard
   Nissan): kept in the markup for screen readers, hidden on screen. */
#get_e_price .hf-eprice-form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
#get_e_price input[type="text"],
#get_e_price input[type="tel"],
#get_e_price textarea {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 12px 14px;
  color: var(--hf-ink, #00142e);
  background: var(--hf-surface-1, #fafafa);
  border: 1px solid var(--hf-line, #b2b2b2);
  border-radius: var(--hf-radius, 8px);
  box-shadow: none;
  font: 400 16px/24px var(--hf-font, Arial, Helvetica, sans-serif);
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#get_e_price textarea { height: 80px; min-height: 80px; resize: vertical; }
#get_e_price input::placeholder, #get_e_price textarea::placeholder {
  color: var(--hf-muted, #666);
  opacity: 1;
  text-transform: none;
}
#get_e_price input[type="text"]:focus,
#get_e_price input[type="tel"]:focus,
#get_e_price textarea:focus {
  border-color: var(--hf-brand-700, #00095b);
  box-shadow: var(--hf-focus-halo, 0 0 0 2px rgb(0 9 91 / .18));
}
#get_e_price input.validation_error, #get_e_price input.validation_error:focus {
  border-color: var(--hf-eprice-error);
  background-color: var(--hf-danger-bg, #f9e8ea);
}
#get_e_price .cdhl-terms-privacy-container { margin: 20px 0; }
#get_e_price .cdhl-terms-privacy-container label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--hf-text, #333);
  font: 400 14px/22px var(--hf-font, Arial, Helvetica, sans-serif);
  cursor: pointer;
}
#get_e_price input.terms {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  background: var(--hf-paper, #fff);
  border: 1px solid var(--hf-stroke, #808080);
  border-radius: 4px;
  cursor: pointer;
}
#get_e_price input.terms:checked {
  background: var(--hf-eprice-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--hf-eprice-accent);
}
#get_e_price .cdhl-terms-privacy-container.validation_error label { color: var(--hf-eprice-error); }
#get_e_price .cdhl-terms-privacy-container.validation_error input.terms { border-color: var(--hf-eprice-error); }
#get_e_price .hf-eprice-form__submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hf-line-soft, #e5e5e5);
}
#get_e_price .hf-eprice-form__submit-row > .hf-eprice-form__group { max-width: 100%; }
#get_e_price .cf-turnstile { min-height: 65px; max-width: 100%; overflow-x: auto; }
#get_e_price .hf-eprice-form__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
#get_e_price .hf-eprice-form__send {
  min-height: 48px;
  margin: 0;
  padding: 12px 28px;
  background: var(--hf-eprice-accent);
  border: 1px solid transparent;
  border-radius: var(--hf-radius-pill, 999px);
  color: var(--hf-paper, #fff);
  font: 600 15px/22px var(--hf-font, Arial, Helvetica, sans-serif);
  text-transform: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
#get_e_price .hf-eprice-form__send:hover { background: var(--hf-eprice-accent-hover); }
#get_e_price .hf-eprice-form__send:disabled { opacity: .65; cursor: wait; }
#get_e_price .hf-eprice-modal__close:focus-visible,
#get_e_price .hf-eprice-form__send:focus-visible,
#get_e_price input.terms:focus-visible {
  outline: 2px solid var(--hf-focus-ring, #000);
  outline-offset: 3px;
}
#get_e_price .hf-eprice-form__actions .get_e_price_test_spinimg { order: -1; }
#get_e_price .get_e_price_test_spinimg:empty { display: none; }
#get_e_price .cd-loader {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--hf-line-soft, #e5e5e5);
  border-top-color: var(--hf-eprice-accent);
  border-radius: 50%;
  animation: hf-eprice-spin .8s linear infinite;
}
@keyframes hf-eprice-spin { to { transform: rotate(360deg); } }
#get_e_price .get_e_price_test_msg { margin: 0; transition: opacity .6s; }
#get_e_price .get_e_price_test_msg:not([hidden]) { margin-top: 20px; }
#get_e_price .get_e_price_test_msg.is-fading { opacity: 0; }
#get_e_price .alert { padding: 16px; border: 1px solid currentColor; border-radius: var(--hf-radius, 8px); }
#get_e_price .alert p { margin: 0; }
#get_e_price .alert-success { background: var(--hf-success-bg, #e5f3e6); color: var(--hf-success, #008200); }
#get_e_price .alert-danger { background: var(--hf-danger-bg, #f9e8ea); color: var(--hf-eprice-error); }
@media (max-width: 600px) {
  #get_e_price .hf-eprice-modal__dialog { max-width: calc(100% - 24px); margin: 12px auto; }
  #get_e_price .hf-eprice-modal__header { align-items: flex-start; padding: 20px; }
  #get_e_price .hf-eprice-modal__title { font-size: 24px; }
  #get_e_price .hf-eprice-modal__body { padding: 20px; }
  #get_e_price .hf-eprice-form__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #get_e_price .hf-eprice-form__actions { width: 100%; }
  #get_e_price .hf-eprice-form__send { flex: 1; }
}
@media (max-width: 360px) {
  #get_e_price .hf-eprice-modal__dialog { max-width: calc(100% - 16px); margin: 8px auto; }
  #get_e_price .hf-eprice-modal__header, #get_e_price .hf-eprice-modal__body { padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #get_e_price, #get_e_price *, #get_e_price *::before, #get_e_price *::after { transition: none; }
}
