/* Footer WhatsApp icon is now a native button opening this contact chooser. */
.footer-social-link[data-modal-target="partner-contact"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  padding: 0;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

/* Contact only. Other dialogs retain their original overlay and appearance. */
.modal-overlay:has(.narrix-contact:not([hidden])) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  align-items: center;
}
#modal-partner-contact.narrix-contact {
  color-scheme: light;
  max-height: calc(100svh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  background: #fafbfc;
  border: 1px solid #fff;
  border-radius: 24px;
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(23, 42, 64, .12);
  color: #142131;
  text-align: left;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a8b3bf #fafbfc;
}
.narrix-contact .nc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dce2e8;
  border-radius: 50%;
  color: #4c5b6d;
  background: #fff;
  transition: background 180ms ease, color 180ms ease;
}
.narrix-contact svg { width: 24px; height: 24px; }
.narrix-contact .nc-close svg { width: 19px; height: 19px; }
.narrix-contact .nc-eyebrow {
  margin: 0 40px 24px 0;
  color: #286aba;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.6;
}
.narrix-contact .nc-title {
  margin: 0;
  color: #142131;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.18;
}
.narrix-contact .nc-title span { color: #2874cf; }
.narrix-contact .nc-intro { margin: 20px 0 28px; color: #526173; font-size: 15px; line-height: 1.7; }
.narrix-contact .nc-actions { display: grid; gap: 10px; }
.narrix-contact .nc-action {
  display: flex;
  align-items: center;
  min-height: 84px;
  border: 1px solid #dce2e8;
  border-radius: 12px;
  background: #fff;
  color: #142131;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}
.narrix-contact .nc-action--primary { background: #2269bd; color: #fff; border-color: #2269bd; }
.narrix-contact .nc-icon { flex: 0 0 24px; }
.narrix-contact .nc-action-copy { display: grid; min-width: 0; gap: 3px; }
.narrix-contact .nc-action strong { font-weight: 700; line-height: 1.4; }
.narrix-contact .nc-action small { color: #526173; font-size: 12px; line-height: 1.5; }
.narrix-contact .nc-action--primary small { color: #fff; }
.narrix-contact .nc-arrow { margin-left: auto; flex-shrink: 0; transition: transform 180ms ease; }
.narrix-contact .nc-arrow svg { width: 20px; height: 20px; }
.narrix-contact .nc-footer { margin-top: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid #dce2e8; color: #526173; font-size: 11px; }
.narrix-contact :is(a, button):focus-visible { outline: 3px solid #125ab3; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .narrix-contact .nc-close:hover { background: #eaf1f9; color: #142131; }
  .narrix-contact .nc-action:hover { border-color: #2874cf; background: #f0f5fb; }
  .narrix-contact .nc-action--primary:hover { background: #1859a3; border-color: #1859a3; }
  .narrix-contact .nc-action:hover .nc-arrow { transform: translateX(3px); }
}
@media (max-width: 600px) {
  #modal-partner-contact.narrix-contact { border-radius: 20px; }
  .narrix-contact .nc-eyebrow { font-size: 9px; margin-bottom: 24px; }
  .narrix-contact .nc-intro { font-size: 13px; margin: 18px 0 24px; }
  .narrix-contact .nc-action { min-height: 80px; }
  .narrix-contact .nc-action small { font-size: 11px; }
  .narrix-contact .nc-footer { margin-top: 24px; font-size: 10px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #modal-partner-contact.narrix-contact, .narrix-contact *, .modal-overlay:has(.narrix-contact:not([hidden])) { transition: none; transform: none; }
}
@media (forced-colors: active) {
  #modal-partner-contact.narrix-contact, .narrix-contact .nc-action, .narrix-contact .nc-close { border: 1px solid CanvasText; }
  .narrix-contact :is(a, button):focus-visible { outline-color: Highlight; }
}

/* FKF footer: shared contact link, original heading and social icons. */
.footer-outro--contact-link .footer-contact-action { margin: 0 0 36px; }
.footer-outro--contact-link .footer-socials { margin-top: 0; }
@media (max-width: 600px) {
  .footer-outro--contact-link .footer-contact-action { margin-bottom: 30px; }
}


/* One shared two-column contact modal, with quiet underline fields. */
#modal-partner-contact.narrix-contact { width: min(1040px, 100%); padding: 48px; overflow-y: auto; }
.narrix-contact .nc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.narrix-contact .nc-contact-side { min-width: 0; }
.narrix-contact .nc-form-side { min-width: 0; padding-left: 40px; border-left: 1px solid #e2e6eb; display: flex; flex-direction: column; }
.narrix-contact .nc-title { font-size: clamp(30px, 3.5vw, 44px); }
.narrix-contact .nc-actions { margin-top: 28px; }
.narrix-contact .nc-action { padding: 16px; gap: 12px; }
.narrix-contact .nc-action strong { font-size: 14px; }
.narrix-contact .nc-note { color: #526173; font-size: 11px; margin: 28px 0 0; }
.narrix-contact .nc-form { display: grid; gap: 24px; margin: 0; }
.narrix-contact .nc-form[hidden], .narrix-contact .nc-thanks[hidden] { display: none; }
.narrix-contact .nc-form-title { margin: 0 0 8px; color: #142131; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.narrix-contact .nc-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.narrix-contact .nc-field { position: relative; display: block; color: #344457; font-size: 13px; font-weight: 400; line-height: 1.5; }
.narrix-contact .nc-field-label { position: absolute; top: 18px; left: 0; max-width: 100%; color: #526173; font-size: 13px; line-height: 1.5; pointer-events: none; transform-origin: left top; transition: transform 160ms ease, color 160ms ease; }
.narrix-contact .nc-field-label small { color: #667587; font-size: 11px; margin-left: 6px; }
.narrix-contact .nc-field :is(input, textarea):focus + .nc-field-label,
.narrix-contact .nc-field :is(input, textarea):not(:placeholder-shown) + .nc-field-label { transform: translateY(-15px) scale(.85); color: #344457; }
.narrix-contact .nc-field input:autofill + .nc-field-label { transform: translateY(-15px) scale(.85); }
.narrix-contact .nc-field input:-webkit-autofill + .nc-field-label { transform: translateY(-15px) scale(.85); }
.narrix-contact .nc-field :is(input, textarea) { box-sizing: border-box; display: block; width: 100%; margin: 0; padding: 26px 0 9px; border: 0; border-bottom: 1px solid #b9c3cf; border-radius: 0; background: transparent; color: #142131; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; box-shadow: none; }
.narrix-contact .nc-field textarea { min-height: 122px; resize: vertical; }
.narrix-contact .nc-field ::placeholder { color: #6b7887; opacity: 1; font-size: 13px; }
.narrix-contact .nc-field :is(input, textarea):focus-visible { outline: 2px solid #2269bd; outline-offset: 4px; }
.narrix-contact .nc-privacy { margin: 0; font-size: 10px; line-height: 1.7; color: #526173; }
.narrix-contact .nc-privacy a { color: inherit; text-underline-offset: 3px; }
.narrix-contact .nc-submit { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 12px 18px; border: 0; border-radius: 8px; background: #142131; color: #fff; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.narrix-contact .nc-submit:hover { background: #2269bd; }
.narrix-contact .nc-submit:disabled { opacity: .65; cursor: wait; }
.narrix-contact .nc-status { margin: 0; color: #9b3232; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.narrix-contact .nc-status:empty { display: none; }
.narrix-contact .nc-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.narrix-contact .nc-thanks { margin: auto 0; padding: 30px 0; }
.narrix-contact .nc-thanks .nc-submit { display: flex; width: fit-content; max-width: 100%; margin: 28px auto 0; }
.narrix-contact .nc-thanks-mark { color: #2269bd; font-size: 32px; }
.narrix-contact .nc-thanks h3 { font-size: 28px; line-height: 1.2; letter-spacing: -.04em; font-weight: 500; }
.narrix-contact .nc-thanks p { font-size: 14px; color: #526173; line-height: 1.7; margin-bottom: 28px; }
@media (max-width: 760px) {
  #modal-partner-contact.narrix-contact { width: min(540px, 100%); padding: 36px 24px 24px; }
  .narrix-contact .nc-layout { grid-template-columns: 1fr; gap: 30px; }
  .narrix-contact .nc-fields { grid-template-columns: 1fr; gap: 24px; }
  .narrix-contact .nc-form-side { padding: 28px 0 0; border-left: 0; border-top: 1px solid #e2e6eb; }
  .narrix-contact .nc-title { font-size: 30px; }
  .narrix-contact .nc-thanks { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .narrix-contact .nc-field-label { transition: none; }
}
