/* ==========================================================================
   DLZ - self-contained hero + Fluent form styling.
   Loaded after fluent-forms-public.css so plugin defaults lose on ties.

   Hero markup contract:
     section.dlz-hero[style="--dlz-hero-bg:url(...)"]
       .dlz-hero__inner
         .dlz-hero__copy   (h1, p.dlz-hero__sub, p.dlz-hero__lead, .dlz-hero__ctas)
         .dlz-hero__form   (.dlz-hero-form > title/sub + [fluentform])
   ========================================================================== */

.dlz-hero {
  --dlz-red: #B40000;
  --dlz-red-dark: #8A0000;
  --dlz-ink: #141E25;

  position: relative;
  display: flex;
  align-items: center;
  min-height: 65vh;
  padding: 56px 20px;
  background-image: var(--dlz-hero-bg);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  box-sizing: border-box;
  overflow: hidden;
}

/* Dark overlay matching the original sections (#000 @ 43%) */
.dlz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .43);
  pointer-events: none;
}

.dlz-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 48px;
  align-items: center;
}

/* ---------- Copy ---------- */
.dlz-hero__copy { min-width: 0; }

.dlz-hero__eyebrow {
  margin: 0 0 10px;
  font-family: "Lato", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.dlz-hero h1,
.dlz-hero__title {
  margin: 0 0 14px;
  font-family: "Lato", sans-serif;
  font-size: 60px;
  line-height: 1.15;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dlz-red);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.dlz-hero__sub {
  margin: 0 0 16px;
  font-family: "Lato", sans-serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

.dlz-hero__lead {
  margin: 0 0 26px;
  max-width: 62ch;
  font-family: "Lato", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, .94);
}

/* ---------- CTAs (25px pills, Lato 800, uppercase, 2px tracking) ---------- */
.dlz-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.dlz-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 25px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .05s ease;
}
.dlz-hero__btn:active { transform: translateY(1px); }
.dlz-hero__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Light pill -> red on hover (matches "Get a Free ... Quote") */
.dlz-hero__btn--light { background: #E4E4E4; color: var(--dlz-red); border-color: #E4E4E4; }
.dlz-hero__btn--light:hover { background: var(--dlz-red); color: #fff; border-color: var(--dlz-red); }

/* Solid red -> dark ink on hover (matches "TEXT FOR FAST SERVICE") */
.dlz-hero__btn--red { background: var(--dlz-red); color: #fff; border-color: var(--dlz-red); }
.dlz-hero__btn--red:hover { background: var(--dlz-ink); color: #fff; border-color: var(--dlz-ink); }

/* ---------- Form card ---------- */
.dlz-hero__form { min-width: 0; }

.dlz-hero-form {
  background: #fff;
  border-radius: 10px;
  padding: 26px 26px 24px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

.dlz-hero-form__title {
  margin: 0 0 6px;
  font-family: "Lato", sans-serif;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--dlz-ink);
}
.dlz-hero-form__sub {
  margin: 0 0 18px;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #5c666e;
}

/* ---------- Fluent form fields (hero card + light contexts) ---------- */
.dlz-hero-form .ff-el-input--label label,
.dlz-quote-form .ff-el-input--label label {
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #141E25;
  margin-bottom: 6px;
}
.dlz-hero-form .ff-el-input--label { margin-bottom: 4px; }
.dlz-hero-form .ff-el-group { margin-bottom: 14px; }

.dlz-hero-form .ff-el-is-required.asterisk-right label:after,
.dlz-quote-form .ff-el-is-required.asterisk-right label:after { color: #B40000; }

.dlz-hero-form .ff-el-form-control,
.dlz-quote-form .ff-el-form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 15px;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #141E25;
  background: #fff;
  border: 1px solid #d6d9dc;
  border-radius: 6px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dlz-hero-form .ff-el-form-control::placeholder,
.dlz-quote-form .ff-el-form-control::placeholder { color: #8a939b; opacity: 1; }

.dlz-hero-form .ff-el-form-control:focus,
.dlz-quote-form .ff-el-form-control:focus {
  outline: none;
  border-color: #B40000;
  box-shadow: 0 0 0 3px rgba(180, 0, 0, .15);
}
.dlz-hero-form textarea.ff-el-form-control { min-height: 84px; resize: vertical; }
.dlz-quote-form textarea.ff-el-form-control { min-height: 110px; resize: vertical; }

.dlz-hero-form select.ff-el-form-control,
.dlz-quote-form select.ff-el-form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23141E25' stroke-width='2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.dlz-hero-form .ff-btn-submit,
.dlz-quote-form .ff-btn-submit {
  visibility: visible !important;
  width: 100%;
  margin-top: 4px;
  padding: 14px 26px;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .5px;
  color: #fff;
  background: #B40000;
  border: 1px solid #B40000;
  border-radius: 25px;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.dlz-hero-form .ff-btn-submit:hover,
.dlz-quote-form .ff-btn-submit:hover { background: #8A0000; border-color: #8A0000; }
.dlz-hero-form .ff-btn-submit:active { transform: translateY(1px); }
.dlz-hero-form .ff-btn-submit:focus-visible,
.dlz-quote-form .ff-btn-submit:focus-visible { outline: 3px solid #B40000; outline-offset: 3px; }

.dlz-hero-form .ff-el-is-error .text-danger,
.dlz-hero-form .error.text-danger,
.dlz-quote-form .error.text-danger { color: #B40000; font-size: 13px; }
.dlz-hero-form .ff-el-form-control.ff-el-is-error { border-color: #B40000; }
.dlz-hero-form .ff-message-success {
  color: #1e4620;
  background: #e6f4e6;
  border: 1px solid #bcdfbc;
  padding: 12px 14px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
/* Landscape tablet / small laptop: still two columns, but the form column
   narrows so the headline keeps a usable measure. */
@media (max-width: 1200px) {
  .dlz-hero h1, .dlz-hero__title { font-size: 48px; }
  .dlz-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 34px;
  }
  .dlz-hero__sub { font-size: 24px; }
}

/* Tablet: the two-column grid collapses to one, so the copy and the form card
   are centred as a single column rather than left-hugging at full width. */
@media (max-width: 1024px) {
  .dlz-hero { min-height: 0; padding: 48px 18px; background-attachment: scroll; }

  .dlz-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    justify-items: center;
  }

  .dlz-hero__copy {
    width: 100%;
    max-width: 620px;
    text-align: center;
  }
  /* max-width lives on .dlz-hero__lead, so re-centre it once stacked. */
  .dlz-hero__lead { margin-left: auto; margin-right: auto; }

  .dlz-hero__ctas { justify-content: center; }

  .dlz-hero__form {
    width: 100%;
    max-width: 520px;
  }
  /* Form labels stay left-aligned - centred form fields are hard to scan. */
  .dlz-hero-form { text-align: left; }
  .dlz-hero-form__title,
  .dlz-hero-form__sub { text-align: center; }

  .dlz-hero h1, .dlz-hero__title { font-size: 42px; letter-spacing: 2px; }
  .dlz-hero__sub { font-size: 22px; }
}

@media (max-width: 767px) {
  .dlz-hero { padding: 36px 16px; }
  .dlz-hero h1, .dlz-hero__title { font-size: 32px; letter-spacing: 1.5px; line-height: 1.12; }
  .dlz-hero__eyebrow { font-size: 17px; }
  .dlz-hero__sub { font-size: 18px; }
  .dlz-hero__lead { font-size: 15.5px; }
  /* Full-width stacked CTAs; align-items overrides the centring above so the
     buttons fill the column instead of shrink-wrapping. */
  .dlz-hero__ctas { flex-direction: column; align-items: stretch; }
  .dlz-hero__btn { width: 100%; }
  .dlz-hero-form { padding: 20px 18px 18px; }
  .dlz-hero-form__title { font-size: 21px; }
  .dlz-hero-form .ff-el-form-control,
  .dlz-quote-form .ff-el-form-control { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dlz-hero__btn,
  .dlz-hero-form .ff-el-form-control,
  .dlz-hero-form .ff-btn-submit { transition: none; }
}
