/* Dealer-referral consent block (app/templates/website/components/_dealer_consent.html).
   Inherits the form's text colour so it reads on the light contact page and on
   the dark quote / Style My Car / flow pages alike. */
.fg-dconsent {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 1rem 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-left: 3px solid #B8860B;
  font-size: 0.95rem;           /* 15.2px desktop; consent text must be readable */
  line-height: 1.55;
  text-align: left;
}
.fg-dconsent[hidden] { display: none; }
.fg-dconsent__heading {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fg-dconsent__intro { margin: 0 0 0.75rem; white-space: pre-line; opacity: 0.92; }
.fg-dconsent__dealer { font-weight: 700; }
.fg-dconsent__choice {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.55rem 0;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  cursor: pointer;
}
.fg-dconsent__choice input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: #B8860B;
  cursor: pointer;
}
.fg-dconsent__choice input:focus-visible { outline: 2px solid #B8860B; outline-offset: 2px; }
.fg-dconsent__closing { margin: 0.6rem 0 0; font-size: 0.875rem; opacity: 0.9; }
.fg-dconsent__links { margin: 0.4rem 0 0; font-size: 0.875rem; }
.fg-dconsent__links a { color: inherit; text-decoration: underline; }
@media (max-width: 480px) {
  .fg-dconsent { padding: 0.85rem 0.75rem 0.6rem; font-size: 1rem; }   /* 16px on phones */
  .fg-dconsent__choice { grid-template-columns: 1.5rem 1fr; padding: 0.7rem 0; }
  .fg-dconsent__choice input { width: 1.35rem; height: 1.35rem; }
}
