/* Load after parent 2.0.1. Scope fixes to the affected components. */
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 20px;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid #d8d8d3;
  border-top: 4px solid var(--ahl-color-accent, #ff383e);
  border-radius: 4px;
}
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] > .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
}
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] > :is(.full, .submit, .form-note, .ahl-form-feedback, .consultation-form-heading),
body.ahl-site .demo-form > .field.full { grid-column: 1 / -1; }
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] label {
  color: #242424;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] .field :is(input, select, textarea) {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #a9a9a3;
  border-radius: 3px;
  background: #fafaf9;
  color: #151515;
  font: 400 16px/1.5 var(--ahl-font-body, Arial), sans-serif;
  color-scheme: light;
}
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] .field textarea { min-height: 112px; resize: vertical; }
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] .field :is(input, select, textarea):focus-visible {
  outline: 2px solid #ad2027;
  outline-offset: 2px;
  background: #fff;
}
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] .field [aria-invalid="true"] { border: 2px solid #ad2027; background: #fff6f6; }
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] .submit { width: 100%; min-height: 54px; margin: 0; }
body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] .ahl-form-feedback:empty { display: none; }
body.ahl-site .demo-form .consultation-hint { margin: 0; font-size: 13px; color: #555; line-height: 1.5; }

body.ahl-site .sn-faq details { border-inline: 1px solid #deded9; }
body.ahl-site .sn-faq summary {
  padding: 20px 60px 20px clamp(18px, 3vw, 28px);
  line-height: 1.45;
  font-size: clamp(20px, 2.2vw, 24px);
  overflow-wrap: anywhere;
}
body.ahl-site .sn-faq summary::after { right: 24px; top: 50%; transform: translateY(-50%); }
body.ahl-site .sn-faq details > p {
  box-sizing: border-box;
  max-width: 85ch;
  margin: 0;
  padding: 0 clamp(18px, 3vw, 28px) 24px;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
body.ahl-site .sn-faq summary:focus-visible { outline: 2px solid #ad2027; outline-offset: -4px; }

/* Local masks also work when a page-content sanitizer removed inline SVGs. */
body.ahl-site .footer-socials a[href*="youtube.com"] { --ahl-social-icon: url("youtube.svg"); }
body.ahl-site .footer-socials a[href*="wa.me/"] { --ahl-social-icon: url("whatsapp.svg"); }
body.ahl-site .footer-socials a[href^="mailto:"] { --ahl-social-icon: url("email.svg"); }
body.ahl-site .footer-socials a:is([href*="youtube.com"], [href*="wa.me/"], [href^="mailto:"])::before {
  content: "";
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--ahl-social-icon) center / contain no-repeat;
  mask: var(--ahl-social-icon) center / contain no-repeat;
}
body.ahl-site .footer-socials a:is([href*="youtube.com"], [href*="wa.me/"], [href^="mailto:"]) > :is(svg, img) { display: none; }
body.ahl-site .footer-socials a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
body.ahl-site .header #nav > a:not(.nav-cta)[aria-current="location"]::after { transform: scaleX(1); }

@media (max-width: 640px) {
  body.ahl-site form.consultation-form[data-ahl-delivery="wordpress"] { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 18px; }
}
