:root {
  --lw-primary: #1667d9;
  --lw-primary-dark: #0f56b8;
  --lw-border: #d9e2ef;
  --lw-text: #12243a;
  --lw-muted: #66758a;
  --lw-card: #ffffff;
  --lw-danger: #d14343;
  --lw-radius: 18px;
  --lw-shadow: 0 8px 28px rgba(18, 36, 58, 0.08);
  --lw-font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.lead-widget-shell,
.lead-widget-shell * {
  box-sizing: border-box;
}

.lead-widget-shell {
  font-family: var(--lw-font);
  color: var(--lw-text);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.lw-card {
  background: var(--lw-card);
  border-radius: var(--lw-radius);
  box-shadow: var(--lw-shadow);
  padding: 28px;
  border: 1px solid rgba(217, 226, 239, 0.85);
}

.lw-title {
  text-align: center;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 24px;
}

.lw-step-label {
  font-size: 15px;
  color: var(--lw-muted);
  margin-bottom: 8px;
}

.lw-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
  margin-bottom: 22px;
}

.lw-progress-bar {
  height: 100%;
  background: var(--lw-primary);
  transition: width 0.2s ease;
}

.lw-question {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 20px;
}

.lw-stack {
  display: grid;
  gap: 14px;
}

.lw-btn,
.lw-input,
.lw-submit,
.lw-secondary {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 16px;
  font-family: inherit;
}

.lw-btn,
.lw-secondary {
  border: 2px solid var(--lw-border);
  background: #fff;
  color: var(--lw-text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lw-btn:hover,
.lw-secondary:hover {
  border-color: var(--lw-primary);
  background: #f7fbff;
}

.lw-submit {
  border: 0;
  background: var(--lw-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}

.lw-submit:hover {
  background: var(--lw-primary-dark);
}

.lw-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.lw-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.lw-input {
  border: 2px solid var(--lw-border);
  padding: 0 16px;
  color: var(--lw-text);
  outline: none;
}

.lw-input:focus {
  border-color: var(--lw-primary);
  box-shadow: 0 0 0 4px rgba(22, 103, 217, 0.09);
}

.lw-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--lw-muted);
  margin: -8px 0 26px;
  line-height: 1.6;
}

.lw-note {
  margin-top: 14px;
  text-align: center;
  color: var(--lw-muted);
  font-size: 13px;
  line-height: 1.5;
}

.lw-secure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: #edf4ff;
  color: #5e7292;
  font-size: 14px;
  width: fit-content;
}

.lw-center {
  text-align: center;
}

.lw-icon-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 4px auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf2f8;
  color: #6f819b;
  font-size: 38px;
  font-weight: 700;
}

.lw-thanks-title {
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 14px;
  text-align: center;
}

.lw-copy {
  font-size: 16px;
  color: var(--lw-muted);
  text-align: center;
  line-height: 1.65;
  margin: 0 0 22px;
}

.lw-error {
  margin-top: 6px;
  color: var(--lw-danger);
  font-size: 13px;
}

@media (max-width: 540px) {
  .lw-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .lw-question,
  .lw-thanks-title {
    font-size: 18px;
  }
}
