:root {
  --lsn-gold: #e2b84b;
  --lsn-navy: #09111f;
  --lsn-panel: #111c2e;
  --lsn-text: #ffffff;
  --lsn-muted: #b8c0cc;
  --lsn-danger: #ffb4b4;
  --lsn-success: #a9e8be;
}

#lsn-contact-widget,
#lsn-contact-widget * {
  box-sizing: border-box;
}

#lsn-contact-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--lsn-text);
}

.lsn-launcher,
.lsn-action,
.lsn-close,
.lsn-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.lsn-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lsn-gold);
  color: #111;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.lsn-launcher:focus-visible,
.lsn-action:focus-visible,
.lsn-close:focus-visible,
.lsn-submit:focus-visible,
.lsn-field input:focus-visible,
.lsn-field textarea:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.lsn-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: var(--lsn-panel);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.lsn-panel[hidden] {
  display: none;
}

.lsn-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--lsn-navy);
}

.lsn-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.lsn-subtitle {
  margin: 0;
  color: var(--lsn-muted);
  font-size: 13px;
  line-height: 1.4;
}

.lsn-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.lsn-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 14px 4px;
}

.lsn-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 78px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.lsn-action:hover {
  background: rgba(255, 255, 255, .12);
}

.lsn-action-icon {
  font-size: 24px;
}

.lsn-form-wrap {
  padding: 14px;
}

.lsn-form {
  display: grid;
  gap: 11px;
}

.lsn-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--lsn-muted);
  font-size: 12px;
  font-weight: 700;
}

.lsn-field input,
.lsn-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  padding: 11px 12px;
  font: inherit;
}

.lsn-field textarea {
  min-height: 92px;
  resize: vertical;
}

.lsn-field input::placeholder,
.lsn-field textarea::placeholder {
  color: #8f9aaa;
}

.lsn-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--lsn-muted);
  font-size: 11px;
  line-height: 1.4;
}

.lsn-consent input {
  margin-top: 2px;
}

.lsn-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 11px;
  background: var(--lsn-gold);
  color: #111;
  font-weight: 900;
}

.lsn-submit[disabled] {
  opacity: .65;
  cursor: wait;
}

.lsn-status {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.lsn-status.error { color: var(--lsn-danger); }
.lsn-status.success { color: var(--lsn-success); }

.lsn-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 520px) {
  #lsn-contact-widget {
    right: 12px;
    bottom: 12px;
  }

  .lsn-launcher-label {
    display: none;
  }

  .lsn-launcher {
    width: 58px;
    height: 58px;
    justify-content: center;
    padding: 0;
    font-size: 22px;
  }
}
