.lead-dialog {
  position: fixed;
  width: min(680px, calc(100% - 32px));
  max-width: none;
  max-height: min(88dvh, 780px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #f5f5f2;
  border: 1px solid rgba(255, 138, 118, .22);
  border-radius: 14px;
  background: #0a0b0b;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .58), 0 0 50px rgba(255, 91, 62, .08);
  font-family: "Inter", sans-serif;
}

.lead-dialog::backdrop {
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.whatsapp-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("ico-whatsapp.svg") center / contain no-repeat;
  mask: url("ico-whatsapp.svg") center / contain no-repeat;
}

.lead-dialog[open] { animation: lead-dialog-enter 180ms ease-out both; }

.lead-dialog__panel {
  position: relative;
  padding: 34px;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(255, 91, 62, .08), transparent 45%),
    #0a0b0b;
}

.lead-dialog__close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  color: rgba(245, 245, 242, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.lead-dialog__close:hover {
  color: #fff;
  border-color: rgba(255, 138, 118, .5);
  background: rgba(255, 91, 62, .1);
}

.lead-dialog__close svg,
.lead-dialog__topic-arrow,
.lead-form__submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.lead-dialog__title {
  max-width: 420px;
  margin: 0;
  color: #f6f6f4;
  font: 600 clamp(27px, 5vw, 34px)/1.12 "Inter", sans-serif;
  letter-spacing: -.055em;
}

.lead-dialog.is-support .lead-dialog__title,
.lead-dialog.is-support .lead-dialog__description { max-width: none; }

.lead-dialog__description {
  max-width: 440px;
  margin: 10px 0 25px;
  color: rgba(235, 239, 236, .68);
  font: 400 14px/1.55 "Space Grotesk", sans-serif;
}

.lead-dialog__topics { display: grid; gap: 9px; }

.lead-dialog__topic {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  min-height: 80px;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  color: #f3f3f0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.lead-dialog__topic-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #f1f1ee;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .018);
}

.lead-dialog__topic-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.lead-dialog__topic-copy { display: grid; min-width: 0; gap: 4px; }
.lead-dialog__topic-copy strong { color: #f5f5f2; font: 600 15px/1.3 "Inter", sans-serif; letter-spacing: -.02em; }
.lead-dialog__topic-copy small { color: rgba(235, 239, 236, .68); font: 400 14px/1.4 "Space Grotesk", sans-serif; }
.lead-dialog__topic-arrow { color: rgba(235, 239, 236, .6); transition: color .18s ease, transform .18s ease; }

.lead-dialog__topic:hover,
.lead-dialog__topic:focus-visible {
  border-color: rgba(255, 117, 91, .56);
  background: rgba(255, 91, 62, .075);
}

.lead-dialog__topic:hover .lead-dialog__topic-arrow,
.lead-dialog__topic:focus-visible .lead-dialog__topic-arrow { color: #ff8a76; transform: translateX(3px); }

.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
.lead-form[hidden], .lead-dialog__step[hidden] { display: none !important; }
.lead-form__field[hidden], .lead-form__context[hidden], .lead-form__support-note[hidden] { display: none !important; }

.lead-form__topline {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 1px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.lead-form__topline[hidden] { display: none !important; }

.lead-form__context {
  display: flex;
  grid-column: 1 / -1;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 1px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 8px;
  background: rgba(255, 255, 255, .018);
}

.lead-form__context strong { color: #f5f5f2; font: 600 14px/1.3 "Inter", sans-serif; }
.lead-form__change-topic { padding: 5px 0; color: rgba(235, 239, 236, .78); border: 0; border-bottom: 1px solid currentColor; background: transparent; font: 500 12px/1.2 "Space Grotesk", sans-serif; cursor: pointer; }
.lead-form__change-topic:hover { color: #ff8a76; }

.lead-form__back {
  padding: 4px 0;
  color: rgba(235, 239, 236, .76);
  border: 0;
  background: transparent;
  font: 500 12px/1.4 "Space Grotesk", sans-serif;
  cursor: pointer;
}

.lead-form__back:hover { color: #ff8a76; }
.lead-form__back span { margin-right: 5px; font-size: 16px; vertical-align: -1px; }
.lead-form__progress { color: rgba(235, 239, 236, .42); font: 500 10px/1.4 "Space Grotesk", sans-serif; }

.lead-form__field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: rgba(245, 245, 242, .88);
  font: 500 12px/1.4 "Inter", sans-serif;
}

.lead-form__field small {
  margin-left: 4px;
  color: rgba(235, 239, 236, .42);
  font: 400 11px/1.4 "Space Grotesk", sans-serif;
}

.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: #f4f4f1;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  outline: 0;
  background-color: #111313;
  font: 400 13px/1.45 "Space Grotesk", sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.lead-form__field input::placeholder,
.lead-form__field textarea::placeholder { color: rgba(235, 239, 236, .34); }
.lead-form__field textarea { min-height: 94px; resize: vertical; }
.lead-form__field input:focus,
.lead-form__field select:focus,
.lead-form__field textarea:focus {
  border-color: #ff765d;
  box-shadow: 0 0 0 3px rgba(255, 91, 62, .12);
}
.lead-form__field select { color-scheme: dark; }
.lead-form__field:nth-of-type(4),
.lead-form__field:nth-of-type(3),
.lead-form__field--message,
.lead-form__privacy,
.lead-form__submit { grid-column: 1 / -1; }

.lead-form__privacy {
  margin: -2px 0 0;
  color: rgba(235, 239, 236, .47);
  font: 400 11px/1.5 "Space Grotesk", sans-serif;
}

.lead-form__support-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 15px;
  color: rgba(235, 239, 236, .78);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  font: 400 12px/1.6 "Space Grotesk", sans-serif;
}

.lead-form.is-support .lead-form__field[data-store-field] small { display: none; }

.lead-form__submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  border: 1px solid #ff5b3e;
  border-radius: 5px;
  background: #ff5b3e;
  font: 600 13px/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.lead-form__submit:hover { border-color: #ff765d; background: #ef5137; transform: translateY(-1px); }
.lead-form__submit .whatsapp-icon { width: 17px; height: 17px; }
.lead-dialog button:focus-visible { outline: 2px solid #ff8a76; outline-offset: 3px; }

@keyframes lead-dialog-enter {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .lead-dialog { width: calc(100% - 24px); max-height: 90dvh; }
  .lead-dialog__panel { padding: 28px 20px 22px; }
  .lead-dialog__close { top: 17px; right: 17px; width: 33px; height: 33px; }
  .lead-dialog__description { margin-bottom: 20px; font-size: 13px; }
  .lead-dialog__topic { grid-template-columns: 40px minmax(0, 1fr) 18px; min-height: 72px; gap: 12px; padding: 11px 12px; }
  .lead-dialog__topic-icon { width: 40px; height: 40px; }
  .lead-dialog__topic-copy strong { font-size: 13px; }
  .lead-dialog__topic-copy small { font-size: 12px; }
  .lead-form { grid-template-columns: 1fr; gap: 13px; }
  .lead-form__field:nth-of-type(4), .lead-form__privacy, .lead-form__support-note, .lead-form__submit { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-dialog[open] { animation: none; }
  .lead-dialog__close, .lead-dialog__topic, .lead-form__field input,
  .lead-form__field select, .lead-form__field textarea, .lead-form__submit { transition: none; }
  .lead-dialog__topic:hover .lead-dialog__topic-arrow, .lead-dialog__topic:focus-visible .lead-dialog__topic-arrow { transform: none; }
  .lead-form__submit:hover { transform: none; }
}

.contact-widget {
  position: fixed;
  z-index: 80;
  right: clamp(16px, 2.2vw, 34px);
  bottom: clamp(18px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #f5f5f2;
  font-family: "Inter", sans-serif;
}

.contact-widget svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(12, 13, 13, .97);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .48), 0 0 36px rgba(255, 91, 62, .07);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.contact-widget__panel[hidden] { display: none !important; }
.contact-widget__panel:not([hidden]) { animation: contact-panel-in 180ms ease-out both; }

.contact-widget__header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px 0 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .085);
}

.contact-widget__header h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(235, 239, 236, .66);
  font: 600 10px/1.3 "Space Grotesk", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-widget__header h2 span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b3e;
  box-shadow: 0 0 10px rgba(255, 91, 62, .55);
}

.contact-widget__close {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  color: rgba(235, 239, 236, .58);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

.contact-widget__close:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.contact-widget__close svg { width: 14px; height: 14px; }

.contact-widget__contact {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  transition: background .18s ease;
}

.contact-widget__contact--button {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.contact-widget__contact:hover { background: rgba(255, 255, 255, .035); }

.contact-widget__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ff765d;
  border: 1px solid rgba(255, 91, 62, .18);
  border-radius: 8px;
  background: rgba(255, 91, 62, .08);
}

.contact-widget__icon svg,
.contact-widget__icon .whatsapp-icon { width: 19px; height: 19px; }
.contact-widget__icon .contact-widget__whatsapp-mark { fill: currentColor; stroke: none; }
.contact-widget__whatsapp-mark path { fill: currentColor; stroke: none; }
.contact-widget__details { display: grid; gap: 4px; }
.contact-widget__details small { color: rgba(235, 239, 236, .43); font: 500 9px/1.2 "Space Grotesk", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.contact-widget__details strong { color: #f5f5f2; font: 600 13px/1.3 "Inter", sans-serif; }
.contact-widget__external { width: 15px; height: 15px; color: rgba(235, 239, 236, .45); }
.contact-widget__arrow { width: 15px; height: 15px; color: rgba(235, 239, 236, .45); }

.contact-widget__lead {
  display: flex;
  width: calc(100% - 28px);
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid #ff5b3e;
  border-radius: 5px;
  background: #ff5b3e;
  font: 600 11px/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.contact-widget__lead:hover { border-color: #ff765d; background: #ef5137; transform: translateY(-1px); }
.contact-widget__lead svg { width: 16px; height: 16px; }

.contact-widget__toggle {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 139, 118, .72);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ff7458, #e7472d 70%);
  box-shadow: 0 6px 24px rgba(255, 78, 48, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-widget__toggle:hover { transform: translateY(-2px); box-shadow: 0 9px 28px rgba(255, 78, 48, .4), inset 0 1px 0 rgba(255, 255, 255, .2); }
.contact-widget__toggle svg { width: 23px; height: 23px; }
.contact-widget__toggle-close { display: none; }
.contact-widget__toggle[aria-expanded="true"] { background: #e7472d; }
.contact-widget__toggle[aria-expanded="true"] .contact-widget__toggle-chat { display: none; }
.contact-widget__toggle[aria-expanded="true"] .contact-widget__toggle-close { display: block; width: 21px; height: 21px; }
.contact-widget button:focus-visible, .contact-widget a:focus-visible { outline: 2px solid #ff8a76; outline-offset: 3px; }

@keyframes contact-panel-in {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .contact-widget { right: 16px; bottom: 18px; }
  .contact-widget__panel { width: min(340px, calc(100vw - 32px)); }
  .contact-widget__toggle { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-widget__panel:not([hidden]) { animation: none; }
  .contact-widget__contact, .contact-widget__lead, .contact-widget__toggle { transition: none; }
  .contact-widget__lead:hover, .contact-widget__toggle:hover { transform: none; }
}
