.whatsapp-form-open {
  overflow: hidden;
}

.whatsapp-contact-dialog {
  position: fixed;
  inset: 0;
  width: min(540px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid #8c71396b;
  border-radius: 26px;
  background: #080808;
  color: #f0e7cd;
  font-family: Poppins, Arial, sans-serif;
}

.whatsapp-contact-dialog::backdrop {
  background: #000c;
}

.whatsapp-contact-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 23px 27px 20px;
  border-bottom: 1px solid #ffcc2829;
  background: #080808;
}

.whatsapp-contact-header > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.whatsapp-contact-header img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.whatsapp-contact-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.whatsapp-contact-close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #89703a;
  border-radius: 50%;
  background: transparent;
  color: #ead5a1;
  font-size: 27px;
  line-height: 1;
}

.whatsapp-contact-form {
  display: grid;
  gap: 23px;
  padding: 25px 28px 29px;
}

.whatsapp-contact-description {
  margin: 0;
  color: #beb49b;
  font-size: 13px;
  line-height: 1.8;
}

.whatsapp-contact-field,
.whatsapp-contact-lawyer {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.whatsapp-contact-field > label,
.whatsapp-contact-lawyer > legend {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  color: #e7ddc1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.whatsapp-contact-field > input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid #796332;
  border-radius: 15px;
  background: #000;
  color: #f4ebd3;
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.whatsapp-contact-field > input::placeholder {
  color: #b3a88e;
  opacity: 1;
}

.whatsapp-contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.whatsapp-contact-options > label {
  position: relative;
  cursor: pointer;
}

.whatsapp-contact-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.whatsapp-contact-options span {
  display: grid;
  place-items: center;
  min-height: 51px;
  padding: 12px;
  border: 1px solid #796332;
  border-radius: 15px;
  background: #000;
  color: #dacfaf;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.whatsapp-contact-options input:checked + span {
  border-color: #ffcc28;
  background: #252010;
  color: #ffdc69;
}

.whatsapp-contact-options input:focus-visible + span {
  outline: 2px solid #ffdc69;
  outline-offset: 4px;
}

.whatsapp-contact-dialog .is-invalid > input,
.whatsapp-contact-lawyer.is-invalid .whatsapp-contact-options span {
  border-color: #f7b39b;
}

.whatsapp-contact-error {
  display: block;
  color: #ffbea6;
  font-size: 11px;
  line-height: 1.5;
}

.whatsapp-contact-error:not(:empty) {
  margin-top: 9px;
}

.whatsapp-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 14px 19px;
  border: 1px solid #ffcc28;
  border-radius: 999px;
  background: #ffcc28;
  color: #171100;
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.whatsapp-contact-submit > span {
  font-size: 23px;
  line-height: 1;
}

.whatsapp-contact-submit:hover {
  background: #ffdf78;
}

@media (max-width: 767px) {
  .whatsapp-contact-dialog {
    inset: var(--wa-viewport-top, 0px) 0 auto;
    width: 100%;
    height: var(--wa-viewport-height, 100dvh);
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .whatsapp-contact-header {
    padding: 18px 20px;
  }

  .whatsapp-contact-header h2 {
    font-size: 18px;
  }

  .whatsapp-contact-form {
    max-width: 540px;
    margin-inline: auto;
    padding: 25px 22px 35px;
  }
}
.whatsapp-contact-status {
  margin: 4px 0 0;
  color: #d9d0b5;
  font-size: 12px;
  line-height: 1.6;
}

.whatsapp-contact-status.is-error {
  color: #ffb5a8;
}

.whatsapp-contact-continuation {
  justify-self: start;
}

