/* ==========================================================================
   Overrides layered after the theme's compiled app.css.
   Only three concerns live here:
   1. Font swap: Nunito Sans replaces proxima-nova (client decision #4)
   2. Cookie banner (ours — the live one is injected by HubSpot at runtime)
   3. Quote form styling (replaces the runtime-injected Klaviyo form)
   ========================================================================== */

/* --- 1. Font swap --- */
html, body {
  font-family: "Nunito Sans", sans-serif;
}

/* --- 2. Cookie banner (matches live: centered modal + backdrop) --- */
.cookie-banner { position: fixed; inset: 0; z-index: 200; display: none; }
.cookie-banner.is-visible { display: block; }
.cookie-banner__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.cookie-banner__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; max-width: 620px; width: calc(100% - 32px);
  max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 32px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.cookie-banner__dialog h2 { margin: 0 0 14px; font-size: 26px; line-height: 1.2; }
.cookie-banner__dialog p { font-size: 15px; line-height: 22px; margin-bottom: 12px; }
.cookie-banner__dialog a { color: #ba0c2f; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.cookie-banner__settings { background: none; border: 0; font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.cookie-banner__secondary { border: 1px solid #171a1f; background: #fff; color: #171a1f; }
.cookie-banner__categories { display: grid; gap: 10px; margin-top: 18px; }
.cookie-banner__category { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #d7d9dc; padding: 14px 16px; cursor: pointer; }
.cookie-banner__category span { display: grid; gap: 3px; }
.cookie-banner__category small { color: #555; font-size: 13px; line-height: 1.4; }
.cookie-banner__category input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: #ba0c2f; }
.has-cookie-dialog { overflow: hidden; }
/* Cookie settings is a <button> sitting inside the footer legal menu, so it
   must behave exactly like its sibling links: white at rest with no underline,
   brand red + underline on hover/focus, over the theme's 0.4s colour easing. */
.footer__cookie-settings { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: none; transition: color .4s cubic-bezier(.4, 0, .2, 1); }
.footer__cookie-settings:hover, .footer__cookie-settings:focus-visible { color: #ba0c2f; text-decoration: underline; }

@media (max-width: 520px) {
  .cookie-banner__dialog { padding: 24px; }
  .cookie-banner__actions .btn { flex: 1 1 100%; }
  .cookie-banner__settings { flex: 1 1 100%; text-align: center; }
}

/* --- 3. Quote form --- */
.quote-form { display: grid; gap: 20px; }
.quote-form__grid { display: grid; gap: 20px; }
.quote-form__field { min-width: 0; }
.quote-form__field > label,
.quote-form__preferences legend { display: block; margin-bottom: 8px; font-weight: 700; line-height: 1.35; }
.quote-form__field > label > .quote-form__input { margin-top: 8px; font-weight: 400; }
.quote-form__input {
  display: block;
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  background: #fff;
}
.quote-form__input:focus { outline: 2px solid #ba0c2f; outline-offset: -1px; }
.quote-form__input.is-invalid { border-color: #ba0c2f; }
.quote-form__select {
  min-height: 48px;
  appearance: none;
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23555' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 44px;
}
.quote-form__select:disabled { cursor: not-allowed; background-color: #ececec; color: #555; }
.quote-form__textarea { min-height: 120px; resize: vertical; }
.quote-form__date { min-height: 48px; color: #222; }
.quote-form__help { margin: 6px 0 0; color: #555; font-size: 14px; line-height: 1.4; }
.quote-form__privacy,
.quote-form__preferences { margin: 0; padding: 0; border: 0; }
.quote-form__privacy p,
.quote-form__preferences p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.quote-form__privacy a { color: #ba0c2f; text-decoration: underline; }
.quote-form__checkboxes { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.quote-form__checkboxes label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; line-height: 1.4; }
.quote-form__checkboxes input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: #ba0c2f; }
.quote-form__actions { margin-top: 4px; }
.quote-form__status { font-weight: 600; }
.quote-form__status.is-error { color: #ba0c2f; }
.quote-form__status.is-success { color: #15803d; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll table { min-width: 720px; }

@media (min-width: 768px) {
  .quote-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- 4. Footer links: underline on hover only --- */
.footer a,
.footer .menu a,
.footer__link {
  text-decoration: none;
}
.footer a:hover,
.footer a:focus-visible,
.footer .menu a:hover,
.footer .menu a:focus-visible,
.footer__link:hover,
.footer__link:focus-visible {
  text-decoration: underline;
}
