.feedback-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid #25d366;
  border-radius: 999px;
  background: #25d366;
  color: #111b21;
  box-shadow: 0 12px 30px rgba(17, 94, 52, 0.24);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feedback-whatsapp svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.feedback-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 15px 34px rgba(17, 94, 52, 0.3);
  transform: translateY(-2px);
}

.feedback-whatsapp:active {
  transform: translateY(0) scale(0.985);
}

.feedback-whatsapp:focus-visible,
.support-modal button:focus-visible,
.support-modal input:focus-visible,
.support-modal select:focus-visible,
.support-modal textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 3px;
}

body:has(.feedback-whatsapp) .toast {
  bottom: 86px;
}

body.support-dialog-open {
  overflow: hidden;
}

.support-modal-backdrop[hidden] {
  display: none;
}

.support-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(9, 28, 23, 0.58);
  backdrop-filter: blur(5px);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.support-modal {
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid #dce5e0;
  border-radius: 22px;
  background: #ffffff;
  color: #14201d;
  box-shadow: 0 28px 90px rgba(9, 40, 32, 0.28);
}

.support-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 0;
}

.support-modal-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.support-modal-heading p {
  margin: 0 0 3px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.support-modal-heading h2 {
  margin: 0;
  color: #14201d;
  font-size: 24px;
  line-height: 1.18;
}

.support-modal-icon {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #e7f8ef;
  color: #118c4d;
}

.support-modal-icon svg {
  width: 25px;
  height: 25px;
}

.support-modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  background: #f7f9f8;
  color: #52615c;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.support-modal-close:hover {
  background: #eef3f0;
  color: #14201d;
}

.support-modal-intro {
  margin: 17px 24px 0;
  color: #66736e;
  font-size: 14px;
  line-height: 1.55;
}

.support-form {
  display: grid;
  gap: 17px;
  padding: 22px 24px 24px;
}

.support-field {
  display: grid;
  gap: 7px;
}

.support-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.support-field > span {
  color: #273530;
  font-size: 13px;
  font-weight: 750;
}

.support-field em {
  margin-left: 5px;
  color: #78837f;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.support-field input,
.support-field select,
.support-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfdcd6;
  border-radius: 12px;
  background: #ffffff;
  color: #14201d;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.support-field input {
  min-height: 46px;
  padding: 0 13px;
}

.support-field select {
  min-height: 46px;
  padding: 0 42px 0 13px;
}

.support-field textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
}

.support-field input:hover,
.support-field select:hover,
.support-field textarea:hover {
  border-color: #9fb9af;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
  color: #8a9691;
}

.support-field input[aria-invalid="true"],
.support-field textarea[aria-invalid="true"] {
  border-color: #b43c32;
  box-shadow: 0 0 0 3px rgba(180, 60, 50, 0.1);
}

.support-field small {
  color: #74807b;
  font-size: 11px;
  line-height: 1.45;
}

.support-field .support-field-error {
  color: #a43229;
  font-weight: 700;
}

.support-field .support-field-error:empty {
  display: none;
}

.support-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #eadfbf;
  border-radius: 12px;
  background: #fffbef;
  color: #65572f;
}

.support-privacy-note > span {
  width: 20px;
  height: 20px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f2d56e;
  color: #4d421f;
  font-size: 12px;
  font-weight: 900;
}

.support-privacy-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.support-consent {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #4e5f5a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
}

.support-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #0f766e;
}

.support-consent input[aria-invalid="true"] {
  outline: 3px solid rgba(180, 60, 50, 0.16);
  outline-offset: 2px;
}

.support-form-status {
  display: none;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.support-form-status.is-pending,
.support-form-status.is-success,
.support-form-status.is-error {
  display: block;
}

.support-form-status.is-pending {
  background: #eef5f2;
  color: #3c514a;
}

.support-form-status.is-success {
  background: #e9f8ef;
  color: #176237;
}

.support-form-status.is-error {
  background: #fff0ee;
  color: #98372f;
}

.support-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.support-modal-actions button {
  min-height: 45px;
  padding: 0 16px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.support-secondary-button {
  border: 1px solid #d3ded9;
  background: #ffffff;
  color: #3c4b46;
}

.support-secondary-button:hover {
  background: #f5f8f6;
}

.support-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.support-primary-button:hover {
  border-color: #095851;
  background: #095851;
}

.support-modal button:disabled,
.support-modal input:disabled,
.support-modal select:disabled,
.support-modal textarea:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.support-primary-button.is-loading {
  box-shadow: none;
}

@media (max-width: 680px) {
  .feedback-whatsapp {
    position: relative;
    right: auto;
    bottom: auto;
    float: right;
    min-height: 46px;
    width: 48px;
    max-width: 48px;
    margin: 14px;
    padding: 10px;
  }

  .feedback-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .support-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .support-modal {
    width: 100%;
    max-height: min(92vh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .support-modal-header {
    padding: 20px 18px 0;
  }

  .support-modal-heading h2 {
    font-size: 21px;
  }

  .support-modal-intro {
    margin: 15px 18px 0;
  }

  .support-form {
    gap: 15px;
    padding: 19px 18px max(20px, env(safe-area-inset-bottom));
  }

  .support-field-row {
    grid-template-columns: 1fr;
  }

  .support-modal-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.35fr;
  }

  .support-modal-actions button {
    height: auto;
    min-height: 48px;
    padding: 8px 12px;
  }
}

@media (max-width: 390px) {
  .feedback-whatsapp span {
    font-size: 13px;
  }

  .support-modal-heading {
    gap: 10px;
  }

  .support-modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .support-modal-heading p {
    font-size: 10px;
  }

  .support-modal-heading h2 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-whatsapp,
  .support-field input,
  .support-field select,
  .support-field textarea {
    transition: none;
  }
}
