/* Local preview contact widget. Interactions are wired by contact-float.js. */
.contact-widget,
.contact-widget *,
.contact-widget *::before,
.contact-widget *::after { box-sizing: border-box; }

.contact-widget [hidden] { display: none !important; }
.contact-widget .screen-reader-text, .contact-widget__copy-buffer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.contact-widget {
  --contact-green: #25d366;
  --contact-ink: #063845;
  --contact-muted: #587075;
  position: fixed;
  z-index: 9900;
  right: 22px;
  bottom: 22px;
  color: var(--contact-ink);
  font-family: inherit;
}
.contact-widget--mobile-only { display: none; }

.contact-widget__launchers { display: grid; gap: 10px; justify-items: end; }

.contact-widget__email-launcher,
.contact-widget__whatsapp-launcher {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e4e1;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0, 34, 42, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-widget__email-launcher { color: #087f68; background: #fff; }
.contact-widget__email-launcher svg { width: 25px; height: 25px; }
.contact-widget__icon { display: grid; place-items: center; }
.contact-widget__whatsapp-launcher { border: 0; background: var(--contact-green); cursor: pointer; }
.contact-widget__whatsapp-launcher img { width: 27px; height: 27px; filter: brightness(0) invert(1); }
.contact-widget__mobile-action { display: none; }
.contact-widget__top-launcher { display: none; }
.contact-widget__email-launcher:hover,
.contact-widget__whatsapp-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 80, 58, .26); }
.contact-widget__email-launcher:focus-visible,
.contact-widget__whatsapp-launcher:focus-visible,
.contact-widget__mobile-action:focus-visible,
.contact-widget__top-launcher:focus-visible,
.contact-panel a:focus-visible,
.contact-panel button:focus-visible,
.email-panel a:focus-visible,
.email-panel button:focus-visible { outline: 3px solid #079d79; outline-offset: 3px; }

.contact-panel,
.email-panel {
  position: absolute;
  right: 0;
  bottom: 128px;
  width: min(380px, calc(100vw - 30px));
  max-height: calc(100dvh - 170px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #d9e4e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 34, 42, .24);
}

.contact-panel__close,
.email-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #52676b;
  background: #f1f6f5;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-panel h2,
.email-panel h2 { margin: 0; padding-right: 42px; color: var(--contact-ink); font-size: 25px; line-height: 1.2; }
.contact-panel__intro { margin: 8px 0 18px; color: var(--contact-muted); font-size: 14px; line-height: 1.55; }
.contact-panel__form { display: grid; gap: 12px; }
.contact-panel__field { display: grid; gap: 6px; }
.contact-panel__field span { color: #2f4a50; font-size: 13px; font-weight: 800; }
.contact-panel__field input,
.contact-panel__field textarea { width: 100%; padding: 11px 12px; border: 1px solid #ccd9d6; border-radius: 6px; color: #17383e; background: #fff; font: inherit; font-size: 14px; }
.contact-panel__field textarea { min-height: 112px; resize: vertical; }
.contact-panel__field input:focus,
.contact-panel__field textarea:focus { border-color: #079d79; outline: 0; box-shadow: 0 0 0 3px rgba(7, 157, 121, .14); }
.contact-panel__field textarea::placeholder { color: #73878a; opacity: 1; }
.contact-panel__preview-note { margin: -2px 0 0; color: #566d72; font-size: 12px; line-height: 1.45; }
.contact-panel__submit,
.contact-panel__whatsapp,
.email-panel__copy { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 900; }
.contact-panel__submit { border: 1px solid #079d79; color: #fff; background: #079d79; cursor: pointer; }.contact-panel__submit:disabled { border-color: #999; color: #111; background: #fff; cursor: not-allowed; opacity: .58; }
.contact-panel__status { min-height: 18px; margin: -2px 0 0; color: #566d72; font-size: 12px; line-height: 1.45; }.contact-panel__status.is-success { color: #087f68; }.contact-panel__status.is-warning { color: #8b5b00; }.contact-panel__status.is-error { color: #b02a37; }
.contact-panel__whatsapp { border: 1px solid #999; color: #111; background: #fff; text-decoration: none; }
.contact-panel__privacy { margin: 12px 0 0; color: #6b7c80; font-size: 11px; line-height: 1.5; }
.contact-panel__privacy a { color: #087f68; text-decoration: underline; }

.email-panel { display: grid; gap: 14px; }
.email-panel__address { color: #087f68; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.email-panel__copy { width: 100%; border: 0; color: #fff; background: #079d79; cursor: pointer; }
.email-panel__status { min-height: 18px; color: #566d72; font-size: 12px; line-height: 1.45; }
.email-panel p { margin: 0; color: #6b7c80; font-size: 12px; line-height: 1.5; }

@media (max-width: 768px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .contact-widget {
    position: fixed;
    z-index: 900;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 7px max(12px, env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #d9e4e1;
    background: #fff;
    box-shadow: 0 -6px 20px rgba(0, 34, 42, .08);
  }
  .contact-widget--mobile-only { display: block; }
  .contact-widget__launchers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; justify-items: stretch; }
  .contact-widget__email-launcher,
  .contact-widget__whatsapp-launcher { display: none; }
  .contact-widget__mobile-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; color: var(--contact-ink); text-decoration: none; }
  .contact-widget__mobile-action .contact-widget__icon { width: 42px; height: 42px; border-radius: 50%; color: #fff; background: #0b614f; }
  .contact-widget__mobile-action svg,
  .contact-widget__mobile-action img { width: 23px; height: 23px; }
  .contact-widget__mobile-action img { filter: brightness(0) invert(1); }
  .contact-widget .contact-widget__mobile-action .contact-widget__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: nowrap; font-size: 12px; line-height: 1.2; font-weight: 700; }
  .contact-widget__top-launcher.is-visible { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(94px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 36px; height: 36px; padding: 7px; border: 1px solid #d9e4e1; border-radius: 50%; color: #fff; background: #0b614f; box-shadow: 0 4px 14px rgba(0, 34, 42, .2); cursor: pointer; }
  .contact-widget__top-launcher svg { width: 20px; height: 20px; }
  .contact-panel,
  .email-panel { position: fixed; z-index: 10001; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 28px); max-height: calc(100dvh - 98px - env(safe-area-inset-bottom, 0px)); padding: 20px; }
}

@media (max-width: 320px) {
  .contact-panel,
  .email-panel { right: 8px; width: calc(100vw - 16px); padding: 16px; }
  .contact-panel h2,
  .email-panel h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-widget__email-launcher,
  .contact-widget__whatsapp-launcher,
  .contact-widget__mobile-action,
  .contact-widget__top-launcher { transition: none; }
}
